PATH:
home
/
niazsaze
/
public_html
/
wp-content
/
themes
/
flatsome
/
inc
/
shortcodes
<?php // [ux_price_table] function ux_price_table( $atts, $content = null ){ extract( shortcode_atts( array( 'class' => '', 'visibility' => '', 'title' => 'Title', 'price' => '$99.99', 'description' => '', 'featured' => '', 'radius' => '', 'color' => '', 'bg_color' => '', 'depth' => '', 'depth_hover' => '3', // Depricated 'button_style' => '', 'button_text' => '', 'button_link' => '', ), $atts ) ); if($visibility == 'hidden') return; ob_start(); $classes = array('pricing-table','ux_price_table'); $classes_wrapper = array('pricing-table-wrapper'); $classes[] = 'text-center'; if( $class ) $classes[] = $class; if( $visibility ) $classes[] = $visibility; if($color == 'dark') $classes_wrapper[] = 'dark'; if($depth) $classes[] = 'box-shadow-'.$depth; if($depth_hover) $classes[] = 'box-shadow-'.$depth_hover.'-hover'; if($featured) $classes[] = 'featured-table'; $css_args = array( array( 'attribute' => 'border-radius', 'value' => $radius, 'unit' => 'px'), array( 'attribute' => 'background-color', 'value' => $bg_color ), ); ?> <div class="<?php echo esc_attr( implode( ' ', $classes_wrapper ) ); ?>"> <div class="<?php echo esc_attr( implode( ' ', $classes ) ); ?>"<?php echo get_shortcode_inline_css($css_args); ?>> <div class="pricing-table-header"> <div class="title uppercase strong"><?php echo wp_kses_post( $title ); ?></div> <div class="price is-xxlarge"><?php echo wp_kses_post( $price ); ?></div> <?php if(!empty($description)) { ?> <div class="description is-small"> <?php echo wp_kses_post( $description ); ?> </div> <?php } ?> </div> <div class="pricing-table-items items"> <?php echo do_shortcode( $content ); ?> </div> <?php if($button_text) { ?> <div class="cta-button"> <a class="button <?php echo esc_attr( $button_style ); ?>" href="<?php echo esc_url( $button_link ); ?>"> <?php echo wp_kses_post( $button_text ); ?></a> </div> <?php } ?> </div> </div> <?php $content = ob_get_contents(); ob_end_clean(); return $content; } add_shortcode('ux_price_table', 'ux_price_table'); // Price bullet function bullet_item( $atts, $content = null ){ extract( shortcode_atts( array( 'text' => 'Add any text here...', 'tooltip' => '', 'enabled' => '' ), $atts ) ); $tooltip_html = ''; $classes = array('bullet-item'); if($enabled == 'false') $classes[] = 'is-disabled'; if($tooltip) { $classes[] = 'tooltip'; $classes[] = 'has-hover'; $tooltip_html = '<span class="tag-label bullet-more-info circle">?</span>'; } $content = '<div class="' . esc_attr( implode( ' ', $classes ) ) . '" title="' . esc_attr( $tooltip ) . '"><span class="text">' . wp_kses_post( $text ) . '</span>' . $tooltip_html . '</div>'; return $content; } add_shortcode('bullet_item', 'bullet_item');
[-] ux_video.php
[edit]
[-] ux_stack.php
[edit]
[-] gap.php
[edit]
[-] ux_payment_icons.php
[edit]
[-] row.php
[edit]
[-] page_header.php
[edit]
[-] ux_slider.php
[edit]
[-] buttons.php
[edit]
[-] scroll_to.php
[edit]
[-] product_flip.php
[edit]
[-] messages.php
[edit]
[-] ux_banner_grid.php
[edit]
[-] tabs.php
[edit]
[-] ux_translation.php
[edit]
[-] ux_banner.php
[edit]
[-] price_table.php
[edit]
[-] ux_products.php
[edit]
[-] ux_html.php
[edit]
[-] ux_pages.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
[-] featured_box.php
[edit]
[-] titles_dividers.php
[edit]
[-] ux_instagram_feed.php
[edit]
[-] ux_image.php
[edit]
[-] ux_menu_link.php
[edit]
[-] ux_gallery.php
[edit]
[-] google_maps.php
[edit]
[-] ux_sidebar.php
[edit]
[-] portfolio.php
[edit]
[-] product_categories.php
[edit]
[-] follow.php
[edit]
[-] lightbox.php
[edit]
[-] team_members.php
[edit]
[-] testimonials.php
[edit]
[-] blog_posts.php
[edit]
[-] ux_image_box.php
[edit]
[-] ux_logo.php
[edit]
[-] ux_text.php
[edit]
[-] sections.php
[edit]
[-] share.php
[edit]
[-] ux_hotspot.php
[edit]
[+]
..
[-] ux_menu.php
[edit]
[-] ux_nav.php
[edit]
[+]
commons
[-] text_box.php
[edit]