403Webshell
Server IP : 104.21.14.103  /  Your IP : 3.149.238.173
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 :  /proc/self/root/home/giankuin/dietcontrungnhanh.com/wp-content/themes/flatsome/inc/builder/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/home/giankuin/dietcontrungnhanh.com/wp-content/themes/flatsome/inc/builder/helpers.php
<?php

function flatsome_ux_builder_template( $path ) {
  ob_start();
  include get_template_directory() . '/inc/builder/shortcodes/templates/' . $path;
  return ob_get_clean();
}

function flatsome_ux_builder_thumbnail( $name ) {
  return get_template_directory_uri() . '/inc/builder/shortcodes/thumbnails/' . $name . '.svg';
}

function flatsome_ux_builder_template_thumb( $name ) {
  return get_template_directory_uri() . '/inc/builder/templates/thumbs/' . $name . '.jpg';
}

function flatsome_ux_builder_image_sizes( $sizes = array() ) {
  $image_sizes      = get_intermediate_image_sizes();
  $additional_sizes = wp_get_additional_image_sizes();

  $sizes['original'] = __( 'Original', 'flatsome' );

  foreach ( $image_sizes as $key ) {
    if ( isset( $additional_sizes[ $key ] ) ) {
      $width  = $additional_sizes[ $key ]['width'];
      $height = $additional_sizes[ $key ]['height'];
    } else {
      $width  = get_option( $key . '_size_w' );
      $height = get_option( $key . '_size_h' );
    }

    $name = ucfirst( str_replace( '_', ' ', $key ) );
    $size = join( 'x', array_filter( array( $width, $height ) ) );

    if ( $size != $key ) {
      $name .= " ($size)";
    }

    $sizes[ $key ] = $name;
  }

  if ( is_woocommerce_activated() ) {
    foreach ( array( 'shop_catalog', 'shop_single', 'shop_thumbnail' ) as $key ) {
      if ( array_key_exists( $key, $sizes ) ) {
        unset( $sizes[ $key ] );
      }
    }
  }

  return $sizes;
}

Youez - 2016 - github.com/yon3zu
LinuXploit