????JFIF??x?x????'
Server IP : 104.21.32.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tempvsty/peekmysite.com/wp-content/plugins/nextgen-gallery/src/Functions/ |
Upload File : |
<?php /** * Admin Functions * * @since 3.5.0 * * @package NextGen Gallery */ /** * Helper Method to load admin Partials * * @since 3.5.0 * * @param string $template Template to load. * * @return bool */ function nextgen_load_admin_partial( $template ) { $dir = trailingslashit( trailingslashit( NGG_PLUGIN_DIR ) . 'src/Admin/Views' ); if ( file_exists( $dir . $template . '.php' ) ) { require_once $dir . $template . '.php'; return true; } return false; } /** * Helper method to check if starter, plus or pro is active. * * @since 3.5.0 * * @return bool */ function nextgen_is_plus_or_pro_enabled() { return defined( 'NGG_PRO_PLUGIN_BASENAME' ) || defined( 'NGG_PLUS_PLUGIN_BASENAME' ) || defined( 'NGG_STARTER_PLUGIN_BASENAME' ) || is_multisite(); } /** * Helper Method to Detect NGG Admin Page * * @since 3.5.0 * * @return bool */ function is_nextgen_admin_page() { global $current_screen; if ( ! is_admin() ) { return false; } $keys = [ 'ngg', 'nggallery', 'nextgen-gallery', 'nextgen' ]; foreach ( $keys as $key ) { $is_modern_page = str_contains( $current_screen->id, $key ); if ( $is_modern_page ) { return true; } } return false; }