Jump to content

URGENT help me please


Recommended Posts

Hello everyone, I explain the project that I would like to have. 

I would like to know if it feasible to do this here I have in mind to do 

(see attachment) 

Unfortunately, no one in the Italian forum I know the answer :)

post-531715-0-38225400-1397292741_thumb.jpg

Edited by DinoStore (see edit history)

Share this post


Link to post
Share on other sites

Give your topics concise but well explained titles!

Topics titles must be a short description of the message, so that the topic is more easily found while doing a search. Avoid terms like "URGENT""Help me", etc.

see forum rules: http://www.prestashop.com/forums/topic/256751-read-first-forum-rules-and-best-practices/

 

and describe a bit more your expectactions,

what theme, what prestashop version, and what you need. green color? borders? or what?

Share this post


Link to post
Share on other sites

but where? image you attached looks like top horizontal menu

it means nothing for us at the moment

this is why we need a little more explanation

 

what and where you want to add.

you mentioned that you want quantity field - that's ok, a bit more clear :)

 

but where?

Share this post


Link to post
Share on other sites
hi, thank you for your availability, but the sentences are not correct in the files and I can not change the pitch of my files could help me please? 

thanks in advance

 

 

 

 

product-list

 

 


<style type="text/css">

#codice {

font-family: Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif;

font-size: 16px;

font-style: italic;

font-weight: 600;

color: #F00;

position: fixed;

visibility: visible;

width: auto;

left: auto;

}

</style>

<link href="product_list.css" rel="stylesheet" type="text/css">

 

{*

* 2007-2014 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:


* 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-2014 PrestaShop SA

*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)

*  International Registered Trademark & Property of PrestaShop SA

*}

{if isset($products) && $products}

{*define numbers of product per line in other page for desktop*}

{if $page_name !='index' && $page_name !='product'}

{assign var='nbItemsPerLine' value=3}

{assign var='nbItemsPerLineTablet' value=2}

{assign var='nbItemsPerLineMobile' value=3}

{else}

{assign var='nbItemsPerLine' value=4}

{assign var='nbItemsPerLineTablet' value=3}

{assign var='nbItemsPerLineMobile' value=2}

{/if}

{*define numbers of product per line in other page for tablet*}

{assign var='nbLi' value=$products|@count}

{math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}

{math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet}

<!-- Products list -->{$product.reference}

<ul{if isset($id) && $id} id="{$id}"{/if} class="product_list grid row{if isset($class) && $class} {$class}{/if}{if isset($active) && $active == 1} active{/if}">

{foreach from=$products item=product name=products}

{math equation="(total%perLine)" total=$smarty.foreach.products.total perLine=$nbItemsPerLine assign=totModulo}

{math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet}

{math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineMobile assign=totModuloMobile}

{if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}

{if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if}

{if $totModuloMobile == 0}{assign var='totModuloMobile' value=$nbItemsPerLineMobile}{/if}

<li class="ajax_block_product{if $page_name == 'index' || $page_name == 'product'} col-xs-12 col-sm-4 col-md-3{else} col-xs-12 col-sm-6 col-md-4{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLine == 0} last-in-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLine == 1} first-in-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModulo)} last-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 0} last-item-of-tablet-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 1} first-item-of-tablet-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 0} last-item-of-mobile-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 1} first-item-of-mobile-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModuloMobile)} last-mobile-line{/if}">

<div class="product-container" itemscope itemtype="http://schema.org/Product">

<div class="left-block">

<div class="product-image-container">

<img class="replace-2x img-responsive" src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html':'UTF-8'}" alt="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} itemprop="image" />

 

{if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}

<div class="content_price" itemprop="offers" itemscope itemtype="http://schema.org/Offer">

{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}

<span itemprop="price" class="price product-price">

{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}

</span>

<meta itemprop="priceCurrency" content="{$priceDisplay}" />

{if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction}

<span class="old-price product-price">

{displayWtPrice p=$product.price_without_reduction}

</span>

{if $product.specific_prices.reduction_type == 'percentage'}

