Server IP : 15.235.198.142 / Your IP : 216.73.216.185 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/rhodeworks/wp-content/plugins/nextgen-gallery/src/Admin/ |
Upload File : |
<?php /** * Albums Preview class. * * @since 3.5.0 * * @package Envira_Gallery * @author Envira Gallery Team */ namespace Imagely\NGG\Admin; /** * Albums Preview Class * * @since 3.5.0 */ class Ecommerce_Preview { /** * Holds base singleton. * * @since 3.5.0 * * @var object */ public $base = null; /** * Class Hooks * * @since 3.5.0 * * @return void */ public function hooks() { if ( nextgen_is_plus_or_pro_enabled() ) { return; } add_action( 'admin_menu', [ $this, 'admin_menu' ], 10 ); } /** * Helper Method to add Admin Menu * * @since 3.5.0 * * @return void */ public function admin_menu() { add_submenu_page( NGGFOLDER, esc_html__( 'Ecommerce', 'nggallery' ), esc_html__( 'Ecommerce', 'nggallery' ), apply_filters( 'envira_gallery_menu_cap', 'manage_options' ), NGG_PLUGIN_SLUG . '-albums', [ $this, 'page' ] ); } /** * Helper Method to display Admin Page * * @since 3.5.0 * * @return void */ public function page() { // If here, we're on an Envira Gallery or Album screen, so output the header. nextgen_load_admin_partial( 'ecommerce', [] ); } }