iFeedback Custom Home Design
{* Change code of home.tpl to *}
{*
* We offer the best and most useful modules PrestaShop and modifications for your online store.
*
* We are experts and professionals in PrestaShop
*
* @category PrestaShop
* @category Module
* @author PresTeamShop.com <support@presteamshop.com>
* @copyright 2011-2014 PresTeamShop
* @license see file: LICENSE.txt
*}
<div id="home_ifeedback" class="block">
<div id="div_content" class="block_content ifeedback_block_content">
<div id="punctuationStar">
<span>{$total_rating_value}</span>
</div>
<div class="comment-detail-si">
{$comment|truncate:105:'...'|strip_tags:'UTF-8'|escape:'htmlall':'UTF-8'}
</div>
<div class="comment-detail-customer">
{$name_customer|truncate:13:'***':true|escape:'htmlall':'UTF-8'}
</div>
<div class="comment-detail-options">
<span class="comment-detail-button">
{if $is_ps_15}
<a href="{$link->getModuleLink('ifeedback', 'rating')}">{l s='Ver más opiniones' mod='ifeedback'}</a>
{else}
<a href="{$ifeedback_dir}actions.php?action=viewRating&token={$IFB_STATIC_TOKEN}">{l s='Ver más opiniones' mod='ifeedback'}</a>
{/if}
</span>
<span class="comment-detail-button">
{if $ifb_allow_guest || $is_logged}
<input type="button" name="btnDisplayComment" id="btnDisplayComment" class="ifeedback-button button" value="{l s='Escribir una opinión' mod='ifeedback'}"/>
{else}
<span>
{l s='You must be registered to place a rating and comment.' mod='ifeedback'}
</span>
{/if}
</span>
</div>
</div>
<div class="clear clearfix"></div>
</div>
/* ADD to de style.css bottom */
/*Home hook new design*/
#home_ifeedback {
margin-top: 10px !important;
width: 100%;
background-color: white;
border-radius: 10px;
box-shadow: 0px 0px 3px #DDD;
padding: 10px 20px;
position:relative;
box-sizing: border-box;
}
#home_ifeedback .comment-detail-si{
padding: 20px 0;
text-align:center;
font-size: 20px !important;
font-style: italic;
color: #1A1A1A;
}
#home_ifeedback div.comment-detail-si:before, #home_ifeedback div.comment-detail-si:after {
content: '"';
}
#home_ifeedback .comment-detail-customer{
text-align:right;
font-size: 16px;
padding-right: 20px;
}
#home_ifeedback .comment-detail-button{
background-color:#EEEEEE;
display:inline-block;
padding: 5px 15px;
border-radius: 15px;
margin-top: 10px;
}
#home_ifeedback .comment-detail-button:hover{
background: -webkit-linear-gradient(top, #FFEB9D, #FF9A27); /* For Safari 5.1 to 6.0 */
background: -o-linear-gradient(top, #FFEB9D, #FF9A27); /* For Opera 11.1 to 12.0 */
background: -moz-linear-gradient(top, #FFEB9D, #FF9A27); /* For Fx 3.6 to 15 */
background: linear-gradient(top, #FFEB9D, #FF9A27); /* Standard syntax (must be last) */
}
#home_ifeedback #btnDisplayComment {
box-shadow: none;
float:none;
text-align: center;
text-decoration: none !important;
padding: 0px !important;
text-transform: none;
font-size: 12px !important;
}
//in hookHome() line 813 add:
'name_customer' => $feed['name_customer'],