From 495e4ab5670f1e52f402d6dcb107d392b7517326 Mon Sep 17 00:00:00 2001 From: RogerTM Date: Fri, 6 Oct 2017 11:40:24 -0400 Subject: [PATCH] =?UTF-8?q?Visualizaci=C3=B3n=20estandar=20para=20todos=20?= =?UTF-8?q?los=20sub-paneles=20en=20el=20panel=20de=20Informaci=C3=B3n=20d?= =?UTF-8?q?e=20Desarrollo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- engine/constants.php | 1 + engine/css/theme-options.css | 4 +- engine/debug-options.php | 362 ++++++++++++++++++++++++----------- style.css | 2 +- 4 files changed, 253 insertions(+), 116 deletions(-) diff --git a/engine/constants.php b/engine/constants.php index cc2e651..a0d3a9b 100755 --- a/engine/constants.php +++ b/engine/constants.php @@ -71,6 +71,7 @@ // Twenty'em Version define ( 'T_EM_FRAMEWORK_NAME', 'Twenty\'em' ); define ( 'T_EM_FRAMEWORK_VERSION', '1.2' ); +define ( 'T_EM_FRAMEWORK_VERSION_NAME', __( 'Plymita picta', 't_em' ) ); define ( 'T_EM_FRAMEWORK_VERSION_STATUS', 'Beta' ); define ( 'T_EM_DB_VERSION', '20170909' ); // In date format Ymd diff --git a/engine/css/theme-options.css b/engine/css/theme-options.css index ccc7e8f..7313178 100755 --- a/engine/css/theme-options.css +++ b/engine/css/theme-options.css @@ -179,7 +179,7 @@ } #t-em-setting .dl-horizontal dt{ float: left; - width: 180px; + width: 220px; overflow: hidden; clear: left; text-align: left; @@ -189,7 +189,7 @@ min-height: 20px; } #t-em-setting .dl-horizontal dd{ - margin-left: 200px; + margin-left: 240px; min-height: 20px; } #t-em-setting #debug-options .tab-heading:before{ diff --git a/engine/debug-options.php b/engine/debug-options.php index 2b25786..20b2f35 100644 --- a/engine/debug-options.php +++ b/engine/debug-options.php @@ -64,68 +64,201 @@ function t_em_debug_options(){ } /** - * Theme data + * Theme Data + * + * @since Twenty'em 1.2 */ function t_em_debug_theme_data_callback(){ global $t_em_theme_data; - $theme_data = ''; - return $theme_data; + + $output = '
'; + // Theme Data + $output .= ''. __( 'Theme Data', 't_em' ) .''; + $output .= '
'; + $output .= '
'. __( 'Framework:', 't_em' ) .'
'; + $output .= '
'. T_EM_FRAMEWORK_NAME .' '. T_EM_FRAMEWORK_VERSION .' '. T_EM_FRAMEWORK_VERSION_NAME .'
'; + $output .= '
'. __( 'Status:', 't_em' ) .'
'; + $output .= '
'. T_EM_FRAMEWORK_VERSION_STATUS .'
'; + $output .= '
'. __( 'Data Base Version:', 't_em' ) .'
'; + $output .= '
'. T_EM_DB_VERSION .'
'; + $output .= '
'. __( 'Current Theme:', 't_em' ) .'
'; + $output .= '
'. $t_em_theme_data['Name'] .' '. $t_em_theme_data['Version'] .'
'; + $output .= '
'. __( 'Theme URI:', 't_em' ) .'
'; + $output .= '
'. $t_em_theme_data['ThemeURI'] .'
'; + $output .= '
'. __( 'Theme Author:', 't_em' ) .'
'; + $output .= '
'. $t_em_theme_data['Author'] .'
'; + $output .= '
'. __( 'Theme Tags:', 't_em' ) .'
'; + $output .= '
'. $t_em_theme_data['Tags'] .'
'; + $output .= '
'. __( 'Theme Text Domain:', 't_em' ) .'
'; + $output .= '
'. $t_em_theme_data['TextDomain'] .'
'; + $output .= '
'; + + // CONSTANTS + $output .= ''. __( 'CONSTANTS Values', 't_em' ) .''; + $output .= '
'; + $output .= '
'. __( 'T_EM_WORDPRESS_VERSION', 't_em' ) .'
'; + $output .= '
'. T_EM_WORDPRESS_VERSION .'
'; + $output .= '
'. __( 'T_EM_BOOTSTRAP_VERSION', 't_em' ) .'
'; + $output .= '
'. T_EM_BOOTSTRAP_VERSION .'
'; + $output .= '
'. __( 'T_EM_THEME_DIR_PATH', 't_em' ) .'
'; + $output .= '
'. T_EM_THEME_DIR_PATH .'
'; + $output .= '
'. __( 'T_EM_CHILD_THEME_DIR_PATH', 't_em' ) .'
'; + $output .= '
'. T_EM_CHILD_THEME_DIR_PATH .'
'; + $output .= '
'. __( 'T_EM_ENGINE_DIR_PATH', 't_em' ) .'
'; + $output .= '
'. T_EM_ENGINE_DIR_PATH .'
'; + $output .= '
'. __( 'T_EM_ENGINE_DIR_CSS_PATH', 't_em' ) .'
'; + $output .= '
'. T_EM_ENGINE_DIR_CSS_PATH .'
'; + $output .= '
'. __( 'T_EM_ENGINE_DIR_IMG_PATH', 't_em' ) .'
'; + $output .= '
'. T_EM_ENGINE_DIR_IMG_PATH .'
'; + $output .= '
'. __( 'T_EM_ENGINE_DIR_JS_PATH', 't_em' ) .'
'; + $output .= '
'. T_EM_ENGINE_DIR_JS_PATH .'
'; + $output .= '
'. __( 'T_EM_ENGINE_DIR_URL', 't_em' ) .'
'; + $output .= '
'. T_EM_ENGINE_DIR_URL .'
'; + $output .= '
'. __( 'T_EM_ENGINE_DIR_CSS_URL', 't_em' ) .'
'; + $output .= '
'. T_EM_ENGINE_DIR_CSS_URL .'
'; + $output .= '
'. __( 'T_EM_ENGINE_DIR_IMG_URL', 't_em' ) .'
'; + $output .= '
'. T_EM_ENGINE_DIR_IMG_URL .'
'; + $output .= '
'. __( 'T_EM_ENGINE_DIR_JS_URL', 't_em' ) .'
'; + $output .= '
'. T_EM_ENGINE_DIR_JS_URL .'
'; + $output .= '
'. __( 'T_EM_THEME_DIR_INC_PATH', 't_em' ) .'
'; + $output .= '
'. T_EM_THEME_DIR_INC_PATH .'
'; + $output .= '
'. __( 'T_EM_THEME_DIR_LANG_PATH', 't_em' ) .'
'; + $output .= '
'. T_EM_THEME_DIR_LANG_PATH .'
'; + $output .= '
'. __( 'T_EM_THEME_DIR_CSS_PATH', 't_em' ) .'
'; + $output .= '
'. T_EM_THEME_DIR_CSS_PATH .'
'; + $output .= '
'. __( 'T_EM_THEME_DIR_IMG_PATH', 't_em' ) .'
'; + $output .= '
'. T_EM_THEME_DIR_IMG_PATH .'
'; + $output .= '
'. __( 'T_EM_THEME_DIR_JS_PATH', 't_em' ) .'
'; + $output .= '
'. T_EM_THEME_DIR_JS_PATH .'
'; + $output .= '
'. __( 'T_EM_THEME_DIR_FONTS_PATH', 't_em' ) .'
'; + $output .= '
'. T_EM_THEME_DIR_FONTS_PATH .'
'; + $output .= '
'. __( 'T_EM_THEME_DIR_PAGE_TEMPLATES_PATH', 't_em' ) .'
'; + $output .= '
'. T_EM_THEME_DIR_PAGE_TEMPLATES_PATH .'
'; + $output .= '
'. __( 'T_EM_THEME_DIR_TEMPLATES_PATH', 't_em' ) .'
'; + $output .= '
'. T_EM_THEME_DIR_TEMPLATES_PATH .'
'; + $output .= '
'. __( 'T_EM_THEME_DIR_BOOTSTRAP_PATH', 't_em' ) .'
'; + $output .= '
'. T_EM_THEME_DIR_BOOTSTRAP_PATH .'
'; + $output .= '
'. __( 'T_EM_THEME_DIR_URL', 't_em' ) .'
'; + $output .= '
'. T_EM_THEME_DIR_URL .'
'; + $output .= '
'. __( 'T_EM_CHILD_THEME_DIR_URL', 't_em' ) .'
'; + $output .= '
'. T_EM_CHILD_THEME_DIR_URL .'
'; + $output .= '
'. __( 'T_EM_THEME_DIR_CSS_URL', 't_em' ) .'
'; + $output .= '
'. T_EM_THEME_DIR_CSS_URL .'
'; + $output .= '
'. __( 'T_EM_THEME_DIR_IMG_URL', 't_em' ) .'
'; + $output .= '
'. T_EM_THEME_DIR_IMG_URL .'
'; + $output .= '
'. __( 'T_EM_THEME_DIR_JS_URL', 't_em' ) .'
'; + $output .= '
'. T_EM_THEME_DIR_JS_URL .'
'; + $output .= '
'. __( 'T_EM_THEME_DIR_FONTS_URL', 't_em' ) .'
'; + $output .= '
'. T_EM_THEME_DIR_FONTS_URL .'
'; + $output .= '
'. __( 'T_EM_THEME_DIR_INC_URL', 't_em' ) .'
'; + $output .= '
'. T_EM_THEME_DIR_INC_URL .'
'; + $output .= '
'. __( 'T_EM_THEME_DIR_PAGE_TEMPLATES_URL', 't_em' ) .'
'; + $output .= '
'. T_EM_THEME_DIR_PAGE_TEMPLATES_URL .'
'; + $output .= '
'. __( 'T_EM_THEME_DIR_TEMPLATES_URL', 't_em' ) .'
'; + $output .= '
'. T_EM_THEME_DIR_TEMPLATES_URL .'
'; + $output .= '
'. __( 'T_EM_THEME_DIR_BOOTSTRAP_URL', 't_em' ) .'
'; + $output .= '
'. T_EM_THEME_DIR_BOOTSTRAP_URL .'
'; + $output .= '
'. __( 'T_EM_SLIDER_DEFAULT_HEIGHT', 't_em' ) .'
'; + $output .= '
'. T_EM_SLIDER_DEFAULT_HEIGHT .'
'; + $output .= '
'. __( 'T_EM_SLIDER_MAX_HEIGHT', 't_em' ) .'
'; + $output .= '
'. T_EM_SLIDER_MAX_HEIGHT .'
'; + $output .= '
'. __( 'T_EM_SLIDER_MIN_HEIGHT', 't_em' ) .'
'; + $output .= '
'. T_EM_SLIDER_MIN_HEIGHT .'
'; + $output .= '
'. __( 'T_EM_BOOTSTRAP_CAROUSEL_INTERVAL_DEFAULT_VALUE', 't_em' ) .'
'; + $output .= '
'. T_EM_BOOTSTRAP_CAROUSEL_INTERVAL_DEFAULT_VALUE .'
'; + $output .= '
'. __( 'T_EM_BOOTSTRAP_CAROUSEL_INTERVAL_MAX_VALUE', 't_em' ) .'
'; + $output .= '
'. T_EM_BOOTSTRAP_CAROUSEL_INTERVAL_MAX_VALUE .'
'; + $output .= '
'. __( 'T_EM_BOOTSTRAP_CAROUSEL_INTERVAL_MIN_VALUE', 't_em' ) .'
'; + $output .= '
'. T_EM_BOOTSTRAP_CAROUSEL_INTERVAL_MIN_VALUE .'
'; + $output .= '
'. __( 'T_EM_HEADER_IMAGE_WIDTH', 't_em' ) .'
'; + $output .= '
'. T_EM_HEADER_IMAGE_WIDTH .'
'; + $output .= '
'. __( 'T_EM_HEADER_IMAGE_HEIGHT', 't_em' ) .'
'; + $output .= '
'. T_EM_HEADER_IMAGE_HEIGHT .'
'; + + $output .= '
'; + $output .= '
'; + + + return $output; } + +/** + * Theme Setting + * + * @since Twenty'em 1.2 + */ function t_em_debug_theme_setting_callback(){ global $t_em; - $theme_data = '
'; - $theme_data .= '
'. sprintf( __( 'Current Option: %s', 't_em' ), 't_em_theme_options' ) .'
'; - $theme_data .= '

'. __( 'You can access these values through the $t_em global variable', 't_em' ) .'

'; - $theme_data .= '
'. print_r( $t_em, true ) .'
'; - $theme_data .= '
'; - return $theme_data; + ksort( $t_em ); + $output = '
'; + $output .= '
'. sprintf( __( 'Current Option: %s', 't_em' ), 't_em_theme_options' ) .'
'; + $output .= '

'. __( 'You can access these values through the $t_em global variable', 't_em' ) .'

'; + $output .= '
'; + foreach ( $t_em as $key => $value ) : + $output .= '
'. '['. $key .']' .'
'; + $output .= '
'. '=> '. $value .'
'; + endforeach; + $output .= '
'; + $output .= '
'; + return $output; } +/** + * Default Setting + * + * @since Twenty'em 1.2 + */ function t_em_debug_default_setting_callback(){ - global $t_em; - $theme_data = '
'; - $theme_data .= '
'. sprintf( __( 'Current Function: %s', 't_em' ), 't_em_default_theme_options()' ) .'
'; - $theme_data .= '

'. __( 'This function return the defaults values of your theme', 't_em' ) .'

'; - $theme_data .= '
'. print_r( t_em_default_theme_options(), true ) .'
'; - $theme_data .= '
'; - return $theme_data; + $defaults = t_em_default_theme_options(); + ksort( $defaults ); + $output = '
'; + $output .= '
'. sprintf( __( 'Current Function: %s', 't_em' ), 't_em_default_theme_options()' ) .'
'; + $output .= '

'. __( 'This function return the defaults values of your theme', 't_em' ) .'

'; + $output .= '
'; + foreach ( $defaults as $key => $value ) : + $output .= '
'. '['. $key .']' .'
'; + $output .= '
'. '=> '. $value .'
'; + endforeach; + $output .= '
'; + $output .= '
'; + return $output; } + +/** + * System Information + * + * @since Twenty'em 1.2 + */ function t_em_debug_system_info_callback(){ global $t_em_theme_data, $wpdb; + $output = '
'; // Site Info - $info = ''. __( 'Site Info', 't_em' ) .''; - $info .= '
'; - $info .= '
'. __( 'Site URL:', 't_em' ) .'
'; - $info .= '
'. site_url() .'
'; - $info .= '
'. __( 'Home URL:', 't_em' ) .'
'; - $info .= '
'. home_url() .'
'; - $info .= '
'. __( 'Multisite:', 't_em' ) .'
'; - $info .= '
'. ( is_multisite() ? __( 'Yes', 't_em' ) : __( 'No', 't_em' ) ) .'
'; - $info .= '
'; + $output .= ''. __( 'Site Info', 't_em' ) .''; + $output .= '
'; + $output .= '
'. __( 'Site URL:', 't_em' ) .'
'; + $output .= '
'. site_url() .'
'; + $output .= '
'. __( 'Home URL:', 't_em' ) .'
'; + $output .= '
'. home_url() .'
'; + $output .= '
'. __( 'Multisite:', 't_em' ) .'
'; + $output .= '
'. ( is_multisite() ? __( 'Yes', 't_em' ) : __( 'No', 't_em' ) ) .'
'; + $output .= '
'; // Hosting Provider - $info .= ''. __( 'Hosting Provider', 't_em' ) .''; - $info .= '
'; - $info .= '
'. __( 'Domain:', 't_em' ) .'
'; - $info .= '
'. $_SERVER['SERVER_NAME'] .'
'; - $info .= '
'. __( 'IP:', 't_em' ) .'
'; - $info .= '
'. $_SERVER['SERVER_ADDR'] .'
'; - $info .= '
'; + $output .= ''. __( 'Hosting Provider', 't_em' ) .''; + $output .= '
'; + $output .= '
'. __( 'Domain:', 't_em' ) .'
'; + $output .= '
'. $_SERVER['SERVER_NAME'] .'
'; + $output .= '
'. __( 'IP:', 't_em' ) .'
'; + $output .= '
'. $_SERVER['SERVER_ADDR'] .'
'; + $output .= '
'; // Browser - $info .= ''. __( 'Browser', 't_em' ) .''; - $info .= '
'; - $info .= '
'. __( 'User Agent:', 't_em' ) .'
'; - $info .= '
'. $_SERVER['HTTP_USER_AGENT'] .'
'; - $info .= '
'; + $output .= ''. __( 'Browser', 't_em' ) .''; + $output .= '
'; + $output .= '
'. __( 'User Agent:', 't_em' ) .'
'; + $output .= '
'. $_SERVER['HTTP_USER_AGENT'] .'
'; + $output .= '
'; // WordPress COnfiguration $locale = get_locale(); @@ -137,120 +270,123 @@ function t_em_debug_system_info_callback(){ $parent_theme = __( 'N/A', 't_em' ); endif; - $info .= ''. __( 'WordPress Configuration', 't_em' ) .''; - $info .= '
'; - $info .= '
'. __( 'Version:', 't_em' ) .'
'; - $info .= '
'. get_bloginfo( 'version' ) .'
'; - $info .= '
'. __( 'Language:', 't_em' ) .'
'; - $info .= '
'. ( ! empty( $locale ) ? $locale : __( 'en_US', 't_em' ) ) .'
'; - $info .= '
'. __( 'Permalink Structure:', 't_em' ) .'
'; - $info .= '
'. ( get_option( 'permalink_structure' ) ? get_option( 'permalink_structure' ) : __( 'Default', 't_em' ) ) .'
'; - $info .= '
'. __( 'Active Theme:', 't_em' ) .'
'; - $info .= '
'. $t_em_theme_data['Name'] .' '. $t_em_theme_data['Version'] .'
'; - $info .= '
'. __( 'Parent Theme:', 't_em' ) .'
'; - $info .= '
'. $parent_theme .'
'; - $info .= '
'. __( 'Show On Front:', 't_em' ) .'
'; - $info .= '
'. get_option( 'show_on_front', true ) .'
'; + $output .= ''. __( 'WordPress Configuration', 't_em' ) .''; + $output .= '
'; + $output .= '
'. __( 'Version:', 't_em' ) .'
'; + $output .= '
'. get_bloginfo( 'version' ) .'
'; + $output .= '
'. __( 'Language:', 't_em' ) .'
'; + $output .= '
'. ( ! empty( $locale ) ? $locale : __( 'en_US', 't_em' ) ) .'
'; + $output .= '
'. __( 'Permalink Structure:', 't_em' ) .'
'; + $output .= '
'. ( get_option( 'permalink_structure' ) ? get_option( 'permalink_structure' ) : __( 'Default', 't_em' ) ) .'
'; + $output .= '
'. __( 'Active Theme:', 't_em' ) .'
'; + $output .= '
'. $t_em_theme_data['Name'] .' '. $t_em_theme_data['Version'] .'
'; + $output .= '
'. __( 'Parent Theme:', 't_em' ) .'
'; + $output .= '
'. $parent_theme .'
'; + $output .= '
'. __( 'Show On Front:', 't_em' ) .'
'; + $output .= '
'. get_option( 'show_on_front', true ) .'
'; if ( get_option( 'show_on_front' ) == 'page' ) : $front_page_id = get_option( 'page_on_front' ); $blog_page_id = get_option( 'page_for_posts' ); - $info .= '
'. __( 'Page On Front:', 't_em' ) .'
'; - $info .= '
'. ( $front_page_id != 0 ? sprintf( __( 'Title: %s - ID: %s', 't_em' ), get_the_title( $front_page_id ), $front_page_id ) : __( 'N/A', 't_em' ) ) .'
'; - $info .= '
'. __( 'Page For Posts:', 't_em' ) .'
'; - $info .= '
'. ( $blog_page_id != 0 ? sprintf( __( 'Title: %s - ID: %s', 't_em' ), get_the_title( $blog_page_id ), $blog_page_id ) : __( 'N/A', 't_em' ) ) .'
'; + $output .= '
'. __( 'Page On Front:', 't_em' ) .'
'; + $output .= '
'. ( $front_page_id != 0 ? sprintf( __( 'Title: %s - ID: %s', 't_em' ), get_the_title( $front_page_id ), $front_page_id ) : __( 'N/A', 't_em' ) ) .'
'; + $output .= '
'. __( 'Page For Posts:', 't_em' ) .'
'; + $output .= '
'. ( $blog_page_id != 0 ? sprintf( __( 'Title: %s - ID: %s', 't_em' ), get_the_title( $blog_page_id ), $blog_page_id ) : __( 'N/A', 't_em' ) ) .'
'; endif; - $info .= '
'. __( 'ABSPATH:', 't_em' ) .'
'; - $info .= '
'. ABSPATH .'
'; - $info .= '
'. __( 'Table Prefix:', 't_em' ) .'
'; - $info .= '
'. sprintf( __( '"%s". Length: %s. Status: %s', 't_em' ), $wpdb->prefix, strlen( $wpdb->prefix ), ( strlen( $wpdb->prefix ) > 16 ? __( 'ERROR: Too long', 't_em' ) : __( 'Acceptable', 't_em' ) ) ) .'
'; - $info .= '
'. __( 'WP_DEBUG:', 't_em' ) .'
'; - $info .= '
'. ( defined( 'WP_DEBUG' ) ? WP_DEBUG ? __( 'Enabled', 't_em' ) : __( 'Disabled', 't_em' ) : __( 'N/A', 't_em' ) ) .'
'; - $info .= '
'. __( 'Memory Limit:', 't_em' ) .'
'; - $info .= '
'. WP_MEMORY_LIMIT .'
'; - $info .= '
'. __( 'Registered Post Stati:', 't_em' ) .'
'; - $info .= '
'. implode( ', ', get_post_stati() ) .'
'; - $info .= '
'; + $output .= '
'. __( 'ABSPATH:', 't_em' ) .'
'; + $output .= '
'. ABSPATH .'
'; + $output .= '
'. __( 'Table Prefix:', 't_em' ) .'
'; + $output .= '
'. sprintf( __( '"%s". Length: %s. Status: %s', 't_em' ), $wpdb->prefix, strlen( $wpdb->prefix ), ( strlen( $wpdb->prefix ) > 16 ? __( 'ERROR: Too long', 't_em' ) : __( 'Acceptable', 't_em' ) ) ) .'
'; + $output .= '
'. __( 'WP_DEBUG:', 't_em' ) .'
'; + $output .= '
'. ( defined( 'WP_DEBUG' ) ? WP_DEBUG ? __( 'Enabled', 't_em' ) : __( 'Disabled', 't_em' ) : __( 'N/A', 't_em' ) ) .'
'; + $output .= '
'. __( 'Memory Limit:', 't_em' ) .'
'; + $output .= '
'. WP_MEMORY_LIMIT .'
'; + $output .= '
'. __( 'Registered Post Stati:', 't_em' ) .'
'; + $output .= '
'. implode( ', ', get_post_stati() ) .'
'; + $output .= '
'. __( 'Registered Post Types:', 't_em' ) .'
'; + $output .= '
'. implode( ', ', get_post_types() ) .'
'; + $output .= '
'; // Active Plugins $updates = get_plugin_updates(); $plugins = get_plugins(); $active_plugins = get_option( 'active_plugins', array() ); - $info .= ''. __( 'Active Plugins', 't_em' ) .''; - $info .= '
'; + $output .= ''. __( 'Active Plugins', 't_em' ) .''; + $output .= '
'; foreach ( $plugins as $plugins_path => $plugin ) : if ( ! in_array( $plugins_path, $active_plugins ) ) continue; $update = ( array_key_exists( $plugins_path, $updates ) ) ? sprintf( __( 'Update Available - %s', 't_em' ), $updates[$plugins_path]->update->new_version ) : null; - $info .= '
'. $plugin['Name'] .'
'; - $info .= '
'. $plugin['Version'] .' '. $update .'
'; + $output .= '
'. $plugin['Name'] .'
'; + $output .= '
'. $plugin['Version'] .' '. $update .'
'; endforeach; - $info .= '
'; + $output .= '
'; // Inactive Plugins - $info .= ''. __( 'Inactive Plugins', 't_em' ) .''; - $info .= '
'; + $output .= ''. __( 'Inactive Plugins', 't_em' ) .''; + $output .= '
'; foreach ( $plugins as $plugins_path => $plugin ) : if ( in_array( $plugins_path, $active_plugins ) ) continue; $update = ( array_key_exists( $plugins_path, $updates ) ) ? sprintf( __( 'Update Available - %s', 't_em' ), $updates[$plugins_path]->update->new_version ) : null; - $info .= '
'. $plugin['Name'] .'
'; - $info .= '
'. $plugin['Version'] .' '. $update .'
'; + $output .= '
'. $plugin['Name'] .'
'; + $output .= '
'. $plugin['Version'] .' '. $update .'
'; endforeach; - $info .= '
'; + $output .= '
'; // Multisite Plugins if ( is_multisite() ) : $plugins = wp_get_active_network_plugins(); $active_plugins = get_site_option( 'active_sitewide_plugins', array() ); - $info .= ''. __( 'Network Active Plugins', 't_em' ) .''; - $info .= '
'; + $output .= ''. __( 'Network Active Plugins', 't_em' ) .''; + $output .= '
'; foreach ( $plugins as $plugin_path ) : $plugin_base = plugin_basename( $plugin_path ); if( ! array_key_exists( $plugin_base, $active_plugins ) ) continue; $update = ( array_key_exists( $plugin_path, $updates ) ) ? sprintf( __( 'Update Available - %s', 't_em' ), $updates[$plugin_path]->update->new_version ) : null; $plugin = get_plugin_data( $plugin_path ); - $info .= '
'. $plugin['Name'] .'
'; - $info .= '
'. $plugin['Version'] .' '. $update .'
'; + $output .= '
'. $plugin['Name'] .'
'; + $output .= '
'. $plugin['Version'] .' '. $update .'
'; endforeach; - $info .= '
'; + $output .= '
'; endif; // Webserver Configuration - $info .= ''. __( 'Webserver Configuration', 't_em' ) .''; - $info .= '
'; - $info .= '
'. __( 'PHP Version:', 't_em' ) .'
'; - $info .= '
'. PHP_VERSION .'
'; - $info .= '
'. __( 'MySQL Version:', 't_em' ) .'
'; - $info .= '
'. $wpdb->db_version() .'
'; - $info .= '
'. __( 'Webserver:', 't_em' ) .'
'; - $info .= '
'. $_SERVER['SERVER_SOFTWARE'] .'
'; - $info .= '
'; + $output .= ''. __( 'Webserver Configuration', 't_em' ) .''; + $output .= '
'; + $output .= '
'. __( 'PHP Version:', 't_em' ) .'
'; + $output .= '
'. PHP_VERSION .'
'; + $output .= '
'. __( 'MySQL Version:', 't_em' ) .'
'; + $output .= '
'. $wpdb->db_version() .'
'; + $output .= '
'. __( 'Webserver:', 't_em' ) .'
'; + $output .= '
'. $_SERVER['SERVER_SOFTWARE'] .'
'; + $output .= '
'; // PHP Configuration - $info .= ''. __( 'PHP Configuration', 't_em' ) .''; - $info .= '
'; - $info .= '
'. __( 'Memory Limit:', 't_em' ) .'
'; - $info .= '
'. ini_get( 'memory_limit' ) .'
'; + $output .= ''. __( 'PHP Configuration', 't_em' ) .''; + $output .= '
'; + $output .= '
'. __( 'Memory Limit:', 't_em' ) .'
'; + $output .= '
'. ini_get( 'memory_limit' ) .'
'; - $info .= '
'. __( 'Upload Max Size:', 't_em' ) .'
'; - $info .= '
'. ini_get( 'upload_max_filesize' ) .'
'; + $output .= '
'. __( 'Upload Max Size:', 't_em' ) .'
'; + $output .= '
'. ini_get( 'upload_max_filesize' ) .'
'; - $info .= '
'. __( 'Post Max Filesize:', 't_em' ) .'
'; - $info .= '
'. ini_get( 'post_max_size' ) .'
'; + $output .= '
'. __( 'Post Max Filesize:', 't_em' ) .'
'; + $output .= '
'. ini_get( 'post_max_size' ) .'
'; - $info .= '
'. __( 'Time Limit:', 't_em' ) .'
'; - $info .= '
'. ini_get( 'max_execution_time' ) .'
'; + $output .= '
'. __( 'Time Limit:', 't_em' ) .'
'; + $output .= '
'. ini_get( 'max_execution_time' ) .'
'; - $info .= '
'. __( 'Max Input Vars:', 't_em' ) .'
'; - $info .= '
'. ini_get( 'max_input_vars' ) .'
'; + $output .= '
'. __( 'Max Input Vars:', 't_em' ) .'
'; + $output .= '
'. ini_get( 'max_input_vars' ) .'
'; - $info .= '
'. __( 'Display Errors:', 't_em' ) .'
'; - $info .= '
'. ( ini_get( 'display_errors' ) ? sprintf( __( 'On: %s', 't_em' ), ini_get( 'display_errors' ) ) : __( 'N/A', 't_em' ) ) .'
'; - $info .= '
'; - return $info; + $output .= '
'. __( 'Display Errors:', 't_em' ) .'
'; + $output .= '
'. ( ini_get( 'display_errors' ) ? sprintf( __( 'On: %s', 't_em' ), ini_get( 'display_errors' ) ) : __( 'N/A', 't_em' ) ) .'
'; + $output .= '
'; + $output .= '
'; + return $output; } /** diff --git a/style.css b/style.css index 3eb5e73..e505e39 100755 --- a/style.css +++ b/style.css @@ -2,7 +2,7 @@ * Theme Name: Twenty'em * Theme URI: https://themingisprose.com/twenty-em * Description: A HTML5 and CSS3 WordPress theme/framework for developers. Great for Child Themes creation - * Author RogerTM + * Author: RogerTM * Author URI: https://themingisprose.com/ * Version: 1.2 * License: GNU General Public License v2 or later