403Webshell
Server IP : 62.72.47.131  /  Your IP : 216.73.217.34
Web Server : Apache/2.4.66 (Debian)
System : Linux 975cdb959a49 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64
User :  ( 501)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/plugins/medicate-core/includes/helper/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/medicate-core/includes/helper/helper.php
<?php
namespace Medic_Core\Includes\Helper;
class Medic_Helper
{
	protected static $instance = null;


	public static function instance() {
		if ( null == self::$instance ) {
			self::$instance = new self;
		}
		return self::$instance;
	}
    public function __construct(){
                remove_filter( 'render_block', 'wp_render_layout_support_flag', 10, 2 );
        remove_filter( 'render_block', 'gutenberg_render_layout_support_flag', 10, 2 );
    }
     public static function  pt_grid_class($count = null)
    {
    $class = '';

        switch ($count)
         {
                case 1:
                case 4:  $class .= 'ipt-lg-6';
                break;
                default: $class .= 'ipt-lg-3';
            }

    return $class;


    }
    public static function portfolio_manasory($wp_get_attachment_url = '' ,$crop = false, $count = '0')
     {
        $pt_featured_image_url = '';
        if (strlen($wp_get_attachment_url)) {
                switch ($count) {
                    case 1:
                    case 4:
                        $pt_featured_image_url = aq_resize($wp_get_attachment_url, "958", "468", $crop, true, true);
                        break;
                    default:
                        $pt_featured_image_url = aq_resize($wp_get_attachment_url, "467", "461", $crop, true, true);
                }
            if (!(bool)$pt_featured_image_url) {
                $pt_featured_image_url = $wp_get_attachment_url;
            }
            $featured_image = '<img  src="' . $pt_featured_image_url . '" alt="" />';
        } else {
            $featured_image = '';
        }
        return $featured_image;
    }

    public static function portfolio_grid($wp_get_attachment_url = '' ,$width='', $height='',$crop = false, $count = '0')
     {
        $pt_featured_image_url = '';
        if (strlen($wp_get_attachment_url)) {
                switch ($count) {
                    // case 3:
                    // case 4:
                    //     $pt_featured_image_url = aq_resize($wp_get_attachment_url, "958", "468", $crop, true, true);
                    //     break;
                    default:
                        $pt_featured_image_url = aq_resize($wp_get_attachment_url, $width, $height, $crop, true, true);
                }
            if (!(bool)$pt_featured_image_url) {
                $pt_featured_image_url = $wp_get_attachment_url;
            }
            $featured_image = '<img  src="' . $pt_featured_image_url . '" alt="" />';
        } else {
            $featured_image = '';
        }
        return $featured_image;
    }

    public static function blog_crop($wp_get_attachment_url = '' ,$crop = false, $count = '0')
     {
        $pt_featured_image_url = '';
        if (strlen($wp_get_attachment_url)) {
                        $pt_featured_image_url = aq_resize($wp_get_attachment_url, "467", "352", $crop, true, true);
            if (!(bool)$pt_featured_image_url) {
                $pt_featured_image_url = $wp_get_attachment_url;
            }
            $featured_image = '<img  src="' . $pt_featured_image_url . '" alt="" />';
        } else {
            $featured_image = '';
        }
        return $featured_image;
    }    

}

Medic_Helper::instance();

Youez - 2016 - github.com/yon3zu
LinuXploit