PluginProbe
Code Profiler – WordPress Performance Profiling and Debugging Made Easy / 1.4
Code Profiler – WordPress Performance Profiling and Debugging Made Easy v1.4
1.9.5 1.9.4 1.9.3 trunk 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.6 1.6.1 1.6.10 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 All 40 releases
← All changes | lib/menu.php +6 -27 trunk1.4 View file →
@@ -6,9 +6,9 @@
6 6 | | | / _ \ / _` |/ _ \ | |_) | '__/ _ \| |_| | |/ _ \ '__| |
7 7 | | |__| (_) | (_| | __/ | __/| | | (_) | _| | | __/ | |
8 8 | \____\___/ \__,_|\___| |_| |_| \___/|_| |_|_|\___|_| |
9 9 | |
10 - | (c) Jerome Bruandet ~ https://nintechnet.com/codeprofiler/ |
10 + | (c) Jerome Bruandet ~ https://code-profiler.com/ |
11 11 +=====================================================================+
12 12 */
13 13
14 14 if (! defined( 'ABSPATH' ) ) { die( 'Forbidden' ); }
@@ -20,16 +20,9 @@
20 20
21 21 // Verify/create our storage folder each time we access the main page
22 22 code_profiler_check_uploadsdir();
23 23
24 - $tab = [
25 - 'profiler',
26 - 'profiles_list',
27 - 'settings',
28 - 'log',
29 - 'faq',
30 - 'support'
31 - ];
24 + $tab = ['profiler', 'profiles_list', 'settings', 'log', 'faq', 'pro', 'about' ];
32 25 // Set to default if input doesn't match what we're looking for
33 26 if (! isset( $_GET['cptab'] ) || ! in_array( $_GET['cptab'], $tab ) ) {
34 27 $_GET['cptab'] = 'profiler';
35 28 }
@@ -43,9 +36,9 @@
43 36
44 37 function code_profiler_display_tabs( $which ) {
45 38
46 39 $t1 = ''; $t2 = ''; $t3 = '';
47 - $t4 = ''; $t5 = ''; $t6 = '';
40 + $t4 = ''; $t5 = '';
48 41
49 42 if ( $which == 1 ) {
50 43 $t1 = ' nav-tab-active';
51 44 // Don't highlight any tab if we're looking at a profile
@@ -56,10 +49,8 @@
56 49 } elseif ( $which == 4 ) {
57 50 $t4 = ' nav-tab-active';
58 51 } elseif ( $which == 5 ) {
59 52 $t5 = ' nav-tab-active';
60 - } elseif ( $which == 6 ) {
61 - $t6 = ' nav-tab-active';
62 53 }
63 54 ?>
64 55 <h1>Code Profiler</h1>
65 56
@@ -70,19 +61,17 @@
70 61 echo esc_html( $t2 ) ?>"><?php esc_html_e( 'Profiles List', 'code-profiler' ) ?></a>
71 62 <a href="?page=code-profiler&cptab=settings" class="nav-tab <?php
72 63 echo esc_html( $t3 ) ?>"><?php esc_html_e( 'Settings', 'code-profiler' ) ?></a>
73 64 <a href="?page=code-profiler&cptab=log" class="nav-tab <?php
74 - echo esc_html( $t4 ) ?>"><?php esc_html_e( 'Logs', 'code-profiler' ) ?></a>
65 + echo esc_html( $t4 ) ?>"><?php esc_html_e( 'Log', 'code-profiler' ) ?></a>
75 66 <a href="?page=code-profiler&cptab=faq" class="nav-tab <?php
76 67 echo esc_html( $t5 ) ?>"><?php esc_html_e( 'FAQ', 'code-profiler' ) ?></a>
77 - <a href="?page=code-profiler&cptab=support" class="nav-tab <?php
78 - echo esc_html( $t6 ) ?>"><?php esc_html_e( 'Support', 'code-profiler' ) ?></a>
79 68 <div style="text-align:center;">
80 - <a href="https://nintechnet.com/codeprofiler/" target="_blank" rel="noopener noreferrer" class="button button-primary"><?php
69 + <a href="https://code-profiler.com/" target="_blank" class="button-primary"><?php
81 70 esc_html_e('Explore the Pro version', 'code-profiler' );
82 71 ?> »</a>
83 72 &nbsp;&nbsp;&nbsp;
84 - <a href="https://wordpress.org/support/view/plugin-reviews/code-profiler?rate=5#postform" target="_blank" rel="noopener noreferrer" class="button button-secondary"><span class="dashicons dashicons-star-half" style="vertical-align:sub;"></span>&nbsp;<?php
73 + <a href="https://wordpress.org/support/view/plugin-reviews/code-profiler?rate=5#postform" target="_blank" class="button-secondary"><span class="dashicons dashicons-star-half" style="vertical-align:sub;"></span>&nbsp;<?php
85 74 esc_html_e('Rate it on WordPress.org', 'code-profiler' );
86 75 ?> »</a>
87 76 </div>
88 77 </h2>
@@ -136,18 +125,8 @@
136 125 function code_profiler_menu_faq() {
137 126
138 127 echo '<div class="wrap">';
139 128 require_once 'menu_faq.php';
140 - echo '</div>';
141 -
142 -}
143 -// =====================================================================
144 -// Support page.
145 -
146 -function code_profiler_menu_support() {
147 -
148 - echo '<div class="wrap">';
149 - require_once 'menu_support.php';
150 129 echo '</div>';
151 130
152 131 }
153 132 // =====================================================================