diff --git a/social_media_xing/README.rst b/social_media_xing/README.rst new file mode 100644 index 00000000..12f7d4aa --- /dev/null +++ b/social_media_xing/README.rst @@ -0,0 +1,70 @@ + + .. image:: https://github.com/blooparksystems/website/blob/8.0/website_social_media_icon_extention/static/description/XING.png?raw=true + :width: 100 + :target: http://www.xing.com + +Extend Social Media Links +========================= + +.. image:: https://github.com/blooparksystems/website/blob/8.0/website_social_media_icon_extention/static/description/settings.png?raw=true + :width: 700 + +.. image:: https://github.com/blooparksystems/website/blob/8.0/website_social_media_icon_extention/static/description/webpage.png?raw=true + :width: 700 + +Currently added: + +- Xing + +Info: +----- + +- 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 Xing Account + +Usage: +------ + +- normal social icons: + + + + + + + + + + + + + +- the new social icons: + + + +Credits +======= + +Contributors +------------ + +* Benjamin Bachmann (benniphx@gmail.com) + +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. \ No newline at end of file diff --git a/social_media_xing/__init__.py b/social_media_xing/__init__.py new file mode 100644 index 00000000..e7747f1a --- /dev/null +++ b/social_media_xing/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Odoo, an open source suite of business apps +# This module copyright (C) 2015 bloopark systems (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +from . import models diff --git a/social_media_xing/__openerp__.py b/social_media_xing/__openerp__.py new file mode 100644 index 00000000..9e3cc683 --- /dev/null +++ b/social_media_xing/__openerp__.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Odoo, an open source suite of business apps +# This module copyright (C) 2015 bloopark systems (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +{ + 'name': "Xing Social Media Icon Extension", + 'summary': """Xing Extension for the social media icons from the odoo + core""", + 'author': "bloopark systems GmbH & Co. KG, " + "Odoo Community Association (OCA)", + 'website': "http://www.bloopark.de", + 'license': 'AGPL-3', + 'category': 'Social Media', + 'version': '8.0.1.0.0', + + 'depends': [ + 'website_blog' + ], + + 'data': [ + 'views/website_templates.xml', + 'views/website_views.xml', + 'views/website_blog_template.xml', + 'views/res_config.xml', + ], +} diff --git a/social_media_xing/models/__init__.py b/social_media_xing/models/__init__.py new file mode 100644 index 00000000..cf4d9e9d --- /dev/null +++ b/social_media_xing/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Odoo, an open source suite of business apps +# This module copyright (C) 2015 bloopark systems (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +from . import res_config +from . import website diff --git a/social_media_xing/models/res_config.py b/social_media_xing/models/res_config.py new file mode 100644 index 00000000..40d61560 --- /dev/null +++ b/social_media_xing/models/res_config.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Odoo, an open source suite of business apps +# This module copyright (C) 2015 bloopark systems (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +from openerp.models import TransientModel +from openerp import fields + + +class WebsiteConfigSettings(TransientModel): + + """Adds the fields for Social Media Icons.""" + + _inherit = 'website.config.settings' + + social_xing = fields.Char('Xing Account', + related='website_id.social_xing') diff --git a/social_media_xing/models/website.py b/social_media_xing/models/website.py new file mode 100644 index 00000000..8e12a178 --- /dev/null +++ b/social_media_xing/models/website.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Odoo, an open source suite of business apps +# This module copyright (C) 2015 bloopark systems (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +from openerp.models import Model +from openerp import fields + + +class Website(Model): + + """Adds the fields for Social Media Icons.""" + + _inherit = 'website' + + social_xing = fields.Char('Xing Account') diff --git a/social_media_xing/static/description/XING.png b/social_media_xing/static/description/XING.png new file mode 100644 index 00000000..02977b69 Binary files /dev/null and b/social_media_xing/static/description/XING.png differ diff --git a/social_media_xing/static/description/blog.png b/social_media_xing/static/description/blog.png new file mode 100644 index 00000000..8dd88f79 Binary files /dev/null and b/social_media_xing/static/description/blog.png differ diff --git a/social_media_xing/static/description/icon.png b/social_media_xing/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/social_media_xing/static/description/icon.png differ diff --git a/social_media_xing/static/description/index.html b/social_media_xing/static/description/index.html new file mode 100644 index 00000000..fd7296c7 --- /dev/null +++ b/social_media_xing/static/description/index.html @@ -0,0 +1,29 @@ +
+
+
+

+ Social Media Icon Extention for +

+
+
+ +
+
+

+ Extend Social Media Links +

+
+
+
+ +
+
+
+
diff --git a/social_media_xing/static/description/settings.png b/social_media_xing/static/description/settings.png new file mode 100644 index 00000000..6dcf179b Binary files /dev/null and b/social_media_xing/static/description/settings.png differ diff --git a/social_media_xing/static/description/webpage.png b/social_media_xing/static/description/webpage.png new file mode 100644 index 00000000..7b9e3c8e Binary files /dev/null and b/social_media_xing/static/description/webpage.png differ diff --git a/social_media_xing/views/res_config.xml b/social_media_xing/views/res_config.xml new file mode 100644 index 00000000..091e6375 --- /dev/null +++ b/social_media_xing/views/res_config.xml @@ -0,0 +1,28 @@ + + + + + + Website settings + website.config.settings + + + + + + + + + + \ No newline at end of file diff --git a/social_media_xing/views/website_blog_template.xml b/social_media_xing/views/website_blog_template.xml new file mode 100644 index 00000000..f3faafb1 --- /dev/null +++ b/social_media_xing/views/website_blog_template.xml @@ -0,0 +1,20 @@ + + + + + + + + \ No newline at end of file diff --git a/social_media_xing/views/website_templates.xml b/social_media_xing/views/website_templates.xml new file mode 100644 index 00000000..6b1f8784 --- /dev/null +++ b/social_media_xing/views/website_templates.xml @@ -0,0 +1,19 @@ + + + + + + + + \ No newline at end of file diff --git a/social_media_xing/views/website_views.xml b/social_media_xing/views/website_views.xml new file mode 100644 index 00000000..99411f0f --- /dev/null +++ b/social_media_xing/views/website_views.xml @@ -0,0 +1,24 @@ + + + + + + website.form + website + + + + + + + + + + + + \ No newline at end of file