diff --git a/social_media_pinterest/README.rst b/social_media_pinterest/README.rst new file mode 100644 index 00000000..36a87be8 --- /dev/null +++ b/social_media_pinterest/README.rst @@ -0,0 +1,84 @@ + +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +============== +Pinterest Social Media Icon Extension for blog +============== + +This module adds Pinterest social media icon. By default, the icon will +be shown on the footer and about us, like the original icons. + + + +Configuration +============= + +- Go in the backend under settings / website +- You can now also add your Pinterest Account + + +Usage +===== + +- Normal social icons:: + + + + + + + + + + + + + +- The new social icons: + + + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/205/8.0 + + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +`_. In case of trouble, please +check there if your issue has already been reported. If you spotted it first, +help us smashing it by providing a detailed and welcomed feedback. + + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. +* Pinterest: `Brand guidelines `_ `Icons `_. + +Contributors +------------ + +* Pere Albujer (pedro.albujer.rico@diagram.es) + +Maintainer +---------- + +.. image:: http://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: http://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit http://odoo-community.org. diff --git a/social_media_pinterest/__init__.py b/social_media_pinterest/__init__.py new file mode 100644 index 00000000..5a4fe6c3 --- /dev/null +++ b/social_media_pinterest/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# © 2016 Diagram Software S.L. +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html +from . import models diff --git a/social_media_pinterest/__openerp__.py b/social_media_pinterest/__openerp__.py new file mode 100644 index 00000000..212a6cca --- /dev/null +++ b/social_media_pinterest/__openerp__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# © 2016 Diagram Software S.L. +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html +{ + 'name': "Pinterest Social Media Icon Extension", + 'summary': """Pinterest Extension for the social media icons from the + odoo core""", + 'author': "Diagram Software S.L., Odoo Community Association (OCA)", + 'website': "http://www.diagram.es", + 'license': 'AGPL-3', + 'category': 'Social Media', + 'version': '8.0.1.0.0', + 'depends': [ + 'website', + ], + 'data': [ + 'views/website_templates.xml', + 'views/website_views.xml', + 'views/res_config.xml', + ], +} diff --git a/social_media_pinterest/models/__init__.py b/social_media_pinterest/models/__init__.py new file mode 100644 index 00000000..c212553d --- /dev/null +++ b/social_media_pinterest/models/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# © 2016 Diagram Software S.L. +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html +from . import res_config +from . import website diff --git a/social_media_pinterest/models/res_config.py b/social_media_pinterest/models/res_config.py new file mode 100644 index 00000000..611614b9 --- /dev/null +++ b/social_media_pinterest/models/res_config.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# © 2016 Diagram Software S.L. +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html +from openerp import fields, models + + +class WebsiteConfigSettings(models.TransientModel): + + _inherit = 'website.config.settings' + + social_pinterest = fields.Char('Pinterest Account', + related='website_id.social_pinterest') diff --git a/social_media_pinterest/models/website.py b/social_media_pinterest/models/website.py new file mode 100644 index 00000000..d943bb07 --- /dev/null +++ b/social_media_pinterest/models/website.py @@ -0,0 +1,11 @@ +# -*- coding: utf-8 -*- +# © 2016 Diagram Software S.L. +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html +from openerp import fields, models + + +class Website(models.Model): + + _inherit = 'website' + + social_pinterest = fields.Char('Pinterest Account') diff --git a/social_media_pinterest/static/description/icon.png b/social_media_pinterest/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/social_media_pinterest/static/description/icon.png differ diff --git a/social_media_pinterest/static/description/index.html b/social_media_pinterest/static/description/index.html new file mode 100644 index 00000000..e44854f9 --- /dev/null +++ b/social_media_pinterest/static/description/index.html @@ -0,0 +1,29 @@ +
+
+
+

+ Social Media Icon Extention for +

+
+
+
+ + + +
+
+
+

+ Extend Social Media Links +

+
+
+
+ +
+
+
+
diff --git a/social_media_pinterest/static/description/pinterest.png b/social_media_pinterest/static/description/pinterest.png new file mode 100644 index 00000000..7eb8ab44 Binary files /dev/null and b/social_media_pinterest/static/description/pinterest.png differ diff --git a/social_media_pinterest/static/description/settings.png b/social_media_pinterest/static/description/settings.png new file mode 100644 index 00000000..b4141920 Binary files /dev/null and b/social_media_pinterest/static/description/settings.png differ diff --git a/social_media_pinterest/views/res_config.xml b/social_media_pinterest/views/res_config.xml new file mode 100644 index 00000000..6d11eade --- /dev/null +++ b/social_media_pinterest/views/res_config.xml @@ -0,0 +1,28 @@ + + + + + + Website settings + website.config.settings + + + + + + + + + + diff --git a/social_media_pinterest/views/website_templates.xml b/social_media_pinterest/views/website_templates.xml new file mode 100644 index 00000000..f5b1b305 --- /dev/null +++ b/social_media_pinterest/views/website_templates.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/social_media_pinterest/views/website_views.xml b/social_media_pinterest/views/website_views.xml new file mode 100644 index 00000000..d2da6232 --- /dev/null +++ b/social_media_pinterest/views/website_views.xml @@ -0,0 +1,24 @@ + + + + + + website.form + website + + + + + + + + + + + + diff --git a/social_media_pinterest_blog/README.rst b/social_media_pinterest_blog/README.rst new file mode 100644 index 00000000..b41159cd --- /dev/null +++ b/social_media_pinterest_blog/README.rst @@ -0,0 +1,84 @@ + +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +============== +Pinterest Social Media Icon Extension +============== + +This module adds Pinterest social media icon. By default, the icon will +be shown on the footer, about us, and the Blog, like the original icons. + + + +Configuration +============= + +- Go in the backend under settings / website +- You can now also add your Pinterest Account + + +Usage +===== + +- Normal social icons:: + + + + + + + + + + + + + +- The new social icons: + + + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/205/8.0 + + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +`_. In case of trouble, please +check there if your issue has already been reported. If you spotted it first, +help us smashing it by providing a detailed and welcomed feedback. + + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. +* Pinterest: `Brand guidelines `_ `Icons `_. + +Contributors +------------ + +* Pere Albujer (pedro.albujer.rico@diagram.es) + +Maintainer +---------- + +.. image:: http://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: http://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit http://odoo-community.org. diff --git a/social_media_pinterest_blog/__init__.py b/social_media_pinterest_blog/__init__.py new file mode 100644 index 00000000..4c885b48 --- /dev/null +++ b/social_media_pinterest_blog/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- +# © 2016 Diagram Software S.L. +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html diff --git a/social_media_pinterest_blog/__openerp__.py b/social_media_pinterest_blog/__openerp__.py new file mode 100644 index 00000000..89f29729 --- /dev/null +++ b/social_media_pinterest_blog/__openerp__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# © 2016 Diagram Software S.L. +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html +{ + 'name': "Pinterest Social Media Icon Extension for blog", + 'summary': """Pinterest Extension for the social media icons from the + odoo core""", + 'author': "Diagram Software S.L., Odoo Community Association (OCA)", + 'website': "http://www.diagram.es", + 'license': 'AGPL-3', + 'category': 'Social Media', + 'version': '8.0.1.0.0', + 'depends': [ + 'social_media_pinterest', + 'website', + 'website_blog' + ], + 'data': [ + 'views/website_blog_template.xml', + ], +} diff --git a/social_media_pinterest_blog/static/description/icon.png b/social_media_pinterest_blog/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/social_media_pinterest_blog/static/description/icon.png differ diff --git a/social_media_pinterest_blog/static/description/index.html b/social_media_pinterest_blog/static/description/index.html new file mode 100644 index 00000000..e44854f9 --- /dev/null +++ b/social_media_pinterest_blog/static/description/index.html @@ -0,0 +1,29 @@ +
+
+
+

+ Social Media Icon Extention for +

+
+
+
+ + + +
+
+
+

+ Extend Social Media Links +

+
+
+
+ +
+
+
+
diff --git a/social_media_pinterest_blog/static/description/pinterest.png b/social_media_pinterest_blog/static/description/pinterest.png new file mode 100644 index 00000000..7eb8ab44 Binary files /dev/null and b/social_media_pinterest_blog/static/description/pinterest.png differ diff --git a/social_media_pinterest_blog/static/description/settings.png b/social_media_pinterest_blog/static/description/settings.png new file mode 100644 index 00000000..b4141920 Binary files /dev/null and b/social_media_pinterest_blog/static/description/settings.png differ diff --git a/social_media_pinterest_blog/views/website_blog_template.xml b/social_media_pinterest_blog/views/website_blog_template.xml new file mode 100644 index 00000000..494adfd6 --- /dev/null +++ b/social_media_pinterest_blog/views/website_blog_template.xml @@ -0,0 +1,20 @@ + + + + + + + +