Server IP : 172.67.216.182 / Your IP : 172.68.164.161 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/audiomatrix.in/wp-content/plugins/essential-grid/includes/ |
Upload File : |
<?php /** * JackBox WordPress Plugin Extension * @url: http://codecanyon.net/item/jackbox-responsive-lightbox-wordpress-plugin/3357551 * @link http://www.themepunch.com/essential/ * @copyright 2016 ThemePunch * @since: 2.0 **/ if( !defined( 'ABSPATH') ) exit(); class Essential_Grid_Jackbox { /** * Check if JackBox is activated and at least version 2.2 is installed **/ public static function jb_exists(){ $exists = false; //if(is_plugin_active("wp-jackbox/wp-jackbox.php")){ if(function_exists('jackbox_admin_link')){ if(is_admin()){ $data = get_plugin_data(WP_PLUGIN_DIR."/wp-jackbox/wp-jackbox.php", false); update_option('tp_eg_jackbox_version', $data['Version']); $version = $data['Version']; }else{ $version = get_option('tp_eg_jackbox_version', '0'); } $exists = true; } return apply_filters('essgrid_jb_exists', $exists); } /** * Enable JackBox by adding Essential Grid to the Options of JackBox. JB will handle the rest **/ public static function enable_jackbox(){ if(!self::jb_exists()) return false; $jackbox_options = get_option('jackbox_settings'); if($jackbox_options){ $jackbox_options['essential'] = 'yes'; } update_option("jackbox_settings", apply_filters('essgrid_enable_jackbox', $jackbox_options)); } /** * Disable JackBox by removing Essential Grid from the Options of JackBox. JB will handle the rest **/ public static function disable_jackbox(){ if(!self::jb_exists()) return false; $jackbox_options = get_option('jackbox_settings'); if($jackbox_options){ $jackbox_options['essential'] = 'no'; } update_option("jackbox_settings", apply_filters('essgrid_disable_jackbox', $jackbox_options)); } /** * Check if JackBox is active in the Essential Grid Global options **/ public static function is_active(){ $active = false; if(self::jb_exists()){ $opt = get_option('tp_eg_use_lightbox', 'false'); if($opt === 'jackbox') $active = true; } return apply_filters('essgrid_is_active', $active); } } ?>