PATH:
home
/
niazsaze
/
public_html
/
wp-content
/
themes
/
flatsome
/
inc
/
builder
/
shortcodes
<?php // Set defaults $repeater_columns = '4'; $repeater_type = 'slider'; $repeater_post_type = 'post'; $repeater_col_spacing = 'normal'; $repeater_post_cat = 'category'; $default_text_align = 'center'; $options = array( 'style_options' => array( 'type' => 'group', 'heading' => __( 'استایل', 'flatsome' ), 'options' => array( 'style' => array( 'type' => 'select', 'heading' => __( 'استایل', 'flatsome' ), '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' ), 'post_options' => require( __DIR__ . '/commons/repeater-posts.php' ), 'post_title_options' => array( 'type' => 'group', 'heading' => __( 'عنوان', 'flatsome' ), 'options' => array( 'title_size' => array( 'type' => 'select', 'heading' => 'سایز عنوان', 'default' => '', 'options' => require( __DIR__ . '/values/sizes.php' ) ), 'title_style' => array( 'type' => 'radio-buttons', 'heading' => 'استایل عنوان', 'default' => '', 'options' => array( '' => array( 'title' => 'Abc'), 'uppercase' => array( 'title' => 'ABC'), ) ), ) ), 'read_more_button' => array( 'type' => 'group', 'heading' => __( 'بیشتر بخوانید', 'flatsome' ), 'options' => array( 'readmore' => array( 'type' => 'textfield', 'heading' => 'متن', 'default' => '', ), 'readmore_color' => array( 'type' => 'select', 'heading' => 'رنگ', 'conditions' => 'readmore', 'default' => '', 'options' => array( '' => 'Default', 'primary' => 'Primary', 'secondary' => 'Secondary', 'alert' => 'Alert', 'success' => 'Success', 'white' => 'White', ) ), 'readmore_style' => array( 'type' => 'select', 'heading' => 'استایل', 'conditions' => 'readmore', 'default' => 'outline', 'options' => array( 'default' => 'Default', 'outline' => 'Outline', 'link' => 'Simple', 'underline' => 'Underline', 'shade' => 'Shade', 'bevel' => 'Bevel', 'gloss' => 'Gloss', ) ), 'readmore_size' => array( 'type' => 'select', 'conditions' => 'readmore', 'heading' => 'سایز', 'default' => '', 'options' => require( __DIR__ . '/values/sizes.php' ), ), ) ), 'post_meta_options' => array( 'type' => 'group', 'heading' => __( 'متا', 'flatsome' ), 'options' => array( 'show_date' => array( 'type' => 'select', 'heading' => 'تاریخ', 'default' => 'badge', 'options' => array( 'badge' => 'Badge', 'text' => 'متن', 'false' => 'Hidden', ) ), 'badge_style' => array( 'type' => 'select', 'heading' => 'استایل بج', 'default' => '', 'conditions' => 'show_date == "badge"', 'options' => array( '' => 'Default', 'outline' => 'Outline', 'square' => 'Square', 'circle' => 'Circle', 'circle-inside' => 'Circle Inside', ) ), 'excerpt' => array( 'type' => 'select', 'heading' => 'چکیده', 'default' => 'visible', 'options' => array( 'visible' => 'Visible', 'fade' => 'Fade In On Hover', 'slide' => 'Slide In On Hover', 'reveal' => 'Reveal On Hover', 'false' => 'Hidden', ) ), 'excerpt_length' => array( 'type' => 'slider', 'heading' => 'طول چکیده', 'default' => 15, 'max' => 100, 'min' => 5, ), 'show_category' => array( 'type' => 'select', 'heading' => 'دسته بندی', 'default' => 'false', 'options' => array( 'label' => 'برچسب', 'text' => 'متن', 'false' => 'Hidden', ) ), 'comments' => array( 'type' => 'select', 'heading' => 'دیدگاه ها', 'default' => 'visible', 'options' => array( 'visible' => 'Visible', 'false' => 'Hidden', ) ), ), ), ); $box_styles = require( __DIR__ . '/commons/box-styles.php' ); $options = array_merge($options, $box_styles); add_ux_builder_shortcode( 'blog_posts', array( 'name' => __( 'مطلب های بلاگ', 'flatsome' ), 'category' => __( 'محتوا', 'flatsome' ), 'thumbnail' => flatsome_ux_builder_thumbnail( 'blog_posts' ), 'scripts' => array( 'flatsome-masonry-js' => get_template_directory_uri() .'/assets/libs/packery.pkgd.min.js', ), 'presets' => array( array( 'name' => __( 'نرمال', 'flatsome' ), 'content' => '[blog_posts style="normal" columns="3" columns__md="1" image_height="56.25%"]' ), array( 'name' => __( 'بونس', 'flatsome' ), 'content' => '[blog_posts style="bounce" badge_style="square" image_height="75%"]' ), array( 'name' => __( 'پوش', 'flatsome' ), 'content' => '[blog_posts style="push" columns="3" columns__md="1" badge_style="circle-inside" image_height="75%"]' ), array( 'name' => __( 'افقی', 'flatsome' ), 'content' => '[blog_posts style="vertical" slider_nav_style="simple" slider_nav_position="outside" columns="2" columns__md="1" depth="2" image_height="89%" image_width="43"]' ), array( 'name' => __( 'آورلای', 'flatsome' ), 'content' => '[blog_posts style="overlay" depth="1" title_style="uppercase" show_date="text" image_height="144%" image_overlay="rgba(0, 0, 0, 0.17)" image_hover="zoom"]' ), array( 'name' => __( 'آورلای - اسکیل', 'flatsome' ), 'content' => '[blog_posts style="overlay" depth="1" animate="fadeInLeft" title_style="uppercase" show_date="text" image_height="144%" image_overlay="rgba(0, 0, 0, 0.56)" image_hover="color" image_hover_alt="overlay-remove-50"]' ), array( 'name' => __( 'ماسونری', 'flatsome' ), 'content' => '[blog_posts type="masonry" columns="3" depth="2" image_height="180px"]' ), array( 'name' => __( 'گرید', 'flatsome' ), 'content' => '[blog_posts style="shade" type="grid" columns="3" depth="1" posts="4" title_size="larger" title_style="uppercase" readmore="Read More" badge_style="circle-inside" image_height="180px"]' ), array( 'name' => __( 'فول اسلایدر', 'flatsome' ), 'content' => '[blog_posts style="shade" type="slider-full" grid="2" slider_nav_style="circle" columns="1" title_size="larger" show_date="text" excerpt="false" show_category="label" comments="false" image_size="large" image_overlay="rgba(0, 0, 0, 0.09)" image_hover="overlay-remove" text_size="large" text_hover="bounce" text_padding="10% 0px 10% 0px"]' ), ), '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]