PATH:
home
/
niazsaze
/
public_html
/
wp-content
/
themes
/
flatsome
/
inc
/
builder
/
shortcodes
<?php $position_options = require( __DIR__ . '/commons/position.php' ); $position_options['options']['position_x']['on_change'] = array( 'recompile' => false, 'class' => 'x{{ value }} md-x{{ value }} lg-x{{ value }}' ); $position_options['options']['position_y']['on_change'] = array( 'recompile' => false, 'class' => 'y{{ value }} md-y{{ value }} lg-y{{ value }}' ); add_ux_builder_shortcode( 'ux_image', array( 'name' => __( 'تصویر', 'ux-builder'), 'category' => __( 'Content', 'flatsome' ), 'toolbar_thumbnail' => 'id', 'thumbnail' => flatsome_ux_builder_thumbnail( 'ux_image' ), 'wrap' => false, 'presets' => array( array( 'name' => __( 'Blank', 'flatsome' ), 'content' => '[ux_image][/ux_image]', ), ), 'options' => array( 'id' => array( 'type' => 'image', 'heading' => __( 'تصویر', 'flatsome' ), 'default' => '' ), 'image_size' => array( 'type' => 'select', 'heading' => 'سایز تصویر', 'param_name' => 'image_size', 'default' => 'large', 'options' => flatsome_ux_builder_image_sizes(), ), 'width' => array( 'type' => 'slider', 'heading' => 'عرض', 'responsive' => true, 'default' => '100', 'unit' => '%', 'max' => '100', 'min' => '0', 'on_change' => array( 'style' => 'width: {{ value }}%' ), ), 'height' => array( 'type' => 'scrubfield', 'heading' => __( 'ارتفاع', 'flatsome' ), 'default' => '', 'placeholder' => __( 'Auto', 'flatsome' ), 'min' => 0, 'max' => 1000, 'step' => 1, 'helpers' => require( __DIR__ . '/helpers/image-heights.php' ), 'on_change' => array( 'selector' => '.image-cover', 'style' => 'padding-top: {{ value }}' ) ), 'margin' => array( 'type' => 'margins', 'heading' => __( 'فاصله', 'flatsome' ), 'value' => '', 'full_width' => true, 'min' => -100, 'max' => 100, 'step' => 1, ), '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' => 'large', 'options' => flatsome_ux_builder_image_sizes(), ), 'caption' => array( 'type' => 'radio-buttons', 'heading' => __( 'کپشن', 'flatsome' ), 'default' => '', 'options' => array( '' => array( 'title' => 'خاموش'), 'true' => array( 'title' => 'روشن'), ), ), 'lightbox_caption' => array( 'type' => 'radio-buttons', 'heading' => __( 'شرح در لایت باکس', 'flatsome' ), 'conditions' => 'lightbox == "true"', 'default' => '', 'options' => array( '' => array( 'title' => 'خاموش' ), 'true' => array( 'title' => 'روشن' ), ), ), 'image_title' => array( 'type' => 'radio-buttons', 'heading' => __( 'عنوان', 'flatsome' ), 'default' => '', 'options' => array( '' => array( 'title' => 'خاموش' ), 'true' => array( 'title' => 'روشن' ), ), ), 'image_overlay' => array( 'type' => 'colorpicker', 'heading' => __( 'تصویر آورلای', 'flatsome' ), 'default' => '', 'alpha' => true, 'format' => 'rgb', 'position' => 'bottom right', 'on_change' => array( 'selector' => '.overlay', 'style' => 'background-color: {{ value }}', ), ), 'image_hover' => array( 'type' => 'select', 'heading' => 'هاور تصویر', 'default' => '', 'options' => require( __DIR__ . '/values/image-hover.php' ), 'on_change' => array( 'selector' => '.img-inner', 'class' => 'image-{{ value }}' ) ), 'image_hover_alt' => array( 'type' => 'select', 'heading' => 'برچسب تصویر در حالت شناور', 'default' => '', 'options' => require( __DIR__ . '/values/image-hover.php' ), 'on_change' => array( 'selector' => '.img-inner', 'class' => 'image-{{ value }}' ) ), 'depth' => array( 'type' => 'slider', 'heading' => 'عمق', 'default' => '0', 'max' => '5', 'min' => '0', 'on_change' => array( 'selector' => '.img-inner', 'class' => 'box-shadow-{{ value }}' ) ), 'depth_hover' => array( 'type' => 'slider', 'heading' => 'عمق در حالت شناور', 'default' => '0', 'max' => '5', 'min' => '0', 'on_change' => array( 'selector' => '.img-inner', 'class' => 'box-shadow-{{ value }}-hover' ) ), 'parallax' => array( 'type' => 'slider', 'heading' => 'پارالکس', 'default' => '0', 'max' => '10', 'min' => '-10', ), 'animate' => array( 'type' => 'select', 'heading' => 'انیمیشن', 'default' => 'none', 'options' => require( __DIR__ . '/values/animate.php' ), ), 'link_options' => require( __DIR__ . '/commons/links.php' ), 'position_options' => $position_options, 'advanced_options' => require( __DIR__ . '/commons/advanced.php'), ), ) );
[-] 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]