芝麻web文件管理V1.00
编辑当前文件:/home/felaukpo/public_html/wp-content/themes/pixelpiernyc/samples/dependencies.php
esc_html__( 'Elementor', 'pixelpiernyc' ), 'slug' => 'elementor', 'required' => true, 'category' => 'required', 'version' => '2.7.4', ), array( 'name' => esc_html( sprintf( __( 'Vamtam Elementor Integration (%s)', 'pixelpiernyc' ), VAMTAM_THEME_SLUG ) ), 'slug' => 'vamtam-elementor-integration-' . VAMTAM_THEME_SLUG, 'source' => VAMTAM_PLUGINS . 'vamtam-elementor-integration-' . VAMTAM_THEME_SLUG . '.zip', 'required' => true, 'category' => 'required', 'version' => '1.0.0', ), array( 'name' => esc_html__( 'Vamtam Importers (E)', 'pixelpiernyc' ), 'slug' => 'vamtam-importers-e', 'source' => VAMTAM_PLUGINS . 'vamtam-importers-e.zip', 'required' => true, 'category' => 'required', 'version' => ( $updates !== false && isset( $updates->response[ 'vamtam-importers-e/vamtam-importers.php' ] ) ) ? $updates->response[ 'vamtam-importers-e/vamtam-importers.php' ]->new_version : '1.0.0', ), array( 'name' => esc_html__( 'Ally - Web Accessibility & Usability', 'pixelpiernyc' ), 'slug' => 'pojo-accessibility', 'source' => VAMTAM_PLUGINS . 'pojo-accessibility.zip', 'required' => false, 'category' => 'recommended', 'version' => '3.3.0' ), array( 'name' => esc_html__( 'Wordpress SEO', 'pixelpiernyc' ), 'slug' => 'wordpress-seo', 'required' => false, 'category' => 'recommended', ), array( 'name' => esc_html__( 'Really Simple SSL', 'pixelpiernyc' ), 'slug' => 'really-simple-ssl', 'required' => false, 'category' => 'recommended', ), array( 'name' => esc_html__( 'Loco Translate', 'pixelpiernyc' ), 'slug' => 'loco-translate', 'required' => false, 'category' => 'recommended', ), array( 'name' => esc_html__( 'UpDraftPlus', 'pixelpiernyc' ), 'slug' => 'updraftplus', 'required' => false, 'category' => 'recommended', ), array( 'name' => esc_html__( 'WP Super Cache', 'pixelpiernyc' ), 'slug' => 'wp-super-cache', 'required' => false, 'category' => 'recommended', ), array( 'name' => esc_html__( 'Limit Login Attempts Reloaded', 'pixelpiernyc' ), 'slug' => 'limit-login-attempts-reloaded', 'required' => false, 'category' => 'recommended', ), array( 'name' => esc_html__( 'Wordfence', 'pixelpiernyc' ), 'slug' => 'wordfence', 'required' => false, 'category' => 'recommended', ), array( 'name' => esc_html__( 'CookieYes | GDPR Cookie Consent & Compliance Notice (CCPA Ready)', 'pixelpiernyc' ), 'slug' => 'cookie-law-info', 'required' => false, 'category' => 'recommended', ), ); $config = array( 'default_path' => '', // Default absolute path to pre-packaged plugins 'is_automatic' => true, // Automatically activate plugins after installation or not 'parent_slug' => 'vamtam_theme_setup', ); // for bundled plugins the versions of the included zip files are extracted when the theme was built $bundled_versions_path = __DIR__ . '/bundled-versions.json'; if ( file_exists( $bundled_versions_path ) ) { if ( $bundled_versions = json_decode( file_get_contents( $bundled_versions_path ), true ) ) { foreach ( $plugins as &$plugin ) { if ( isset( $bundled_versions[ $plugin['slug'] ] ) ) { $bundled_version = $bundled_versions[ $plugin['slug'] ]; if ( ! isset( $plugin['version'] ) || version_compare( $bundled_version, $plugin['version'], '>' ) ) { $plugin['version'] = $bundled_version; } } } unset( $plugin ); } } tgmpa( $plugins, $config ); } add_action( 'tgmpa_register', 'vamtam_register_required_plugins' ); function vamtam_tgmpa_table_columns( $columns ) { //Filter the header columns for the plugin page $columns = array( 'cb' => '
', 'img' => '', 'plugin' => esc_html__( 'Name', 'pixelpiernyc' ), 'description' => esc_html__( 'Description', 'pixelpiernyc' ), 'status' => esc_html__( 'Status', 'pixelpiernyc' ), 'version' => esc_html__( 'Version', 'pixelpiernyc' ), ); return $columns; } add_filter( 'tgmpa_table_columns', 'vamtam_tgmpa_table_columns' ); function vamtam_tgmpa_table_data_item( $item, $plugin ) { $thumbnail_size = '128x128'; $recommended_plugins_no_store_img = array( 'booked', 'booked-calendar-feeds', 'booked-frontend-agents', 'booked-woocommerce-payments', 'revslider', 'unplug-jetpack', 'vamtam-elementor-integration', 'vamtam-elementor-integration-' . VAMTAM_THEME_SLUG, 'vamtam-importers-e', 'vamtam-product-qa', 'woocommerce-bookings', 'selfhost-google-fonts', ); $fallback_plugin_image = VAMTAM_ADMIN_ASSETS_URI . 'images/vamtam-logo.png'; // Plugin image $thumbnail = ''; if( ! in_array( $plugin['slug'], $recommended_plugins_no_store_img ) ) { foreach ( [ '.png', '.jpg', '.gif' ] as $ext ) { foreach ( [ '128x128', '256x256' ] as $size ) { $thumbnail .= '
'; } } } $item['img'] = '
' . $thumbnail . '
'; $tgmpa_instance = call_user_func( array( get_class( $GLOBALS['tgmpa'] ), 'get_instance' ) ); if( $tgmpa_instance->is_plugin_installed( $plugin['slug'] ) ) { $plugin_data = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin['file_path'] ); } else { // Get from store $plugin_data = VamtamPluginManager::get_plugin_data_by_slug( $plugin['slug'] ); } // Plugin Version if ( ! isset( $item['available_version'] ) || empty( $item['available_version'] ) ) { $item['available_version'] = ! empty( $plugin_data ) && $plugin_data['Version']; } // Plugin description if( isset( $plugin_data['Description'] ) ) { $item['description'] = $plugin_data['Description']; } else { $item['description'] = esc_html__( 'A simple WordPress Plugin.', 'pixelpiernyc' ); } if ( strpos( $plugin['slug'], 'pixelpiernyc' ) !== false ) { $item['description'] = esc_html__( 'Theme Exclusive.', 'pixelpiernyc' ); } return $item; } add_filter( 'tgmpa_table_data_item', 'vamtam_tgmpa_table_data_item', 10, 2 ); // vamtam-tgmpa.js will gracefully hide the recommended plugins notice. function vamtam_hide_tgmpa_notice() { $screen = get_current_screen(); if ( is_admin() && $screen->id === 'plugins' ) { wp_enqueue_script( 'vamtam-tgmpa', VAMTAM_ADMIN_ASSETS_URI . 'js/vamtam-tgmpa.js', array( 'jquery' ), VamtamFramework::get_version(), true ); } } add_action('admin_enqueue_scripts', 'vamtam_hide_tgmpa_notice'); /** * Essentially a copy of the standard tgmpa plugins page but with our dashboard and validation. * * This displays the admin page and form area where the user can select to install and activate the plugin. * Aborts early if we're processing a plugin installation action. * * Important!! * For this to work we need to make tgmpa's do_plugin_install public ( from protected ). * * @return null Aborts early if we're processing a plugin installation action. */ function vamtam_install_plugins_page() { $tgmpa = TGM_Plugin_Activation::get_instance(); // Store new instance of plugin table in object. $plugin_table = new TGMPA_List_Table; // Return early if processing a plugin installation action. if ( ( ( 'tgmpa-bulk-install' === $plugin_table->current_action() || 'tgmpa-bulk-update' === $plugin_table->current_action() ) && $plugin_table->process_bulk_actions() ) || $tgmpa->do_plugin_install() ) { return; } // Force refresh of available plugin information so we'll know about manual updates/deletes. wp_clean_plugins_cache( false ); $valid_key = Version_Checker::is_valid_purchase_code(); ?>
prepare_items(); ?> message ) && is_string( $tgmpa->message ) ) { echo wp_kses_post( $tgmpa->message ); } ?> views(); ?>
display(); ?>