diff --git a/social_media_icon_extention_dribbble/README.md b/social_media_icon_extention_dribbble/README.md new file mode 100644 index 00000000..1cdb3fef --- /dev/null +++ b/social_media_icon_extention_dribbble/README.md @@ -0,0 +1,67 @@ + +
+ + + + +Extend Social Media Links +========================= + + + + + +Currently added: + +Dribbble + +
+ +Additional Info: +---------------- + + This Addon will load the current CSS Version 4.4.0 from Fontawesome in the assets (29KB). + +Integration example: +-------------------- + + normal social icons: + + + + + + + + + the new social icons: + + + +Credits +======= + +Contributors +------------ + +* Benjamin Bachmann (benniphx@gmail.com) + +Maintainer +---------- + + +Odoo Community Association + + +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_icon_extention_dribbble/__init__.py b/social_media_icon_extention_dribbble/__init__.py new file mode 100644 index 00000000..e7747f1a --- /dev/null +++ b/social_media_icon_extention_dribbble/__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_icon_extention_dribbble/__openerp__.py b/social_media_icon_extention_dribbble/__openerp__.py new file mode 100644 index 00000000..ce6e73f8 --- /dev/null +++ b/social_media_icon_extention_dribbble/__openerp__.py @@ -0,0 +1,44 @@ +# -*- 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': "Dribbble Social Media Icon Extension", + 'summary': """Dribbble 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': '1.0', + + 'depends': [ + 'base', + 'website', + '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_icon_extention_dribbble/models/__init__.py b/social_media_icon_extention_dribbble/models/__init__.py new file mode 100644 index 00000000..cf4d9e9d --- /dev/null +++ b/social_media_icon_extention_dribbble/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_icon_extention_dribbble/models/res_config.py b/social_media_icon_extention_dribbble/models/res_config.py new file mode 100644 index 00000000..74a3a6a4 --- /dev/null +++ b/social_media_icon_extention_dribbble/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_dribbble = fields.Char('Dribbble Account', + related='website_id.social_dribbble') diff --git a/social_media_icon_extention_dribbble/models/website.py b/social_media_icon_extention_dribbble/models/website.py new file mode 100644 index 00000000..fa0227f8 --- /dev/null +++ b/social_media_icon_extention_dribbble/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_dribbble = fields.Char('Dribbble Account') diff --git a/social_media_icon_extention_dribbble/static/description/blog.png b/social_media_icon_extention_dribbble/static/description/blog.png new file mode 100644 index 00000000..8dd88f79 Binary files /dev/null and b/social_media_icon_extention_dribbble/static/description/blog.png differ diff --git a/social_media_icon_extention_dribbble/static/description/dribbble.png b/social_media_icon_extention_dribbble/static/description/dribbble.png new file mode 100644 index 00000000..2f9f99db Binary files /dev/null and b/social_media_icon_extention_dribbble/static/description/dribbble.png differ diff --git a/social_media_icon_extention_dribbble/static/description/icon.png b/social_media_icon_extention_dribbble/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/social_media_icon_extention_dribbble/static/description/icon.png differ diff --git a/social_media_icon_extention_dribbble/static/description/index.html b/social_media_icon_extention_dribbble/static/description/index.html new file mode 100644 index 00000000..760b476c --- /dev/null +++ b/social_media_icon_extention_dribbble/static/description/index.html @@ -0,0 +1,28 @@ +
+
+
+

+ Social Media Icon Extention for +

+
+
+
+ + + +
+
+
+

+ Extend Social Media Links +

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