' . $home_production_title . ''; } ?>
'product_cat', 'parent' => 0, 'hide_empty' => false, ]); if (!empty($categories) && !is_wp_error($categories)) { $count = 0; foreach ($categories as $category) { if ($category->name === 'Misc') { continue; } $count++; $is_hidden = $count > 6 ? ' hidden' : ''; $thumb_id = get_term_meta($category->term_id, 'thumbnail_id', true); $thumb_url = $thumb_id ? wp_get_attachment_image_url($thumb_id, 'full') : '/wp-content/uploads/woocommerce-placeholder.png'; $term_link = get_term_link($category); ?>
6): ?>
' . $home_popular_title . ''; } ?>
'product', 'posts_per_page' => 4, 'orderby' => 'rand', 'post_status' => array( 'publish', 'draft' ), 'ignore_sticky_posts' => 1, 'tax_query' => array( array( 'taxonomy' => 'product_tag', 'field' => 'slug', 'terms' => 'popular', ), ), ); $random_products = new WP_Query( $args ); if ( $random_products->have_posts() ) : while ( $random_products->have_posts() ) : $random_products->the_post(); echo '
'; wc_get_template_part( 'content', 'product' ); echo '
'; endwhile; wp_reset_postdata(); endif; ?>
'product', 'posts_per_page' => 4, 'orderby' => 'rand', 'post_status' => array( 'publish', 'draft' ), 'ignore_sticky_posts' => 1, 'tax_query' => array( array( 'taxonomy' => 'product_tag', 'field' => 'slug', 'terms' => 'popular', ), ), ); $random_products = new WP_Query( $args ); if ( $random_products->have_posts() ) : while ( $random_products->have_posts() ) : $random_products->the_post(); wc_get_template_part( 'content', 'product' ); endwhile; wp_reset_postdata(); endif; ?>
'; } ?>
' . $home_about_title . ''; } if($home_about_subtitle) { echo '

' . $home_about_subtitle . '

'; } if($home_about_description) { echo '

' . $home_about_description . '

'; } if($home_about_link) { echo 'Подробнее о нас'; } ?>