first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = '{$config->get('item_diquis_account','demo4leotheme')|escape:'html':'UTF-8'}';
|
||||
var disqus_url = '{$blog_link|escape:'html':'UTF-8'}';
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
<noscript>{l s='Please enable JavaScript to view the.' mod='leoblog'} <a href="http://disqus.com/?ref_noscript">{l s='Comments powered by Disqus.' mod='leoblog'}.</a></noscript>
|
||||
@@ -0,0 +1,21 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<div id="fb-root"></div>
|
||||
<script>(function(d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) {
|
||||
return;
|
||||
}
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId={$config->get('item_facebook_appid')|escape:'html':'UTF-8'}";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));</script>
|
||||
<div class="fb-comments" data-href="{$blog_link|escape:'html':'UTF-8'}"
|
||||
data-num-posts="{$config->get("item_limit_comments",10)|escape:'html':'UTF-8'}" data-width="{$config->get('facebook_width',600)|escape:'html':'UTF-8'}">
|
||||
</div>
|
||||
126
modules/leoblog/views/templates/front/default/_listing_blog.tpl
Normal file
126
modules/leoblog/views/templates/front/default/_listing_blog.tpl
Normal file
@@ -0,0 +1,126 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<article class="blog-item">
|
||||
<div class="blog-image-container">
|
||||
{if $config->get('listing_show_title','1')}
|
||||
<h4 class="title">
|
||||
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}">{$blog.title|escape:'html':'UTF-8'}</a>
|
||||
</h4>
|
||||
{/if}
|
||||
{if Configuration::get('LEOBLOG_SHARE_FB') || Configuration::get('LEOBLOG_SHARE_TW') }
|
||||
<div class="share_button">
|
||||
<span><i class="fa fa-share-alt"></i>{l s='Share' d='Shop.Theme.Global'}</span>
|
||||
<ul>
|
||||
{if Configuration::get('LEOBLOG_SHARE_FB')}
|
||||
<li class="facebook">
|
||||
<a href="http://www.facebook.com/sharer.php?u={$smarty.server.HTTP_HOST|escape:'htmlall':'UTF-8'}{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}">
|
||||
<span>{l s='Facebook' mod='leoblog'}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if Configuration::get('LEOBLOG_SHARE_TW')}
|
||||
<li class="twitter">
|
||||
<a href="https://twitter.com/intent/tweet?text={$smarty.server.HTTP_HOST|escape:'htmlall':'UTF-8'}{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}">
|
||||
<span>{l s='Twitter' mod='leoblog'}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="blog-meta">
|
||||
{if $config->get('listing_show_author','1')&&!empty($blog.author)}
|
||||
<span class="blog-author">
|
||||
<i class="material-icons">person</i> <span>{l s='Posted By' mod='leoblog'}:</span>
|
||||
<a href="{$blog.author_link|escape:'html':'UTF-8'}" title="{$blog.author|escape:'html':'UTF-8'}">{$blog.author|escape:'html':'UTF-8'}</a>
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
{if $config->get('listing_show_category','1')}
|
||||
<span class="blog-cat">
|
||||
<i class="material-icons">list</i> <span>{l s='In' mod='leoblog'}:</span>
|
||||
<a href="{$blog.category_link|escape:'html':'UTF-8'}" title="{$blog.category_title|escape:'html':'UTF-8'}">{$blog.category_title|escape:'html':'UTF-8'}</a>
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
{if $config->get('listing_show_created','1')}
|
||||
<span class="blog-created">
|
||||
<i class="material-icons"></i> <span>{l s='On' mod='leoblog'}: </span>
|
||||
<time class="date" datetime="{strtotime($blog.date_add)|date_format:"%Y"|escape:'html':'UTF-8'}">
|
||||
{assign var='blog_date' value=strtotime($blog.date_add)|date_format:"%A"}
|
||||
{l s=$blog_date mod='leoblog'}, <!-- day of week -->
|
||||
{assign var='blog_month' value=strtotime($blog.date_add)|date_format:"%B"}
|
||||
{l s=$blog_month mod='leoblog'} <!-- month-->
|
||||
{assign var='blog_day' value=strtotime($blog.date_add)|date_format:"%e"}
|
||||
{l s=$blog_day mod='leoblog'} <!-- day of month -->
|
||||
{assign var='blog_year' value=strtotime($blog.date_add)|date_format:"%Y"}
|
||||
{l s=$blog_year mod='leoblog'} <!-- year -->
|
||||
</time>
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
{if isset($blog.comment_count)&&$config->get('listing_show_counter','1')}
|
||||
<span class="blog-ctncomment">
|
||||
<i class="material-icons">comment</i> <span>{l s='Comment' mod='leoblog'}:</span>
|
||||
{$blog.comment_count|intval}
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
{if $config->get('listing_show_hit','1')}
|
||||
<span class="blog-hit">
|
||||
<i class="material-icons">favorite</i> <span>{l s='Hit' mod='leoblog'}:</span>
|
||||
{$blog.hits|intval}
|
||||
</span>
|
||||
{/if}
|
||||
</div>
|
||||
{if $blog.image && $config->get('listing_show_image',1)}
|
||||
<div class="blog-image">
|
||||
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}">
|
||||
<img {if isset($aplazyload) && $aplazyload}data-src{else}src{/if}="{$blog.preview_url|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" alt="" class="img-fluid{if isset($aplazyload) && $aplazyload} lazy{/if}" />
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="blog-info">
|
||||
{if $config->get('listing_show_description','1')}
|
||||
<div class="blog-shortinfo">
|
||||
{$blog.description|strip_tags:'UTF-8'|truncate:160:'...'|cleanHtml nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/if}
|
||||
{if $config->get('listing_show_readmore',1)}
|
||||
<p>
|
||||
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" class="more btn btn-primary">{l s='Read more' mod='leoblog'}</a>
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="hidden-xl-down hidden-xl-up datetime-translate">
|
||||
{l s='Sunday' mod='leoblog'}
|
||||
{l s='Monday' mod='leoblog'}
|
||||
{l s='Tuesday' mod='leoblog'}
|
||||
{l s='Wednesday' mod='leoblog'}
|
||||
{l s='Thursday' mod='leoblog'}
|
||||
{l s='Friday' mod='leoblog'}
|
||||
{l s='Saturday' mod='leoblog'}
|
||||
|
||||
{l s='January' mod='leoblog'}
|
||||
{l s='February' mod='leoblog'}
|
||||
{l s='March' mod='leoblog'}
|
||||
{l s='April' mod='leoblog'}
|
||||
{l s='May' mod='leoblog'}
|
||||
{l s='June' mod='leoblog'}
|
||||
{l s='July' mod='leoblog'}
|
||||
{l s='August' mod='leoblog'}
|
||||
{l s='September' mod='leoblog'}
|
||||
{l s='October' mod='leoblog'}
|
||||
{l s='November' mod='leoblog'}
|
||||
{l s='December' mod='leoblog'}
|
||||
|
||||
</div>
|
||||
</article>
|
||||
@@ -0,0 +1,97 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<div id="blog-localengine">
|
||||
{if $config->get('item_show_listcomment','1') == 1}
|
||||
<h3>{l s='Comments' mod='leoblog'}</h3>
|
||||
|
||||
{if isset($comments) && count($comments) > 0}
|
||||
<div class="comments clearfix">
|
||||
{foreach from=$comments item=comment name=comment} {$default=''}
|
||||
<div class="comment-item" id="comment{$comment.id_comment|escape:'html':'UTF-8'}">
|
||||
<img {if isset($aplazyload) && $aplazyload}class="lazy" data-src{else}src{/if}="http://www.gravatar.com/avatar/{md5(strtolower(trim($comment.email|escape:'html':'UTF-8')))}?d={urlencode($default|escape:'html':'UTF-8')}&s=60" align="left"/>
|
||||
<div class="comment-wrap">
|
||||
<div class="comment-meta">
|
||||
<span class="comment-infor">
|
||||
<span class="comment-created">{l s='Created On' mod='leoblog'}<span> {strtotime($comment.date_add)|date_format:"%A, %B %e, %Y"|escape:'html':'UTF-8'}</span></span>
|
||||
<span class="comment-postedby">{l s='Posted By' mod='leoblog'}<span> {$comment.user|escape:'html':'UTF-8'}</span></span>
|
||||
</span>
|
||||
|
||||
<span class="comment-link"><a href="{$blog_link|escape:'html':'UTF-8'}#comment{$comment.id_comment|intval}">{l s='Comment Link' mod='leoblog'}</a></span>
|
||||
</div>
|
||||
|
||||
<div class="comment-content">
|
||||
{$comment.comment|nl2br|cleanHtml nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{if $blog_count_comment}
|
||||
<div class="top-pagination-content clearfix bottom-line">
|
||||
{include file="$_pagination"}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{else}
|
||||
<p class="alert alert-success">{l s='No comment at this time!' mod='leoblog'}</p>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
|
||||
{if $config->get('item_show_formcomment','1') == 1}
|
||||
<h3 class="title-comment">{l s='Leave your comment' mod='leoblog'}</h3>
|
||||
<form class="form-horizontal clearfix" method="post" id="comment-form" action="{$blog_link|escape:'html':'UTF-8'}" onsubmit="return false;">
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-3">
|
||||
<label class="control-label" for="inputFullName">{l s='Full Name' mod='leoblog'}</label>
|
||||
</div>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" name="user" placeholder="{l s='Enter your full name' mod='leoblog'}" id="inputFullName" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-3">
|
||||
<label class="control-label" for="inputEmail">{l s='Email' mod='leoblog'}</label>
|
||||
</div>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" name="email" placeholder="{l s='Enter your email' mod='leoblog'}" id="inputEmail" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-3">
|
||||
<label class="control-label" for="inputComment">{l s='Comment' mod='leoblog'}</label>
|
||||
</div>
|
||||
<div class="col-lg-9">
|
||||
<textarea type="text" name="comment" rows="6" placeholder="{l s='Enter your comment' mod='leoblog'}" id="inputComment" class="form-control"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-3">
|
||||
<label class="control-label" for="inputEmail">{l s='Captcha' mod='leoblog'}</label>
|
||||
</div>
|
||||
<div class="col-lg-8 col-md-8 ipts-captcha">
|
||||
<img src="{$captcha_image|escape:'html':'UTF-8'}" class="comment-capcha-image" align="left"/>
|
||||
<input class="form-control" type="text" name="captcha" value="" size="10" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="id_leoblog_blog" value="{$id_leoblog_blog|intval}">
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<button class="btn btn-secondary btn-outline btn-submit-comment-wrapper" name="submitcomment" type="submit">
|
||||
<span class="btn-submit-comment">{l s='Submit' mod='leoblog'}</span>
|
||||
<span class="leoblog-cssload-container cssload-speeding-wheel"></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
127
modules/leoblog/views/templates/front/default/_pagination.tpl
Normal file
127
modules/leoblog/views/templates/front/default/_pagination.tpl
Normal file
@@ -0,0 +1,127 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
{if isset($no_follow) AND $no_follow}
|
||||
{assign var='no_follow_text' value='rel="nofollow"'}
|
||||
{else}
|
||||
{assign var='no_follow_text' value=''}
|
||||
{/if}
|
||||
|
||||
{if isset($p) AND $p}
|
||||
{if ($n*$p) < $nb_items }
|
||||
{assign var='blogShowing' value=$n*$p}
|
||||
{else}
|
||||
{assign var='blogShowing' value=($n*$p-$nb_items-$n*$p)*-1}
|
||||
{/if}
|
||||
{if $p==1}
|
||||
{assign var='blogShowingStart' value=1}
|
||||
{else}
|
||||
{assign var='blogShowingStart' value=$n*$p-$n+1}
|
||||
{/if}
|
||||
|
||||
<nav class="pagination">
|
||||
{* <div class="col-xs-12 col-md-6 col-lg-6">
|
||||
{if $nb_items > 1}
|
||||
{l s='Showing' mod='leoblog'} {$blogShowingStart|escape:'htmlall':'UTF-8'} - {$blogShowing|escape:'htmlall':'UTF-8'} {l s='of' mod='leoblog'} {$nb_items|escape:'htmlall':'UTF-8'} {l s='items' mod='leoblog'}
|
||||
{else}
|
||||
{l s='Showing' mod='leoblog'} {$blogShowingStart|escape:'htmlall':'UTF-8'} - {$blogShowing|escape:'htmlall':'UTF-8'} {l s='of' mod='leoblog'} 1 {l s='item' mod='leoblog'}
|
||||
{/if}
|
||||
</div> *}
|
||||
{if $start!=$stop}
|
||||
<div id="pagination{if isset($paginationId)}_{$paginationId|escape:'html':'UTF-8'}{/if}" class="col-xs-12 col-md-6 col-lg-6">
|
||||
<ul class="page-list clearfix text-sm-right text-xs-center">
|
||||
{if $p != 1}
|
||||
{assign var='p_previous' value=$p-1}
|
||||
<li id="pagination_previous{if isset($paginationId)}_{$paginationId|escape:'html':'UTF-8'}{/if}">
|
||||
<a {$no_follow_text|escape:'html':'UTF-8'} class="previous" rel="prev" href="{$link->goPage($requestPage, $p_previous)|escape:'html':'UTF-8'}">
|
||||
<i class="material-icons"></i>
|
||||
<span>{l s='Previous' mod='leoblog'}</span>
|
||||
</a>
|
||||
</li>
|
||||
{else}
|
||||
<li id="pagination_previous{if isset($paginationId)}_{$paginationId|escape:'html':'UTF-8'}{/if}">
|
||||
<a class="previous disabled" rel="prev" href="#">
|
||||
<i class="material-icons"></i>
|
||||
<span>{l s='Previous' mod='leoblog'}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if $start==3}
|
||||
<li><a {$no_follow_text|escape:'html':'UTF-8'} href="{$link->goPage($requestPage, 1)|escape:'html':'UTF-8'}">1</a></li>
|
||||
<li><a {$no_follow_text|escape:'html':'UTF-8'} href="{$link->goPage($requestPage, 2)|escape:'html':'UTF-8'}">2</a></li>
|
||||
{/if}
|
||||
{if $start==2}
|
||||
<li><a {$no_follow_text|escape:'html':'UTF-8'} href="{$link->goPage($requestPage, 1)|escape:'html':'UTF-8'}">1</a></li>
|
||||
{/if}
|
||||
{if $start>3}
|
||||
<li><a {$no_follow_text|escape:'html':'UTF-8'} href="{$link->goPage($requestPage, 1)|escape:'html':'UTF-8'}">1</a></li>
|
||||
<li class="truncate">...</li>
|
||||
{/if}
|
||||
{section name=pagination start=$start loop=$stop+1 step=1}
|
||||
{if $p == $smarty.section.pagination.index}
|
||||
<li class="current">
|
||||
<a {$no_follow_text|escape:'html':'UTF-8'} href="{$link->goPage($requestPage, $smarty.section.pagination.index)|escape:'html':'UTF-8'}" class="disabled">
|
||||
{$p|escape:'html':'UTF-8'}
|
||||
</a>
|
||||
</li>
|
||||
{else}
|
||||
<li>
|
||||
<a {$no_follow_text|escape:'html':'UTF-8'} href="{$link->goPage($requestPage, $smarty.section.pagination.index)|escape:'html':'UTF-8'}">
|
||||
{$smarty.section.pagination.index|escape:'html':'UTF-8'}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{/section}
|
||||
{if $pages_nb>$stop+2}
|
||||
<li class="truncate">...</li>
|
||||
<li>
|
||||
<a href="{$link->goPage($requestPage, $pages_nb)|escape:'html':'UTF-8'}">
|
||||
{$pages_nb|intval}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if $pages_nb==$stop+1}
|
||||
<li>
|
||||
<a href="{$link->goPage($requestPage, $pages_nb)|escape:'html':'UTF-8'}">
|
||||
{$pages_nb|intval}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if $pages_nb==$stop+2}
|
||||
<li>
|
||||
<a href="{$link->goPage($requestPage, $pages_nb-1)|escape:'html':'UTF-8'}">
|
||||
{$pages_nb-1|intval}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{$link->goPage($requestPage, $pages_nb)|escape:'html':'UTF-8'}">
|
||||
{$pages_nb|intval}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if $pages_nb > 1 AND $p != $pages_nb}
|
||||
{assign var='p_next' value=$p+1}
|
||||
<li id="pagination_next{if isset($paginationId)}_{$paginationId|escape:'html':'UTF-8'}{/if}">
|
||||
<a {$no_follow_text|escape:'html':'UTF-8'} class="next" rel="next" href="{$link->goPage($requestPage, $p_next)|escape:'html':'UTF-8'}">
|
||||
<span>{l s='Next' mod='leoblog'}</span>
|
||||
<i class="material-icons"></i>
|
||||
</a>
|
||||
</li>
|
||||
{else}
|
||||
<li id="pagination_next{if isset($paginationId)}_{$paginationId|escape:'html':'UTF-8'}{/if}">
|
||||
<a class="next disabled" rel="next" href="#">
|
||||
<span>{l s='Next' mod='leoblog'}</span>
|
||||
<i class="material-icons"></i>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
</nav>
|
||||
{/if}
|
||||
56
modules/leoblog/views/templates/front/default/_social.tpl
Normal file
56
modules/leoblog/views/templates/front/default/_social.tpl
Normal file
@@ -0,0 +1,56 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<div class="social-wrap">
|
||||
<div class="social-heading"> <b>{l s='Like This' mod='leoblog'}</b> </div>
|
||||
{if $config->get('social_code','')}
|
||||
{$config->get('social_code','')|cleanHtml nofilter}{* HTML form , no escape necessary *}
|
||||
{else}
|
||||
<!-- Twitter Button -->
|
||||
<div class="itemTwitterButton">
|
||||
<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" >
|
||||
{l s='Twitter' mod='leoblog'}
|
||||
</a>
|
||||
<script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Facebook Button -->
|
||||
<div class="itemFacebookButton">
|
||||
<div id="fb-root"></div>
|
||||
<script type="text/javascript">
|
||||
(function(d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));
|
||||
</script>
|
||||
<div class="fb-like" data-send="false" data-width="200" data-show-faces="true"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Google +1 Button -->
|
||||
<div class="itemGooglePlusOneButton">
|
||||
<g:plusone annotation="inline" width="120"></g:plusone>
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
window.___gcfg = { lang: 'en' }; // Define button default language here
|
||||
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
|
||||
po.src = 'https://apis.google.com/js/plusone.js';
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
228
modules/leoblog/views/templates/front/default/blog.tpl
Normal file
228
modules/leoblog/views/templates/front/default/blog.tpl
Normal file
@@ -0,0 +1,228 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
{extends file=$layout}
|
||||
|
||||
{block name='content'}
|
||||
<section id="main">
|
||||
{if isset($error)}
|
||||
<div id="blogpage">
|
||||
<div class="blog-detail">
|
||||
<div class="alert alert-warning">{l s='Sorry, We are updating data, please come back later!!!!' mod='leoblog'}</div>
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<div id="blogpage">
|
||||
<article class="blog-detail">
|
||||
{if $is_active}
|
||||
{* <h1 class="blog-title">{$blog->meta_title|escape:'html':'UTF-8'}</h1>
|
||||
{if Configuration::get('LEOBLOG_SHARE_FB') || Configuration::get('LEOBLOG_SHARE_TW') }
|
||||
<div class="share_button">
|
||||
<span><i class="fa fa-share-alt"></i>{l s='Share' d='Shop.Theme.Global'}</span>
|
||||
<ul>
|
||||
{if Configuration::get('LEOBLOG_SHARE_FB')}
|
||||
<li class="facebook">
|
||||
<a href="http://www.facebook.com/sharer.php?u={$smarty.server.HTTP_HOST|escape:'htmlall':'UTF-8'}{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}">
|
||||
<span>{l s='Facebook' mod='leoblog'}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if Configuration::get('LEOBLOG_SHARE_TW')}
|
||||
<li class="twitter">
|
||||
<a href="https://twitter.com/intent/tweet?text={$smarty.server.HTTP_HOST|escape:'htmlall':'UTF-8'}{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}">
|
||||
<span>{l s='Twitter' mod='leoblog'}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
{/if} *}
|
||||
{* <div class="blog-meta">
|
||||
{if $config->get('item_show_author','1')}
|
||||
<span class="blog-author">
|
||||
<i class="material-icons">person</i> <span>{l s='Posted By' mod='leoblog'}: </span>
|
||||
<a href="{$blog->author_link|escape:'html':'UTF-8'}" title="{$blog->author|escape:'html':'UTF-8'}">{$blog->author|escape:'html':'UTF-8'}</a>
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
{if $config->get('item_show_category','1')}
|
||||
<span class="blog-cat">
|
||||
<i class="material-icons">list</i> <span>{l s='In' mod='leoblog'}: </span>
|
||||
<a href="{$blog->category_link|escape:'html':'UTF-8'}" title="{$blog->category_title|escape:'html':'UTF-8'}">{$blog->category_title|escape:'html':'UTF-8'}</a>
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
{if $config->get('item_show_created','1')}
|
||||
<span class="blog-created">
|
||||
<i class="material-icons"></i> <span>{l s='On' mod='leoblog'}: </span>
|
||||
<time class="date" datetime="{strtotime($blog->date_add)|date_format:"%Y"|escape:'html':'UTF-8'}">
|
||||
{assign var='blog_date' value=strtotime($blog->date_add)|date_format:"%A"}
|
||||
{l s=$blog_date mod='leoblog'}, <!-- day of week -->
|
||||
{assign var='blog_month' value=strtotime($blog->date_add)|date_format:"%B"}
|
||||
{l s=$blog_month mod='leoblog'} <!-- month-->
|
||||
{assign var='blog_day' value=strtotime($blog->date_add)|date_format:"%e"}
|
||||
{l s=$blog_day mod='leoblog'} <!-- day of month -->
|
||||
{assign var='blog_year' value=strtotime($blog->date_add)|date_format:"%Y"}
|
||||
{l s=$blog_year mod='leoblog'} <!-- year -->
|
||||
</time>
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
{if isset($blog_count_comment)&&$config->get('item_show_counter','1')}
|
||||
<span class="blog-ctncomment">
|
||||
<i class="material-icons">comment</i> <span>{l s='Comment' mod='leoblog'}:</span>
|
||||
{$blog_count_comment|intval}
|
||||
</span>
|
||||
{/if}
|
||||
{if isset($blog->hits)&&$config->get('item_show_hit','1')}
|
||||
<span class="blog-hit">
|
||||
<i class="material-icons">favorite</i> <span>{l s='Hit' mod='leoblog'}:</span>
|
||||
{$blog->hits|intval}
|
||||
</span>
|
||||
{/if}
|
||||
</div> *}
|
||||
|
||||
{if $blog->preview_url && $config->get('item_show_image','1')}
|
||||
<div class="blog-image">
|
||||
<img {if isset($aplazyload) && $aplazyload}data-src{else}src{/if}="{$blog->image_url|escape:'html':'UTF-8'}" title="{$blog->meta_title|escape:'html':'UTF-8'}" class="img-fluid{if isset($aplazyload) && $aplazyload} lazy{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="article-mini-info">
|
||||
<p class="article-added-tile">{$blog->date_add|date_format:"%d/%m/%Y"}</p>
|
||||
<h1 class="blog-title">{$blog->meta_title|escape:'html':'UTF-8'}</h1>
|
||||
</div>
|
||||
|
||||
<div class="blog-description">
|
||||
{if $config->get('item_show_description',1)}
|
||||
{$blog->description nofilter}{* HTML form , no escape necessary *}
|
||||
{/if}
|
||||
{$blog->content nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
{if trim($blog->video_code)}
|
||||
<div class="blog-video-code">
|
||||
<div class="inner ">
|
||||
{$blog->video_code nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="social-share">
|
||||
{include file="$_social"}
|
||||
</div>
|
||||
{if $tags}
|
||||
<div class="blog-tags">
|
||||
<span>{l s='Tags:' mod='leoblog'}</span>
|
||||
|
||||
{foreach from=$tags item=tag name=tag}
|
||||
<a href="{$tag.link|escape:'html':'UTF-8'}" title="{$tag.tag|escape:'html':'UTF-8'}"><span>{$tag.tag|escape:'html':'UTF-8'}</span></a>
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if !empty($samecats)||!empty($tagrelated)}
|
||||
<div class="extra-blogs row">
|
||||
{if !empty($samecats)}
|
||||
<div class="col-lg-6 col-md-6 col-xs-12">
|
||||
<h4>{l s='In Same Category' mod='leoblog'}</h4>
|
||||
<ul>
|
||||
{foreach from=$samecats item=cblog name=cblog}
|
||||
<li><a href="{$cblog.link|escape:'html':'UTF-8'}">{$cblog.meta_title|escape:'html':'UTF-8'}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-lg-6 col-md-6 col-xs-12">
|
||||
<h4>{l s='Related by Tags' mod='leoblog'}</h4>
|
||||
<ul>
|
||||
{foreach from=$tagrelated item=cblog name=cblog}
|
||||
<li><a href="{$cblog.link|escape:'html':'UTF-8'}">{$cblog.meta_title|escape:'html':'UTF-8'}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="article-social">
|
||||
<h2 class="article-social-text">
|
||||
Podziel się tym artykułem z Innymi!
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="http://www.facebook.com/sharer.php?u={$smarty.server.HTTP_REFERER}{$smarty.server.REQUEST_URI}">
|
||||
<img src="/themes/at_movic/assets/img/icons/FB.svg" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://twitter.com/share?url={$smarty.server.HTTP_REFERER}{$smarty.server.REQUEST_URI}">
|
||||
<img src="/themes/at_movic/assets/img/icons/TWITTER.svg" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.instagram.com/shareArticle?mini=true&url={$smarty.server.HTTP_REFERER}{$smarty.server.REQUEST_URI}">
|
||||
<img src="/themes/at_movic/assets/img/icons/IG.svg" alt="">
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{if $productrelated}
|
||||
|
||||
{/if}
|
||||
{if $config->get('item_show_listcomment','1') == 1}
|
||||
<div class="blog-comment-block clearfix">
|
||||
{if $config->get('item_comment_engine','local')=='facebook'}
|
||||
{include file="$_facebook_comment"}
|
||||
{elseif $config->get('item_comment_engine','local')=='diquis'}
|
||||
{include file="$_diquis_comment"}
|
||||
{else}
|
||||
{include file="$_local_comment"}
|
||||
{/if}
|
||||
|
||||
{elseif $config->get('item_show_listcomment','1') == 0 && $config->get('item_show_formcomment','1') == 1}
|
||||
<div class="blog-comment-block clearfix">
|
||||
{include file="$_local_comment"}
|
||||
</div>
|
||||
{/if}
|
||||
{else}
|
||||
<div class="alert alert-warning">{l s='Sorry, This blog is not avariable. May be this was unpublished or deleted.' mod='leoblog'}</div>
|
||||
{/if}
|
||||
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<div class="hidden-xl-down hidden-xl-up datetime-translate">
|
||||
{l s='Sunday' mod='leoblog'}
|
||||
{l s='Monday' mod='leoblog'}
|
||||
{l s='Tuesday' mod='leoblog'}
|
||||
{l s='Wednesday' mod='leoblog'}
|
||||
{l s='Thursday' mod='leoblog'}
|
||||
{l s='Friday' mod='leoblog'}
|
||||
{l s='Saturday' mod='leoblog'}
|
||||
|
||||
{l s='January' mod='leoblog'}
|
||||
{l s='February' mod='leoblog'}
|
||||
{l s='March' mod='leoblog'}
|
||||
{l s='April' mod='leoblog'}
|
||||
{l s='May' mod='leoblog'}
|
||||
{l s='June' mod='leoblog'}
|
||||
{l s='July' mod='leoblog'}
|
||||
{l s='August' mod='leoblog'}
|
||||
{l s='September' mod='leoblog'}
|
||||
{l s='October' mod='leoblog'}
|
||||
{l s='November' mod='leoblog'}
|
||||
{l s='December' mod='leoblog'}
|
||||
|
||||
</div>
|
||||
{/if}
|
||||
</section>
|
||||
{/block}
|
||||
115
modules/leoblog/views/templates/front/default/category.tpl
Normal file
115
modules/leoblog/views/templates/front/default/category.tpl
Normal file
@@ -0,0 +1,115 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
{extends file=$layout}
|
||||
|
||||
{block name='content'}
|
||||
<section id="main">
|
||||
{if isset($category) && $category->id_leoblogcat && $category->active}
|
||||
{if isset($no_follow) AND $no_follow}
|
||||
{assign var='no_follow_text' value='rel="nofollow"'}
|
||||
{else}
|
||||
{assign var='no_follow_text' value=''}
|
||||
{/if}
|
||||
<div id="blog-category" class="blogs-container">
|
||||
{if $category->show_title}
|
||||
<h1>{$category->title|escape:'html':'UTF-8'}</h1>
|
||||
{/if}
|
||||
<div class="inner">
|
||||
{if $config->get('listing_show_categoryinfo',1)}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
{if $category->image}
|
||||
<div class="row">
|
||||
<div class="category-image col-xs-12 col-sm-12 col-lg-4 col-md-6 text-center">
|
||||
<img {if isset($aplazyload) && $aplazyload}data-src{else}src{/if}="{$category->image|escape:'html':'UTF-8'}" class="img-fluid{if isset($aplazyload) && $aplazyload} lazy{/if}" alt="" />
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-12 col-lg-8 col-md-6 category-info caption">
|
||||
{$category->content_text|cleanHtml nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<div class="category-info caption">
|
||||
{$category->content_text|cleanHtml nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $childrens&&$config->get('listing_show_subcategories',1)}
|
||||
<div class="childrens">
|
||||
<h3 class="section-title">{l s='Childrens' mod='leoblog'}</h3>
|
||||
<div class="row">
|
||||
{foreach $childrens item=children name=children}
|
||||
<div class="col-lg-3">
|
||||
{if isset($children.thumb)}
|
||||
<img src="{$children.thumb|escape:'html':'UTF-8'}" class="img-fluid"/>
|
||||
{/if}
|
||||
<h4><a href="{$children.category_link|escape:'html':'UTF-8'}" title="{$children.title|escape:'html':'UTF-8'}">{$children.title|escape:'html':'UTF-8'}</a></h4>
|
||||
<div class="child-desc">{$children.content_text|cleanHtml nofilter}</div>{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
{if count($leading_blogs)+count($secondary_blogs)}
|
||||
<h3 class="section-title">{l s='Recent blog posts' mod='leoblog'}</h3>
|
||||
{if count($leading_blogs)}
|
||||
<div class="leading-blog">
|
||||
{foreach from=$leading_blogs item=blog name=leading_blog}
|
||||
|
||||
{if ($smarty.foreach.leading_blog.iteration%$listing_leading_column==1)&&$listing_leading_column>1}
|
||||
<div class="row">
|
||||
{/if}
|
||||
<div class="{if $listing_leading_column<=1}no{/if}col-lg-{floor(12/$listing_leading_column|escape:'html':'UTF-8')}">
|
||||
{include file="$_listing_blog"}
|
||||
</div>
|
||||
{if ($smarty.foreach.leading_blog.iteration%$listing_leading_column==0||$smarty.foreach.leading_blog.last)&&$listing_leading_column>1}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if count($secondary_blogs)}
|
||||
<div class="secondary-blog">
|
||||
|
||||
{foreach from=$secondary_blogs item=blog name=secondary_blog}
|
||||
{if ($smarty.foreach.secondary_blog.iteration%$listing_secondary_column==1)&&$listing_secondary_column>1}
|
||||
<div class="row">
|
||||
{/if}
|
||||
|
||||
<div class="{if $listing_secondary_column<=1}no{/if}col-lg-{floor(12/$listing_secondary_column|escape:'html':'UTF-8')}">
|
||||
{include file="$_listing_blog"}
|
||||
</div>
|
||||
{if ($smarty.foreach.secondary_blog.iteration%$listing_secondary_column==0||$smarty.foreach.secondary_blog.last)&&$listing_secondary_column>1}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="top-pagination-content clearfix bottom-line">
|
||||
{include file="$_pagination"}
|
||||
</div>
|
||||
{elseif empty($childrens)}
|
||||
<div class="alert alert-warning">{l s='Sorry, We are updating data, please come back later!!!!' mod='leoblog'}</div>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<div class="alert alert-warning">{l s='Sorry, We are updating data, please come back later!!!!' mod='leoblog'}</div>
|
||||
{/if}
|
||||
</section>
|
||||
{/block}
|
||||
46
modules/leoblog/views/templates/front/default/comment.tpl
Normal file
46
modules/leoblog/views/templates/front/default/comment.tpl
Normal file
@@ -0,0 +1,46 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<div id="blog-localengine">
|
||||
<form class="form-horizontal" method="post" id="comment-form" action="{$blog_link|escape:'html':'UTF-8'}" onsubmit="return false;">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-lg-3 control-label" for="inputFullName">{l s='Full Name' mod='leoblog'}</label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" name="fullname" placeholder="{l s='Enter your full name' mod='leoblog'}" id="inputFullName" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-lg-3 control-label" for="inputEmail">{l s='Email' mod='leoblog'}</label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" name="email" placeholder="{l s='Enter your email' mod='leoblog'}" id="inputEmail" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-lg-3 control-label" for="inputComment">{l s='Comment' mod='leoblog'}</label>
|
||||
<div class="col-lg-9">
|
||||
<textarea type="text" name="comment" rows="6" placeholder="{l s='Enter your comment' mod='leoblog'}" id="inputComment" class="form-control"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<img {if isset($aplazyload) && $aplazyload}class="lazy" data-src{else}src{/if}="{$captcha_image|escape:'html':'UTF-8'}" alt="" align="left"/>
|
||||
<input class="form-control" type="text" name="captcha" value="" size="10" />
|
||||
</div>
|
||||
<input type="hidden" name="id_leoblog_blog" value="{$id_leoblog_blog|intval}">
|
||||
<div class="form-group">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<button class="btn btn-default btn-outline btn-submit-comment-wrapper" name="submitcomment" type="submit">
|
||||
<span class="btn-submit-comment">{l s='Submit' mod='leoblog'}</span>
|
||||
<span class="leoblog-cssload-container cssload-speeding-wheel"></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
36
modules/leoblog/views/templates/front/default/index.php
Normal file
36
modules/leoblog/views/templates/front/default/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2012 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 13573 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
99
modules/leoblog/views/templates/front/default/listing.tpl
Normal file
99
modules/leoblog/views/templates/front/default/listing.tpl
Normal file
@@ -0,0 +1,99 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
{extends file=$layout}
|
||||
|
||||
{block name='content'}
|
||||
<section id="main">
|
||||
<div class="blog-header">
|
||||
<h1>Blog</h1>
|
||||
</div>
|
||||
{if isset($no_follow) AND $no_follow}
|
||||
{assign var='no_follow_text' value='rel="nofollow"'}
|
||||
{else}
|
||||
{assign var='no_follow_text' value=''}
|
||||
{/if}
|
||||
<div id="blog-listing" class="blogs-container box">
|
||||
{* {if isset($filter.type)}
|
||||
{if $filter.type=='tag'}
|
||||
<h1>{l s='Filter Blogs By Tag' mod='leoblog'} : <span>{$filter.tag|escape:'html':'UTF-8'}</span></h1>
|
||||
{elseif $filter.type=='author'}
|
||||
{if isset($filter.id_employee)}
|
||||
<h1>{l s='Filter Blogs By Blogger' mod='leoblog'} : <span>{$filter.employee->firstname|escape:'html':'UTF-8'}
|
||||
{$filter.employee->lastname|escape:'html':'UTF-8'}</span></h1>
|
||||
{else}
|
||||
<h1>{l s='Filter Blogs By Blogger' mod='leoblog'} : <span>{$filter.author_name|escape:'html':'UTF-8'}</span></h1>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
{else}
|
||||
<h1 class="blog-lastest-title">{l s='Lastest Blogs' mod='leoblog'}</h1>
|
||||
{if $url_rss != ''}
|
||||
<h4 class="blog-lastest-rss"><a href="{$url_rss|escape:'htmlall':'UTF-8'}">{l s='RSS' mod='leoblog'}</a></h4>
|
||||
{/if}
|
||||
{/if} *}
|
||||
|
||||
<div class="inner">
|
||||
{if count($leading_blogs)+count($secondary_blogs)>0}
|
||||
{if count($leading_blogs)}
|
||||
<div class="leading-blog">
|
||||
{foreach from=$leading_blogs item=blog name=leading_blog}
|
||||
|
||||
{if ($smarty.foreach.leading_blog.iteration%$listing_leading_column==1)&&$listing_leading_column>1}
|
||||
<div class="row">
|
||||
{/if}
|
||||
<div
|
||||
class="{if $listing_leading_column<=1}no{/if}col-lg-{floor(12/$listing_leading_column|escape:'html':'UTF-8')}">
|
||||
|
||||
{include file="$_listing_blog"}
|
||||
|
||||
</div>
|
||||
{if ($smarty.foreach.leading_blog.iteration%$listing_leading_column==0||$smarty.foreach.leading_blog.last)&&$listing_leading_column>1}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
{if count($secondary_blogs)}
|
||||
<div class="secondary-blog">
|
||||
<div class="blog-tiles">
|
||||
{foreach from=$secondary_blogs item=blog name=secondary_blog}
|
||||
<div class="blog-tile">
|
||||
{include file="$_listing_blog"}
|
||||
</div>
|
||||
{* {if ($smarty.foreach.secondary_blog.iteration%$listing_secondary_column==1)&&$listing_secondary_column>1}
|
||||
<div class="row">
|
||||
{/if}
|
||||
<div
|
||||
class="{if $listing_secondary_column<=1}no{/if}col-lg-{floor(12/$listing_secondary_column|escape:'html':'UTF-8')}">
|
||||
|
||||
{include file="$_listing_blog"}
|
||||
|
||||
</div>
|
||||
{if ($smarty.foreach.secondary_blog.iteration%$listing_secondary_column==0||$smarty.foreach.secondary_blog.last)&&$listing_secondary_column>1}
|
||||
</div>
|
||||
{/if} *}
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="top-pagination-content clearfix bottom-line">
|
||||
|
||||
{include file="$_pagination"}
|
||||
|
||||
</div>
|
||||
{else}
|
||||
<div class="alert alert-warning">{l s='Sorry, We are update data, please come back later!!!!' mod='leoblog'}</div>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{/block}
|
||||
94
modules/leoblog/views/templates/front/default/search.tpl
Normal file
94
modules/leoblog/views/templates/front/default/search.tpl
Normal file
@@ -0,0 +1,94 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
{extends file=$layout}
|
||||
|
||||
{block name='content'}
|
||||
<section id="main">
|
||||
{if isset($no_follow) AND $no_follow}
|
||||
{assign var='no_follow_text' value='rel="nofollow"'}
|
||||
{else}
|
||||
{assign var='no_follow_text' value=''}
|
||||
{/if}
|
||||
<div id="blog-listing" class="blogs-container box">
|
||||
{if isset($filter.type)}
|
||||
{if $filter.type=='tag'}
|
||||
<h1>{l s='Filter Blogs By Tag' mod='leoblog'} : <span>{$filter.tag|escape:'html':'UTF-8'}</span></h1>
|
||||
{elseif $filter.type=='author'}
|
||||
{if isset($filter.id_employee)}
|
||||
<h1>{l s='Filter Blogs By Blogger' mod='leoblog'} : <span>{$filter.employee->firstname|escape:'html':'UTF-8'} {$filter.employee->lastname|escape:'html':'UTF-8'}</span></h1>
|
||||
{else}
|
||||
<h1>{l s='Filter Blogs By Blogger' mod='leoblog'} : <span>{$filter.author_name|escape:'html':'UTF-8'}</span></h1>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
{else}
|
||||
{if $title_page != 'Best articles' && $title_page != 'Latest articles' && $title_page != 'Articles favorite'}
|
||||
<h1>{l s='Search Blogs For : ' mod='leoblog'} <span>{$title_page|escape:'html':'UTF-8'}</span> </h1>
|
||||
{else}
|
||||
<h1 class="blog-lastest-title">{$title_page|escape:'html':'UTF-8'}</h1>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<div class="inner">
|
||||
{if count($leading_blogs)+count($secondary_blogs)>0}
|
||||
{if count($leading_blogs)}
|
||||
<div class="leading-blog">
|
||||
{foreach from=$leading_blogs item=blog name=leading_blog}
|
||||
|
||||
{if ($smarty.foreach.leading_blog.iteration%$listing_leading_column==1)&&$listing_leading_column>1}
|
||||
<div class="row">
|
||||
{/if}
|
||||
<div class="{if $listing_leading_column<=1}no{/if}col-lg-{floor(12/$listing_leading_column|escape:'html':'UTF-8')}">
|
||||
|
||||
{include file="$_listing_blog"}
|
||||
|
||||
</div>
|
||||
{if ($smarty.foreach.leading_blog.iteration%$listing_leading_column==0||$smarty.foreach.leading_blog.last)&&$listing_leading_column>1}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
{if count($secondary_blogs)}
|
||||
<div class="secondary-blog">
|
||||
|
||||
{foreach from=$secondary_blogs item=blog name=secondary_blog}
|
||||
{if ($smarty.foreach.secondary_blog.iteration%$listing_secondary_column==1)&&$listing_secondary_column>1}
|
||||
<div class="row">
|
||||
{/if}
|
||||
<div class="{if $listing_secondary_column<=1}no{/if}col-lg-{floor(12/$listing_secondary_column|escape:'html':'UTF-8')}">
|
||||
|
||||
{include file="$_listing_blog"}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
{if ($smarty.foreach.secondary_blog.iteration%$listing_secondary_column==0||$smarty.foreach.secondary_blog.last)&&$listing_secondary_column>1}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
<div class="top-pagination-content clearfix bottom-line">
|
||||
|
||||
{include file="$_pagination"}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
{else}
|
||||
<div class="alert alert-warning">{l s='Sorry, We are update data, please come back later!!!!' mod='leoblog'}</div>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{/block}
|
||||
Reference in New Issue
Block a user