本文整理汇总了PHP中_data_carousel函数的典型用法代码示例。如果您正苦于以下问题:PHP _data_carousel函数的具体用法?PHP _data_carousel怎么用?PHP _data_carousel使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_data_carousel函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: widget
public function widget($args, $instance)
{
echo $args['before_widget'];
$title = isset($instance['title']) ? $instance['title'] : '';
$number = isset($instance['number']) ? $instance['number'] : 3;
$orderby = isset($instance['orderby']) ? $instance['orderby'] : 'date';
$order = isset($instance['order']) ? $instance['order'] : 'desc';
$data_carousel = array("autoplay" => $instance['autoplay'], "slidespeed" => $instance['slidespeed'], "theme" => 'style-navigation-bottom', 'nav' => false, 'loop' => $instance['loop'], 'items' => 1);
if ($title != "") {
echo $args['before_title'];
echo $title;
echo $args['after_title'];
}
$pages = new WP_Query(array('post_type' => 'testimonial', 'numbe' => $number));
if ($pages->have_posts()) {
?>
<!-- Testimonials -->
<div class="block left-module container-testimonials">
<div class="block_content">
<ul class="testimonials owl-carousel" <?php
echo _data_carousel($data_carousel);
?>
>
<?php
while ($pages->have_posts()) {
$pages->the_post();
?>
<li>
<div class="client-mane"><a target="_blank" href="<?php
the_permalink();
?>
"><?php
the_title();
?>
</a></div>
<div class="client-avarta">
<?php
the_post_thumbnail('110x110');
?>
</div>
<div class="testimonial">
<?php
the_content();
?>
</div>
</li>
<?php
}
?>
</ul>
</div>
</div>
<!-- ./Testimonials -->
<?php
}
wp_reset_query();
wp_reset_postdata();
echo $args['after_widget'];
}
示例2: content
protected function content($atts, $content = null)
{
$atts = function_exists('vc_map_get_attributes') ? vc_map_get_attributes('lastest_deals_sidebar', $atts) : $atts;
$atts = shortcode_atts(array('title' => '', 'taxonomy' => '', 'number' => 12, 'autoplay' => "false", 'navigation' => "false", 'slidespeed' => 250, 'loop' => "false", 'items' => 1, 'css_animation' => '', 'el_class' => '', 'css' => ''), $atts);
extract($atts);
$elementClass = array('base' => apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'latest-deals ', $this->settings['base'], $atts), 'extra' => $this->getExtraClass($el_class), 'css_animation' => $this->getCSSAnimation($css_animation), 'shortcode_custom' => vc_shortcode_custom_css_class($css, ' '));
$elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array(' ', ''), implode(' ', $elementClass));
$elementClass = apply_filters('kt_lastest_deals_sidebar_class_container', $elementClass);
// Get products on sale
$product_ids_on_sale = wc_get_product_ids_on_sale();
$meta_query = WC()->query->get_meta_query();
$args = array('posts_per_page' => $number, 'post_type' => 'product', 'orderby' => 'meta_value_num', 'meta_key' => '_sale_price_dates_to', 'order' => 'DESC', 'no_found_rows' => 1, 'post_status' => 'publish', 'meta_query' => $meta_query, 'post__in' => array_merge(array(0), $product_ids_on_sale));
if ($taxonomy) {
$args['tax_query'] = array(array('taxonomy' => 'product_cat', 'field' => 'id', 'terms' => explode(",", $taxonomy)));
}
$q = apply_filters('woocommerce_shortcode_products_query', $args, $atts);
$query = new WP_Query($q);
global $woocommerce_loop;
ob_start();
if ($query->have_posts()) {
$data_carousel = array("autoplay" => $autoplay, "navigation" => $navigation, "slidespeed" => $slidespeed, "autoheight" => "false", "loop" => $loop, "dots" => "false", 'nav' => "true", "autoplayTimeout" => 1000, "autoplayHoverPause" => "true", 'items' => 1);
add_filter("woocommerce_get_price_html_from_to", "kt_get_price_html_from_to", 10, 4);
add_filter('woocommerce_sale_price_html', 'woocommerce_custom_sales_price', 10, 2);
?>
<div class="<?php
echo esc_attr($elementClass);
?>
">
<h2 class="latest-deal-title"><?php
echo esc_html($title);
?>
</h2>
<div class="latest-deal-content">
<ul class="product-list owl-carousel" <?php
echo _data_carousel($data_carousel);
?>
>
<?php
add_filter("woocommerce_get_price_html_from_to", "kt_get_price_html_from_to", 10, 4);
while ($query->have_posts()) {
$query->the_post();
wc_get_template_part('content', 'product-sidebar');
}
// end of the loop.
remove_filter("woocommerce_get_price_html_from_to", "kt_get_price_html_from_to", 10, 4);
?>
</ul>
</div>
</div>
<?php
remove_filter("woocommerce_get_price_html_from_to", "kt_get_price_html_from_to", 10, 4);
remove_filter('woocommerce_sale_price_html', 'woocommerce_custom_sales_price', 10, 2);
}
wp_reset_postdata();
wp_reset_query();
$result = ob_get_contents();
ob_clean();
return $result;
}
示例3: content
protected function content($atts, $content = null)
{
$atts = function_exists('vc_map_get_attributes') ? vc_map_get_attributes('banner_carousel', $atts) : $atts;
$atts = shortcode_atts(array('autoplay' => 'false', 'navigation' => 'false', 'margin' => 30, 'slidespeed' => 250, 'nav' => 'true', 'loop' => 'true', 'use_responsive' => 0, 'items_destop' => 3, 'items_tablet' => 2, 'items_mobile' => 1, 'css' => '', 'css_animation' => '', 'width_class' => ''), $atts);
extract($atts);
$elementClass = array('base' => apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'block block-banner-owl ', $this->settings['base'], $atts), 'extra' => $this->getExtraClass($width_class), 'css_animation' => $this->getCSSAnimation($css_animation), 'shortcode_custom' => vc_shortcode_custom_css_class($css, ' '));
$elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array(' ', ''), implode(' ', $elementClass));
$data_carousel = array("autoplay" => $autoplay, "navigation" => $navigation, "margin" => $margin, "slidespeed" => $slidespeed, "theme" => 'style-navigation-top', "autoheight" => 'false', 'nav' => 'true', 'dots' => 'false', 'loop' => $loop, 'autoplayTimeout' => 1000, 'autoplayHoverPause' => 'true');
if ($use_responsive) {
$arr = array('0' => array("items" => $items_mobile), '768' => array("items" => $items_tablet), '992' => array("items" => $items_destop));
$data_responsive = json_encode($arr);
$data_carousel["responsive"] = $data_responsive;
} else {
$data_carousel['items'] = 3;
}
ob_start();
?>
<!-- block banner owl-->
<div class="<?php
echo esc_attr($elementClass);
?>
" >
<div class="block-inner kt-owl-carousel" <?php
echo _data_carousel($data_carousel);
?>
>
<?php
echo do_shortcode(shortcode_unautop($content));
?>
</div>
</div>
<!-- ./block banner owl-->
<?php
$result = ob_get_clean();
return $result;
}
示例4: content
//.........这里部分代码省略.........
$products = new WP_Query($args);
?>
<?php
if ($use_responsive) {
$arr = array('0' => array("items" => $items_mobile), '768' => array("items" => $items_tablet), '992' => array("items" => $items_destop));
$data_responsive = json_encode($arr);
$data_carousel["responsive"] = $data_responsive;
if ($products->post_count < $items_mobile || $products->post_count < $items_tablet || $products->post_count < $items_destop) {
$data_carousel['loop'] = 'false';
} else {
$data_carousel['loop'] = $loop;
}
} else {
$data_carousel['items'] = 3;
if ($products->post_count < 3) {
$data_carousel['loop'] = 'false';
} else {
$data_carousel['loop'] = $loop;
}
}
?>
<div class="section8 block-trending <?php
echo esc_attr($elementClass);
?>
">
<h3 class="section-title"><?php
echo esc_html($title);
?>
</h3>
<?php
if ($products->have_posts()) {
?>
<ul class="products-style8 owl-carousel" <?php
echo _data_carousel($data_carousel);
?>
>
<?php
while ($products->have_posts()) {
$products->the_post();
?>
<li class="product autoHeight-item">
<div class="product-container">
<div class="product-thumb">
<?php
$product = new WC_Product(get_the_ID());
$attachment_ids = $product->get_gallery_attachment_ids();
$secondary_image = '';
if ($attachment_ids) {
$secondary_image = wp_get_attachment_image($attachment_ids[0], $size);
}
if (has_post_thumbnail()) {
?>
<a class="primary_image" href="<?php
the_permalink();
?>
"><?php
the_post_thumbnail($size);
?>
</a>
<?php
} else {
?>
<a class="primary_image" href="<?php
the_permalink();
?>
"><?php
示例5: content
protected function content($atts, $content = null)
{
$atts = function_exists('vc_map_get_attributes') ? vc_map_get_attributes('tab_producs', $atts) : $atts;
$atts = shortcode_atts(array('taxonomy' => '', 'style' => '1', 'per_page' => 12, 'columns' => 4, 'border_heading' => '', 'css_animation' => '', 'el_class' => '', 'css' => '', 'autoplay' => 'false', 'navigation' => 'false', 'margin' => 30, 'slidespeed' => 200, 'css' => '', 'el_class' => '', 'nav' => 'true', 'loop' => 'false', 'use_responsive' => 1, 'items_destop' => 3, 'items_tablet' => 2, 'items_mobile' => 1), $atts);
extract($atts);
global $woocommerce_loop;
$is_phone = false;
if (function_exists('kt_is_phone') && kt_is_phone()) {
$is_phone = true;
}
if ($style == 3) {
$base_class = 'tab-product-13 option-13 style1 ';
} else {
$base_class = 'popular-tabs ';
}
$elementClass = array('base' => apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $base_class, $this->settings['base'], $atts), 'extra' => $this->getExtraClass($el_class), 'css_animation' => $this->getCSSAnimation($css_animation), 'shortcode_custom' => vc_shortcode_custom_css_class($css, ' '));
$elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array(' ', ''), implode(' ', $elementClass));
$elementClass = apply_filters('kt_product_tab_class_container', $elementClass);
$tabs = array('best-sellers' => __('Best Sellers', 'edo'), 'on-sales' => __('On Sales', 'edo'), 'new-arrivals' => __('New Products', 'edo'));
$meta_query = WC()->query->get_meta_query();
$args = array('post_type' => 'product', 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'posts_per_page' => $per_page, 'meta_query' => $meta_query, 'suppress_filter' => true);
if ($taxonomy) {
$args['tax_query'] = array(array('taxonomy' => 'product_cat', 'field' => 'id', 'terms' => explode(",", $taxonomy)));
}
$uniqeID = uniqid();
ob_start();
?>
<div class="<?php
echo esc_attr($elementClass);
?>
top-nav container-tab style<?php
echo esc_attr($style);
?>
">
<ul class="nav-tab">
<?php
$i = 0;
?>
<?php
foreach ($tabs as $k => $v) {
?>
<li <?php
echo $i == 0 ? 'class="active"' : '';
?>
>
<a data-toggle="tab" href="#tab-<?php
echo esc_attr($k) . $uniqeID;
?>
"><?php
echo esc_html($v);
?>
</a>
</li>
<?php
$i++;
?>
<?php
}
?>
</ul>
<div class="tab-container">
<?php
$data_carousel = array("autoplay" => $autoplay, "navigation" => $navigation, "margin" => $margin, "slidespeed" => $slidespeed, "theme" => 'style-navigation-bottom', "autoheight" => 'false', 'nav' => $navigation, 'dots' => 'false', 'loop' => $loop, 'autoplayTimeout' => 1000, 'autoplayHoverPause' => 'true');
if ($use_responsive) {
$arr = array('0' => array("items" => $items_mobile), '768' => array("items" => $items_tablet), '992' => array("items" => $items_destop));
$data_responsive = json_encode($arr);
$data_carousel["responsive"] = $data_responsive;
} else {
if ($style == 3) {
$data_carousel['items'] = 4;
} else {
$data_carousel['items'] = 3;
}
}
$carousel = _data_carousel($data_carousel);
$i = 0;
?>
<?php
foreach ($tabs as $k => $v) {
?>
<?php
$newargs = $args;
if ($k == 'best-sellers') {
$newargs['meta_key'] = 'total_sales';
$newargs['orderby'] = 'meta_value_num';
} elseif ($k == 'on-sales') {
$product_ids_on_sale = wc_get_product_ids_on_sale();
$newargs['post__in'] = array_merge(array(0), $product_ids_on_sale);
$newargs['orderby'] = 'date';
$newargs['order'] = 'DESC';
} else {
$newargs['orderby'] = 'date';
$newargs['order'] = 'DESC';
}
$products = new WP_Query(apply_filters('woocommerce_shortcode_products_query', $newargs, $atts));
if ($products->have_posts()) {
?>
<!-- Style 1 -->
<?php
if ($style == 1) {
//.........这里部分代码省略.........
示例6: content
protected function content($atts, $content = null)
{
$atts = function_exists('vc_map_get_attributes') ? vc_map_get_attributes('box_products', $atts) : $atts;
extract(shortcode_atts(array('title' => __('hot deals', 'kutetheme'), 'per_page' => 5, 'type' => 'hot-deals', 'taxonomy' => 0, 'orderby' => 'date', 'order' => 'DESC', 'main_color' => '#ff3300', 'style' => 'style-1', 'banner' => '', 'banner_link' => '', 'speed_banner' => '250', 'autoplay' => 'false', 'navigation' => 'false', 'margin' => 20, 'slidespeed' => 250, 'nav' => 'true', 'loop' => 'true', 'use_responsive' => 1, 'items_destop' => 4, 'items_tablet' => 2, 'items_mobile' => 1, 'css' => '', 'css_animation' => '', 'el_class' => ''), $atts));
global $woocommerce_loop;
$elementClass = array('base' => apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'box-products ', $this->settings['base'], $atts), 'extra' => $this->getExtraClass($el_class), 'css_animation' => $this->getCSSAnimation($css_animation), 'shortcode_custom' => vc_shortcode_custom_css_class($css, ' '));
$elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array(' ', ''), implode(' ', $elementClass));
if (function_exists('kt_hex2rgb')) {
$main_color_rgb = kt_hex2rgb($main_color);
} else {
$main_color_rgb = array('red' => 255, 'green' => 51, 'blue' => 102);
}
ob_start();
$meta_query = WC()->query->get_meta_query();
$args = array('post_type' => 'product', 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'posts_per_page' => $per_page, 'suppress_filter' => true, 'meta_query' => $meta_query);
if ($type == 'hot-deals') {
$product_ids_on_sale = wc_get_product_ids_on_sale();
$args['post__in'] = array_merge(array(0), $product_ids_on_sale);
if ($orderby == 'discount') {
$newargs['meta_key'] = '_reduction_percent';
$newargs['orderby'] = 'meta_value_num';
} else {
$args['orderby'] = $orderby;
}
$args['order'] = $order;
if (!$title) {
$title = __('Hot Deals', 'kutetheme');
}
} elseif ($type == 'best-selling') {
$newargs['meta_key'] = 'total_sales';
$newargs['orderby'] = 'meta_value_num';
if (!$title) {
$title = __('Best Selling', 'kutetheme');
}
} elseif ($type == 'recent-product') {
$args['orderby'] = $orderby;
$args['order'] = $order;
if (!$title) {
$title = __('New Arrivals', 'kutetheme');
}
} elseif ($type == 'most-review') {
add_filter('posts_clauses', array($this, 'order_by_rating_post_clauses'));
if (!$title) {
$title = __('Most Reviews', 'kutetheme');
}
}
$cate_ids = array();
if ($taxonomy) {
$cate_ids = explode(",", $taxonomy);
$args['tax_query'] = array(array('taxonomy' => 'product_cat', 'field' => 'id', 'terms' => $cate_ids));
}
$products = new WP_Query(apply_filters('woocommerce_shortcode_products_query', $args, $atts));
if ($products->have_posts()) {
$data_carousel = array("autoplay" => $autoplay, "navigation" => $navigation, "margin" => $margin, "slidespeed" => $slidespeed, "theme" => 'style-navigation-top', "autoheight" => 'false', 'nav' => 'true', 'dots' => 'false', 'loop' => $loop, 'autoplayTimeout' => 1000, 'autoplayHoverPause' => 'true');
if ($use_responsive) {
$arr = array('0' => array("items" => $items_mobile), '768' => array("items" => $items_tablet), '992' => array("items" => $items_destop));
$data_responsive = json_encode($arr);
$data_carousel["responsive"] = $data_responsive;
} else {
$data_carousel['items'] = $items_destop;
}
$unique_id = uniqid();
$carousel = _data_carousel($data_carousel);
$banner_i = 1;
if (isset($banner) && $banner) {
$banner_args = array('post_type' => 'attachment', 'include' => $banner, 'orderby' => 'post__in');
$list_banner = get_posts($banner_args);
ob_start();
foreach ($list_banner as $l) {
?>
<li>
<a target="_blank" href="<?php
echo $banner_link ? esc_url($banner_link) : '';
?>
">
<?php
echo wp_get_attachment_image($l->ID, 'full');
?>
</a>
</li>
<?php
$banner_i++;
}
$banner_carousel = ob_get_clean();
}
add_filter("woocommerce_get_price_html_from_to", "kt_get_price_html_from_to", 10, 4);
add_filter('woocommerce_sale_price_html', 'woocommerce_custom_sales_price', 10, 2);
remove_action('kt_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 10);
?>
<div class="container-tab <?php
if ($style == "style-1") {
?>
option3 <?php
} else {
?>
option4 <?php
}
?>
">
<!-- box product -->
//.........这里部分代码省略.........
示例7: _data_carousel
} else {
if ($product_column > 0) {
$data_carousel['items'] = $product_column;
}
}
?>
<!-- tab product -->
<div class="tab-panel <?php
echo $i == 0 ? 'active' : '';
?>
" id="<?php
echo 'tab-' . $id . '-' . $i;
?>
">
<ul class="product-list tab-owl owl-carousel" <?php
echo _data_carousel($data_carousel);
?>
>
<?php
while ($products->have_posts()) {
$products->the_post();
wc_get_template_part('content', 'product-tab');
}
// end of the loop.
?>
</ul>
</div>
<?php
}
wp_reset_query();
wp_reset_postdata();
示例8: content
//.........这里部分代码省略.........
?>
<div id="tab-colection-<?php
echo esc_attr($term->term_id);
?>
" class="tab-panel <?php
echo esc_attr($class);
?>
">
<?php
$args = array('post_type' => 'colection', 'post_status' => 'publish', 'posts_per_page' => $number, 'tax_query' => array(array('taxonomy' => 'colection_cat', 'field' => 'ID', 'terms' => $term->term_id)));
$colections = new WP_Query($args);
if ($colections->have_posts()) {
?>
<?php
if ($use_responsive) {
$arr = array('0' => array("items" => $items_mobile), '768' => array("items" => $items_tablet), '992' => array("items" => $items_destop));
$data_responsive = json_encode($arr);
$data_carousel["responsive"] = $data_responsive;
if ($colections->post_count < $items_mobile || $colections->post_count < $items_tablet || $colections->post_count < $items_destop) {
$data_carousel['loop'] = 'false';
} else {
$data_carousel['loop'] = $loop;
}
} else {
$data_carousel['items'] = 3;
if ($colections->post_count < 3) {
$data_carousel['loop'] = 'false';
} else {
$data_carousel['loop'] = $loop;
}
}
?>
<ul class="collection-list owl-carousel" <?php
echo _data_carousel($data_carousel);
?>
>
<?php
$i = 1;
while ($colections->have_posts()) {
$colections->the_post();
$_kt_page_colection_design = get_post_meta(get_the_ID(), '_kt_page_colection_design', true);
?>
<?php
if ($i % 2) {
?>
<li class="item">
<?php
if (has_post_thumbnail()) {
?>
<div class="image banner-boder-zoom2">
<a href="<?php
the_permalink();
?>
"><?php
the_post_thumbnail('colection-thumb');
?>
</a>
</div>
<?php
}
?>
<div class="info">
<h3 class="title"><a href="<?php
the_permalink();
?>
示例9: content
protected function content($atts, $content = null)
{
$atts = function_exists('vc_map_get_attributes') ? vc_map_get_attributes('kt_look_books', $atts) : $atts;
$atts = shortcode_atts(array('title' => 'LOOK BOOKS', 'sub_title' => '', 'columns' => 4, 'link_submit' => '#', 'overlay_opacity' => '0.7', 'overlay_color' => '#000000', 'el_class' => '', 'css' => '', 'autoplay' => 0, 'navigation' => 0, 'margin' => 30, 'slidespeed' => 200, 'css' => '', 'el_class' => '', 'loop' => 0, 'use_responsive' => 1, 'items_destop' => 3, 'items_tablet' => 2, 'items_mobile' => 1), $atts);
extract($atts);
$elementClass = array('base' => apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, ' ', $this->settings['base'], $atts), 'extra' => $this->getExtraClass($el_class), 'shortcode_custom' => vc_shortcode_custom_css_class($css, ' '));
$elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array('section8 block-loock-bocks ', ''), implode(' ', $elementClass));
if ($overlay_color == "") {
$overlay_color = "#000000";
}
$overlay_color = kt_hex2rgb($overlay_color);
$args = array('post_type' => 'look-books', 'post_status' => 'publish', 'posts_per_page' => $columns);
$look_book_query = new WP_Query($args);
$data_carousel = array("autoplay" => $autoplay == 1 ? "true" : "false", "nav" => $navigation == 1 ? "true" : "false", "margin" => $margin, "smartSpeed" => $slidespeed, "theme" => 'style-navigation-bottom', "autoheight" => 'false', 'dots' => 'false', 'loop' => $loop == 1 ? "true" : "false", 'autoplayTimeout' => 1000, 'autoplayHoverPause' => 'true');
if ($use_responsive) {
$arr = array('0' => array("items" => $items_mobile), '768' => array("items" => $items_tablet), '992' => array("items" => $items_destop));
$data_responsive = json_encode($arr);
$data_carousel["responsive"] = $data_responsive;
if ($look_book_query->post_count < $items_mobile || $look_book_query->post_count < $items_tablet || $look_book_query->post_count < $items_destop) {
$data_carousel['loop'] = 'false';
} else {
$data_carousel['loop'] = $loop;
}
} else {
$data_carousel['items'] = 3;
if ($look_book_query->post_count < 3) {
$data_carousel['loop'] = 'false';
} else {
$data_carousel['loop'] = $loop;
}
}
ob_start();
?>
<div class="<?php
echo esc_attr($elementClass);
?>
">
<div class="overlay" style="background-color: rgba(<?php
echo esc_attr($overlay_color['red']);
?>
,<?php
echo esc_attr($overlay_color['green']);
?>
,<?php
echo esc_attr($overlay_color['blue']);
?>
,<?php
echo esc_attr($overlay_opacity);
?>
);"></div>
<?php
if ($title) {
?>
<h3 class="section-title"><?php
echo esc_html($title);
?>
</h3>
<?php
}
?>
<div class="container">
<?php
if ($look_book_query->have_posts()) {
?>
<ul class="loock-boock-list owl-carousel" <?php
echo _data_carousel($data_carousel);
?>
>
<?php
while ($look_book_query->have_posts()) {
$look_book_query->the_post();
$_kt_page_lookbook_location = get_post_meta(get_the_ID(), '_kt_page_lookbook_location', true);
?>
<li class="">
<?php
if (has_post_thumbnail()) {
?>
<?php
$full_image_src = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), "full");
?>
<div class="image">
<a class="fancybox" href="<?php
echo esc_url($full_image_src[0]);
?>
"><?php
the_post_thumbnail('lookbook-thumb');
?>
</a>
</div>
<?php
}
?>
<div class="info">
<p class="name"><?php
the_title();
?>
</p>
<?php
if ($_kt_page_lookbook_location) {
?>
//.........这里部分代码省略.........
示例10: content
protected function content($atts, $content = null)
{
$atts = function_exists('vc_map_get_attributes') ? vc_map_get_attributes('brand', $atts) : $atts;
$atts = shortcode_atts(array('taxonomy' => '', 'box_type' => 'box-1', 'per_page' => 4, 'number' => 24, 'orderby' => 'id', 'order' => 'desc', 'hide' => 1, 'autoplay' => 'false', 'navigation' => 'false', 'margin' => 30, 'slidespeed' => 250, 'css' => '', 'css_animation' => '', 'el_class' => '', 'loop' => 'true', 'use_responsive' => 1, 'items_destop' => 4, 'items_tablet' => 2, 'items_mobile' => 1, 'css_animation' => '', 'el_class' => '', 'css' => ''), $atts);
extract($atts);
$elementClass = array('base' => apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, ' ', $this->settings['base'], $atts), 'extra' => $this->getExtraClass($el_class), 'css_animation' => $this->getCSSAnimation($css_animation), 'shortcode_custom' => vc_shortcode_custom_css_class($css, ' '));
$elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array(' ', ''), implode(' ', $elementClass));
$data_carousel = array("autoplay" => $autoplay, "nav" => $navigation, "margin" => $margin, "slidespeed" => $slidespeed, "theme" => 'style-navigation-bottom', "autoheight" => 'false', 'dots' => 'false', 'loop' => $loop, 'autoplayTimeout' => 1000, 'autoplayHoverPause' => 'true');
if ($use_responsive) {
$arr = array('0' => array("items" => $items_mobile), '768' => array("items" => $items_tablet), '992' => array("items" => $items_destop));
$data_responsive = json_encode($arr);
$data_carousel["responsive"] = $data_responsive;
} else {
$data_carousel['items'] = 4;
}
ob_start();
if ($taxonomy) {
$ids = explode(',', $taxonomy);
} else {
$ids = array();
}
$arg = array('orderby' => $orderby, 'order' => $order, 'hide_empty' => $hide, 'pad_counts' => true, 'number' => $number);
if ($ids && count($ids) > 0) {
$arg['include'] = $ids;
}
$brands = get_terms('product_brand', $arg);
$count = count($brands);
if (is_array($brands) && $brands && $count > 0) {
if ($box_type == 'box-3') {
?>
<div class="list kt-owl-carousel" <?php
echo _data_carousel($data_carousel);
?>
>
<?php
foreach ($brands as $brand) {
$brand_link = esc_attr(get_term_link($brand));
$thumbnail_id = absint(get_woocommerce_term_meta($brand->term_id, 'thumbnail_id', true));
if ($thumbnail_id) {
$image = wp_get_attachment_image_src($thumbnail_id, 'full');
if (is_array($image) && isset($image[0]) && $image[0]) {
$image = $image[0];
} else {
$image = wc_placeholder_img_src();
}
} else {
$image = wc_placeholder_img_src();
}
?>
<a href="<?php
echo esc_url($brand_link);
?>
">
<img src="<?php
echo $image;
?>
" alt="<?php
echo $brand->name;
?>
" />
</a>
<?php
}
?>
</div>
<?php
} elseif ($box_type == 'box-2') {
$page = 1;
if ($count % $per_page == 0) {
$page = $count / $per_page;
} else {
$page = $count / $per_page + 1;
}
?>
<div class="option3">
<div class="block block-type-2 block-banner-owl kt-owl-carousel" data-margin="0" data-nav="true" data-items="1" <?php
if ($page > 1) {
?>
data-loop="true" <?php
} else {
?>
data-loop="false" <?php
}
?>
>
<?php
for ($i = 1; $i <= $page; $i++) {
?>
<div class="page-banner">
<ul class="list-banner">
<?php
$from = ($i - 1) * $per_page;
$to = $i * $per_page;
?>
<?php
for ($from; $from < $to; $from++) {
if (isset($brands[$from]) && $brands[$from]) {
$brand = $brands[$from];
$brand_link = esc_attr(get_term_link($brand));
$thumbnail_id = absint(get_woocommerce_term_meta($brand->term_id, 'thumbnail_id', true));
//.........这里部分代码省略.........
示例11: content
protected function content($atts, $content = null)
{
$atts = function_exists('vc_map_get_attributes') ? vc_map_get_attributes('product_sidebar', $atts) : $atts;
$atts = shortcode_atts(array('title' => __('NEW PRODUCTS', 'kutetheme'), 'style' => 'style-1', 'target' => 'best-seller', 'orderby' => 'date', 'order' => 'DESC', 'ids' => '', 'taxonomy' => '', 'number_product' => 14, 'per_page' => 7, 'css_animation' => '', 'el_class' => '', 'css' => '', 'autoplay' => 'false', 'navigation' => 'false', 'margin' => 30, 'slidespeed' => 200, 'css' => '', 'el_class' => '', 'nav' => 'true', 'loop' => 'false'), $atts);
extract($atts);
global $woocommerce_loop;
$is_phone = false;
if (function_exists('kt_is_phone') && kt_is_phone()) {
$is_phone = true;
}
$elementClass = array('base' => apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, ' ', $this->settings['base'], $atts), 'extra' => $this->getExtraClass($el_class), 'css_animation' => $this->getCSSAnimation($css_animation), 'shortcode_custom' => vc_shortcode_custom_css_class($css, ' '));
$elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array(' ', ''), implode(' ', $elementClass));
$elementClass = apply_filters('kt_product_sidebar_class_container', $elementClass);
$tabs = array('best-sellers' => __('Best Sellers', 'kutetheme'), 'on-sales' => __('On Sales', 'kutetheme'), 'new-arrivals' => __('New Products', 'kutetheme'));
$meta_query = WC()->query->get_meta_query();
$args = array('post_type' => 'product', 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'posts_per_page' => $number_product, 'meta_query' => $meta_query, 'suppress_filter' => true);
if ($taxonomy) {
$args['tax_query'] = array(array('taxonomy' => 'product_cat', 'field' => 'id', 'terms' => explode(",", $taxonomy)));
}
$data_carousel = array("autoplay" => $autoplay, "nav" => $navigation, "margin" => $margin, "smartSpeed" => $slidespeed, "theme" => 'style-navigation-bottom', "autoheight" => 'false', 'items' => 1, 'dots' => 'false', 'loop' => $loop, 'autoplayTimeout' => 1000, 'autoplayHoverPause' => 'true');
if ($target == 'new-arrival') {
$args['orderby'] = 'date';
$args['order'] = 'DESC';
} elseif ($target == 'on-sales') {
$product_ids_on_sale = wc_get_product_ids_on_sale();
$args['post__in'] = array_merge(array(0), $product_ids_on_sale);
if ($orderby == '_sale_price') {
$orderby = 'date';
$order = 'DESC';
}
$args['orderby'] = $orderby;
$args['order'] = $order;
} elseif ($target == 'custom') {
if ($orderby == '_sale_price') {
$args['meta_query'] = array('relation' => 'OR', array('key' => '_sale_price', 'value' => 0, 'compare' => '>', 'type' => 'numeric'), array('key' => '_min_variation_sale_price', 'value' => 0, 'compare' => '>', 'type' => 'numeric'));
} else {
$args['orderby'] = $orderby;
$args['order'] = $order;
}
} elseif ($target == 'most-review') {
add_filter('posts_clauses', array($this, 'order_by_rating_post_clauses'));
} elseif ($target == 'by-ids' && count($ids) > 0) {
$args['post__in'] = $ids;
$args['orderby'] = 'post__in';
} else {
$args['meta_key'] = 'total_sales';
$args['orderby'] = 'meta_value_num';
}
$products = new WP_Query(apply_filters('woocommerce_shortcode_products_query', $args, $atts));
if ($target == 'most-review') {
remove_filter('posts_clauses', array($this, 'order_by_rating_post_clauses'));
}
remove_action('kt_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 10);
$uniqeID = uniqid();
ob_start();
if ($products->have_posts()) {
if ($style == 'style-1') {
?>
<div class="block-new-product12 <?php
echo esc_attr($elementClass);
?>
">
<?php
if ($title) {
?>
<div class="title"><?php
echo esc_html($title);
?>
</div>
<?php
}
?>
<div class="inner owl-carousel" <?php
echo _data_carousel($data_carousel);
?>
>
<?php
$i = 1;
?>
<?php
while ($products->have_posts()) {
$products->the_post();
?>
<?php
if ($i == 1) {
?>
<ul class="list-product">
<?php
}
?>
<li class="product">
<div class="image">
<a href="<?php
the_permalink();
?>
">
<?php
echo kt_get_product_thumbnail('shop_thumbnail');
?>
</a>
//.........这里部分代码省略.........
示例12: content
protected function content($atts, $content = null)
{
$atts = function_exists('vc_map_get_attributes') ? vc_map_get_attributes('blog_carousel', $atts) : $atts;
extract(shortcode_atts(array('title' => __('From the blog', 'kutetheme'), 'subtitle' => '', 'per_page' => 10, 'orderby' => 'date', 'order' => 'desc', 'color3' => '#f25f43', 'color2' => '#666666', 'color1' => '#f25f43', 'style' => '1', 'autoplay' => 'false', 'navigation' => 'false', 'margin' => 30, 'slidespeed' => 250, 'css' => '', 'css_animation' => '', 'el_class' => '', 'loop' => 'true', 'use_responsive' => 1, 'items_destop' => 4, 'items_tablet' => 2, 'items_mobile' => 1), $atts));
global $woocommerce_loop;
$elementClass = array('base' => apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, ' style' . $style . ' ', $this->settings['base'], $atts), 'extra' => $this->getExtraClass($el_class), 'css_animation' => $this->getCSSAnimation($css_animation), 'shortcode_custom' => vc_shortcode_custom_css_class($css, ' '));
$elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array(' ', ''), implode(' ', $elementClass));
$data_carousel = array("autoplay" => $autoplay, "nav" => $navigation, "margin" => $margin, "slidespeed" => $slidespeed, "theme" => 'style-navigation-bottom', "autoheight" => 'false', 'dots' => 'false', 'loop' => $loop, 'autoplayTimeout' => 1000, 'autoplayHoverPause' => 'true');
if ($use_responsive) {
$arr = array('0' => array("items" => $items_mobile), '768' => array("items" => $items_tablet), '992' => array("items" => $items_destop));
$data_responsive = json_encode($arr);
$data_carousel["responsive"] = $data_responsive;
} else {
$data_carousel['items'] = 4;
}
$args = array('post_type' => 'post', 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'posts_per_page' => $per_page, 'suppress_filter' => true, 'orderby' => $orderby, 'order' => $order);
$posts = new WP_Query(apply_filters('woocommerce_shortcode_products_query', $args, $atts));
ob_start();
if ($posts->have_posts()) {
$i = 0;
?>
<?php
if ($style == 2) {
?>
<div class="lasttest-blogs style2 <?php
echo esc_attr($elementClass);
?>
">
<?php
if ($title) {
?>
<div class="head"><?php
echo esc_html($title);
?>
</div>
<?php
}
?>
<div class="box-content">
<ul class="list kt-owl-carousel nav-style2" <?php
echo _data_carousel($data_carousel);
?>
>
<?php
while ($posts->have_posts()) {
$posts->the_post();
$i++;
$item_color = "#666";
if ($i == 1) {
$item_color = $color1;
}
if ($i == 2) {
$item_color = $color2;
}
if ($i == 3) {
$item_color = $color3;
$i = 0;
}
?>
<li style="background-color: <?php
echo esc_attr($item_color);
?>
;" <?php
post_class('item-blog');
?>
>
<?php
if (has_post_thumbnail()) {
?>
<div class="thumb">
<a href="<?php
the_permalink();
?>
"><?php
the_post_thumbnail('edo_blog_lasttest');
?>
</a>
</div>
<?php
}
?>
<div class="info" style="background-color: <?php
echo esc_attr($item_color);
?>
;">
<h3 class="title"><a href="<?php
the_permalink();
?>
"><?php
the_title();
?>
</a></h3>
<div class="meta">
<span class="author"><i class="fa fa-user"></i> <?php
the_author();
?>
</span>
<span class="comment">
<i class="fa fa-comment"></i>
<?php
//.........这里部分代码省略.........
示例13: content
protected function content($atts, $content = null)
{
$atts = function_exists('vc_map_get_attributes') ? vc_map_get_attributes('blog_carousel', $atts) : $atts;
extract(shortcode_atts(array('title' => 'From the blog', 'per_page' => 10, 'orderby' => 'date', 'order' => 'desc', 'autoplay' => 'false', 'navigation' => 'false', 'margin' => 30, 'slidespeed' => 250, 'css' => '', 'css_animation' => '', 'el_class' => '', 'nav' => 'true', 'loop' => 'true', 'use_responsive' => 0, 'items_destop' => 4, 'items_tablet' => 2, 'items_mobile' => 1), $atts));
global $woocommerce_loop;
$elementClass = array('base' => apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'blog-list ', $this->settings['base'], $atts), 'extra' => $this->getExtraClass($el_class), 'css_animation' => $this->getCSSAnimation($css_animation), 'shortcode_custom' => vc_shortcode_custom_css_class($css, ' '));
$elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array(' ', ''), implode(' ', $elementClass));
$data_carousel = array("autoplay" => $autoplay, "navigation" => $navigation, "margin" => $margin, "slidespeed" => $slidespeed, "theme" => 'style-navigation-bottom', "autoheight" => 'false', 'nav' => 'true', 'dots' => 'false', 'loop' => 'false', 'autoplayTimeout' => 1000, 'autoplayHoverPause' => 'true');
if (!$use_responsive) {
$arr = array('0' => array("items" => $items_mobile), '768' => array("items" => $items_tablet), '992' => array("items" => $items_destop));
$data_responsive = json_encode($arr);
$data_carousel["responsive"] = $data_responsive;
} else {
$data_carousel['items'] = 4;
}
$args = array('post_type' => 'post', 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'posts_per_page' => $per_page, 'suppress_filter' => true, 'orderby' => $orderby, 'order' => $order);
$posts = new WP_Query(apply_filters('woocommerce_shortcode_products_query', $args, $atts));
ob_start();
if ($posts->have_posts()) {
?>
<!-- blog list -->
<div class="<?php
echo $elementClass;
?>
">
<h2 class="page-heading">
<span class="page-heading-title"><?php
echo esc_html($title);
?>
</span>
</h2>
<div class="blog-list-wapper">
<ul class="owl-carousel" <?php
echo _data_carousel($data_carousel);
?>
>
<?php
while ($posts->have_posts()) {
$posts->the_post();
?>
<li>
<div class="post-thumb image-hover2">
<a target="_blank" href="<?php
the_permalink();
?>
"><?php
the_post_thumbnail('268x255');
?>
</a>
</div>
<div class="post-desc">
<h5 class="post-title">
<a target="_blank" href="<?php
the_permalink();
?>
"><?php
the_title();
?>
</a>
</h5>
<div class="post-meta">
<span class="date"><?php
the_date();
?>
</span>
<span class="comment">
<?php
comments_number(__('0 Comment', THEME_LANG), __('1 Comment', THEME_LANG), __('% Comments', THEME_LANG));
?>
</span>
</div>
<div class="readmore">
<a target="_blank" href="<?php
the_permalink();
?>
"><?php
_e('Readmore', THEME_LANG);
?>
</a>
</div>
</div>
</li>
<?php
}
?>
</ul>
</div>
</div>
<!-- ./blog list -->
<?php
}
$result = ob_get_contents();
ob_end_clean();
return $result;
}
示例14: content
protected function content($atts, $content = null)
{
$atts = function_exists('vc_map_get_attributes') ? vc_map_get_attributes('top_seller', $atts) : $atts;
$atts = shortcode_atts(array('title' => __('Top Sellers', 'edo'), 'icon' => '', 'per_page' => 4, 'taxonomy' => '', 'autoplay' => 'false', 'navigation' => 'false', 'margin' => 30, 'slidespeed' => 250, 'nav' => 'true', 'loop' => 'true', 'css_animation' => '', 'el_class' => '', 'css' => ''), $atts);
extract($atts);
ob_start();
$elementClass = array('base' => apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'block block-top-sellers ', $this->settings['base'], $atts), 'extra' => $this->getExtraClass($el_class), 'css_animation' => $this->getCSSAnimation($css_animation), 'shortcode_custom' => vc_shortcode_custom_css_class($css, ' '));
$elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array(' ', ''), implode(' ', $elementClass));
$meta_query = WC()->query->get_meta_query();
$args = array('post_type' => 'product', 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'posts_per_page' => $per_page, 'meta_query' => $meta_query, 'suppress_filter' => true, 'meta_key' => 'total_sales', 'orderby' => 'meta_value_num');
if ($taxonomy) {
$args['tax_query'] = array(array('taxonomy' => 'product_cat', 'field' => 'id', 'terms' => explode(",", $taxonomy)));
}
$products = new WP_Query(apply_filters('woocommerce_shortcode_products_query', $args, $atts));
if ($products->have_posts()) {
$new_title = trim($title);
$new_title = explode(' ', $new_title);
if (count($new_title) > 1) {
$title_sm = $new_title[0];
unset($new_title[0]);
$title_lg = implode(' ', $new_title);
} else {
$title_sm = __('Top', 'edo');
$title_lg = __('sellers', 'edo');
}
if (intval($icon) > 0) {
$att_icon = wp_get_attachment_image_src($icon, array(43, 42));
$att_icon_url = is_array($att_icon) ? esc_url($att_icon[0]) : $default_icon;
} else {
if (filter_var($icon, FILTER_VALIDATE_URL)) {
$att_icon_url = $icon;
} else {
$att_icon_url = KUTETHEME_PLUGIN_URL . 'js_composer/imgs/top-seller-icon.png';
}
}
// Check lopp
if ($products->post_count <= 1) {
$loop = 'false';
}
$data_carousel = array("autoplay" => $autoplay, "navigation" => $navigation, "margin" => $margin, "slidespeed" => $slidespeed, "theme" => 'style-navigation-top', "autoheight" => 'false', 'nav' => 'true', 'dots' => 'false', 'loop' => $loop, 'autoplayTimeout' => 1000, 'autoplayHoverPause' => 'true', 'items' => '1');
?>
<!-- block top sellers -->
<div class="<?php
echo $elementClass;
?>
">
<div class="block-head">
<div class="block-title">
<div class="block-icon">
<img alt="<?php
echo $title;
?>
" title="<?php
echo $title;
?>
" src="<?php
echo $att_icon_url;
?>
" />
</div>
<div class="block-title-text text-sm"><?php
echo esc_html($title_sm);
?>
</div>
<div class="block-title-text text-lg"><?php
echo esc_html($title_lg);
?>
</div>
</div>
</div>
<div class="block-inner">
<?php
do_action("woocommerce_shortcode_before_top_seller_loop");
?>
<ul class="products kt-owl-carousel" <?php
echo _data_carousel($data_carousel);
?>
>
<?php
while ($products->have_posts()) {
$products->the_post();
$id = get_the_ID();
$link = get_permalink($id);
?>
<?php
edo_woocommerce_product_loop_item_before();
?>
<?php
wc_get_template_part('content', 'list-product');
?>
<?php
edo_woocommerce_product_loop_item_after();
?>
<?php
}
?>
</ul>
<?php
do_action("woocommerce_shortcode_after_top_seller_loop");
?>
//.........这里部分代码省略.........
示例15: content
protected function content($atts, $content = null)
{
$atts = function_exists('vc_map_get_attributes') ? vc_map_get_attributes('lastest_deal_products', $atts) : $atts;
$atts = shortcode_atts(array('title' => ' ', 'taxonomy' => '', 'number' => 10, 'product_column' => 5, 'orderby' => 'date', 'order' => 'DESC', 'autoplay' => '', 'navigation' => '', 'margin' => 10, 'slidespeed' => 200, 'css' => '', 'el_class' => '', 'nav' => "true", 'loop' => "false", 'use_responsive' => 1, 'items_destop' => 5, 'items_tablet' => 3, 'items_mobile' => 1, 'columns' => 1), $atts);
extract($atts);
// Get products on sale
$product_ids_on_sale = wc_get_product_ids_on_sale();
$meta_query = WC()->query->get_meta_query();
$args = array('posts_per_page' => $number, 'post_type' => 'product', 'order' => $order, 'no_found_rows' => 1, 'post_status' => 'publish', 'meta_query' => $meta_query, 'post__in' => array_merge(array(0), $product_ids_on_sale));
$args["orderby"] = $orderby;
if ($taxonomy) {
$args['tax_query'] = array(array('taxonomy' => 'product_cat', 'field' => 'id', 'terms' => explode(",", $taxonomy)));
}
$q = apply_filters('woocommerce_shortcode_products_query', $args, $atts);
$query_product = new WP_Query($q);
global $woocommerce_loop, $post;
$woocommerce_loop['columns'] = $columns;
ob_start();
if ($query_product->have_posts()) {
$data_carousel = array("autoplay" => $autoplay, "navigation" => $navigation, "margin" => $margin, "slidespeed" => $slidespeed, "loop" => $loop, "theme" => 'style-navigation-bottom', "autoheight" => "false", 'nav' => "true", 'dots' => "false");
if ($use_responsive) {
$arr = array('0' => array("items" => $items_mobile), '768' => array("items" => $items_tablet), '992' => array("items" => $items_destop));
$data_responsive = json_encode($arr);
$data_carousel["responsive"] = $data_responsive;
} else {
if ($product_column > 0) {
$data_carousel['items'] = $product_column;
}
}
$elementClass = array('shortcode_custom' => vc_shortcode_custom_css_class($css, ' '));
$elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array(' ', ''), implode(' ', $elementClass));
?>
<div class="<?php
echo esc_attr($el_class);
?>
">
<?php
if ($title) {
?>
<h2 class="page-heading">
<span class="page-heading-title"><?php
echo esc_html($title);
?>
</span>
</h2>
<?php
}
?>
<div class="latest-deals-product container-data-time">
<span class="count-down-time2">
<span class="icon-clock"></span>
<span><?php
_e('end in', 'kutetheme');
?>
</span>
<span class="countdown-lastest stick-countdown"></span>
</span>
<ul class="product-list owl-carousel" <?php
echo _data_carousel($data_carousel);
?>
>
<?php
add_filter("woocommerce_get_price_html_from_to", "kt_get_price_html_from_to", 10, 4);
add_filter('woocommerce_sale_price_html', 'woocommerce_custom_sales_price', 10, 2);
$max = 0;
while ($query_product->have_posts()) {
$query_product->the_post();
$id = get_the_ID();
global $post;
?>
<?php
$time = kt_get_max_date_sale($id);
if ($time > $max) {
$max = $time;
}
?>
<li>
<?php
wc_get_template_part('content', 'product-lastest-deal');
?>
</li>
<?php
}
// end of the loop.
remove_filter("woocommerce_get_price_html_from_to", "kt_get_price_html_from_to", 10, 4);
remove_filter('woocommerce_sale_price_html', 'woocommerce_custom_sales_price', 10, 2);
?>
</ul>
<?php
if ($max > 0) {
$y = date('Y', $max);
$m = date('m', $max);
$d = date('d', $max);
?>
<input class="max-time" type="hidden" value="" data-y="<?php
echo esc_attr($y);
?>
" data-m="<?php
echo esc_attr($m);
?>
//.........这里部分代码省略.........