| @@ -6,9 +6,9 @@ | ||
| 6 | 6 | | | | / _ \ / _` |/ _ \ | |_) | '__/ _ \| |_| | |/ _ \ '__| | |
| 7 | 7 | | | |__| (_) | (_| | __/ | __/| | | (_) | _| | | __/ | | |
| 8 | 8 | | \____\___/ \__,_|\___| |_| |_| \___/|_| |_|_|\___|_| | |
| 9 | 9 | | | |
| 10 | - | (c) Jerome Bruandet ~ https://code-profiler.com/ | | |
| 10 | + | (c) Jerome Bruandet ~ https://nintechnet.com/codeprofiler/ | | |
| 11 | 11 | +=====================================================================+ |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | if (! defined( 'ABSPATH' ) ) { die( 'Forbidden' ); } |
| @@ -20,9 +20,16 @@ | ||
| 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 = ['profiler', 'profiles_list', 'settings', 'log', 'faq', 'pro', 'about' ]; | |
| 24 | + $tab = [ | |
| 25 | + 'profiler', | |
| 26 | + 'profiles_list', | |
| 27 | + 'settings', | |
| 28 | + 'log', | |
| 29 | + 'faq', | |
| 30 | + 'support' | |
| 31 | + ]; | |
| 25 | 32 | // Set to default if input doesn't match what we're looking for |
| 26 | 33 | if (! isset( $_GET['cptab'] ) || ! in_array( $_GET['cptab'], $tab ) ) { |
| 27 | 34 | $_GET['cptab'] = 'profiler'; |
| 28 | 35 | } |
| @@ -36,9 +43,9 @@ | ||
| 36 | 43 | |
| 37 | 44 | function code_profiler_display_tabs( $which ) { |
| 38 | 45 | |
| 39 | 46 | $t1 = ''; $t2 = ''; $t3 = ''; |
| 40 | - $t4 = ''; $t5 = ''; | |
| 47 | + $t4 = ''; $t5 = ''; $t6 = ''; | |
| 41 | 48 | |
| 42 | 49 | if ( $which == 1 ) { |
| 43 | 50 | $t1 = ' nav-tab-active'; |
| 44 | 51 | // Don't highlight any tab if we're looking at a profile |
| @@ -49,8 +56,10 @@ | ||
| 49 | 56 | } elseif ( $which == 4 ) { |
| 50 | 57 | $t4 = ' nav-tab-active'; |
| 51 | 58 | } elseif ( $which == 5 ) { |
| 52 | 59 | $t5 = ' nav-tab-active'; |
| 60 | + } elseif ( $which == 6 ) { | |
| 61 | + $t6 = ' nav-tab-active'; | |
| 53 | 62 | } |
| 54 | 63 | ?> |
| 55 | 64 | <h1>Code Profiler</h1> |
| 56 | 65 | |
| @@ -61,17 +70,19 @@ | ||
| 61 | 70 | echo esc_html( $t2 ) ?>"><?php esc_html_e( 'Profiles List', 'code-profiler' ) ?></a> |
| 62 | 71 | <a href="?page=code-profiler&cptab=settings" class="nav-tab <?php |
| 63 | 72 | echo esc_html( $t3 ) ?>"><?php esc_html_e( 'Settings', 'code-profiler' ) ?></a> |
| 64 | 73 | <a href="?page=code-profiler&cptab=log" class="nav-tab <?php |
| 65 | - echo esc_html( $t4 ) ?>"><?php esc_html_e( 'Log', 'code-profiler' ) ?></a> | |
| 74 | + echo esc_html( $t4 ) ?>"><?php esc_html_e( 'Logs', 'code-profiler' ) ?></a> | |
| 66 | 75 | <a href="?page=code-profiler&cptab=faq" class="nav-tab <?php |
| 67 | 76 | 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> | |
| 68 | 79 | <div style="text-align:center;"> |
| 69 | - <a href="https://code-profiler.com/" target="_blank" rel="noopener noreferrer" class="button-primary"><?php | |
| 80 | + <a href="https://nintechnet.com/codeprofiler/" target="_blank" rel="noopener noreferrer" class="button button-primary"><?php | |
| 70 | 81 | esc_html_e('Explore the Pro version', 'code-profiler' ); |
| 71 | 82 | ?> »</a> |
| 72 | 83 | |
| 73 | - <a href="https://wordpress.org/support/view/plugin-reviews/code-profiler?rate=5#postform" target="_blank" rel="noopener noreferrer" class="button-secondary"><span class="dashicons dashicons-star-half" style="vertical-align:sub;"></span> <?php | |
| 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> <?php | |
| 74 | 85 | esc_html_e('Rate it on WordPress.org', 'code-profiler' ); |
| 75 | 86 | ?> »</a> |
| 76 | 87 | </div> |
| 77 | 88 | </h2> |
| @@ -125,8 +136,18 @@ | ||
| 125 | 136 | function code_profiler_menu_faq() { |
| 126 | 137 | |
| 127 | 138 | echo '<div class="wrap">'; |
| 128 | 139 | 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'; | |
| 129 | 150 | echo '</div>'; |
| 130 | 151 | |
| 131 | 152 | } |
| 132 | 153 | // ===================================================================== |