<span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span>

{/if}

{/if}

{/if}

 </div>

{/if}

{if isset($product.new) && $product.new == 1}

<span class="new-box">

<span class="new-label">{l s='New'}</span>

</span>

{/if}

{if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}

<span class="sale-box">

<span class="sale-label">{l s='Sale!'}</span>

</span>

{/if}

 </div>

</div>

<div class="right-block">

                

 <h5 itemprop="name">

{if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if}

 

{$product.name|truncate:80:'...'|escape:'html':'UTF-8'}

 </h5>

 <p>{hook h='displayProductListReviews' product=$product} </p>

                  <p class="product-desc" itemprop="description">

                        

                        {$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}</p>

                       <p class="availability" itemprop="description"><em><strong> {$product.reference} </strong></em></p>

                       

         

{if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}

<div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="content_price">

{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}

<span itemprop="price" class="price product-price">

{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}

</span>

<meta itemprop="priceCurrency" content="{$priceDisplay}" />

{if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction}

<span class="old-price product-price">

{displayWtPrice p=$product.price_without_reduction}

</span>

{if $product.specific_prices.reduction_type == 'percentage'}

<span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span>

{/if}

{/if}

{/if}

 </div>

{/if}

                  

<div class="button-container">

                    

{if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE}

{if ($product.allow_oosp || $product.quantity > 0)}

{if isset($static_token)}

<a class="button ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart'}" data-id-product="{$product.id_product|intval}">

<span>{l s='Add to cart'}</span>

</a>

                                      {else}

 

{/if}

                                <span class="magazzino">{$product.quantity}{l s=' : Disponibili'} </span> {else} <span class="button ajax_add_to_cart_button btn btn-default disabled">

<span>{l s='Add to cart'}</span>

</span>

                                

{/if}

{/if}</div>

{if isset($product.color_list)}

<div class="color-list-container">{$product.color_list} </div>

{/if}

<div class="product-flags">

{if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}

{if isset($product.online_only) && $product.online_only}

<span class="online_only">{l s='Online only'}</span>

{/if}

{/if}

{if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}

{elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}

<span class="discount">{l s='Reduced price!'}</span>

{/if}

</div>

