2013-09-20 13:56:43 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
2013-11-13 17:14:38 +00:00
|
|
|
|
2014-01-16 18:05:35 +00:00
|
|
|
<template id="editor_head" inherit_id="website.editor_head" name="Blog Editor" groups="base.group_document_user">
|
|
|
|
<xpath expr="//script[@id='website_tour_js']" position="after">
|
2013-12-12 10:58:21 +00:00
|
|
|
<script type="text/javascript" src="/website_blog/static/src/js/website_blog.editor.js"></script>
|
|
|
|
<script type="text/javascript" src="/website_blog/static/src/js/website.tour.blog.js"></script>
|
|
|
|
</xpath>
|
|
|
|
</template>
|
2013-09-20 13:56:43 +00:00
|
|
|
|
2013-12-12 10:58:21 +00:00
|
|
|
<!-- Layout add nav and footer -->
|
|
|
|
<template id="header_footer_custom" inherit_id="website.layout" name="Footer News Blog Link">
|
|
|
|
<xpath expr="//footer//div[@name='info']/ul" position="inside">
|
2014-03-14 16:23:46 +00:00
|
|
|
<li><a t-attf-href="/blog/%(website_blog.blog_blog_1)d">News</a></li>
|
2013-12-12 10:58:21 +00:00
|
|
|
</xpath>
|
|
|
|
</template>
|
|
|
|
|
2014-01-26 13:11:12 +00:00
|
|
|
<!-- Overview of all blog posts -->
|
2013-12-12 10:58:21 +00:00
|
|
|
<template id="latest_blogs" name="Latest Blogs">
|
|
|
|
<t t-call="website.layout">
|
|
|
|
<div id="wrap">
|
|
|
|
<div class="oe_structure"/>
|
|
|
|
<section groups="base.group_website_publisher">
|
|
|
|
<div class="container text-center mt16">
|
|
|
|
<div class="alert alert-warning alert-dismissable">
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
|
|
|
|
<p>
|
|
|
|
This page is great to improve your <strong>Search Engine Optimization</strong>;
|
|
|
|
You can review titles, keywords and descriptions of all blogs at once.
|
|
|
|
</p><p>
|
|
|
|
You should <strong>add a banner on the top</strong> as it is a frequent landing page for new visitors.
|
|
|
|
<span class="text-muted">This box will not be visible to your visitors.</span>
|
|
|
|
</p>
|
2013-11-17 10:16:57 +00:00
|
|
|
</div>
|
2013-12-12 10:58:21 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section class="container">
|
|
|
|
<t t-call="website.pager" >
|
|
|
|
<t t-set="classname">pull-right</t>
|
|
|
|
</t>
|
|
|
|
</section>
|
|
|
|
<section data-snippet-id="title" class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12 text-center">
|
2014-03-31 15:27:11 +00:00
|
|
|
<h1>Latest Posts</h1>
|
2013-11-17 10:16:57 +00:00
|
|
|
</div>
|
2013-12-12 10:58:21 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section class="container">
|
|
|
|
<div class="row">
|
|
|
|
<t t-set="count" t-value="0"/>
|
2014-03-31 15:27:11 +00:00
|
|
|
<t t-foreach="posts" t-as="post">
|
2013-12-12 10:58:21 +00:00
|
|
|
<div class="col-md-4">
|
|
|
|
<h4>
|
2014-03-31 15:27:11 +00:00
|
|
|
<a t-attf-href="#{current_url('', ['blogpost'], blogpost=post)}" t-field="post.name"></a>
|
|
|
|
<span t-if="not post.website_published" class="text-warning">
|
2013-12-12 10:58:21 +00:00
|
|
|
&nbsp;
|
|
|
|
<span class="fa fa-warning" title="Not published"/>
|
|
|
|
</span>
|
|
|
|
</h4>
|
|
|
|
<div class="text-muted">
|
2014-03-31 15:27:11 +00:00
|
|
|
<span class="fa fa-calendar"> <span t-field="post.create_date"/> &nbsp;</span>
|
2013-12-12 10:58:21 +00:00
|
|
|
<span class="fa fa-folder-open"> In
|
2014-03-31 15:27:11 +00:00
|
|
|
<a t-attf-href="#{current_url(blog=post.blog_id)}">
|
|
|
|
<span t-field="post.blog_id"/>
|
2013-12-12 10:58:21 +00:00
|
|
|
</a> &nbsp;
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="text-muted fa fa-tags">
|
2014-03-31 15:27:11 +00:00
|
|
|
<span t-field="post.website_meta_keywords"/>
|
|
|
|
<span t-if="editable and not post.website_meta_keywords" class="label label-danger">
|
2013-12-12 10:58:21 +00:00
|
|
|
No keywords defined!
|
|
|
|
</span>
|
|
|
|
</div>
|
2014-03-31 15:27:11 +00:00
|
|
|
<div class="text-muted" t-if="len(post.message_ids) > 0">
|
2013-12-12 10:58:21 +00:00
|
|
|
<span class="fa fa-comment-o">
|
2014-03-31 15:27:11 +00:00
|
|
|
<a t-attf-href="#{current_url('', ['blogpost'], blogpost=post)}#comments">
|
|
|
|
<t t-if="len(post.message_ids) <= 1" ><t t-esc="len(post.message_ids)"/> comment</t>
|
|
|
|
<t t-if="len(post.message_ids) > 1"><t t-esc="len(post.message_ids)"/> comments</t>
|
2013-12-12 10:58:21 +00:00
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</div>
|
2014-03-31 15:27:11 +00:00
|
|
|
<div class="text-muted mb16" t-field="post.website_meta_description"/>
|
2013-12-12 10:58:21 +00:00
|
|
|
</div>
|
|
|
|
<t t-set="count" t-value="count+1"/>
|
|
|
|
<div class="clearfix" t-if="(count % 3) == 0"/>
|
|
|
|
</t>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<div class="oe_structure"/>
|
2013-11-15 09:15:07 +00:00
|
|
|
</div>
|
2013-12-12 10:58:21 +00:00
|
|
|
</t>
|
|
|
|
</template>
|
2013-11-18 14:35:30 +00:00
|
|
|
|
|
|
|
|
2013-12-12 10:58:21 +00:00
|
|
|
<!-- Blog Post Summary -->
|
|
|
|
<template id="blog_post_short" name="Blog Post Summary">
|
|
|
|
<t t-call="website_blog.index">
|
2014-02-05 08:48:54 +00:00
|
|
|
<div t-if="not blog_posts" class="container mb64">
|
|
|
|
<p class="css_editable_hidden">
|
|
|
|
<h1>No blog post yet.</h1>
|
|
|
|
</p>
|
|
|
|
<t groups="base.group_website_publisher">
|
|
|
|
<t groups="base.group_document_user">
|
|
|
|
<p>Click on "Content" on the top menu to write your first blog post.</p>
|
|
|
|
</t>
|
|
|
|
</t>
|
2013-12-12 10:58:21 +00:00
|
|
|
</div>
|
|
|
|
<t t-foreach="blog_posts" t-as="blog_post">
|
|
|
|
<div t-att-data-publish="blog_post.website_published and 'on' or 'off'">
|
|
|
|
<h2 class="text-center">
|
2014-03-31 15:27:11 +00:00
|
|
|
<a t-attf-href="#{current_url('', ['blogpost'], blogpost=blog_post, blog=None, tag_id=tag and tag.id or None, tag=None)}" t-field="blog_post.name"></a>
|
2013-12-12 10:58:21 +00:00
|
|
|
</h2>
|
|
|
|
<p class="post-meta text-muted text-center" name='blog_post_data'>
|
|
|
|
<span class="fa fa-calendar oe_date"> <span t-field="blog_post.create_date"/> &nbsp;</span>
|
|
|
|
<span t-if="len(blog_post.message_ids) > 0" class="fa fa-comment-o">
|
2014-03-31 15:27:11 +00:00
|
|
|
<a t-attf-href="#{current_url('', ['blogpost'], blogpost=blog_post, blog=None)}#comments">
|
2013-10-11 13:00:59 +00:00
|
|
|
<t t-if="len(blog_post.message_ids) <= 1" ><t t-esc="len(blog_post.message_ids)"/> comment</t>
|
|
|
|
<t t-if="len(blog_post.message_ids) > 1"><t t-esc="len(blog_post.message_ids)"/> comments</t>
|
|
|
|
</a>
|
2013-09-24 21:15:14 +00:00
|
|
|
</span>
|
2013-12-12 10:58:21 +00:00
|
|
|
<span t-if="not blog_post.website_published" class="label label-danger">not published</span>
|
2013-09-24 21:15:14 +00:00
|
|
|
</p>
|
2013-12-12 10:58:21 +00:00
|
|
|
<div t-raw="blog_post.shortened_content" class="blog_content"/>
|
|
|
|
<hr/>
|
|
|
|
</div>
|
2013-09-24 21:15:14 +00:00
|
|
|
|
2013-12-12 10:58:21 +00:00
|
|
|
</t>
|
|
|
|
</t>
|
|
|
|
</template>
|
2013-09-24 21:15:14 +00:00
|
|
|
|
2013-12-12 10:58:21 +00:00
|
|
|
<!-- Options: Blog Post Summary: hide author -->
|
|
|
|
<template id="opt_blog_post_short_author" name="Author"
|
|
|
|
inherit_option_id="website_blog.blog_post_short">
|
2014-01-13 15:08:59 +00:00
|
|
|
<xpath expr="//span[@class='fa fa-calendar oe_date']" position="after">
|
2013-12-12 10:58:21 +00:00
|
|
|
<span class="fa fa-user"> By <span t-field="blog_post.create_uid"/> &nbsp;</span>
|
|
|
|
</xpath>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<!-- Option: Blog Post Summary: show tags -->
|
|
|
|
<template id="opt_blog_post_short_tags" name="Tags"
|
|
|
|
inherit_option_id="website_blog.blog_post_short" inherit_id="website_blog.blog_post_short">
|
|
|
|
<xpath expr="//p[@name='blog_post_data']" position="after">
|
|
|
|
<p class="post-meta text-muted text-center" t-if="len(blog_post.tag_ids)">
|
|
|
|
<span class="fa fa-tags"/>
|
|
|
|
<t t-foreach="blog_post.tag_ids" t-as="tag">
|
2014-03-31 15:27:11 +00:00
|
|
|
<a t-attf-href="#{current_url(tag_id=tag.id)}" t-esc="tag.name"/> &nbsp;
|
2013-12-12 10:58:21 +00:00
|
|
|
</t>
|
|
|
|
</p>
|
|
|
|
</xpath>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<!-- Blog Post Complete -->
|
|
|
|
<template id="blog_post_complete" name="Blog Post">
|
|
|
|
<t t-call="website_blog.index">
|
|
|
|
|
2014-03-11 17:19:41 +00:00
|
|
|
<t t-call="website.publish_management">
|
|
|
|
<t t-set="object" t-value="blog_post"/>
|
|
|
|
<t t-set="publish_edit" t-value="True"/>
|
|
|
|
<t t-set="action" t-value="'website_blog.action_blog_post'"/>
|
|
|
|
<li>
|
|
|
|
<form class="duplicate hidden" action="/blogpost/duplicate">
|
|
|
|
<input name="blog_post_id" t-att-value="blog_post.id"/>
|
|
|
|
</form>
|
|
|
|
<a href="#" class="duplicate" onclick="$(this).prev('form').submit()">Duplicate</a>
|
|
|
|
</li>
|
|
|
|
</t>
|
|
|
|
|
|
|
|
<div id="title">
|
2014-01-26 13:11:12 +00:00
|
|
|
<h1 class="text-center" t-field="blog_post.name"/>
|
|
|
|
<p class="post-meta text-muted text-center" name="blog_post_data">
|
|
|
|
<span class="fa fa-calendar oe_date"> <span t-field="blog_post.create_date"/> &nbsp;</span>
|
|
|
|
<span t-if="len(blog_post.message_ids) > 0" class="fa fa-comment-o"> With
|
|
|
|
<a t-attf-href="#comments">
|
|
|
|
<t t-if="len(blog_post.message_ids) <= 1" ><t t-esc="len(blog_post.message_ids)"/> comment</t>
|
|
|
|
<t t-if="len(blog_post.message_ids) > 1"><t t-esc="len(blog_post.message_ids)"/> comments</t>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</p>
|
2014-01-26 15:11:39 +00:00
|
|
|
</div>
|
2013-10-03 15:00:48 +00:00
|
|
|
|
2014-01-26 15:11:39 +00:00
|
|
|
<div t-field="blog_post.content"/>
|
2013-09-29 12:39:26 +00:00
|
|
|
|
2014-01-26 13:11:12 +00:00
|
|
|
<section id="comments" class="container">
|
|
|
|
<ul class="media-list" id="comments-list">
|
|
|
|
<li t-foreach="blog_post.website_message_ids" t-as="message" class="media">
|
2013-12-12 10:58:21 +00:00
|
|
|
<div class="media-body">
|
2014-01-26 13:11:12 +00:00
|
|
|
<img class="media-object pull-left" t-att-src="'/website/image?model=res.partner&field=image_small&id='+str(message.author_id.id)" style="width: 50px; margin-right: 10px;"/>
|
|
|
|
<div class="media-body">
|
|
|
|
<t t-call="website.publish_short">
|
|
|
|
<t t-set="object" t-value="message"/>
|
|
|
|
</t>
|
|
|
|
<h5 class="media-heading">
|
|
|
|
<span t-field="message.author_id"/> <small>on <span t-field="message.date"/></small>
|
|
|
|
</h5>
|
|
|
|
<div t-field="message.body"/>
|
|
|
|
</div>
|
2013-12-12 10:58:21 +00:00
|
|
|
</div>
|
2014-01-26 13:11:12 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</section>
|
2013-12-12 10:58:21 +00:00
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
2014-01-26 13:11:12 +00:00
|
|
|
<template id="blog_breadcrumb" name="Breadcrumb"
|
|
|
|
inherit_option_id="website_blog.blog_post_complete">
|
|
|
|
<xpath expr="//div[@id='title']" position="before">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-9">
|
|
|
|
<ol class="breadcrumb">
|
2014-01-28 20:50:17 +00:00
|
|
|
<li><a t-attf-href="/blog/#{ slug(blog) }"><span t-field="blog.name"/></a></li>
|
|
|
|
<li t-if="tag"><a t-attf-href="/blog/#{ slug(blog) }/tag/#{ slug(tag) }"><span t-field="tag.name"/></a></li>
|
|
|
|
<li t-if="tag and date"><a t-attf-href="/blog/#{ slug(blog) }/tag/#{ slug(tag) }/date/#{ date }" t-esc="date_name"/></li>
|
|
|
|
<li t-if="not tag and date"><a t-attf-href="/blog/#{ slug(blog) }/date/#{ date }" t-esc="date_name"/></li>
|
2014-01-26 13:11:12 +00:00
|
|
|
<li class="active"><span t-field="blog_post.name"/></li>
|
|
|
|
</ol>
|
|
|
|
</div><div class="col-sm-3">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</xpath>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
2013-12-12 10:58:21 +00:00
|
|
|
<!-- Options: Blog Post: user can reply -->
|
|
|
|
<template id="opt_blog_post_complete_comment" name="Allow Comments"
|
|
|
|
inherit_option_id="website_blog.blog_post_complete" inherit_id="website_blog.blog_post_complete"
|
|
|
|
groups="website_mail.group_comment">
|
2014-01-14 10:58:02 +00:00
|
|
|
<xpath expr="//ul[@id='comments-list']" position="before">
|
2013-12-12 10:58:21 +00:00
|
|
|
<section class="mb32 css_editable_mode_hidden">
|
2014-01-14 10:58:02 +00:00
|
|
|
<form id="comment" t-attf-action="/blogpost/comment" method="POST">
|
|
|
|
<input name="blog_post_id" t-att-value="blog_post.id" type="hidden"/>
|
2013-12-12 10:58:21 +00:00
|
|
|
<img class="img pull-left img-rounded" t-att-src="'/website/image?model=res.partner&field=image_small&id='+str(user_id.partner_id.id)" style="width: 50px; margin-right: 10px;"/>
|
|
|
|
<div class="pull-left mb32" style="width: 75%%">
|
|
|
|
<textarea rows="3" name="comment" class="form-control" placeholder="Write a comment..."></textarea>
|
|
|
|
<button type="submit" class="btn btn-primary mt8">Post</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</section>
|
|
|
|
<div class="clearfix"/>
|
|
|
|
</xpath>
|
|
|
|
</template>
|
2013-10-11 09:18:15 +00:00
|
|
|
|
2013-12-12 10:58:21 +00:00
|
|
|
<!-- Options: Blog Post: hide author -->
|
|
|
|
<template id="opt_blog_post_complete_author" name="Authors"
|
|
|
|
inherit_option_id="website_blog.blog_post_complete">
|
2014-01-13 15:17:08 +00:00
|
|
|
<xpath expr="//span[@class='fa fa-calendar oe_date']" position="after">
|
2013-12-12 10:58:21 +00:00
|
|
|
<span class="fa fa-user"> By <span t-field="blog_post.create_uid"/> &nbsp;</span>
|
|
|
|
</xpath>
|
|
|
|
</template>
|
|
|
|
|
2014-01-24 16:22:51 +00:00
|
|
|
<!-- Options: Blog Post: show blog -->
|
|
|
|
<template id="opt_blog_post_complete_blog" name="Blog"
|
2013-12-12 10:58:21 +00:00
|
|
|
inherit_option_id="website_blog.blog_post_complete">
|
2014-01-13 15:20:38 +00:00
|
|
|
<xpath expr="//span[@class='fa fa-calendar oe_date']" position="after">
|
2014-01-24 16:22:51 +00:00
|
|
|
<span class="fa fa-folder-open"> In <span t-field="blog_post.blog_id"/> &nbsp;</span>
|
2013-12-12 10:58:21 +00:00
|
|
|
</xpath>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<!-- Options: Blog Post: show tags -->
|
|
|
|
<template id="opt_blog_post_complete_tags" name="Tags"
|
|
|
|
inherit_option_id="website_blog.blog_post_complete" inherit_id="website_blog.blog_post_complete">
|
|
|
|
<xpath expr="//p[@name='blog_post_data']" position="after">
|
|
|
|
<p class="post-meta text-muted text-center" t-if="len(blog_post.tag_ids)">
|
|
|
|
<span class="fa fa-tags"/>
|
|
|
|
<t t-foreach="blog_post.tag_ids" t-as="tag">
|
2014-01-28 20:50:17 +00:00
|
|
|
<a t-attf-href="/blog/#{ slug(blog) }/tag/#{ slug(tag) }" t-esc="tag.name"/> &nbsp;
|
2013-10-11 09:18:15 +00:00
|
|
|
</t>
|
2013-12-12 10:58:21 +00:00
|
|
|
</p>
|
|
|
|
</xpath>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<!-- Page -->
|
|
|
|
<template id="index" name="Blog Navigation">
|
|
|
|
<t t-call="website.layout">
|
|
|
|
<t t-set="head">
|
|
|
|
<link rel='stylesheet' href='/website_blog/static/src/css/website_blog.css'/>
|
|
|
|
</t>
|
2014-01-16 18:05:35 +00:00
|
|
|
<div id="wrap" class="js_blog">
|
2014-01-26 13:11:12 +00:00
|
|
|
<t t-raw="0"/>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<!-- Option: Right Column for extra info -->
|
|
|
|
|
|
|
|
<template id="index_right" name="Right Column"
|
|
|
|
inherit_option_id="website_blog.index">
|
|
|
|
<xpath expr="//div[@id='wrap']" position="replace">
|
|
|
|
<div class="container mt16 js_website_blog">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-8 col-sm-8" id="blog_left_column">
|
|
|
|
<t t-raw="0"/>
|
2013-09-20 13:56:43 +00:00
|
|
|
</div>
|
2014-01-26 13:11:12 +00:00
|
|
|
<div class="col-lg-3 col-lg-offset-1 col-sm-4" id="blog_right_column"/>
|
2013-09-20 13:56:43 +00:00
|
|
|
</div>
|
2013-12-12 10:58:21 +00:00
|
|
|
</div>
|
2014-01-26 13:11:12 +00:00
|
|
|
</xpath>
|
2013-12-12 10:58:21 +00:00
|
|
|
</template>
|
2013-09-20 13:56:43 +00:00
|
|
|
|
2013-12-12 10:58:21 +00:00
|
|
|
<!-- Option: Right Column: tags -->
|
|
|
|
<template id="opt_blog_rc_tags" name="Tags"
|
2014-01-26 13:11:12 +00:00
|
|
|
inherit_option_id="website_blog.index_right">
|
2013-12-12 10:58:21 +00:00
|
|
|
<xpath expr="//div[@id='blog_right_column']" position="inside">
|
|
|
|
<section class="mt32">
|
|
|
|
<h4>Tags</h4>
|
|
|
|
<ul class="nav nav-pills nav-stacked">
|
|
|
|
<t t-foreach="tags" t-as="tag_id">
|
|
|
|
<li t-att-class="tag and tag_id.id == tag.id and 'active' or None" style="display: inline-block;">
|
2014-03-31 15:27:11 +00:00
|
|
|
<a t-attf-href="#{current_url(tag_id=tag_id)}"><span t-field="tag_id.name"/></a>
|
2013-12-12 10:58:21 +00:00
|
|
|
</li>
|
|
|
|
</t>
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
</xpath>
|
|
|
|
</template>
|
2013-11-18 15:05:10 +00:00
|
|
|
|
2013-12-12 10:58:21 +00:00
|
|
|
<!-- Option: Right Column: archives -->
|
|
|
|
<template id="opt_blog_rc_history" name="Archives"
|
2014-01-26 13:11:12 +00:00
|
|
|
inherit_option_id="website_blog.index_right">
|
2013-12-12 10:58:21 +00:00
|
|
|
<xpath expr="//div[@id='blog_right_column']" position="inside">
|
|
|
|
<section class="mt32">
|
|
|
|
<h4>Archives</h4>
|
|
|
|
<ul class="nav nav-pills nav-stacked">
|
|
|
|
<t t-foreach="nav_list" t-as="months">
|
2014-03-31 15:27:11 +00:00
|
|
|
<li t-att-class="months['date_begin'] == date and 'active' or None">
|
|
|
|
<a t-ignore="True" t-attf-href="#{current_url(tag_id=tag, date_begin=months['date_begin'], date_end=months['date_end'])}"><t t-esc="months['create_date']"/><span class="pull-right badge" t-esc="months['create_date_count']"/></a>
|
2013-12-12 10:58:21 +00:00
|
|
|
</li>
|
|
|
|
</t>
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
</xpath>
|
|
|
|
</template>
|
2013-09-24 20:42:38 +00:00
|
|
|
|
2013-12-12 10:58:21 +00:00
|
|
|
<!-- Option: Right Column: about us -->
|
|
|
|
<template id="opt_blog_rc_about_us" name="About Us" priority="2"
|
2014-01-26 13:11:12 +00:00
|
|
|
inherit_option_id="website_blog.index_right">
|
2013-12-12 10:58:21 +00:00
|
|
|
<xpath expr="//div[@id='blog_right_column']" position="inside">
|
|
|
|
<section class="mt32">
|
|
|
|
<h4>About us</h4>
|
|
|
|
<p>
|
|
|
|
Write a small text here for when <b>new visitors</b> find your website
|
|
|
|
through your <b>blog entries</b>, referenced in Google.
|
|
|
|
</p>
|
|
|
|
<div>
|
|
|
|
<a href="/page/website.contactus"><button class="btn btn-primary">Contact us</button></a>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</xpath>
|
|
|
|
</template>
|
2013-09-24 21:15:14 +00:00
|
|
|
|
2013-12-12 10:58:21 +00:00
|
|
|
<!-- Option: Right Column: follow us -->
|
|
|
|
<template id="opt_blog_rc_follow_us" name="Follow us" priority="4"
|
2014-01-26 13:11:12 +00:00
|
|
|
inherit_option_id="website_blog.index_right">
|
2013-12-12 10:58:21 +00:00
|
|
|
<xpath expr="//div[@id='blog_right_column']" position="inside">
|
|
|
|
<section class="mt32">
|
2014-01-24 16:22:51 +00:00
|
|
|
<h4>Follow us<small t-if="blog">: <t t-esc="blog.name"/></small></h4>
|
|
|
|
<t t-if="blog">
|
2013-12-12 10:58:21 +00:00
|
|
|
<t t-call="website_mail.follow">
|
|
|
|
<t t-set="email" t-value="user_id.email"/>
|
2014-01-24 16:22:51 +00:00
|
|
|
<t t-set="object" t-value="blog"/>
|
2013-09-30 14:33:57 +00:00
|
|
|
</t>
|
2013-12-12 10:58:21 +00:00
|
|
|
</t>
|
|
|
|
<p class="text-muted mb0 mt16">
|
|
|
|
Participate on our social stream.
|
|
|
|
</p>
|
|
|
|
<h2 class="mt4">
|
|
|
|
<a t-att-href="website.social_facebook" t-if="website.social_facebook"><i class="fa fa-facebook-square"/></a>
|
|
|
|
<a t-att-href="website.social_twitter" t-if="website.social_twitter"><i class="fa fa-twitter"/></a>
|
|
|
|
<a t-att-href="website.social_linkedin" t-if="website.social_linkedin"><i class="fa fa-linkedin"/></a>
|
|
|
|
<a t-att-href="website.social_youtube" t-if="website.social_youtube"><i class="fa fa-youtube-play"/></a>
|
|
|
|
<a t-att-href="website.social_googleplus" t-if="website.social_googleplus"><i class="fa fa-google-plus-square"/></a>
|
|
|
|
<a t-att-href="website.social_github" t-if="website.social_github"><i class="fa fa-github"/></a>
|
|
|
|
</h2>
|
|
|
|
</section>
|
|
|
|
</xpath>
|
|
|
|
</template>
|
2013-09-24 21:15:14 +00:00
|
|
|
|
2014-01-24 16:22:51 +00:00
|
|
|
<!-- Option: Right Column: blogs -->
|
|
|
|
<template id="opt_blog_rc_blogs" name="Our Blogs" priority="6"
|
2014-01-26 13:11:12 +00:00
|
|
|
inherit_option_id="website_blog.index_right">
|
2013-12-12 10:58:21 +00:00
|
|
|
<xpath expr="//div[@id='blog_right_column']" position="inside">
|
|
|
|
<section class="mt32 mb32">
|
|
|
|
<h4>Our Blogs</h4>
|
|
|
|
<ul class="nav nav-pills nav-stacked">
|
2014-01-24 16:22:51 +00:00
|
|
|
<t t-foreach="blogs" t-as="nav_blog">
|
|
|
|
<li t-att-class="nav_blog.id == blog.id and 'active' or ''">
|
2014-01-28 20:50:17 +00:00
|
|
|
<a t-attf-href="/blog/#{ slug(nav_blog) }">
|
2014-01-24 16:22:51 +00:00
|
|
|
<span t-field="nav_blog.name"/>
|
2013-12-12 10:58:21 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</t>
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
</xpath>
|
|
|
|
</template>
|
2013-09-24 20:42:38 +00:00
|
|
|
|
2013-10-11 09:18:15 +00:00
|
|
|
</data>
|
2013-09-20 13:56:43 +00:00
|
|
|
</openerp>
|