PATH:
home
/
niazsaze
/
public_html
/
wp-content
/
themes
/
flatsome
/
inc
/
builder
/
shortcodes
<?php // Shortcode to display product categories $repeater_columns = '4'; $repeater_type = 'slider'; $default_text_align = 'center'; $repeater_col_spacing = 'small'; $options = array( 'portfolio_meta' => array( 'type' => 'group', 'heading' => __( 'گزینه ها', 'flatsome' ), 'options' => array( 'style' => array( 'type' => 'select', 'heading' => __( 'استایل', 'flatsome' ), 'default' => 'bounce', 'options' => require( __DIR__ . '/values/box-layouts.php' ) ), 'filter' => array( 'type' => 'radio-buttons', 'heading' => __( 'فیلتر', 'flatsome' ), 'default' => '', 'options' => array( '' => array( 'title' => 'خاموش'), 'true' => array( 'title' => 'روشن'), ), ), 'filter_nav' => array( 'type' => 'select', 'heading' => __( 'استایل فیلتر', 'flatsome' ), 'conditions' => 'filter', 'default' => 'line-grow', 'options' => require( __DIR__ . '/values/nav-styles.php' ), ), 'filter_align' => array( 'type' => 'radio-buttons', 'conditions' => 'filter', 'heading' => 'موقعیت فیلتر', 'default' => 'center', 'options' => require( __DIR__ . '/values/align-radios.php' ), ), 'lightbox' => array( 'type' => 'radio-buttons', 'heading' => __( 'لایتباکس', 'flatsome' ), 'default' => '', 'options' => array( '' => array( 'title' => 'خاموش'), 'true' => array( 'title' => 'روشن'), ), ), 'lightbox_image_size' => array( 'type' => 'select', 'heading' => __( 'سایز تصویر لایتباکس', 'flatsome' ), 'conditions' => 'lightbox == "true"', 'default' => 'original', 'options' => flatsome_ux_builder_image_sizes(), ), 'ids' => array( 'type' => 'select', 'heading' => 'Ids', 'full_width' => true, 'config' => array( 'multiple' => true, 'placeholder' => 'Select...', 'postSelect' => array( 'post_type' => array( 'featured_item' ) ), ) ), 'cat' => array( 'type' => 'select', 'heading' => 'دستهبندی', 'conditions' => 'ids == ""', 'full_width' => true, 'config' => array( 'placeholder' => 'Select...', 'termSelect' => array( 'post_type' => 'featured_item', 'taxonomies' => 'featured_item_category' ), ) ), 'number' => array( 'type' => 'textfield', 'heading' => 'مجموع', 'conditions' => 'ids == ""', 'default' => '', ), 'offset' => array( 'type' => 'textfield', 'heading' => 'آفست', 'conditions' => 'ids == ""', 'default' => '', ), 'orderby' => array( 'type' => 'select', 'heading' => __( 'ترتیب براساس', 'flatsome' ), 'default' => 'menu_order', 'conditions' => 'ids == ""', 'options' => array( 'title' => 'Title', 'name' => 'Name', 'date' => 'Date', 'menu_order' => 'Menu Order', ) ), 'order' => array( 'type' => 'select', 'heading' => __( 'ترتیب', 'flatsome' ), 'conditions' => 'ids == ""', 'default' => 'desc', 'options' => array( 'desc' => 'DESC', 'asc' => 'ASC', ) ), ), ), 'layout_options' => require( __DIR__ . '/commons/repeater-options.php' ), 'layout_options_slider' => require( __DIR__ . '/commons/repeater-slider.php' ), ); $box_styles = require( __DIR__ . '/commons/box-styles.php' ); $options = array_merge($options, $box_styles); $advanced = array('advanced_options' => require( __DIR__ . '/commons/advanced.php')); $options = array_merge($options, $advanced); add_ux_builder_shortcode( 'ux_portfolio', array( 'name' => __( 'نمونه کار', 'flatsome' ), 'category' => __( 'Content', 'flatsome' ), 'wrap' => true, 'thumbnail' => flatsome_ux_builder_thumbnail( 'portfolio' ), 'scripts' => array( 'flatsome-masonry-js' => get_template_directory_uri() .'/assets/libs/packery.pkgd.min.js', 'flatsome-isotope-js' => get_template_directory_uri() .'/assets/libs/isotope.pkgd.min.js', ), 'presets' => array( array( 'name' => __( 'Normal', 'flatsome' ), 'content' => '[ux_portfolio]' ), array( 'name' => __( 'Normal Lightbox', 'flatsome' ), 'content' => '[ux_portfolio lightbox="true"]' ), array( 'name' => __( 'Simple Filtering', 'flatsome' ), 'content' => '[ux_portfolio style="overlay" filter="true" orderby="name" type="masonry" grid="3" image_hover="overlay-add-50" image_hover_alt="zoom" text_pos="middle" text_size="large" text_hover="slide"]' ),array( 'name' => __( 'Outline Nav Filter', 'flatsome' ), 'content' => '[ux_portfolio style="overlay" filter="true" filter_nav="outline" orderby="name" type="masonry" grid="3" image_hover="overlay-add-50" image_hover_alt="blur" text_pos="middle"]' ),array( 'name' => __( 'Simple Slider', 'flatsome' ), 'content' => '[ux_portfolio style="shade" filter_nav="outline" orderby="name" grid="3" columns="5" image_hover="zoom" image_hover_alt="grayscale"]' ), array( 'name' => __( 'Grid Style', 'flatsome' ), 'content' => '[ux_portfolio style="overlay" filter="true" filter_nav="outline" number="4" orderby="name" type="grid" grid="3" image_hover="overlay-add-50" image_hover_alt="zoom" text_align="left" text_size="large" text_hover="bounce"]' ), array( 'name' => __( 'Grid Style 2', 'flatsome' ), 'content' => '[ux_portfolio style="overlay" filter="true" filter_nav="outline" number="4" orderby="name" type="grid" grid="3" width="full-width" col_spacing="collapse" image_hover="overlay-add-50" image_hover_alt="zoom" text_align="left" text_size="large" text_hover="bounce"]' ) ), '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]