<div class="wpsc_description"><?php echo wpsc_the_product_description(); ?> </div> <?php do_action('wpsc_product_addons', wpsc_the_product_id()); ?> <?php if (wpsc_the_product_additional_description()) { ?> <div class="single_additional_description"> <?php $value = ''; $the_addl_desc = wpsc_the_product_additional_description(); if (is_serialized($the_addl_desc)) { $addl_descriptions = @unserialize($the_addl_desc); } else { $addl_descriptions = array('addl_desc', $the_addl_desc); } if (isset($addl_descriptions['addl_desc'])) { $value = $addl_descriptions['addl_desc']; } if (function_exists('wpsc_addl_desc_show')) { echo wpsc_addl_desc_show($addl_descriptions); } else { echo stripslashes(wpautop($the_addl_desc, $br = 1)); } ?> </div>
bloginfo('template_url'); ?> /images/twitter.svg"/> </a> </span> <span class="facebookShare" data-link="<?php echo $url; ?> " data-caption="<?php echo wpsc_the_product_title(); ?> by T H E U N S E E N" data-picture="<?php echo $placeholder; ?> " data-desc="<?php echo wpsc_the_product_additional_description(); ?> "> <img src="<?php bloginfo('template_url'); ?> /images/facebook.svg"/> </span> <span> <a href="https://pinterest.com/pin/create/button/?url=<?php echo urlencode($url); ?> &media=<?php echo urlencode($placeholder); ?> &description=<?php
function getSliderProducts($products) { $products = explode(",", $products); global $wpsc_query, $wpdb; foreach ($products as $product) { $image_width = get_option('single_view_image_width'); $image_height = get_option('single_view_image_height'); $options = get_option('site_basic_options'); $wpsc_query = new WPSC_Query(array('product_id' => $product)); while (wpsc_have_products()) { wpsc_the_product(); ?> <li class="feature-product"> <?php if (wpsc_the_product_thumbnail()) { ?> <div class="product-image"> <a rel="<?php echo str_replace(array(" ", '"', "'", '"', '''), array("_", "", "", "", ''), wpsc_the_product_title()); ?> " class="thickbox preview_link" href="<?php echo wpsc_the_product_image(); ?> "> <img class="product_image" id="product_image_<?php echo wpsc_the_product_id(); ?> " alt="<?php echo wpsc_the_product_title(); ?> " title="<?php echo wpsc_the_product_title(); ?> " src="<?php if ($options['themelayout'] == 'boxed') { bloginfo('template_url'); ?> /timthumb.php?src=<?php echo wpsc_the_product_image($image_width, $image_height); ?> &w=457<?php } else { echo wpsc_the_product_image($image_width, $image_height); } ?> " /> </a> </div> <?php } else { ?> <div class="product-image product-thumb item_no_image"> <a href="<?php echo wpsc_the_product_permalink(); ?> "> <span><?php _e('No Image Available', 'flexishop'); ?> </span> </a> </div> <?php } ?> <div class="product-content"> <h2 class="prodtitles"> <?php if (get_option('hide_name_link') == 1) { ?> <span><?php echo wpsc_the_product_title(); ?> </span> <?php } else { ?> <a class="wpsc_product_title" href="<?php echo wpsc_the_product_permalink(); ?> "><?php echo wpsc_the_product_title(); ?> </a> <?php } ?> </h2> <!-- <div class="wpsc_product_price"> <?php if (wpsc_product_is_donation()) { ?> <label for='donation_price_<?php echo wpsc_the_product_id(); ?> '><?php echo __('Donation', 'flexishop'); ?> :</label> <input type='text' id='donation_price_<?php echo wpsc_the_product_id(); ?> ' name='donation_price' value='<?php echo $wpsc_query->product['price']; ?> ' size='6' /> <br /> <?php } else { ?> <?php if (wpsc_product_on_special()) { ?> <span class='oldprice'><?php echo __('Price', 'flexishop'); ?> : <?php echo wpsc_product_normal_price(get_option('wpsc_hide_decimals')); ?> </span><br /> <?php } ?> <span id="product_price_<?php echo wpsc_the_product_id(); ?> " class="pricedisplay <?php if (wpsc_product_on_special()) { echo "sale-price"; } ?> "><?php if (wpsc_product_on_special()) { echo __("Sale Price: ", 'flexishop'); } echo wpsc_the_product_price(get_option('wpsc_hide_decimals')); ?> </span> <?php } ?> </div> --> <?php if (wpsc_the_product_additional_description()) { ?> <div class="description"> <?php $value = ''; $the_addl_desc = wpsc_the_product_additional_description(); if (is_serialized($the_addl_desc)) { $addl_descriptions = @unserialize($the_addl_desc); } else { $addl_descriptions = array('addl_desc', $the_addl_desc); } if (isset($addl_descriptions['addl_desc'])) { $value = $addl_descriptions['addl_desc']; } if (function_exists('wpsc_addl_desc_show')) { echo wpsc_addl_desc_show($addl_descriptions); } else { echo stripslashes(wpautop($the_addl_desc, $br = 1)); } ?> </div> <?php } ?> <a href="<?php echo wpsc_the_product_permalink(); ?> " class="buy-now"><?php _e('Buy Now', 'flexishop'); ?> </a> </div> </li> <?php } } }
function jbst_wpec_image_gallery() { $tabs = 0; if (wpsc_is_single_product()) { global $wp_query; global $post; $id = $post->ID; $tabs = 0; $featured_image = get_post_thumbnail_id($id); $args = array('post_type' => 'attachment', 'orderby' => 'menu_order', 'order' => 'ASC', 'post_mime_type' => 'image', 'post_status' => null, 'post_parent' => $post->ID, 'exclude' => $featured_image, 'numberposts' => -1); $attachments = get_posts($args); ?> <ul id="myTab" class="nav nav-tabs"> <?php if ($attachments) { ?> <li class="active"><a href="#addimages" data-toggle="tab"><?php _e('Additional Images', 'jamedo-bootstrap-start-theme'); ?> </a></li> <?php } ?> <?php if (wpsc_the_product_additional_description()) { ?> <li class="<?php if (!$attachments) { echo 'active'; } ?> "><a href="#proddesc" data-toggle="tab"><?php _e('Additional Description', 'jamedo-bootstrap-start-theme'); ?> </a></li> <?php } ?> <?php do_action('jbst_wpec_prod_add_tabs'); ?> </ul> <div id="myTabContent" class="tab-content"> <?php if ($attachments) { $tabs = 1; echo '<div class="tab-pane fade active in" id="addimages">'; echo '<div class="jbst-wpec-product-add-images"><h3>'; //_e( 'Additional Images', 'jamedo-bootstrap-start-theme' ); echo '</h3>'; $thumbwidth = 125; $thumbheight = 125; foreach ($attachments as $attachment) { $thumbnail = wp_get_attachment_url($attachment->ID, false); $image = jbst_resize($attachment->ID, '', $thumbwidth, $thumbheight, true); ?> <a rel="<?php echo wpsc_the_product_title(); ?> " class="preview_link thumbnail" href="<?php echo wp_get_attachment_url($attachment->ID, false); ?> "><img src="<?php echo $image['url']; ?> " alt="<?php the_title(); ?> " width="<?php echo $thumbwidth; ?> " height="<?php echo $thumbwidth; ?> " border="0" /></a> <?php } echo "<div class='clear'></div></div>"; ?> </div> <?php } ?> <?php if (wpsc_the_product_additional_description()) { $tabs = 1; ?> <div class="tab-pane fade<?php if (!$attachments) { echo ' active in'; } ?> " id="proddesc"> <?php echo wpsc_the_product_additional_description(); ?> </div> <?php } ?> <?php do_action('jbst_wpec_prod_add_tab_containers'); ?> </div><?php } if ($tabs == 0) { echo '<style>ul#myTab {display:none;}</style>'; } }
_e('This product has sold out.', 'wpsc'); ?> </p> <?php } ?> <?php } ?> <?php do_action('wpsc_product_form_fields_end'); ?> </form><!--close product_form--> <?php if (wpsc_the_product_additional_description()) { ?> <div class="single_additional_description"> <?php the_excerpt(); ?> </div><!--close single_additional_description--> <?php } ?> </div><!-- #shoppe-single-sidebar --> <?php if (get_option('hide_addtocart_button') == 0 && get_option('addtocart_or_buynow') == '1') { echo wpsc_buy_now_button(wpsc_the_product_id());