PATH:
home
/
niazsaze
/
public_html
/
wp-content
/
themes
/
flatsome
/
inc
/
builder
/
shortcodes
<?php // Shortcode to display a single product $repeater_columns = '4'; $repeater_type = 'slider'; $repeater_col_spacing = 'small'; $repeater_posts = 'products'; $repeater_post_type = 'product'; $repeater_post_cat = 'product_cat'; $options = array( 'style_options' => array( 'type' => 'group', 'heading' => __( 'استایل', 'flatsome' ), 'options' => array( 'style' => array( 'type' => 'select', 'heading' => __( 'استایل', 'flatsome' ), 'default' => 'default', 'options' => require( __DIR__ . '/values/box-layouts.php' ) ) ), ), 'layout_options' => require( __DIR__ . '/commons/repeater-options.php' ), 'relay_options' => require( __DIR__ . '/commons/relay.php' ), 'layout_options_slider' => require( __DIR__ . '/commons/repeater-slider.php' ), 'box_options' => array( 'type' => 'group', 'heading' => __( 'باکس', 'flatsome' ), 'options' => array( 'show_cat' => array( 'type' => 'checkbox', 'heading' => __( 'دسته بندی', 'flatsome' ), 'default' => 'true', ), 'show_title' => array( 'type' => 'checkbox', 'heading' => __( 'عنوان', 'flatsome' ), 'default' => 'true', ), 'show_rating' => array( 'type' => 'checkbox', 'heading' => __( 'امتیاز', 'flatsome' ), 'default' => 'true', ), 'show_price' => array( 'type' => 'checkbox', 'heading' => __( 'قیمت', 'flatsome' ), 'default' => 'true', ), 'show_add_to_cart' => array( 'type' => 'checkbox', 'heading' => __( 'افزودن به سبد خرید', 'flatsome' ), 'default' => 'true', ), 'show_quick_view' => array( 'type' => 'checkbox', 'heading' => __( 'مشاهده سریع', 'flatsome' ), 'default' => 'true', ), 'equalize_box' => array( 'type' => 'checkbox', 'heading' => __( 'برابر کردن آیتم ها', 'flatsome' ), 'default' => 'false', ), ), ), 'post_options' => require( __DIR__ . '/commons/repeater-posts.php' ), 'filter_posts' => array( 'type' => 'group', 'heading' => __( 'فیلتر مطالب', 'flatsome' ), 'conditions' => 'ids == ""', 'options' => array( 'orderby' => array( 'type' => 'select', 'heading' => __( 'سفارشی سازی براساس', 'flatsome' ), 'default' => 'normal', 'options' => array( 'normal' => 'نرمال', 'title' => 'عنوان', 'sales' => 'فروش', 'price' => 'قیمت', 'rand' => 'تصادفی', 'date' => 'تاریخ' ) ), 'order' => array( 'type' => 'select', 'heading' => __( 'مرتب سازی', 'flatsome' ), 'default' => 'desc', 'options' => array( 'asc' => 'صعودی', 'desc' => 'نزولی', ) ), 'show' => array( 'type' => 'select', 'heading' => __( 'سایه', 'flatsome' ), 'default' => '', 'options' => array( '' => 'All', 'featured' => 'ویژه', 'onsale' => 'در فروش', ) ), 'out_of_stock' => array( 'type' => 'select', 'heading' => __( 'موجود نیست', 'flatsome' ), 'default' => '', 'options' => array( '' => 'شامل', 'exclude' => 'مستثنی شود', ), ), ) ) ); $box_styles = require( __DIR__ . '/commons/box-styles.php' ); $options = array_merge($options, $box_styles); $options['image_options']['conditions'] = 'style !== "default"'; $options['text_options']['conditions'] = 'style !== "default"'; $options['layout_options']['options']['depth']['conditions'] = 'style !== "default"'; $options['layout_options']['options']['depth_hover']['conditions'] = 'style !== "default"'; $options['post_options']['options']['tags'] = array( 'type' => 'select', 'heading' => 'برچسب', 'conditions' => 'ids == ""', 'full_width' => true, 'default' => '', 'config' => array( 'multiple' => true, 'placeholder' => 'Select...', 'termSelect' => array( 'post_type' => 'product', 'taxonomies' => 'product_tag', ), ) ); add_ux_builder_shortcode( 'ux_products', array( 'name' => 'محصولات', 'category' => __( 'Shop', 'flatsome' ), 'priority' => 1, 'thumbnail' => flatsome_ux_builder_thumbnail( 'products' ), 'presets' => array( array( 'name' => __( 'پیشفرض', 'flatsome' ), 'content' => '[ux_products]' ), array( 'name' => __( 'جشنواره فروش', 'flatsome' ), 'content' => '[ux_products orderby="sales" show="onsale"]' ), array( 'name' => __( 'محصولات ویژه', 'flatsome' ), 'content' => '[ux_products show="featured"]' ), array( 'name' => __( 'بیشترین فروش', 'flatsome' ), 'content' => '[ux_products orderby="sales"]' ), array( 'name' => __( 'بوک بوک استایل', 'flatsome' ), 'content' => '[ux_products style="shade" slider_nav_style="circle" col_spacing="normal" depth="1" depth_hover="5" image_height="200%" image_size="medium" image_hover="overlay-add" image_hover_alt="zoom-long" text_size="large" text_hover="hover-slide"]' ), array( 'name' => __( 'لوک بوک استایل 2', 'flatsome' ), 'content' => '[ux_products style="overlay" slider_nav_style="circle" width="full-width" col_spacing="collapse" columns="6" orderby="rand" image_height="200%" image_size="medium" image_overlay="rgba(0, 0, 0, 0.58)" image_hover="overlay-add" image_hover_alt="zoom-long" text_pos="middle" text_size="large" text_hover="zoom-in"]' ),array( 'name' => __( 'لوک بوک استایل 3', 'flatsome' ), 'content' => '[ux_products style="overlay" image_height="169%" image_size="medium" image_overlay="rgba(0, 0, 0, 0.67)" image_hover="color" image_hover_alt="overlay-remove-50" text_size="large"]' ), array( 'name' => __( 'ماسونری استایل', 'flatsome' ), 'content' => '[ux_products style="normal" type="masonry" depth="1" depth_hover="5" text_align="left"]' ), array( 'name' => __( 'گرید استایل', 'flatsome' ), 'content' => '[ux_products style="shade" type="grid" grid_height="650px" products="4" orderby="sales" show="featured" image_overlay="rgba(0, 0, 0, 0.19)" image_hover="zoom" image_hover_alt="glow" text_align="left" text_size="large"]' ), ), 'options' => $options ) );
[-] woocommerce_cart.php
[edit]
[-] ux_video.php
[edit]
[-] ux_stack.php
[edit]
[-] gap.php
[edit]
[-] ux_gutenberg.php
[edit]
[-] ux_payment_icons.php
[edit]
[-] row.php
[edit]
[-] button.php
[edit]
[-] page_header.php
[edit]
[-] ux_product_flip.php
[edit]
[-] ux_slider.php
[edit]
[-] scroll_to.php
[edit]
[-] woocommerce_shortcodes.php
[edit]
[-] ux_banner_grid.php
[edit]
[-] map.php
[edit]
[-] tab.php
[edit]
[-] ux_banner.php
[edit]
[-] price_table.php
[edit]
[-] title.php
[edit]
[-] ux_products.php
[edit]
[-] ux_html.php
[edit]
[-] ux_product_categories.php
[edit]
[-] ux_bestseller_products.php
[edit]
[-] ux_pages.php
[edit]
[-] block.php
[edit]
[-] woocommerce_checkout.php
[edit]
[-] ux_menu_title.php
[edit]
[-] search.php
[edit]
[-] custom-product.php
[edit]
[-] ux_products_list.php
[edit]
[-] ux_lottie.php
[edit]
[-] accordion.php
[edit]
[-] ux_countdown.php
[edit]
[-] message_box.php
[edit]
[-] contactform7.php
[edit]
[-] featured_box.php
[edit]
[-] col_grid.php
[edit]
[-] divider.php
[edit]
[-] accordion_item.php
[edit]
[-] ux_instagram_feed.php
[edit]
[+]
helpers
[-] ux_image.php
[edit]
[-] ux_badge.php
[edit]
[-] ux_menu_link.php
[edit]
[-] ux_shortcode.php
[edit]
[-] section.php
[edit]
[-] ux_gallery.php
[edit]
[-] ux_sidebar.php
[edit]
[+]
values
[-] team_member.php
[edit]
[-] text.php
[edit]
[-] col.php
[edit]
[-] follow.php
[edit]
[-] video_button.php
[edit]
[-] blog_posts.php
[edit]
[-] ux_image_box.php
[edit]
[-] ux_logo.php
[edit]
[-] tabgroup.php
[edit]
[-] share.php
[edit]
[-] ux_hotspot.php
[edit]
[+]
..
[-] ux_menu.php
[edit]
[+]
thumbnails
[-] ux_nav.php
[edit]
[-] ux_portfolio.php
[edit]
[-] page_meta.php
[edit]
[+]
commons
[-] testimonial.php
[edit]
[+]
templates
[-] text_box.php
[edit]