diff --git a/website_extra_social_media/README.rst b/website_extra_social_media/README.rst new file mode 100644 index 000000000..2e52e0bab --- /dev/null +++ b/website_extra_social_media/README.rst @@ -0,0 +1,49 @@ +.. 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, (V17) Sreerag PM + 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..19c774514 --- /dev/null +++ b/website_extra_social_media/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Sreerag PM(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..96a0227d9 --- /dev/null +++ b/website_extra_social_media/__manifest__.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Sreerag PM(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': '17.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.jpg'], + '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..16fb7db2c --- /dev/null +++ b/website_extra_social_media/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Sreerag PM(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..d9c9dad85 --- /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) 2025-TODAY Cybrosys Technologies() +# Author: Sreerag PM(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..0383d0513 --- /dev/null +++ b/website_extra_social_media/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 02.04.2025 +#### Version 17.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..347fe15ca --- /dev/null +++ b/website_extra_social_media/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Sreerag PM(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..3c7c102d8 --- /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) 2025-TODAY Cybrosys Technologies() +# Author: Sreerag PM(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.jpg b/website_extra_social_media/static/description/assets/modules/1.jpg new file mode 100644 index 000000000..8c563dd63 Binary files /dev/null and b/website_extra_social_media/static/description/assets/modules/1.jpg differ diff --git a/website_extra_social_media/static/description/assets/modules/2.jpg b/website_extra_social_media/static/description/assets/modules/2.jpg new file mode 100644 index 000000000..a7a3264ef Binary files /dev/null and b/website_extra_social_media/static/description/assets/modules/2.jpg differ diff --git a/website_extra_social_media/static/description/assets/modules/3.jpg b/website_extra_social_media/static/description/assets/modules/3.jpg new file mode 100644 index 000000000..97284f98d Binary files /dev/null and b/website_extra_social_media/static/description/assets/modules/3.jpg differ diff --git a/website_extra_social_media/static/description/assets/modules/4.jpg b/website_extra_social_media/static/description/assets/modules/4.jpg new file mode 100644 index 000000000..f85e160cd Binary files /dev/null and b/website_extra_social_media/static/description/assets/modules/4.jpg differ diff --git a/website_extra_social_media/static/description/assets/modules/5.jpg b/website_extra_social_media/static/description/assets/modules/5.jpg new file mode 100644 index 000000000..eeef09c4c Binary files /dev/null and b/website_extra_social_media/static/description/assets/modules/5.jpg differ diff --git a/website_extra_social_media/static/description/assets/modules/6.jpg b/website_extra_social_media/static/description/assets/modules/6.jpg new file mode 100644 index 000000000..7995b26b9 Binary files /dev/null and b/website_extra_social_media/static/description/assets/modules/6.jpg 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..455e93a84 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..48a573b45 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..e82a8d44d 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..ce295bc40 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..26813f46f 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..bd1353d96 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/hero.gif b/website_extra_social_media/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..742c87ad4 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.jpg b/website_extra_social_media/static/description/banner.jpg new file mode 100644 index 000000000..6c8043f67 Binary files /dev/null and b/website_extra_social_media/static/description/banner.jpg 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..445844371 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..bb93f92da --- /dev/null +++ b/website_extra_social_media/static/description/index.html @@ -0,0 +1,782 @@ + + + + + + Extra Social Media In Website + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Extra Social Media In Website

+

+ Snippet for Adding Extra Social Medias. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Extra Social Medias like YouTube, Google+ , Pinterest, Flickr etc. for Website.

+
+
+
+
+
+
+ +
+
+

+ Can use as Snippet.

+
+
+
+
+
+
+ +
+
+

+ Applicable for multiple Websites.

+
+
+
+
+
+
+ +
+
+

+ Compatible with Community, Enterprise and Odoo.sh.

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

+ 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.

+
+
+
+
+
+
+
    +
  • + 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. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:02 August 2025 +
+

+ Initial Commit for Extra Social Media In Website.

+
+
+
+
+
+
+
+

+ Related Products

+
+
+ +
+
+

+ Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire + Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo + Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

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 + 99456767686 +
+
+
+
+
+
+
+
+
+ + + + + + \ No newline at end of file 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..404f2c18f --- /dev/null +++ b/website_extra_social_media/static/src/js/extra_social_media.js @@ -0,0 +1,35 @@ +/** @odoo-module **/ +import publicWidget from "@web/legacy/js/public/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. + init() { + this._super(...arguments); + this.orm = this.bindService("orm"); + }, + start: function () { + var self = this + this.orm.call( + 'res.config.settings', + 'get_social_media_values', [0]).then(function (result){ + + }); + this.orm.call('res.config.settings', 'get_social_media_values', [0]).then(function (result) { + self.toggleSocialMediaIcons(result); + }); + return this._super.apply(this, arguments); + }, + toggleSocialMediaIcons: function (result) { + const socialMediaPlatforms = [ + 'facebook', 'twitter', 'linkedin', 'instagram', 'whatsapp', 'github', + 'youtube', 'google_plus', 'snapchat', 'flickr', 'quora', 'pinterest', + 'dribble', 'tumblr' + ]; + socialMediaPlatforms.forEach(platform => { + if (!result[platform]) { + this.$el.find(`.extra_social_media_${platform}`).hide(); + } + }); + } +}); 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..8d3c35123 --- /dev/null +++ b/website_extra_social_media/views/res_config_setting_views.xml @@ -0,0 +1,81 @@ + + + + + res.config.settings.view.form.inherit.website.extra.social.media + res.config.settings + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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..07e4e0bf4 --- /dev/null +++ b/website_extra_social_media/views/snippets/extra_social_media_templates.xml @@ -0,0 +1,81 @@ + + + + + + +