Plugin Directory

Changeset 366117

Timestamp:
03/29/2011 03:45:35 AM (13 years ago)
Author:
jghazally
Message:

allow Product Specials Widget to hide show thumbnails and description as per widget options: http://getshopped.org/forums/topic.php?id=18993

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-e-commerce/branches/3.8-development/wpsc-widgets/specials_widget.php

    r360964 r366117  
    163163                if(!in_array(wpsc_the_product_id(),$product_ids)):
    164164                $product_ids[] = wpsc_the_product_id();
     165
    165166                 if ( wpsc_the_product_thumbnail() ) : ?>
    166167                        <a rel="<?php echo str_replace(array(" ", '"',"'", '&quot;','&#039;'), array("_", "", "", "",''), wpsc_the_product_title()); ?>" href="<?php echo wpsc_the_product_permalink(); ?>">
     
    172173                            </a>
    173174                <?php endif; ?>
     175
    174176                <br />
    175177                <span id="special_product_price_<?php echo wpsc_the_product_id(); ?>">
     
    196198                <?php endif; ?>
    197199                </span><br />           
    198                 <strong><a class="wpsc_product_title" href="<?php echo wpsc_product_url( wpsc_the_product_id(), false ); ?>"><?php echo wpsc_the_product_title(); ?></a></strong><br /> <?php
     200                <strong><a class="wpsc_product_title" href="<?php echo wpsc_product_url( wpsc_the_product_id(), false ); ?>"><?php echo wpsc_the_product_title(); ?></a></strong><br />
     201               
     202                <?php if( $show_description ): ?>
     203                    <div class="wpsc-special-description">
     204                        <?php echo wpsc_the_product_description(); ?>
     205                    </div>                                 
     206                <?php endif; // close show description ?>
     207           
     208                <?php
    199209               
    200210               
Note: See TracChangeset for help on using the changeset viewer.