本文整理汇总了PHP中wpsc_category_image函数的典型用法代码示例。如果您正苦于以下问题:PHP wpsc_category_image函数的具体用法?PHP wpsc_category_image怎么用?PHP wpsc_category_image使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wpsc_category_image函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: wpsc_print_subcategory
<?php wpsc_print_subcategory("<ul>", "</ul>"); ?>
</li>
<?php wpsc_end_category_query(); ?>
</ul>
<?php endif; ?>
<?php endif; ?>
<?php if(wpsc_display_products()): ?>
<?php if(wpsc_is_in_category()) : ?>
<div class='wpsc_category_details'>
<?php if(get_option('show_category_thumbnails') && wpsc_category_image()) : ?>
<img src='<?php echo wpsc_category_image(); ?>' alt='<?php echo wpsc_category_name(); ?>' title='<?php echo wpsc_category_name(); ?>' />
<?php endif; ?>
<?php if(get_option('wpsc_category_description') && wpsc_category_description()) : ?>
<?php echo wpsc_category_description(); ?>
<?php endif; ?>
</div>
<?php endif; ?>
<!-- Start Pagination -->
<?php if ( ( get_option( 'use_pagination' ) == 1 && ( get_option( 'wpsc_page_number_position' ) == 1 || get_option( 'wpsc_page_number_position' ) == 3 ) ) ) : ?>
<div class="wpsc_page_numbers">
<?php if ( wpsc_has_pages() ) : ?>
<div class="pagination-products-showing">Showing <?php echo wpsc_showing_products(); ?> of <?php echo wpsc_total_product_count(); ?> products</div>
<div class="pagination-pages"><?php echo wpsc_first_products_link( '« First', true ); ?> <?php echo wpsc_previous_products_link( '« Previous', true ); ?> <?php echo wpsc_pagination( 10 ); ?> <?php echo wpsc_next_products_link( 'Next »', true ); ?> <?php echo wpsc_last_products_link( 'Last »', true ); ?></div>
开发者ID:nerdfiles,项目名称:sideshowtramps.com,代码行数:30,代码来源:list_view.php
示例2: wpsc_category_image
// */
?>
<?php
if (wpsc_display_products()) {
?>
<?php
if (wpsc_is_in_category()) {
?>
<div class="wpsc_category_details">
<?php
if (wpsc_show_category_thumbnails()) {
?>
<img src="<?php
echo wpsc_category_image();
?>
" alt="<?php
echo wpsc_category_name();
?>
" />
<?php
}
?>
<?php
if (wpsc_show_category_description() && wpsc_category_description()) {
?>
<?php
echo wpsc_category_description();
?>
开发者ID:B1aZer,项目名称:yaltatoys_wp,代码行数:31,代码来源:wpsc-products_page.php
示例3: wpsc_admin_category_forms_edit
function wpsc_admin_category_forms_edit()
{
global $wpdb;
$category_value_count = 0;
$category_name = '';
$category = array();
$category_id = absint($_REQUEST["tag_ID"]);
$category = get_term($category_id, 'wpsc_product_category', ARRAY_A);
$category['nice-name'] = wpsc_get_categorymeta($category['term_id'], 'nice-name');
$category['description'] = wpsc_get_categorymeta($category['term_id'], 'description');
$category['image'] = wpsc_get_categorymeta($category['term_id'], 'image');
$category['fee'] = wpsc_get_categorymeta($category['term_id'], 'fee');
$category['active'] = wpsc_get_categorymeta($category['term_id'], 'active');
$category['order'] = wpsc_get_categorymeta($category['term_id'], 'order');
$category['display_type'] = wpsc_get_categorymeta($category['term_id'], 'display_type');
$category['image_height'] = wpsc_get_categorymeta($category['term_id'], 'image_height');
$category['image_width'] = wpsc_get_categorymeta($category['term_id'], 'image_width');
$category['use_additional_form_set'] = wpsc_get_categorymeta($category['term_id'], 'use_additional_form_set');
?>
<tr>
<td colspan="2">
<h3><?php
esc_html_e('Advanced Store Settings', 'wpsc');
?>
</h3>
<h4><?php
esc_html_e('Shortcodes and Template Tags', 'wpsc');
?>
</h4>
<p class='description'><?php
esc_html_e('These settings override the general presentation settings found in Settings > Store > Presentation.', 'wpsc');
?>
</p>
</td>
</tr>
<tr class="form-field">
<th scope="row" valign="top">
<label for="display_type"><?php
esc_html_e('Catalog View', 'wpsc');
?>
</label>
</th>
<td>
<?php
$display_type = isset($category['display_type']) ? $category['display_type'] : '';
?>
<select name='display_type'>
<option value='default'<?php
selected($display_type, 'default');
?>
><?php
esc_html_e('Default View', 'wpsc');
?>
</option>
<option value='list'<?php
disabled(_wpsc_is_display_type_supported('list'), false);
selected($display_type, 'list');
?>
><?php
esc_html_e('List View', 'wpsc');
?>
</option>
<option value='grid' <?php
disabled(_wpsc_is_display_type_supported('grid'), false);
selected($display_type, 'grid');
?>
><?php
esc_html_e('Grid View', 'wpsc');
?>
</option>
</select><br />
</td>
</tr>
<tr class="form-field">
<th scope="row" valign="top">
<label for="image"><?php
esc_html_e('Category Image', 'wpsc');
?>
</label>
</th>
<td>
<?php
$category_image = wpsc_category_image($category['term_id']);
if ($category_image) {
echo '<p><img src=' . esc_url($category_image) . ' alt="' . esc_attr($category['name']) . '" title="' . esc_attr($category['name']) . '" class="wpsc_category_image" /></p>';
}
?>
<input type='file' name='image' value='' /><br />
<label><input type='checkbox' name='deleteimage' class="wpsc_cat_box" value='1' /><?php
esc_html_e('Delete Image', 'wpsc');
?>
</label><br/>
<span class="description"><?php
esc_html_e('You can set an image for the category here. If one exists, check the box to delete.', 'wpsc');
?>
</span>
</td>
//.........这里部分代码省略.........
开发者ID:RJHanson292,项目名称:WP-e-Commerce,代码行数:101,代码来源:save-data.functions.php
示例4: wpsc_show_category_thumbnails
/**
* wpsc_show_category_thumbnails function
* @return bool - whether to show category thumbnails or not
*/
function wpsc_show_category_thumbnails()
{
if (get_option('show_category_thumbnails') && wpsc_category_image()) {
return true;
} else {
return false;
}
}
开发者ID:arturo-mayorga,项目名称:am_com,代码行数:12,代码来源:product-template.php
示例5: foreach
?>
<div class="slider-mask<?php
if (count($category_data) > 5) {
echo ' slideable';
}
?>
">
<div class="front-category-slider">
<?php
$i = 0;
foreach ($category_data as $category_row) {
$name = $category_row['name'];
$id = $category_row['id'];
$description = $category_row['description'];
$url = wpsc_category_url($category_row['id']);
$image = wpsc_category_image($id);
?>
<?php
if ($i % 5 == 0) {
echo '<div class="full-width"><ul class="front-category-list">';
}
?>
<li <?php
if ($i % 5 == 4) {
echo 'class="col-right"';
}
?>
>
<div class="padding">
<a href="<?php
echo $url;
开发者ID:BGCX261,项目名称:zombie-craft-svn-to-git,代码行数:31,代码来源:frontcategories.php
注:本文中的wpsc_category_image函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论