| @@ -129,8 +129,20 @@ | ||
| 129 | 129 | ?> |
| 130 | 130 | |
| 131 | 131 | <header> |
| 132 | 132 | <h1><?php esc_html_e( 'ConvertKit', 'convertkit' ); ?></h1> |
| 133 | + | |
| 134 | + <?php | |
| 135 | + // Output Help link tab, if it exists. | |
| 136 | + $documentation_url = $this->get_active_section_documentation_url( $active_section ); | |
| 137 | + if ( $documentation_url !== false ) { | |
| 138 | + printf( | |
| 139 | + '<a href="%s" class="convertkit-docs" target="_blank">%s</a>', | |
| 140 | + esc_attr( $documentation_url ), | |
| 141 | + esc_html__( 'Help', 'convertkit' ) | |
| 142 | + ); | |
| 143 | + } | |
| 144 | + ?> | |
| 133 | 145 | </header> |
| 134 | 146 | |
| 135 | 147 | <div class="wrap"> |
| 136 | 148 | <?php |
| @@ -149,9 +161,9 @@ | ||
| 149 | 161 | </form> |
| 150 | 162 | |
| 151 | 163 | <p class="description"> |
| 152 | 164 | <?php |
| 153 | - // Output Documentation link, if it exists. | |
| 165 | + // Output Help link, if it exists. | |
| 154 | 166 | $documentation_url = $this->get_active_section_documentation_url( $active_section ); |
| 155 | 167 | if ( $documentation_url !== false ) { |
| 156 | 168 | printf( |
| 157 | 169 | '%s <a href="%s" target="_blank">%s</a>', |
| @@ -238,18 +250,8 @@ | ||
| 238 | 250 | ), |
| 239 | 251 | ( $active_section === $section->name ? 'convertkit-tab-active' : '' ), |
| 240 | 252 | esc_html( $section->tab_text ), |
| 241 | 253 | $section->is_beta ? $this->get_beta_tab() : '' // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 242 | - ); | |
| 243 | - } | |
| 244 | - | |
| 245 | - // Output Documentation link tab, if it exists. | |
| 246 | - $documentation_url = $this->get_active_section_documentation_url( $active_section ); | |
| 247 | - if ( $documentation_url !== false ) { | |
| 248 | - printf( | |
| 249 | - '<li class="convertkit-docs"><a href="%s" class="convertkit-tab" target="_blank">%s <span class="dashicons dashicons-external"></span></a></li>', | |
| 250 | - esc_attr( $documentation_url ), | |
| 251 | - esc_html__( 'Documentation', 'convertkit' ) | |
| 252 | 254 | ); |
| 253 | 255 | } |
| 254 | 256 | ?> |
| 255 | 257 | </ul> |