PATH:
home
/
niazsaze
/
public_html
/
wp-content
/
themes
/
flatsome
/
inc
/
builder
/
shortcodes
<?php /** * Registers the Product Flip element in UX Builder. * * @package flatsome */ $repeater_posts = 'products'; // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable $repeater_post_type = 'product'; // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable $repeater_post_cat = 'product_cat'; // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable $options = array( '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' => 'نرمال', 'sales' => 'فروش', 'rand' => 'تصادفی', 'date' => 'تاریخ', ), ), 'order' => array( 'type' => 'select', 'heading' => __( 'مرتب سازی', 'flatsome' ), 'default' => 'asc', 'options' => array( 'asc' => 'صعودی', 'desc' => 'نزولی', ), ), 'show' => array( 'type' => 'select', 'heading' => __( 'مرتبسازی', 'flatsome' ), 'default' => '', 'options' => array( '' => 'همه', 'featured' => 'ویژه', 'onsale' => 'برای فروش', ), ), 'out_of_stock' => array( 'type' => 'select', 'heading' => __( 'چیزی ندارد', 'flatsome' ), 'default' => '', 'options' => array( '' => 'شامل', 'exclude' => 'مستثنی شوند', ), ), ), ), ); $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_product_flip', array( 'name' => 'فلیپ بوک', 'category' => __( 'Shop', 'flatsome' ), 'priority' => 4, 'thumbnail' => flatsome_ux_builder_thumbnail( 'product_flipbook' ), 'wrap' => false, 'presets' => array( array( 'name' => __( 'نرمال', 'flatsome' ), 'content' => '[ux_product_flip]', ), ), '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]