芝麻web文件管理V1.00
编辑当前文件:/home/projzpbv/public_html/wp-content/plugins/LayerSlider/assets/init.php
'LayerSlider', 'repoUrl' => LS_REPO_BASE_URL, 'root' => LS_ROOT_FILE, 'version' => LS_PLUGIN_VERSION, 'itemID' => LS_MARKETPLACE_ID, 'codeKey' => 'layerslider-purchase-code', 'authKey' => 'layerslider-authorized-site', 'channelKey' => 'layerslider-release-channel', 'activationKey' => 'layerslider-activation-id' ]); // Load locales add_action('plugins_loaded', function() { load_plugin_textdomain('LayerSlider', false, LS_PLUGIN_SLUG . '/assets/locales/' ); }); // Override locale? $custom_locale = get_option('ls_custom_locale', 'auto' ); if( ! empty( $custom_locale ) && $custom_locale !== 'auto' ) { add_filter('plugin_locale', function( $locale, $domain ) use ( $custom_locale ) { if( $domain === 'LayerSlider') { $locale = $custom_locale; } return $locale; }, 10, 2); } // Offering a way for authors to override LayerSlider resources by // triggering filter and action hooks after the theme has loaded. add_action('after_setup_theme', function() { // Set the LS_ROOT_URL constant $url = apply_filters('layerslider_root_url', plugins_url('', LS_ROOT_FILE)); $url = $url . '/assets'; define('LS_ROOT_URL', $url); // Trigger the layerslider_ready action hook layerslider_loaded(); // Backwards compatibility for theme authors LS_Config::checkCompatibility(); }); // Sets up LayerSlider as theme-bundled version by // disabling certain features and hiding premium notices. function layerslider_set_as_theme() { LS_Config::setAsTheme(); } function layerslider_hide_promotions() { LS_Config::set('promotions', false); }