[ADD] theme 10.0

This commit is contained in:
Design
2021-05-11 15:49:42 +02:00
committed by Jeremy Kersten
commit dfcb89fc4a
3871 changed files with 155210 additions and 0 deletions
View File
+21
View File
@@ -0,0 +1,21 @@
{
'name': 'Avantgarde Theme Blog Plugin',
'description': 'Avantgarde Theme Blog Plugin',
'category': 'Theme/Hidden',
'sequence': 151,
'version': '1.1.0',
'author': 'Odoo S.A.',
'demo': [
'demo/demo-data.xml',
'demo/artgallery.xml',
'demo/art_shop.xml',
'demo/blocks.xml',
'demo/magazine.xml',
'demo/welcome.xml'
],
'data': [
'views/templates.xml'
],
'depends': ['theme_avantgarde', 'website_blog', 'snippet_latest_posts'],
'auto_install': True,
}
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template inherit_id="website.art_shop">
<xpath expr="//section[hasclass('s_showcase_slider')]" position="after">
<section class="s_latest_posts_big_orizontal mt48 mb48">
<div class="js_get_posts container-fluid" data-loading="true" data-template="theme_avantgarde_blog.s_latest_posts_big_orizontal_template"></div>
</section>
</xpath>
</template>
</odoo>
+19
View File
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template inherit_id="website.artgallery">
<xpath expr="//section[@id='hook_s_google_map']/div" position="attributes">
<attribute name="class" separator=" " remove="col-sm-12" add="col-sm-6"/>
</xpath>
<xpath expr="//section[@id='hook_s_google_map']" position="inside">
<div class="col-sm-6">
<h3 class="text-center text-small_caps">Latest Posts</h3>
<section class="s_latest_posts">
<div class="container">
<div class="js_get_posts" data-loading="true" data-template="snippet_latest_posts.media_list_template" contenteditable="False"/>
</div>
</section>
</div>
</xpath>
</template>
</odoo>
+51
View File
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template inherit_id="website.blocks">
<xpath expr="//section[hasclass('s_google_map')]" position="after">
<section class="s_latest_posts_big_picture">
<h2 class="text-center sans-serif">Latest Posts</h2>
<div class="js_get_posts effect-marley first_is_big" data-loading="true" data-template="snippet_latest_posts.s_latest_posts_big_picture_template" contenteditable="False">
<figure class="loading_container col-sm-6">
<div class="content">
<div class="thumb" style="background-image: url(/theme_avantgarde/static/src/img/theme_samples/shop_art_2.jpg)"></div>
<figcaption>
<h2>Dynamic post list</h2>
<p>Use this snippet to list your post where you need</p>
<a href="/blog/1/post/3">Read More</a>
</figcaption>
</div>
<div class="progress js-loading" style="display: none;">
<div class="progress-bar" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" style="width: 50%;"></div>
</div>
</figure>
<figure class="loading_container col-sm-6">
<div class="content">
<div class="thumb" style="background-image: url(/theme_avantgarde/static/src/img/theme_samples/radius.jpg)"></div>
<figcaption>
<h2>A sample blog post</h2>
<p>Lorem ipsum dolor sit amet</p>
<a href="/blog/1/post/1">Read More</a>
</figcaption>
</div>
<div class="progress js-loading" style="display: none;">
<div class="progress-bar" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" style="width: 50%;"></div>
</div>
</figure>
<figure class="loading_container col-sm-6">
<div class="content">
<div class="thumb" style="background-image: url(/theme_avantgarde/static/src/img/theme_samples/bridge.jpg)"></div>
<figcaption>
<h2>Another sample blog post</h2>
<p>Lorem ipsum dolor sit amet</p>
<a href="/blog/1/post/2">Read More</a>
</figcaption>
</div>
<div class="progress js-loading" style="display: none;">
<div class="progress-bar" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" style="width: 50%;"></div>
</div>
</figure>
</div>
</section>
</xpath>
</template>
</odoo>
+102
View File
@@ -0,0 +1,102 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="website_blog.blog_post_1" model="blog.post">
<field name="background_image">/theme_avantgarde/static/src/img/theme_samples/radius.jpg</field>
<field name="name">A sample blog post</field>
<field name="subtitle">Lorem ipsum dolor sit amet</field>
</record>
<record id="website_blog.blog_post_2" model="blog.post">
<field name="background_image">/theme_avantgarde/static/src/img/theme_samples/bridge.jpg</field>
<field name="name">Another sample blog post</field>
<field name="subtitle">Lorem ipsum dolor sit amet</field>
</record>
<record id="website_blog.blog_post_3" model="blog.post">
<field name="name">Dynamic post list</field>
<field name="subtitle">Use this snippet to list your post where you need</field>
<field name="blog_id" ref="website_blog.blog_blog_1"/>
<field name="website_published" eval="True"/>
<field name="background_image">/theme_avantgarde/static/src/img/theme_samples/shop_art_2.jpg</field>
<field name="content">
<![CDATA[<section class="row readable">
<div class="col-md-12 mb32">
<img class="img-responsive" src="/website_blog/static/src/img/CMS_WMS_screens.jpg"/>
</div>
<div class="col-md-6 col-md-offset-3 mb16 mt16">
<p class="text-center">
New Features Launched
</p>
<p class="text-center">
To add to an already comprehensive set of Odoo
features, a website content management system (CMS
or WMS) has been developed and a beta release is
available from today, 31st January 2014.
</p>
</div>
</section>
<section class="readable">
<p>
Odoo claims to be 'the Open Source software that makes
building your company's website and selling your products
online easy'. So how true is this statement?
</p><p>
"Odoo's latest launch will allow a business to go from
zero to trading online quicker than ever before,” Stuart
Mackintosh, MD of Open Source specialist and Odoo
integration partner, OpusVL, explains. “The investment
required to have a fully automated business system is
dramatically reduced, enabling the small and medium
enterprise to compete at a level of functionality and
performance previously reserved for the big IT investors."
</p>
<blockquote>
<p>
"Finally, the leading edge is being brought to the masses.
It will now be the turn of the big players to catch up to
the superior technologies of the SME."
</p>
</blockquote>
<p>
"This is another clever and highly disruptive move by
Odoo,which will force other technology providers to
take another look at the value they are providing to ensure
that their 'solutions' can still compete."
</p><p>
"Odoo now competes on many fronts, with no real
competition out there to knock them off the top spot.
With the launch of their integrated CMS and Ecommerce
systems,it only elevates their position as one of the leading
lights in the open source revolution. It will be at least 5
years before another ERP or CMS provider will be able to
compete at this level due to the technology currently
employed by most industry providers."
</p>
<h4>Adding to industry leading technology</h4>
<p>
Like many modern website editors, with Odoo you can edit
content in-line, enabling you to see exactly what you are
changing and ensure your changes suit the context.
</p><p>
However, unlike other web content management systems, it
fully integrates into the back-end database. This means
that when you edit a product description, image or price,
it updates the product database in real time, providing a
true self-service window into the business.
</p><p>
This provides a single source of data for your company and
removes the need to create offline synchronisation between
website and product database.
</p><p>
As it comes, there is a default website based on Bootstrap
3, the latest industry standard for rapid development of
multi-device websites backed by Twitter, so can be directly
integrated with many web tools and works across all devices
by default.
</p>
</section>
]]>
</field>
</record>
</odoo>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template inherit_id="website.magazine">
<xpath expr="//blockquote" position="after">
<section class="s_latest_posts_big_picture">
<div class="js_get_posts first_is_big effect-marley" data-loading="true" data-template="snippet_latest_posts.s_latest_posts_big_picture_template" contenteditable="False"/>
</section>
</xpath>
</template>
</odoo>
+41
View File
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template inherit_id="website.welcome">
<xpath expr="//section[@id='demo_sites']" position="after">
<section class="s_latest_posts_big_picture">
<div class="effect-chico" contenteditable="False">
<figure class="loading_container col-sm-4">
<div class="content">
<div class="thumb" style="background-image: url(/theme_avantgarde/static/src/img/theme_samples/shop_art_1.jpg)"/>
<figcaption>
<h2>Shop</h2>
<p>Building your company's website and selling your products online easy.</p>
<a href="/page/art_shop">Read More</a>
</figcaption>
</div>
</figure>
<figure class="loading_container col-sm-4">
<div class="content">
<div class="thumb" style="background-image: url(/theme_avantgarde/static/src/img/theme_samples/paint_modern.jpg)"/>
<figcaption>
<h2>Online Magazine</h2>
<p>Ideas behing the Odoo communication tools.</p>
<a href="/page/magazine">Read More</a>
</figcaption>
</div>
</figure>
<figure class="loading_container col-sm-4">
<div class="content">
<div class="thumb" style="background-image: url(/theme_avantgarde/static/src/img/theme_samples/museum.jpg)"/>
<figcaption>
<h2>Art Gallery</h2>
<p>Are your meetings useful and productive?</p>
<a href="/page/artgallery">Read More</a>
</figcaption>
</div>
</figure>
</div>
</section>
</xpath>
</template>
</odoo>
+60
View File
@@ -0,0 +1,60 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * theme_avantgarde_blog
#
# Translators:
# Ermin Trevisan <trevi@twanda.com>, 2017
# Krakataua Katarajtu <shlok@hotmail.de>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-24 12:27+0000\n"
"PO-Revision-Date: 2017-03-24 12:27+0000\n"
"Last-Translator: Krakataua Katarajtu <shlok@hotmail.de>, 2017\n"
"Language-Team: German (https://www.transifex.com/odoo/teams/41243/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "<i class=\"fa fa-cogs\"/>Options"
msgstr "<i class=\"fa fa-cogs\"/>Optionen"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "<i class=\"fa fa-paint-brush\"/>List Style"
msgstr "<i class=\"fa fa-paint-brush\"/>Listenstil"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Default"
msgstr "Standard"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Dexter"
msgstr "Dexter"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "First is bigger"
msgstr "First is bigger"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Lonely Steve"
msgstr "Lonely Steve"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Marley"
msgstr "Marley"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Silly-Chico"
msgstr "Silly-Chico"
+61
View File
@@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * theme_avantgarde_blog
#
# Translators:
# Daniel Blanco <daniel@blancomartin.com.ar>, 2017
# Alejandro Pérez Torregrosa <alejandropereztorregrosa@gmail.com>, 2020
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-24 12:27+0000\n"
"PO-Revision-Date: 2017-03-24 13:38+0000\n"
"Last-Translator: Alejandro Pérez Torregrosa <alejandropereztorregrosa@gmail.com>, 2020\n"
"Language-Team: Spanish (https://www.transifex.com/odoo/teams/41243/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "<i class=\"fa fa-cogs\"/>Options"
msgstr "<i class=\"fa fa-cogs\"/>Opciones"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "<i class=\"fa fa-paint-brush\"/>List Style"
msgstr "<i class=\"fa fa-paint-brush\"/>Estilo de Lista"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Default"
msgstr "Por defecto"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Dexter"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "First is bigger"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Lonely Steve"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Marley"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Silly-Chico"
msgstr ""
+60
View File
@@ -0,0 +1,60 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * theme_avantgarde_blog
#
# Translators:
# Martin Trigaux, 2019
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-24 12:27+0000\n"
"PO-Revision-Date: 2017-03-24 13:38+0000\n"
"Last-Translator: Martin Trigaux, 2019\n"
"Language-Team: French (https://www.transifex.com/odoo/teams/41243/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "<i class=\"fa fa-cogs\"/>Options"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "<i class=\"fa fa-paint-brush\"/>List Style"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Default"
msgstr "Par défaut"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Dexter"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "First is bigger"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Lonely Steve"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Marley"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Silly-Chico"
msgstr ""
+59
View File
@@ -0,0 +1,59 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * theme_avantgarde_blog
#
# Translators:
# Yenthe Van Ginneken <yenthespam@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-24 12:27+0000\n"
"PO-Revision-Date: 2017-03-24 12:27+0000\n"
"Last-Translator: Yenthe Van Ginneken <yenthespam@gmail.com>, 2017\n"
"Language-Team: Dutch (https://www.transifex.com/odoo/teams/41243/nl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: nl\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "<i class=\"fa fa-cogs\"/>Options"
msgstr "<i class=\"fa fa-cogs\"/>Opties"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "<i class=\"fa fa-paint-brush\"/>List Style"
msgstr "<i class=\"fa fa-paint-brush\"/>Lijst stijl"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Default"
msgstr "Standaard"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Dexter"
msgstr "Dexter"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "First is bigger"
msgstr "Eerst is groter"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Lonely Steve"
msgstr "Eenzame Steve"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Marley"
msgstr "Marley"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Silly-Chico"
msgstr "Gekke-Chico"
@@ -0,0 +1,57 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * theme_avantgarde_blog
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-24 12:27+0000\n"
"PO-Revision-Date: 2017-03-24 12:27+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "<i class=\"fa fa-cogs\"/>Options"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "<i class=\"fa fa-paint-brush\"/>List Style"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Default"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Dexter"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "First is bigger"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Lonely Steve"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Marley"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Silly-Chico"
msgstr ""
+56
View File
@@ -0,0 +1,56 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * theme_avantgarde_blog
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-24 12:27+0000\n"
"PO-Revision-Date: 2017-03-24 12:27+0000\n"
"Language-Team: Chinese (China) (https://www.transifex.com/odoo/teams/41243/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "<i class=\"fa fa-cogs\"/>Options"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "<i class=\"fa fa-paint-brush\"/>List Style"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Default"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Dexter"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "First is bigger"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Lonely Steve"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Marley"
msgstr ""
#. module: theme_avantgarde_blog
#: model:ir.ui.view,arch_db:theme_avantgarde_blog.s_latest_posts_big_picture_options
msgid "Silly-Chico"
msgstr ""
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

