PATH:
home
/
niazsaze
/
public_html
/
wp-content
/
themes
/
flatsome
/
inc
/
shortcodes
<?php // [ux_hotspot] function ux_hotspot( $atts, $content = null ) { extract( shortcode_atts( array( 'class' => '', 'visibility' => '', 'type' => 'text', 'text' => 'Enter text here', 'link' => '#hotspot', 'bg_color' => '', 'position_x' => '50', 'position_x__sm' => '', 'position_x__md' => '', 'position_y' => '50', 'position_y__sm' => '', 'position_y__md' => '', 'size' => '', 'icon' => 'plus', 'depth' => '', 'depth_hover' => '', 'animate' => 'bounceIn', 'prod_id' => '149', ), $atts ) ); $classes = array( 'hotspot-wrapper' ); $classes_inner = array( 'hotspot tooltip' ); if ( $class ) { $classes[] = $class; } if ( $visibility ) { $classes[] = $visibility; } // Set positions. $classes[] = flatsome_position_classes( 'x', $position_x, $position_x__sm, $position_x__md ); $classes[] = flatsome_position_classes( 'y', $position_y, $position_y__sm, $position_y__md ); // Size. if ( $size ) { $classes[] = 'is-' . $size; } $classes = implode( ' ', $classes ); if ( $depth ) { $classes_inner[] = 'box-shadow-' . $depth; } if ( $depth_hover ) { $classes_inner[] = 'box-shadow-' . $depth . '-hover'; } $classes_inner = implode( ' ', $classes_inner ); $css_args = array( 'bg_color' => array( 'attribute' => 'background-color', 'value' => $bg_color, ), ); // load quick view script for products. if ( $type == 'product' && ! get_theme_mod( 'disable_quick_view' ) ) { wp_enqueue_script( 'wc-add-to-cart-variation' ); } ?> <div class="<?php echo esc_attr( $classes ); ?> dark"> <div data-animate="<?php echo esc_attr( $animate ); ?>"> <?php if ( $type == 'text' ) { ?> <a href="<?php echo esc_url( $link ); ?>" class="<?php echo esc_attr( $classes_inner ); ?>" title="<?php echo esc_attr( $text ); ?>" <?php echo get_shortcode_inline_css( $css_args ); ?>> <i class="icon-<?php echo esc_attr( $icon ); ?>"></i> </a> <?php } else if ( $type == 'product' ) { if ( get_theme_mod( 'disable_quick_view' ) ) : ?> <a href="<?php echo esc_url( get_permalink( $prod_id ) ); ?>" class="<?php echo esc_attr( $classes_inner ); ?>" title="<?php echo esc_attr( get_the_title( $prod_id ) ); ?>" <?php echo get_shortcode_inline_css( $css_args ); ?>> <i class="icon-<?php echo esc_attr( $icon ); ?>"></i> </a> <?php else : ?> <a href="#quick-view" class="<?php echo esc_attr( $classes_inner ); ?> quick-view" data-prod="<?php echo esc_attr( $prod_id ); ?>" title="<?php echo esc_attr( get_the_title( $prod_id ) ); ?>" <?php echo get_shortcode_inline_css( $css_args ); ?>> <i class="icon-<?php echo esc_attr( $icon ); ?>"></i> </a> <?php endif; ?> <?php } ?> </div> </div> <?php } add_shortcode( 'ux_hotspot', 'ux_hotspot' );
[-] 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]