• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP wpsc_the_product_additional_description函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中wpsc_the_product_additional_description函数的典型用法代码示例。如果您正苦于以下问题:PHP wpsc_the_product_additional_description函数的具体用法?PHP wpsc_the_product_additional_description怎么用?PHP wpsc_the_product_additional_description使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了wpsc_the_product_additional_description函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: wpsc_the_product_description

						
						<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>
开发者ID:Jonathonbyrd,项目名称:wp-ecommerce,代码行数:30,代码来源:single_product.php


示例2: bloginfo

    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 
开发者ID:samtripp,项目名称:emporium-theme,代码行数:31,代码来源:wpsc-single_product.php


示例3: getSliderProducts


//.........这里部分代码省略.........
</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 
        }
    }
}
开发者ID:BGCX261,项目名称:zombie-craft-svn-to-git,代码行数:101,代码来源:functions.php


示例4: jbst_wpec_image_gallery

    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>
//.........这里部分代码省略.........
开发者ID:jwlayug,项目名称:jbst,代码行数:101,代码来源:template-ecommerce.php


示例5: _e

            _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());
开发者ID:ryanimel,项目名称:wpcandy-theme,代码行数:31,代码来源:wpsc-single_product.php



注:本文中的wpsc_the_product_additional_description函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP wpsc_the_product_description函数代码示例发布时间:2022-05-23
下一篇:
PHP wpsc_the_product函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap