diff --git a/website_extra_social_media/README.rst b/website_extra_social_media/README.rst new file mode 100644 index 000000000..11859b5ff --- /dev/null +++ b/website_extra_social_media/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Extra Social Media In Website +============================= +This module will help you to add Extra Social Media in Website by using an +Inner Content Snippet. + +Configuration +============= +* Need to add your Social Media Account links in the corresponding field of + Configuration Settings of Website module. + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Affero General Public License v3.0 (AGPL v3) +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +Developer: (V16) Amaya Aravind, Contact : odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/website_extra_social_media/__init__.py b/website_extra_social_media/__init__.py new file mode 100644 index 000000000..3ce1c4bf2 --- /dev/null +++ b/website_extra_social_media/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Amaya Aravind(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from . import controllers +from . import models diff --git a/website_extra_social_media/__manifest__.py b/website_extra_social_media/__manifest__.py new file mode 100644 index 000000000..6ab00d7c8 --- /dev/null +++ b/website_extra_social_media/__manifest__.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Amaya Aravind(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +{ + 'name': 'Extra Social Media In Website', + 'version': '16.0.1.0.0', + 'category': 'Website', + 'summary': 'Snippet for adding extra social medias in website.', + 'description': "This provides an option to add extra social medias " + "like YouTube, Google+, Pinterest, Flickr etc. in website" + " by using inner content snippet.The social medias that " + "have values in the configuration settings will be only " + "visible in the website.", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['website'], + 'data': [ + 'views/res_config_setting_views.xml', + 'views/snippets/extra_social_media_templates.xml' + ], + 'assets': { + 'web.assets_frontend': [ + 'website_extra_social_media/static/src/js/extra_social_media.js', + ], + }, + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/website_extra_social_media/controllers/__init__.py b/website_extra_social_media/controllers/__init__.py new file mode 100644 index 000000000..9c0e48671 --- /dev/null +++ b/website_extra_social_media/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Amaya Aravind(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from . import website_extra_social_media diff --git a/website_extra_social_media/controllers/website_extra_social_media.py b/website_extra_social_media/controllers/website_extra_social_media.py new file mode 100644 index 000000000..882f8f98f --- /dev/null +++ b/website_extra_social_media/controllers/website_extra_social_media.py @@ -0,0 +1,182 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Amaya Aravind(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import http +from odoo.http import request + + +class WebsiteExtraSocialMedia(http.Controller): + """Class for the controllers of website_extra_social_media.""" + @http.route(['/website/sm/facebook'], type="http", auth="public") + def facebook(self): + """ when clicking on the facebook icon in the website, it will enter + to this controller,and it will redirect to the link that in the + configuration settings of website module.""" + values = request.env['res.config.settings'].sudo().default_get( + list(request.env['res.config.settings'].fields_get())) + if values['facebook_link'] is not False: + url = values['facebook_link'] + return request.redirect(url, local=False) + + @http.route(['/website/sm/twitter'], type="http", auth="public") + def twitter(self): + """ when clicking on the twitter icon in the website, it will enter to + this controller,and it will redirect to the link that in the + configuration settings of website module.""" + values = request.env['res.config.settings'].sudo().default_get( + list(request.env['res.config.settings'].fields_get())) + if values['twitter_link'] is not False: + url = values['twitter_link'] + return request.redirect(url, local=False) + + @http.route(['/website/sm/linkedin'], type="http", auth="public") + def linkedin(self): + """ when clicking on the LinkedIn icon in the website, it will enter + to this controller,and it will redirect to the link that in the + configuration settings of website module.""" + values = request.env['res.config.settings'].sudo().default_get( + list(request.env['res.config.settings'].fields_get())) + if values['linkedin_link'] is not False: + url = values['linkedin_link'] + return request.redirect(url, local=False) + + @http.route(['/website/sm/instagram'], type="http", auth="public") + def instagram(self): + """ when clicking on the instagram icon in the website, it will enter + to this controller,and it will redirect to the link that in the + configuration settings of website module.""" + values = request.env['res.config.settings'].sudo().default_get( + list(request.env['res.config.settings'].fields_get())) + if values['instagram_link'] is not False: + url = values['instagram_link'] + return request.redirect(url, local=False) + + @http.route(['/website/sm/whatsapp'], type="http", auth="public") + def whatsapp(self): + """ when clicking on the whatsapp icon in the website, it will enter + to this controller,and it will redirect to the + link - 'https://api.whatsapp.com/send?phone='with the number that + in the configuration settings of website module.""" + values = request.env['res.config.settings'].sudo().default_get( + list(request.env['res.config.settings'].fields_get())) + if values['whatsapp_link'] is not False: + url = 'https://api.whatsapp.com/send?phone=' + values[ + 'whatsapp_link'] + return request.redirect(url, local=False) + + @http.route(['/website/sm/github'], type="http", auth="public") + def github(self): + """ when clicking on the gitHub icon in the website, it will enter to + this controller,and it will redirect to the link that in the + configuration settings of website module.""" + values = request.env['res.config.settings'].sudo().default_get( + list(request.env['res.config.settings'].fields_get())) + if values['github_link'] is not False: + url = values['github_link'] + return request.redirect(url, local=False) + + @http.route(['/website/sm/youtube'], type="http", auth="public") + def youtube(self): + """ when clicking on the YouTube icon in the website, it will enter to + this controller,and it will redirect to the link that in the + configuration settings of website module.""" + values = request.env['res.config.settings'].sudo().default_get( + list(request.env['res.config.settings'].fields_get())) + if values['youtube_link'] is not False: + url = values['youtube_link'] + return request.redirect(url, local=False) + + @http.route(['/website/sm/google/plus'], type="http", auth="public") + def google_plus(self): + """ when clicking on the Google plus icon in the website, it will enter + to this controller,and it will redirect to the link that in the + configuration settings of website module.""" + values = request.env['res.config.settings'].sudo().default_get( + list(request.env['res.config.settings'].fields_get())) + if values['google_plus_link'] is not False: + url = values['google_plus_link'] + return request.redirect(url, local=False) + + @http.route(['/website/sm/snapchat'], type="http", auth="public") + def snapchat(self): + """ when clicking on the snapchat icon in the website, it will enter + to this controller,and it will redirect to the link that in the + configuration settings of website module.""" + values = request.env['res.config.settings'].sudo().default_get( + list(request.env['res.config.settings'].fields_get())) + if values['snapchat_link'] is not False: + url = values['snapchat_link'] + return request.redirect(url, local=False) + + @http.route(['/website/sm/flickr'], type="http", auth="public") + def flickr(self): + """ when clicking on the flickr icon in the website, it will enter + to this controller,and it will redirect to the link that in the + configuration settings of website module.""" + values = request.env['res.config.settings'].sudo().default_get( + list(request.env['res.config.settings'].fields_get())) + if values['flickr_link'] is not False: + url = values['flickr_link'] + return request.redirect(url, local=False) + + @http.route(['/website/sm/quora'], type="http", auth="public") + def quora(self): + """ when clicking on the quora icon in the website, it will enter to + this controller,and it will redirect to the link that in the + configuration settings of website module.""" + values = request.env['res.config.settings'].sudo().default_get( + list(request.env['res.config.settings'].fields_get())) + if values['quora_link'] is not False: + url = values['quora_link'] + return request.redirect(url, local=False) + + @http.route(['/website/sm/pinterest'], type="http", auth="public") + def pinterest(self): + """ when clicking on the pinterest icon in the website, it will enter + to this controller,and it will redirect to the link that in the + configuration settings of website module.""" + values = request.env['res.config.settings'].sudo().default_get( + list(request.env['res.config.settings'].fields_get())) + if values['pinterest_link'] is not False: + url = values['pinterest_link'] + return request.redirect(url, local=False) + + @http.route(['/website/sm/dribble'], type="http", auth="public") + def dribble(self): + """ when clicking on the dribble icon in the website, it will enter to + this controller,and it will redirect to the link that in the + configuration settings of website module.""" + values = request.env['res.config.settings'].sudo().default_get( + list(request.env['res.config.settings'].fields_get())) + if values['dribble_link'] is not False: + url = values['dribble_link'] + return request.redirect(url, local=False) + + @http.route(['/website/sm/tumblr'], type="http", auth="public") + def tumblr(self): + """ when clicking on the tumblr icon in the website, it will enter to + this controller,and it will redirect to the link that in the + configuration settings of website module.""" + values = request.env['res.config.settings'].sudo().default_get( + list(request.env['res.config.settings'].fields_get())) + if values['tumblr_link'] is not False: + url = values['tumblr_link'] + return request.redirect(url, local=False) diff --git a/website_extra_social_media/doc/RELEASE_NOTES.md b/website_extra_social_media/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..42904a6a8 --- /dev/null +++ b/website_extra_social_media/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 18.11.2023 +#### Version 16.0.1.0.0 +#### ADD + +-Initial Commit for Extra Social Media In Website. diff --git a/website_extra_social_media/models/__init__.py b/website_extra_social_media/models/__init__.py new file mode 100644 index 000000000..2a31fd0d7 --- /dev/null +++ b/website_extra_social_media/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Amaya Aravind(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from . import res_config_settings diff --git a/website_extra_social_media/models/res_config_settings.py b/website_extra_social_media/models/res_config_settings.py new file mode 100644 index 000000000..8d711839b --- /dev/null +++ b/website_extra_social_media/models/res_config_settings.py @@ -0,0 +1,107 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Amaya Aravind(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + """ Class for inherited model res config settings. Contains required + fields and functions for the website_extra_social_media module. + Methods: + get_social_media_values(self): + Method for return social media value into the website.""" + _inherit = 'res.config.settings' + + twitter_link = fields.Char(string='Twitter', + config_parameter='website_extra_social_media.twitter_link', + help='Add your Twitter account link') + linkedin_link = fields.Char(string='LinkedIn', + config_parameter='website_extra_social_media.linkedin_link', + help='Add your LinkedIn account link') + whatsapp_link = fields.Char(string='Whatsapp Number', + config_parameter='website_extra_social_media.whatsapp_link', + help='Add your Whatsapp Number') + instagram_link = fields.Char(string='Instagram', + config_parameter='website_extra_social_media.instagram_link', + help='Add your Instagram account link') + github_link = fields.Char(string='GitHub', + config_parameter='website_extra_social_media.github_link', + help='Add your GitHub account link') + youtube_link = fields.Char(string='YouTube', + config_parameter='website_extra_social_media.youtube_link', + help='Add your YouTube account link') + google_plus_link = fields.Char(string='Google Plus', + config_parameter='website_extra_social_media.google_plus_link', + help='Add your Google Plus account link') + snapchat_link = fields.Char(string='Snapchat', + config_parameter='website_extra_social_media.snapchat_link', + help='Add your Snapchat account link') + facebook_link = fields.Char(string='Facebook', + config_parameter='website_extra_social_media.facebook_link', + help='Add your Facebook account link') + flickr_link = fields.Char(string='Flickr', + config_parameter='website_extra_social_media.flickr_link', + help='Add your Flickr account link') + quora_link = fields.Char(string='Quora', + config_parameter='website_extra_social_media.quora_link', + help='Add your Quora account link') + pinterest_link = fields.Char(string='Pinterest', + config_parameter='website_extra_social_media.pinterest_link', + help='Add your Pinterest account link') + dribble_link = fields.Char(string='Dribble', + config_parameter='website_extra_social_media.dribble_link', + help='Add your Dribble account link') + tumblr_link = fields.Char(string='Tumblr', + config_parameter='website_extra_social_media.tumblr_link', + help='Add your Tumblr account link') + + def get_social_media_values(self): + """ Method for return social media value into the website.""" + return { + 'facebook': self.sudo().default_get(list(self.fields_get()))[ + 'facebook_link'], + 'twitter': self.sudo().default_get(list(self.fields_get()))[ + 'twitter_link'], + 'linkedin': self.sudo().default_get(list(self.fields_get()))[ + 'linkedin_link'], + 'instagram': self.sudo().default_get(list(self.fields_get()))[ + 'instagram_link'], + 'whatsapp': self.sudo().default_get(list(self.fields_get()))[ + 'whatsapp_link'], + 'github': self.sudo().default_get(list(self.fields_get()))[ + 'github_link'], + 'youtube': self.sudo().default_get(list(self.fields_get()))[ + 'youtube_link'], + 'google_plus': self.sudo().default_get(list(self.fields_get()))[ + 'google_plus_link'], + 'snapchat': self.sudo().default_get(list(self.fields_get()))[ + 'snapchat_link'], + 'flickr': self.sudo().default_get(list(self.fields_get()))[ + 'flickr_link'], + 'quora': self.sudo().default_get(list(self.fields_get()))[ + 'quora_link'], + 'pinterest': self.sudo().default_get(list(self.fields_get()))[ + 'pinterest_link'], + 'dribble': self.sudo().default_get(list(self.fields_get()))[ + 'dribble_link'], + 'tumblr': self.sudo().default_get(list(self.fields_get()))[ + 'tumblr_link'], + } diff --git a/website_extra_social_media/static/description/assets/icons/check.png b/website_extra_social_media/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/website_extra_social_media/static/description/assets/icons/check.png differ diff --git a/website_extra_social_media/static/description/assets/icons/chevron.png b/website_extra_social_media/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/website_extra_social_media/static/description/assets/icons/chevron.png differ diff --git a/website_extra_social_media/static/description/assets/icons/cogs.png b/website_extra_social_media/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/website_extra_social_media/static/description/assets/icons/cogs.png differ diff --git a/website_extra_social_media/static/description/assets/icons/consultation.png b/website_extra_social_media/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/website_extra_social_media/static/description/assets/icons/consultation.png differ diff --git a/website_extra_social_media/static/description/assets/icons/ecom-black.png b/website_extra_social_media/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/website_extra_social_media/static/description/assets/icons/ecom-black.png differ diff --git a/website_extra_social_media/static/description/assets/icons/education-black.png b/website_extra_social_media/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/website_extra_social_media/static/description/assets/icons/education-black.png differ diff --git a/website_extra_social_media/static/description/assets/icons/hotel-black.png b/website_extra_social_media/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/website_extra_social_media/static/description/assets/icons/hotel-black.png differ diff --git a/website_extra_social_media/static/description/assets/icons/license.png b/website_extra_social_media/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/website_extra_social_media/static/description/assets/icons/license.png differ diff --git a/website_extra_social_media/static/description/assets/icons/lifebuoy.png b/website_extra_social_media/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/website_extra_social_media/static/description/assets/icons/lifebuoy.png differ diff --git a/website_extra_social_media/static/description/assets/icons/manufacturing-black.png b/website_extra_social_media/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/website_extra_social_media/static/description/assets/icons/manufacturing-black.png differ diff --git a/website_extra_social_media/static/description/assets/icons/pos-black.png b/website_extra_social_media/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/website_extra_social_media/static/description/assets/icons/pos-black.png differ diff --git a/website_extra_social_media/static/description/assets/icons/puzzle.png b/website_extra_social_media/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/website_extra_social_media/static/description/assets/icons/puzzle.png differ diff --git a/website_extra_social_media/static/description/assets/icons/restaurant-black.png b/website_extra_social_media/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/website_extra_social_media/static/description/assets/icons/restaurant-black.png differ diff --git a/website_extra_social_media/static/description/assets/icons/service-black.png b/website_extra_social_media/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/website_extra_social_media/static/description/assets/icons/service-black.png differ diff --git a/website_extra_social_media/static/description/assets/icons/trading-black.png b/website_extra_social_media/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/website_extra_social_media/static/description/assets/icons/trading-black.png differ diff --git a/website_extra_social_media/static/description/assets/icons/training.png b/website_extra_social_media/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/website_extra_social_media/static/description/assets/icons/training.png differ diff --git a/website_extra_social_media/static/description/assets/icons/update.png b/website_extra_social_media/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/website_extra_social_media/static/description/assets/icons/update.png differ diff --git a/website_extra_social_media/static/description/assets/icons/user.png b/website_extra_social_media/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/website_extra_social_media/static/description/assets/icons/user.png differ diff --git a/website_extra_social_media/static/description/assets/icons/wrench.png b/website_extra_social_media/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/website_extra_social_media/static/description/assets/icons/wrench.png differ diff --git a/website_extra_social_media/static/description/assets/misc/categories.png b/website_extra_social_media/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/website_extra_social_media/static/description/assets/misc/categories.png differ diff --git a/website_extra_social_media/static/description/assets/misc/check-box.png b/website_extra_social_media/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/website_extra_social_media/static/description/assets/misc/check-box.png differ diff --git a/website_extra_social_media/static/description/assets/misc/compass.png b/website_extra_social_media/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/website_extra_social_media/static/description/assets/misc/compass.png differ diff --git a/website_extra_social_media/static/description/assets/misc/corporate.png b/website_extra_social_media/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/website_extra_social_media/static/description/assets/misc/corporate.png differ diff --git a/website_extra_social_media/static/description/assets/misc/customer-support.png b/website_extra_social_media/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/website_extra_social_media/static/description/assets/misc/customer-support.png differ diff --git a/website_extra_social_media/static/description/assets/misc/cybrosys-logo.png b/website_extra_social_media/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/website_extra_social_media/static/description/assets/misc/cybrosys-logo.png differ diff --git a/website_extra_social_media/static/description/assets/misc/features.png b/website_extra_social_media/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/website_extra_social_media/static/description/assets/misc/features.png differ diff --git a/website_extra_social_media/static/description/assets/misc/logo.png b/website_extra_social_media/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/website_extra_social_media/static/description/assets/misc/logo.png differ diff --git a/website_extra_social_media/static/description/assets/misc/pictures.png b/website_extra_social_media/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/website_extra_social_media/static/description/assets/misc/pictures.png differ diff --git a/website_extra_social_media/static/description/assets/misc/pie-chart.png b/website_extra_social_media/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/website_extra_social_media/static/description/assets/misc/pie-chart.png differ diff --git a/website_extra_social_media/static/description/assets/misc/right-arrow.png b/website_extra_social_media/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/website_extra_social_media/static/description/assets/misc/right-arrow.png differ diff --git a/website_extra_social_media/static/description/assets/misc/star.png b/website_extra_social_media/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/website_extra_social_media/static/description/assets/misc/star.png differ diff --git a/website_extra_social_media/static/description/assets/misc/support.png b/website_extra_social_media/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/website_extra_social_media/static/description/assets/misc/support.png differ diff --git a/website_extra_social_media/static/description/assets/misc/whatsapp.png b/website_extra_social_media/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/website_extra_social_media/static/description/assets/misc/whatsapp.png differ diff --git a/website_extra_social_media/static/description/assets/modules/1.png b/website_extra_social_media/static/description/assets/modules/1.png new file mode 100644 index 000000000..df65629bf Binary files /dev/null and b/website_extra_social_media/static/description/assets/modules/1.png differ diff --git a/website_extra_social_media/static/description/assets/modules/2.png b/website_extra_social_media/static/description/assets/modules/2.png new file mode 100644 index 000000000..7a9d3b1f6 Binary files /dev/null and b/website_extra_social_media/static/description/assets/modules/2.png differ diff --git a/website_extra_social_media/static/description/assets/modules/3.png b/website_extra_social_media/static/description/assets/modules/3.png new file mode 100644 index 000000000..6058f6c3b Binary files /dev/null and b/website_extra_social_media/static/description/assets/modules/3.png differ diff --git a/website_extra_social_media/static/description/assets/modules/4.png b/website_extra_social_media/static/description/assets/modules/4.png new file mode 100644 index 000000000..d9374733c Binary files /dev/null and b/website_extra_social_media/static/description/assets/modules/4.png differ diff --git a/website_extra_social_media/static/description/assets/modules/5.png b/website_extra_social_media/static/description/assets/modules/5.png new file mode 100644 index 000000000..e90228872 Binary files /dev/null and b/website_extra_social_media/static/description/assets/modules/5.png differ diff --git a/website_extra_social_media/static/description/assets/modules/6.png b/website_extra_social_media/static/description/assets/modules/6.png new file mode 100644 index 000000000..2a722d66e Binary files /dev/null and b/website_extra_social_media/static/description/assets/modules/6.png differ diff --git a/website_extra_social_media/static/description/assets/screenshots/1.png b/website_extra_social_media/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..4aba6cfeb Binary files /dev/null and b/website_extra_social_media/static/description/assets/screenshots/1.png differ diff --git a/website_extra_social_media/static/description/assets/screenshots/2.png b/website_extra_social_media/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..b2c854042 Binary files /dev/null and b/website_extra_social_media/static/description/assets/screenshots/2.png differ diff --git a/website_extra_social_media/static/description/assets/screenshots/3.png b/website_extra_social_media/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..d20d3dd39 Binary files /dev/null and b/website_extra_social_media/static/description/assets/screenshots/3.png differ diff --git a/website_extra_social_media/static/description/assets/screenshots/4.png b/website_extra_social_media/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..ccb829f05 Binary files /dev/null and b/website_extra_social_media/static/description/assets/screenshots/4.png differ diff --git a/website_extra_social_media/static/description/assets/screenshots/5.png b/website_extra_social_media/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..6b4ce48b3 Binary files /dev/null and b/website_extra_social_media/static/description/assets/screenshots/5.png differ diff --git a/website_extra_social_media/static/description/assets/screenshots/6.png b/website_extra_social_media/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..7553330dd Binary files /dev/null and b/website_extra_social_media/static/description/assets/screenshots/6.png differ diff --git a/website_extra_social_media/static/description/assets/screenshots/7.png b/website_extra_social_media/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..bd1353d96 Binary files /dev/null and b/website_extra_social_media/static/description/assets/screenshots/7.png differ diff --git a/website_extra_social_media/static/description/assets/screenshots/hero.gif b/website_extra_social_media/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..7019551d1 Binary files /dev/null and b/website_extra_social_media/static/description/assets/screenshots/hero.gif differ diff --git a/website_extra_social_media/static/description/banner.png b/website_extra_social_media/static/description/banner.png new file mode 100644 index 000000000..a50fbacb3 Binary files /dev/null and b/website_extra_social_media/static/description/banner.png differ diff --git a/website_extra_social_media/static/description/icon.png b/website_extra_social_media/static/description/icon.png new file mode 100644 index 000000000..cb64477c2 Binary files /dev/null and b/website_extra_social_media/static/description/icon.png differ diff --git a/website_extra_social_media/static/description/index.html b/website_extra_social_media/static/description/index.html new file mode 100644 index 000000000..31aa3a5ba --- /dev/null +++ b/website_extra_social_media/static/description/index.html @@ -0,0 +1,546 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Extra Social Media In Website

+

Snippet for Adding Extra Social Medias.

+ + +
+
+
+
+ + +
+
+ +
+

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ This module will help you to add Extra Social Medias like YouTube, Google+ , + Pinterest, Flickr etc. in Website by using an Inner Content Snippet.The Social + Medias that have values in the Configuration Settings will be only visible + in the Website. +
+
+ + + +
+
+ +
+

Features +

+
+
+
+
+ + Extra Social Medias like YouTube, Google+ , Pinterest, + Flickr etc. for Website. +
+
+ + Can use as Snippet. +
+
+ + The link for social media can be added from + Configuration Settings of Website module. +
+
+ + In the case of Whatsapp,just use Whatsapp number. +
+
+ + Applicable for multiple Websites. +
+
+ + Only the Social Media that have account links in the + back-end will be visible in the front-end. +
+
+ + Compatible with Community, Enterprise and Odoo.sh. +
+
+
+
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+
+

Add your Social Media account links in the corresponding + field of Configuration Settings of Website. +

+ +
+
+

There will be an Inner Content Snippet for Extra Social Media. +

+ +
+
+

When you drag and drop the snippet, you will be able to + see all the Social Medias. +

+ +
+
+

But after saving the changes, the Social Medias that have + values in the Configuration Settings will be only visible in the Website. + When you click on the button, it will redirect to the corresponding Website. +

+ +
+
+

In the case of Whatsapp, just add the Whatsapp Number. +

+ +
+
+

It will redirect to the Whatsapp Page. +

+ +
+
+
+ + + +
+
+ +
+

Related + Products +

+
+
+
+ +
+
+ + + +
+
+ +
+

Our Services +

+
+
+
+
+
+ +
+
+ Odoo + Customization
+
+
+
+ +
+
+ Odoo + Implementation
+
+
+
+ +
+
+ Odoo + Support
+
+
+
+ +
+
+ Hire + Odoo + Developer
+
+
+
+ +
+
+ Odoo + Integration
+
+
+
+ +
+
+ Odoo + Migration
+
+
+
+ +
+
+ Odoo + Consultancy
+
+
+
+ +
+
+ Odoo + Implementation
+
+
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+
+ + + +
+
+ +
+

Our + Industries +

+
+
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+
+
+ + + +
+
+ +
+

Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ diff --git a/website_extra_social_media/static/src/js/extra_social_media.js b/website_extra_social_media/static/src/js/extra_social_media.js new file mode 100644 index 000000000..6df737f08 --- /dev/null +++ b/website_extra_social_media/static/src/js/extra_social_media.js @@ -0,0 +1,63 @@ +/** @odoo-module **/ +//Extend the public widget +var rpc = require('web.rpc'); +var publicWidget = require('web.public.widget'); +publicWidget.registry.PublicWidgetExtraSocialMedia = publicWidget.Widget.extend({ + selector: '.extra_social_media', +// Function to make social media icons visible only if value entered in that +// of fields in configuration settings of website module. + start: function () { + var self = this + rpc.query({ + model: 'res.config.settings', + method: 'get_social_media_values', + args: [0], + }).then(function (result){ + if (result['facebook'] == false){ + self.$el.find(".extra_social_media_facebook").hide(); + } + if (result['twitter'] == false){ + self.$el.find(".extra_social_media_twitter").hide(); + } + if (result['linkedin'] == false){ + self.$el.find(".extra_social_media_linkedin").hide(); + } + if (result['instagram'] == false){ + self.$el.find(".extra_social_media_instagram").hide(); + } + if (result['whatsapp'] == false){ + self.$el.find(".extra_social_media_whatsapp").hide(); + } + if (result['github'] == false){ + self.$el.find(".extra_social_media_github").hide(); + } + if (result['youtube'] == false){ + self.$el.find(".extra_social_media_youtube").hide(); + } + if (result['google_plus'] == false){ + self.$el.find(".extra_social_media_google_plus").hide(); + } + if (result['snapchat'] == false){ + self.$el.find(".extra_social_media_snapchat").hide(); + } + if (result['flickr'] == false){ + self.$el.find(".extra_social_media_flickr").hide(); + } + if (result['quora'] == false){ + self.$el.find(".extra_social_media_quora").hide(); + } + if (result['pinterest'] == false){ + self.$el.find(".extra_social_media_pinterest").hide(); + } + if (result['dribble'] == false){ + self.$el.find(".extra_social_media_dribble").hide(); + } + if (result['tumblr'] == false){ + self.$el.find(".extra_social_media_tumblr").hide(); + } + }); + }, +}); + var PublicWidgetExtraSocialMedia = new publicWidget.registry.PublicWidgetExtraSocialMedia(this); + PublicWidgetExtraSocialMedia.appendTo($(".extra_social_media")); + return publicWidget.registry.PublicWidgetExtraSocialMedia; diff --git a/website_extra_social_media/views/res_config_setting_views.xml b/website_extra_social_media/views/res_config_setting_views.xml new file mode 100644 index 000000000..9f7d76851 --- /dev/null +++ b/website_extra_social_media/views/res_config_setting_views.xml @@ -0,0 +1,106 @@ + + + + + res.config.settings.view.form.inherit.website.extra.social.media + res.config.settings + + + + +

Social Media

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/website_extra_social_media/views/snippets/extra_social_media_templates.xml b/website_extra_social_media/views/snippets/extra_social_media_templates.xml new file mode 100644 index 000000000..a48fd6fcc --- /dev/null +++ b/website_extra_social_media/views/snippets/extra_social_media_templates.xml @@ -0,0 +1,81 @@ + + + + + + +