{if (!$PS_CATALOG_MODE && $PS_STOCK_MANAGEMENT && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}

{if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}

<span itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="availability">

{if ($product.allow_oosp || $product.quantity > 0)}

<span class="available-now">

<link itemprop="availability" href="http://schema.org/InStock" />{l s='In Stock'}

</span>

{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}

<span class="available-dif">

<link itemprop="availability" href="http://schema.org/LimitedAvailability" />{l s='Product available with different options'}

</span>

{else}

<span class="out-of-stock">

<link itemprop="availability" href="http://schema.org/OutOfStock" />{l s='Out of stock'}

</span>

{/if}

</span>

{/if}

{/if}

</div>

{if $page_name != 'index'}

<div class="functional-buttons clearfix">

{hook h='displayProductListFunctionalButtons' product=$product}

{if isset($comparator_max_item) && $comparator_max_item}

 

{/if}

</div>

{/if}

</div><!-- .product-container> -->

           

</li>

{/foreach}

</ul>

{addJsDefL name=min_item}{l s='Please select at least one product' js=1}{/addJsDefL}

{addJsDefL name=max_item}{l s='You cannot add more than %d product(s) to the product comparison' sprintf=$comparator_max_item js=1}{/addJsDefL}

{addJsDef comparator_max_item=$comparator_max_item}

{addJsDef comparedProductsIds=$compared_products}

{/if}

 

 

 

 

 

global.js

 

 


/*

 

* 2007-2014 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:

 


 

* 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-2014 PrestaShop SA

 

*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)

 

*  International Registered Trademark & Property of PrestaShop SA

 

*/

 

//global variables

 

var responsiveflag = false;

 

 

 

$(document).ready(function(){

 

highdpiInit();

 

responsiveResize();

 

$(window).resize(responsiveResize);

 

if (navigator.userAgent.match(/Android/i))

 

{

 

var viewport = document.querySelector('meta[name=viewport]');

 

viewport.setAttribute('content', 'initial-scale=1.0,maximum-scale=1.0,user-scalable=0,width=device-width,height=device-height');

 

window.scrollTo(0, 1);

 

}

 

blockHover();

 

if (typeof quickView !== 'undefined' && quickView)

 

quick_view();

 

dropDown();

 

 

 

if (typeof page_name != 'undefined' && !in_array(page_name, ['index', 'product']))

 

{

 

bindGrid();

 

 

 

  $(document).on('change', '.selectProductSort', function(e){

 

if (typeof request != 'undefined' && request)

 

var requestSortProducts = request;

 

  var splitData = $(this).val().split(':');

 

if (typeof requestSortProducts != 'undefined' && requestSortProducts)

 

document.location.href = requestSortProducts + ((requestSortProducts.indexOf('?') < 0) ? '?' : '&') + 'orderby=' + splitData[0] + '&orderway=' + splitData[1];

 

    });

 

 

 

$(document).on('change', 'select[name=n]', function(){

 

$(this.form).submit();

 

});

 

 

 

$(document).on('change', 'select[name=manufacturer_list], select[name=supplier_list]', function(){

 

autoUrl($(this).attr('id'), '');

 

});

 

 

 

$(document).on('change', 'select[name=currency_payement]', function(){

 

setCurrency($(this).val());

 

});

 

}

 

 

 

$(document).on('click', '.back', function(e){

 

e.preventDefault();

 

history.back();

 

});

 

 

 

jQuery.curCSS = jQuery.css;

 

if (!!$.prototype.cluetip)

 

$('a.cluetip').cluetip({

 

local:true,

 

cursor: 'pointer',

 

dropShadow: false,

 

dropShadowSteps: 0,

 

showTitle: false,

 

tracking: true,

 

sticky: false,

 

mouseOutClose: true,

 

fx: {             

 

    open:       'fadeIn',

 

    openSpeed:  'fast'

 

}

 

}).css('opacity', 0.8);

 

 

 

if (!!$.prototype.fancybox)

 

$.extend($.fancybox.defaults.tpl, {

 

closeBtn : '<a title="' + FancyboxboxI18nClose + '" class="fancybox-item fancybox-close" href="javascript:;"></a>',

 

next     : '<a title="' + FancyboxI18nNext + '" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',

 

prev     : '<a title="' + FancyboxI18nPrev + '" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'

 

});

 

});

 

 

 

function highdpiInit()

 

{

 

if($('.replace-2x').css('font-size') == "1px")

 

{

 

var els = $("img.replace-2x").get();

 

for(var i = 0; i < els.length; i++)

 

{

 

src = els.src;

 

extension = src.substr( (src.lastIndexOf('.') +1) );

 

src = src.replace("." + extension, "2x." + extension);

 

 

 

var img = new Image();

 

img.src = src;

 

img.height != 0 ? els.src = src : els.src = els.src;

 

}

 

}

 

}

 

 

 

function responsiveResize()

 

{

 

if ($(document).width() <= 767 && responsiveflag == false)

 

{

 

accordion('enable');

 

   accordionFooter('enable');

 

responsiveflag = true;

 

}

 

else if ($(document).width() >= 768)

 

{

 

accordion('disable');

 

accordionFooter('disable');

 

   responsiveflag = false;

 

}

 

}

 

 

 

function blockHover(status)

 

{

 

$(document).off('mouseenter').on('mouseenter', '.product_list.grid li.ajax_block_product .product-container', function(e){

 

 

 

if ('ontouchstart' in document.documentElement)

 

return;

 

if ($('body').find('.container').width() == 1170)

 

{

 

var pcHeight = $(this).parent().outerHeight();

 

var pcPHeight = $(this).parent().find('.button-container').outerHeight() + $(this).parent().find('.comments_note').outerHeight() + $(this).parent().find('.functional-buttons').outerHeight();

 

$(this).parent().addClass('hovered');

 

$(this).parent().css('height', pcHeight + pcPHeight).css('margin-bottom', pcPHeight * (-1));

 

}

 

});

 

 

 

$(document).off('mouseleave').on('mouseleave', '.product_list.grid li.ajax_block_product .product-container', function(e){

 

if ($('body').find('.container').width() == 1170)

 

$(this).parent().removeClass('hovered').removeAttr('style');

 

});

 

}

 

 

 

function quick_view()

 

{

 

$(document).on('click', '.quick-view:visible', function(e) 

 

{

 

e.preventDefault();

 

var url = this.rel;

 

if (url.indexOf('?') != -1)

 

url += '&';

 

else

 

url += '?';

 

 

 

if (!!$.prototype.fancybox)

 

$.fancybox({

 

'padding':  0,

 

'width':    1087,

 

'height':   610,

 

'type':     'iframe',

 

'href':     url + 'content_only=1'

 

});

 

});

 

}

 

 

 

function bindGrid()

 

{

 

var view = $.totalStorage('display');

 

 

 

if (view && view != 'grid')

 

display(view);

 

else

 

$('.display').find('li#grid').addClass('selected');

 

 

 

$(document).on('click', '#grid', function(e){

 

e.preventDefault();

 

display('grid');

 

});

 

 

 

$(document).on('click', '#list', function(e){

 

e.preventDefault();

 

display('list');

 

});

 

}

 

 

 

function display(view)

 

{

 

if (view == 'list')

 

{

 

$('ul.product_list').removeClass('grid').addClass('list row');

 

$('.product_list > li').removeClass('col-xs-12 col-sm-6 col-md-4').addClass('col-xs-12');

 

$('.product_list > li').each(function(index, element) {

 

html = '';

 

html = '<div class="product-container"><div class="row">';

 

html += '<div class="left-block col-xs-4 col-xs-5 col-md-4">' + $(element).find('.left-block').html() + '</div>';

 

html += '<div class="center-block col-xs-4 col-xs-7 col-md-4">';

 

html += '<div class="product-flags">'+ $(element).find('.product-flags').html() + '</div>';

 

html += '<h5 itemprop="name">'+ $(element).find('h5').html() + '</h5>';

 

var rating = $(element).find('.comments_note').html(); // check : rating

 

if (rating != null) { 

 

html += '<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating" class="comments_note">'+ rating + '</div>';

 

}

 

html += '<p class="product-desc">'+ $(element).find('.product-desc').html() + '</p>';

 

var colorList = $(element).find('.color-list-container').html();

 

if (colorList != null) {

 

html += '<div class="color-list-container">'+ colorList +'</div>';

 

}

 

var availability = $(element).find('.availability').html(); // check : catalog mode is enabled

 

if (availability != null) {

 

html += '<span class="availability">'+ availability +'</span>';

 

}

 

html += '</div>';

 

html += '<div class="right-block col-xs-4 col-xs-12 col-md-4"><div class="right-block-content row">';

 

var price = $(element).find('.content_price').html();       // check : catalog mode is enabled

 

if (price != null) { 

 

html += '<div class="content_price col-xs-5 col-md-12">'+ price + '</div>';

 

}

 

html += '<div class="button-container col-xs-7 col-md-12">'+ $(element).find('.button-container').html() +'</div>';

 

html += '<div class="functional-buttons clearfix col-sm-12">' + $(element).find('.functional-buttons').html() + '</div>';

 

html += '</div>';

 

html += '</div></div>';

 

$(element).html(html);

 

});

 

$('.display').find('li#list').addClass('selected');

 

$('.display').find('li#grid').removeAttr('class');

 

$.totalStorage('display', 'list');

 

}

 

else 

 

{

 

$('ul.product_list').removeClass('list').addClass('grid row');

 

$('.product_list > li').removeClass('col-xs-12').addClass('col-xs-12 col-sm-6 col-md-4');

 

$('.product_list > li').each(function(index, element) {

 

html = '';

 

html += '<div class="product-container">';

 

html += '<div class="left-block">' + $(element).find('.left-block').html() + '</div>';

 

html += '<div class="right-block">';

 

html += '<div class="product-flags">'+ $(element).find('.product-flags').html() + '</div>';

 

html += '<h5 itemprop="name">'+ $(element).find('h5').html() + '</h5>';

 

var rating = $(element).find('.comments_note').html(); // check : rating

 

if (rating != null) { 

 

html += '<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating" class="comments_note">'+ rating + '</div>';

 

}

 

html += '<p itemprop="description" class="product-desc">'+ $(element).find('.product-desc').html() + '</p>';

 

var price = $(element).find('.content_price').html(); // check : catalog mode is enabled

 

if (price != null) { 

 

html += '<div class="content_price">'+ price + '</div>';

 

}

 

html += '<div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="button-container">'+ $(element).find('.button-container').html() +'</div>';

 

var colorList = $(element).find('.color-list-container').html();

 

if (colorList != null) {

 

html += '<div class="color-list-container">'+ colorList +'</div>';

 

}

 

var availability = $(element).find('.availability').html(); // check : catalog mode is enabled

 

if (availability != null) {

 

html += '<span class="availability">'+ availability +'</span>';

 

}

 

html += '</div>';

 

html += '<div class="functional-buttons clearfix">' + $(element).find('.functional-buttons').html() + '</div>';

 

html += '</div>';

 

$(element).html(html);

 

});

 

$('.display').find('li#grid').addClass('selected');

 

$('.display').find('li#list').removeAttr('class');

 

$.totalStorage('display', 'grid');

 

}

 

}

 

 

 

function dropDown() 

 

{

 

elementClick = '#header .current';

 

elementSlide =  'ul.toogle_content';       

 

activeClass = 'active';

 

 

 

$(elementClick).on('click', function(e){

 

e.stopPropagation();

 

var subUl = $(this).next(elementSlide);

 

if(subUl.is(':hidden'))

 

{

 

subUl.slideDown();

 

$(this).addClass(activeClass);

 

}

 

else

 

{

 

subUl.slideUp();

 

$(this).removeClass(activeClass);

 

}

 

$(elementClick).not(this).next(elementSlide).slideUp();

 

$(elementClick).not(this).removeClass(activeClass);

 

e.preventDefault();

 

});

 

 

 

$(elementSlide).on('click', function(e){

 

e.stopPropagation();

 

});

 

 

 

$(document).on('click', function(e){

 

e.stopPropagation();

 

var elementHide = $(elementClick).next(elementSlide);

 

$(elementHide).slideUp();

 

$(elementClick).removeClass('active');

 

});

 

}

 

 

 

function accordionFooter(status)

 

{

 

if(status == 'enable')

 

{

 

$('#footer .footer-block h4').on('click', function(){

 

$(this).toggleClass('active').parent().find('.toggle-footer').stop().slideToggle('medium');

 

})

 

$('#footer').addClass('accordion').find('.toggle-footer').slideUp('fast');

 

}

 

else

 

{

 

$('.footer-block h4').removeClass('active').off().parent().find('.toggle-footer').removeAttr('style').slideDown('fast');

 

$('#footer').removeClass('accordion');

 

}

 

}

 

 

 

function accordion(status)

 

{

 

leftColumnBlocks = $('#left_column');

 

if(status == 'enable')

 

{

 

$('#right_column .block:not(#layered_block_left) .title_block, #left_column .block:not(#layered_block_left) .title_block, #left_column #newsletter_block_left h4').on('click', function(){

 

$(this).toggleClass('active').parent().find('.block_content').stop().slideToggle('medium');

 

})

 

$('#right_column, #left_column').addClass('accordion').find('.block:not(#layered_block_left) .block_content').slideUp('fast');

 

}

 

else

 

{

 

$('#right_column .block:not(#layered_block_left) .title_block, #left_column .block:not(#layered_block_left) .title_block, #left_column #newsletter_block_left h4').removeClass('active').off().parent().find('.block_content').removeAttr('style').slideDown('fast');

 

$('#left_column, #right_column').removeClass('accordion');

 

}

 

}


Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More