?> </p> <h3 class="title" style=""><?php _e('Plugin Snapshots'); ?> </h3> <p> <?php _e('Take snapshot of your current active and inactive plugins as a reference. This is a report only function and DOES NOT save plugin files or settings.'); ?> <?php printf(__('You can store up to %d snapshots.'), Synthesis_Software_Monitor::SNAPSHOT_LIMIT); ?> </p> <form action="" method="post"> <button class="button" id="archive-inactive-plugins">New Plugin Snapshot</button> </form> <p> <?php _e('Your snapshot reports are listed here. Click a snapshot report title to show report details.'); ?> </p> <div id="plugin-snapshots" class="smash-container"> <?php Synthesis_Software_Monitor::plugin_snapshots_markup(); ?> </div>
/** * @static * Ensure that all theme variables are populated * @param $use_cache boolean If false, values will be rewritten */ private static function populate_all_themes($use_cache = true) { if (is_null(self::$current_themes) || $use_cache) { self::$current_themes = wp_get_themes(); } if (is_null(self::$inactive_themes) || !$use_cache) { $current_theme = wp_get_theme()->get_stylesheet(); self::$inactive_themes = self::$current_themes; unset(self::$inactive_themes[$current_theme]); } }