403Webshell
Server IP : 172.67.158.161  /  Your IP : 18.188.209.244
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/khowordpress.com/wp-content/themes/flatsome/inc/shortcodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/khowordpress.com/wp-content/themes/flatsome/inc/shortcodes/product_flip.php
<?php

// Flatsome Products
function ux_product_flip($atts, $content = null, $tag) {
  $sliderrandomid = rand();
  extract(shortcode_atts(array(
    '_id' => 'product-flip-'.rand(),
    'title' => '',
    'ids' => '',
    'width' => '',

    'slider_nav_style' => 'normal',
    'slider_nav_position' => 'outside',
    'slider_bullets' => 'true',
    'slider_arrows' => 'true',
    'auto_slide' => 'false',
    'infinitive' => 'true',

    // posts
    'cat' => '',
    'excerpt' => 'visible',
    'offset' => '',
    'filter' => '',

    // Posts Woo
    'products' => '8',
    'orderby' => '', // normal, sales, rand, date
    'order' => '',
    'tags' => '',
    'show' => '', //featured, onsale

    'depth' => '2',
    'depth_hover' => '',


  ), $atts));

  $slide_classes = array('slide');
  $slider_classes = array('slide');

  if($depth) $slider_classes[] = 'box-shadow-'.$depth;

  ob_start();

  ?>
  <?php

    if(empty($ids)){

	    if ( ! is_array( $atts ) ) {
		    $atts = array();
	    }

      // Get products
      $atts['products'] = $products;
      $atts['offset'] = $offset;
      $atts['cat'] = $cat;

      $products = ux_list_products($atts);
    } else {
      // Get custom ids
      $ids = explode( ',', $ids );
      $ids = array_map( 'trim', $ids );

      $args = array(
        'post__in' => $ids,
        'post_type' => 'product',
        'numberposts' => -1,
		'posts_per_page' => -1,
        'orderby' => 'post__in',
        'ignore_sticky_posts' => true,
      );

      $products = new WP_Query( $args );
  }

  if ( $products->have_posts() ) : ?>
          <div class="row"><div class="large-12 col">
          <div style="background-color:#FFF;" class="slider flipContainer slider-nav-circle <?php echo implode(' ', $slider_classes);?>"
            data-flickity-options='{
              "cellAlign": "center",
              "wrapAround": true,
              "percentPosition": true,
              "imagesLoaded": true,
              "pageDots": true,
              "contain": true
          }'>
          <?php while ( $products->have_posts() ) : $products->the_post(); ?>
              <div class="<?php echo implode(' ', $slide_classes);?>" style="background-color:#FFF;"><?php wc_get_template_part( 'content', 'product-flipbook' ); ?></div>
          <?php endwhile; // end of the loop. ?>
          </div>
          </div></div>
          <?php

  endif;
  wp_reset_query();

  $content = ob_get_contents();
  ob_end_clean();
  return $content;
}
add_shortcode("ux_product_flip", "ux_product_flip");

Youez - 2016 - github.com/yon3zu
LinuXploit