[+] FO : New Responsive, Bootstrap template
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
{*
|
||||
* 2007-2013 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-2013 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$('a[href=#idTab5]').click(function(){
|
||||
$('*[id^="idTab"]').addClass('block_hidden_only_for_screen');
|
||||
$('div#idTab5').removeClass('block_hidden_only_for_screen');
|
||||
|
||||
$('ul#more_info_tabs a[href^="#idTab"]').removeClass('selected');
|
||||
$('a[href="#idTab5"]').addClass('selected');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
{if $logged == 1 || $nbComments != 0}
|
||||
</div><!-- Close the OosHook -->
|
||||
<div id="product_comments_block_extra">
|
||||
{if $nbComments != 0}
|
||||
<div class="comments_note clearfix">
|
||||
<span>{l s='Rating' mod='productcomments'} </span>
|
||||
<div class="star_content clearfix">
|
||||
{section name="i" start=0 loop=5 step=1}
|
||||
{if $averageTotal le $smarty.section.i.index}
|
||||
<div class="star"></div>
|
||||
{else}
|
||||
<div class="star star_on"></div>
|
||||
{/if}
|
||||
{/section}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<ul class="comments_advices">
|
||||
{if $nbComments != 0}
|
||||
<li><a href="#idTab5" class="reviews">{l s='Read reviews' mod='productcomments'} ({$nbComments})</a></li>
|
||||
{/if}
|
||||
{if ($too_early == false AND ($logged OR $allow_guests))}
|
||||
<li><a class="open-comment-form" href="#new_comment_form">{l s='Write a review' mod='productcomments'}</a></li>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
<div><!-- new div for the next content if any -->
|
||||
{/if}
|
||||
<!-- /Module ProductComments -->
|
||||
@@ -0,0 +1,171 @@
|
||||
{*
|
||||
* 2007-2013 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 newersend_friend_form_content
|
||||
* 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-2013 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<script type="text/javascript">
|
||||
var productcomments_controller_url = '{$productcomments_controller_url}';
|
||||
var confirm_report_message = '{l s='Are you sure you want report this comment?' mod='productcomments' js=1}';
|
||||
var secure_key = '{$secure_key}';
|
||||
var productcomments_url_rewrite = '{$productcomments_url_rewriting_activated}';
|
||||
var productcomment_added = '{l s='Your comment has been added!' mod='productcomments' js=1}';
|
||||
var productcomment_added_moderation = '{l s='Your comment has been added and will be available once approved by a moderator' mod='productcomments' js=1}';
|
||||
var productcomment_title = '{l s='New comment' mod='productcomments' js=1}';
|
||||
var productcomment_ok = '{l s='OK' mod='productcomments' js=1}';
|
||||
var moderation_active = {$moderation_active};
|
||||
</script>
|
||||
|
||||
<div id="idTab5">
|
||||
<div id="product_comments_block_tab">
|
||||
{if $comments}
|
||||
{foreach from=$comments item=comment}
|
||||
{if $comment.content}
|
||||
<div class="comment row">
|
||||
|
||||
<div class="comment_author col-sm-2">
|
||||
<span>{l s='Grade' mod='productcomments'} </span>
|
||||
<div class="star_content clearfix">
|
||||
{section name="i" start=0 loop=5 step=1}
|
||||
{if $comment.grade le $smarty.section.i.index}
|
||||
<div class="star"></div>
|
||||
{else}
|
||||
<div class="star star_on"></div>
|
||||
{/if}
|
||||
{/section}
|
||||
</div>
|
||||
<div class="comment_author_infos">
|
||||
<strong>{$comment.customer_name|escape:'html':'UTF-8'}</strong>
|
||||
<em>{dateFormat date=$comment.date_add|escape:'html':'UTF-8' full=0}</em>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="comment_details col-sm-10">
|
||||
<p class="title_block"><strong>{$comment.title}</strong></p>
|
||||
<p>{$comment.content|escape:'html':'UTF-8'|nl2br}</p>
|
||||
<ul>
|
||||
{if $comment.total_advice > 0}
|
||||
<li>{l s='%1$d out of %2$d people found this review useful.' sprintf=[$comment.total_useful,$comment.total_advice] mod='productcomments'}</li>
|
||||
{/if}
|
||||
{if $logged == 1}
|
||||
{if !$comment.customer_advice}
|
||||
<li>{l s='Was this comment useful to you?' mod='productcomments'}
|
||||
<button class="usefulness_btn btn btn-default button button-small" data-is-usefull="1" data-id-product-comment="{$comment.id_product_comment}"><span>{l s='Yes' mod='productcomments'}</span></button>
|
||||
<button class="usefulness_btn btn btn-default button button-small" data-is-usefull="0" data-id-product-comment="{$comment.id_product_comment}"><span>{l s='No' mod='productcomments'}</span></button></li>
|
||||
{/if}
|
||||
{if !$comment.customer_report}
|
||||
<li><span class="report_btn" data-id-product-comment="{$comment.id_product_comment}">{l s='Report abuse' mod='productcomments'}</span></li>
|
||||
{/if}
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if (!$too_early AND ($logged OR $allow_guests))}
|
||||
<p class="align_center">
|
||||
<a id="new_comment_tab_btn" class="btn btn-default button button-small open-comment-form" href="#new_comment_form"><span>{l s='Write your review' mod='productcomments'} !</span></a>
|
||||
</p>
|
||||
{/if}
|
||||
{else}
|
||||
{if (!$too_early AND ($logged OR $allow_guests))}
|
||||
<p class="align_center">
|
||||
<a id="new_comment_tab_btn" class="btn btn-default button button-small open-comment-form" href="#new_comment_form"><span>{l s='Be the first to write your review' mod='productcomments'} !</span></a>
|
||||
</p>
|
||||
{else}
|
||||
<p class="align_center">{l s='No customer comments for the moment.' mod='productcomments'}</p>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Fancybox -->
|
||||
<div style="display: none;">
|
||||
<div id="new_comment_form">
|
||||
<form id="id_new_comment_form" action="#">
|
||||
<h2 class="page-subheading">{l s='Write a review' mod='productcomments'}</h2>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="product clearfix col-xs-12 col-sm-6">
|
||||
<img src="{$link->getImageLink($product->link_rewrite, $productcomment_cover, 'home_default')|escape:'html'}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product->name|escape:html:'UTF-8'}" />
|
||||
<div class="product_desc">
|
||||
<p class="product_name"><strong>{$product->name}</strong></p>
|
||||
{$product->description_short}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="new_comment_form_content col-xs-12 col-sm-6">
|
||||
<h2>{l s='Write a review' mod='productcomments'}</h2>
|
||||
|
||||
<div id="new_comment_form_error" class="error" style="display: none; padding: 15px 25px">
|
||||
<ul></ul>
|
||||
</div>
|
||||
|
||||
{if $criterions|@count > 0}
|
||||
<ul id="criterions_list">
|
||||
{foreach from=$criterions item='criterion'}
|
||||
<li>
|
||||
<label>{$criterion.name|escape:'html':'UTF-8'}:</label>
|
||||
<div class="star_content">
|
||||
<input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="1" />
|
||||
<input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="2" />
|
||||
<input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="3" checked="checked" />
|
||||
<input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="4" />
|
||||
<input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="5" />
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
|
||||
<label for="comment_title">{l s='Title' mod='productcomments'}: <sup class="required">*</sup></label>
|
||||
<input id="comment_title" name="title" type="text" value=""/>
|
||||
|
||||
<label for="content">{l s='Comment' mod='productcomments'}: <sup class="required">*</sup></label>
|
||||
<textarea id="content" name="content"></textarea>
|
||||
|
||||
{if $allow_guests == true && $logged == 0}
|
||||
<label>{l s='Your name' mod='productcomments'}: <sup class="required">*</sup></label>
|
||||
<input id="commentCustomerName" name="customer_name" type="text" value=""/>
|
||||
{/if}
|
||||
|
||||
<div id="new_comment_form_footer">
|
||||
<input id="id_product_comment_send" name="id_product" type="hidden" value='{$id_product_comment_form}' />
|
||||
<p class="fl required"><sup>*</sup> {l s='Required fields' mod='productcomments'}</p>
|
||||
<p class="fr">
|
||||
<button id="submitNewMessage" name="submitMessage" type="submit" class="btn button button-small"><span>{l s='Send' mod='productcomments'}</span></button>
|
||||
{l s='or' mod='productcomments'} <a href="#" onclick="$.fancybox.close();" >{l s='Cancel' mod='productcomments'}</a>
|
||||
</p>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form><!-- /end new_comment_form_content -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- End fancybox -->
|
||||
@@ -0,0 +1,26 @@
|
||||
{*
|
||||
* 2007-2013 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-2013 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<h3 id="#idTab5" class="idTabHrefShort page-product-heading">{l s='Reviews' mod='productcomments'}</h3>
|
||||
Reference in New Issue
Block a user