@@ -0,0 +1,348 @@
@s_latest_posts_big_picture-figure_bg: #000;
.s_latest_posts-js_get_posts-hook() {
figcaption p {
margin: 0;
}
&.effect-dexter figure {
.content {
background: -webkit-linear-gradient(top, darken(@color-beta, 10%) 0%, darken(@color-beta, 30%) 100%);
background: linear-gradient(to bottom, darken(@color-beta, 10%) 0%,darken(@color-beta, 30%) 100%);
}
.thumb {
-webkit-transition: opacity 0.35s;
transition: opacity 0.35s;
}
figcaption {
padding: 3em;
text-align: left;
&:after {
position: absolute;
right: 30px;
bottom: 30px;
left: 30px;
height: -webkit-calc(50% - 10px);
height: calc(50% - 10px);
border: 2px solid #fff;
content: "";
.transition(transform 0.35s);
.translate3d(0,-100%,0);
}
}
p {
position: absolute;
right: 60px;
bottom: 60px;
left: 60px;
opacity: 0;
.transition(e( "opacity 0.35s linear 0s, transform 0.35s linear 0s"));
-webkit-transform: translate3d(0,-100px,0);
transform: translate3d(0,-100px,0);
}
&:hover {
.thumb {
opacity: 0.4!important;
}
figcaption::after {
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
}
p {
opacity: 1;
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
}
}
}
&.effect-chico {
.thumb {
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
transition: opacity 0.35s, transform 0.35s;
-webkit-transform: scale(1.12);
transform: scale(1.12);
}
figcaption {
padding: 3em;
&::before {
position: absolute;
top: 7%;
right: 7%;
bottom: 7%;
left: 7%;
border: 1px solid #fff;
content: "";
-webkit-transform: scale(1.1);
transform: scale(1.1);
opacity: 0;
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
transition: opacity 0.35s, transform 0.35s;
}
}
p {
opacity: 0;
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
transition: opacity 0.35s, transform 0.35s;
margin: 10% auto 0;
max-width: 200px;
-webkit-transform: scale(1.5);
transform: scale(1.5);
}
h2 {
padding: 0;
}
figure:hover {
.thumb {
opacity: 0.5!important;
-webkit-transform: scale(1);
transform: scale(1);
}
figcaption::before, p {
opacity: 1;
-webkit-transform: scale(1);
transform: scale(1);
}
}
}
&.effect-marley {
figcaption {
text-align: right;
h2, p {
position: absolute;
right: 30px;
left: 30px;
padding: 10px 0;
}
p {
bottom: 30px;
line-height: 1.5;
-webkit-transform: translate3d(0,100%,0);
transform: translate3d(0,100%,0);
opacity: 0;
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
transition: opacity 0.35s, transform 0.35s;
}
h2 {
top: 30px;
-webkit-transition: -webkit-transform 0.35s;
transition: transform 0.35s;
-webkit-transform: translate3d(0,20px,0);
transform: translate3d(0,20px,0);
&:after {
position: absolute;
top: 100%;
left: 0;
width: 100%;
height: 4px;
background: #fff;
content: "";
-webkit-transform: translate3d(0,40px,0);
transform: translate3d(0,40px,0);
opacity: 0;
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
transition: opacity 0.35s, transform 0.35s;
}
}
}
figure:hover figcaption {
h2 {
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
}
h2::after, p {
opacity: 1;
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
}
}
}
&.effect-steve figure {
z-index: auto;
&:before {
box-shadow: 0 3px 30px rgba(0,0,0,0.8);
opacity: 0;
}
.content {
background: #000;
}
figcaption {
z-index: 1;
}
.thumb {
opacity: 1;
-webkit-transition: -webkit-transform 0.35s;
transition: transform 0.35s;
-webkit-transform: perspective(1000px) translate3d(0,0,0);
transform: perspective(1000px) translate3d(0,0,0);
}
h2, p {
background: #fff;
color: #2d434e;
}
h2 {
position: relative;
margin-top: 0.1em;
padding: 0.25em;
&:before {
box-shadow: 0 1px 10px rgba(0,0,0,0.5);
}
}
p {
margin-top: 1em;
padding: 0.5em;
font-weight: 800;
opacity: 0;
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
transition: opacity 0.35s, transform 0.35s;
-webkit-transform: scale3d(0.9,0.9,1);
transform: scale3d(0.9,0.9,1);
}
&:hover {
//figure
&:before {
opacity: 1;
}
h2:before {
opacity: 0;
}
.thumb {
-webkit-transform: perspective(1000px) translate3d(0,0,21px);
transform: perspective(1000px) translate3d(0,0,21px);
}
p {
opacity: 1;
-webkit-transform: scale3d(1,1,1);
transform: scale3d(1,1,1);
}
}
}
&.first_is_big figure:first-child {
width: 100%;
}
}
// =============================
// s_latest_posts_big_orizontal
// =============================
.s_latest_posts_big_orizontal {
.o_blog_cover_container {
position: relative;
width: auto;
height: auto;
padding: 0;
> .o_blog_cover_component {
.o-position-absolute(0, 0, 0, 0);
}
> .o_blog_cover_image {
background-size: cover;
background-position: center;
}
}
.js_get_posts {
position: relative;
width: 100%;
display: flex;
padding: 0;
margin: 0;
overflow: visible;
text-align: left;
.post {
//display: table-cell;
flex-grow: 1;
position: relative;
figcaption:after {
position: relative;
width: 100%;
height: 150px;
content: "";
display: block;
}
h4 {
position: relative;
text-align: left;
padding-right: 5%;
&:before {
content: "";
z-index: 0;
display: inline;
float: left;
width: 20%;
position: absolute;
top: 49%;
left: 0;
border-bottom: 1px solid @avant-text;
}
a {
z-index: 1;
display: block;
line-height: 1;
padding-left: 25%;
position: relative;
}
}
h5 {
padding-left: 24%;
}
> a {
bottom: 0;
display: block;
background: @color-alpha;
width: 100%;
height: 150px;
position: absolute;
overflow: hidden;
> div {
height: 100%;
width: 100%;
background-size: cover;
background-position: center;
opacity: 1;
.scale(1);
.transform-origin(50%);
.transition(all 400ms);
.backface-visibility(hidden);
&:hover {
opacity: 0.8;
.scale(1.1);
}
}
}
@media only screen and (max-width : 768px) {
display: inline-block;
margin-bottom: 2em;
width: 50%;
}
@media only screen and (max-width : 480px) {
width: 100%;
}
}
@media only screen and (max-width : 768px) {
display: block;
}
}
}
// DEMO PAGES
#wrap.demo_welcome {
.s_latest_posts_big_picture > div figure {
width: 100%!important;
background: #000;
.thumb {
.opacity(0.7);
}
@media screen and (min-width: 767px) {
width: 33.3333%!important;
margin: 0;
}
}
}
#wrap.demo_magazine {
.s_latest_posts_big_picture > div.first_is_big figure:first-child {
margin-top: 0;
}
}
+87
View File
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="avantgarde_main_less" inherit_id="theme_avantgarde.avantgarde_main_less">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/less" href="/theme_avantgarde_blog/static/src/less/s_latest_posts.less"/>
</xpath>
</template>
<!-- Latest Posts Snippet -->
<template id="overwrite_latest_post_thumb" inherit_id="snippet_latest_posts.s_latest_posts_place_in_tab">
<xpath expr="//t[@t-snippet='snippet_latest_posts.s_latest_posts']" position="attributes">
<attribute name="t-thumbnail">/theme_avantgarde_blog/static/src/img/ui/s_latest_posts.jpg</attribute>
</xpath>
<xpath expr="//t[@t-snippet='snippet_latest_posts.s_latest_posts_big_picture']" position="attributes">
<attribute name="t-thumbnail">/theme_avantgarde_blog/static/src/img/ui/s_latest_posts_big_picture.jpg</attribute>
</xpath>
</template>
<!-- Snippet's Options -->
<template id="s_latest_posts_big_picture_options" inherit_id="snippet_latest_posts.s_latest_posts_option">
<xpath expr="//div[@data-js='js_get_posts']" position="before">
<div data-js='s_latest_posts_style' data-selector=".s_latest_posts_big_picture .js_get_posts">
<li class="dropdown-submenu">
<a tabindex="-1" href="#"><i class="fa fa-paint-brush"/>List Style</a>
<ul class="dropdown-menu">
<li data-select_class=""><a>Default</a></li>
<li data-select_class="effect-marley"><a>Marley</a></li>
<li data-select_class="effect-dexter"><a>Dexter</a></li>
<li data-select_class="effect-chico"><a>Silly-Chico</a></li>
<li data-select_class="effect-steve"><a>Lonely Steve</a></li>
</ul>
</li>
</div>
<div data-js='s_latest_posts_options' data-selector=".s_latest_posts_big_picture .js_get_posts">
<li class="dropdown-submenu">
<a tabindex="-1" href="#"><i class="fa fa-cogs"/>Options</a>
<ul class="dropdown-menu">
<li data-toggle_class="first_is_big"><a>First is bigger</a></li>
</ul>
</li>
</div>
</xpath>
</template>
<template id="avant_js-methods" inherit_id="theme_avantgarde.avant_js-methods">
<xpath expr="//div[@data-js='no_resize']" position="attributes">
<attribute name="data-selector" separator=", " add=".s_latest_posts_big_picture, .s_latest_posts"/>
</xpath>
</template>
<!-- Latest posts's Orizzontal big images Template -->
<!-- Snippet's Body -->
<template id="s_latest_posts_big_orizontal" name="Latest Posts Horizontal">
<section class="s_latest_posts_big_orizontal">
<div class="js_get_posts container-fluid" data-loading="true" data-template="theme_avantgarde_blog.s_latest_posts_big_orizontal_template"/>
</section>
</template>
<!-- Latest posts's Template -->
<template id="s_latest_posts_big_orizontal_template">
<t t-if="not posts">
<t t-call="snippet_latest_posts.no_blog_posts"/>
</t>
<t t-foreach="posts" t-as="p">
<t t-set="properties" t-value="json.loads(p.cover_properties)"/>
<figure class="post">
<figcaption>
<h4 class="mb0"><a t-att-href="'/blog/%s/post/%s' % (p.blog_id.id, p.id)"><t t-esc="p.name"/></a></h4>
<h5 class="mt0 mb4" t-field="p.write_date" t-field-options='{"format": "dd/MM"}' />
</figcaption>
<a t-att-href="'/blog/%s/post/%s' % (p.blog_id.id, p.id)">
<t t-call="website_blog.blog_cover">
<t t-set="cover_properties" t-value="properties"/>
<t t-set="additionnal_classes" t-value="'loading_container thumb'"/>
</t>
</a>
</figure>
</t>
</template>
<template id="s_latest_posts_place_in_tab" inherit_id="website.snippets">
<xpath expr="//div[@id='snippet_feature']/div[contains(@class, 'o_panel_body')]/t" position="before">
<t t-snippet="theme_avantgarde_blog.s_latest_posts_big_orizontal" t-thumbnail="/theme_avantgarde_blog/static/src/img/ui/s_latest_posts_horizontal.jpg"/>
</xpath>
</template>
</odoo>