PATH:
home
/
niazsaze
/
public_html
/
wp-content
/
themes
/
flatsome
/
inc
/
builder
/
shortcodes
<?php add_ux_builder_shortcode( 'ux_price_table', array( 'type' => 'container', 'name' => __( 'جدول قیمت گذاری', 'flatsome' ), 'category' => __( 'Content', 'flatsome' ), 'thumbnail' => flatsome_ux_builder_thumbnail( 'price_table' ), 'allow' => array('text','bullet_item','button'), 'wrap' => false, 'presets' => array( array( 'name' => __( 'Default', 'flatsome' ), 'content' => '[ux_price_table title="Title" price="price" featured="false"][bullet_item text="Title"][bullet_item text="Title"][bullet_item text="Title"][bullet_item text="Title"][/ux_price_table]', ), ), 'options' => array( 'title' => array( 'type' => 'textfield','heading' => 'عنوان', 'default' => 'عنوان', 'on_change' => array('selector' => '.title', 'content' => '{{value}}' )), 'price' => array( 'type' => 'textfield','heading' => 'قیمت', 'default' => '100 تومان ','on_change' => array('selector' => '.price', 'content' => '{{value}}')), 'description' => array( 'type' => 'textfield','heading' => 'توضیحات.', 'default' => 'توضیحات','on_change' => array('selector' => '.description', 'content' => '{{value}}')), 'featured' => array( 'type' => 'radio-buttons', 'heading' => __( 'ویژگیها', 'flatsome' ), 'default' => 'false', 'options' => array( 'false' => array( 'title' => 'خیر'), 'true' => array( 'title' => 'بله'), ), 'on_change' => array( 'recompile' => false, 'selector' => '.pricing-table', 'class' => array( 'false' => '', 'true' => 'featured-table', ), ), ), 'color' => array( 'type' => 'radio-buttons', 'heading' => __( 'متن رنگ', 'flatsome' ), 'default' => '', 'options' => array( '' => array( 'title' => 'تاریک'), 'dark' => array( 'title' => 'روشن'), ), 'on_change' => array( 'recompile' => false, 'class' => '{{ value }}', ), ), 'bg_color' => array( 'type' => 'colorpicker', 'heading' => __( 'رنگپسزمینه', 'flatsome' ), 'format' => 'rgb', 'position' => 'bottom right', 'on_change' => array( 'selector' => '.pricing-table', 'style' => 'background-color: {{value}}', ), ), 'radius' => array( 'type' => 'slider', 'heading' => __( 'ردیوس', 'flatsome' ), 'default' => '0', 'unit' => 'px', 'max' => '30', 'min' => '0', 'on_change' => array( 'selector' => '.pricing-table', 'style' => 'border-radius: {{value}}px', ), ), 'depth' => array( 'type' => 'slider', 'heading' => __( 'دیپ', 'flatsome' ), 'default' => '0', 'max' => '5', 'min' => '0', 'on_change' => array( 'recompile' => false, 'selector' => '.pricing-table', 'class' => 'box-shadow-{{ value }}' ), ), 'depth_hover' => array( 'type' => 'slider', 'heading' => __( 'دیپ هاور', 'flatsome' ), 'default' => '3', 'max' => '5', 'min' => '0', 'on_change' => array( 'recompile' => false, 'selector' => '.pricing-table', 'class' => 'box-shadow-{{ value }}-hover' ), ), 'advanced_options' => require( __DIR__ . '/commons/advanced.php'), ) ) ); add_ux_builder_shortcode( 'bullet_item', array( 'name' => __( 'Bullet Item', 'flatsome' ), 'info' => '{{ title }}', 'require' => array( 'ux_price_table' ), 'template' => ' <div class="bullet-item" ng-class="{ \'tooltip\': !!shortcode.options.tooltip, \'has-hover\': !!shortcode.options.tooltip, \'is-disabled\': shortcode.options.enabled !== \'true\' }" ng-attr-title="shortcode.options.tooltip"> <span class="text" ng-bind-html="shortcode.options.text | html"></span> <span ng-if="shortcode.options.tooltip" class="tag-label bullet-more-info circle">?</span> </div> ', 'wrap' => false, 'hidden' => true, 'options' => array( 'text' => array( 'type' => 'textfield', 'heading' => 'متـــن', 'default' => 'Add any text here', ), 'tooltip' => array( 'type' => 'textfield', 'heading' => 'تولتیپ', 'default' => '', ), 'enabled' => array( 'type' => 'radio-buttons', 'heading' => __( 'فعالسازی', 'flatsome' ), 'default' => 'true', 'options' => array( 'true' => array( 'title' => 'بله'), 'false' => array( 'title' => 'خیر'), ), ), ), ) );
[-] 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]