@@ -127,11 +127,8 @@ function benchpress_admin_menu() {
127127 * @return void
128128 */
129129function benchpress_render_snapshots_page () {
130- echo '<div class="wrap"><h1> ' . esc_html__ ( 'BenchPress Snapshots ' , 'benchpress ' );
131- echo ' <button id="benchpress-clear-snapshots-btn" class="button" style="margin-left: 10px;"><span class="dashicons dashicons-trash"></span> ' . esc_html__ ( 'Clear Snapshots ' , 'benchpress ' ) . '</button> ' ;
132- echo ' <button id="benchpress-download-snapshots-btn" class="button" style="margin-left: 10px;"><span class="dashicons dashicons-download"></span> ' . esc_html__ ( 'Download Snapshots ' , 'benchpress ' ) . '</button> ' ;
133- echo '</h1><hr /> ' ;
134- echo '<p><a href="https://robertdevore.com/articles/benchpress/" target="_blank"> ' . esc_html__ ( 'Documentation ' , 'benchpress ' ) . '</a> · <a href="https://robertdevore.com/contact/" target="_blank"> ' . esc_html__ ( 'Support ' , 'benchpress ' ) . '</a> · <a href="https://robertdevore.com/wordpress-and-woocommerce-plugins/" target="_blank"> ' . esc_html__ ( 'More Plugins ' , 'benchpress ' ) . '</a></p> ' ;
130+ echo '<div class="wrap"> ' ;
131+ benchpress_admin_header ( esc_html__ ( 'BenchPress Settings ' , 'benchpress ' ) );
135132
136133 $ table = new BenchPress_Snapshots_Table ();
137134 $ table ->prepare_items ();
@@ -163,12 +160,8 @@ function benchpress_render_page() {
163160 $ benchpress_execution_time = microtime ( true ) - $ benchpress_start_time ;
164161 $ formatted_execution_time = number_format ( $ benchpress_execution_time , 4 );
165162
166- echo '<div class="wrap"><h1> ' . esc_html__ ( 'BenchPress ' , 'benchpress ' );
167- echo ' <button id="benchpress-snapshot-btn" class="button"><span class="dashicons dashicons-camera"></span> ' . esc_html__ ( 'Save Snapshot ' , 'benchpress ' ) . '</button> ' ;
168- echo ' <button id="benchpress-refresh-btn" class="button"><span class="dashicons dashicons-update"></span> ' . esc_html__ ( 'Refresh Tests ' , 'benchpress ' ) . '</button> ' ;
169- echo '</h1> ' ;
170- echo '<hr /> ' ;
171- echo '<p><a href="https://robertdevore.com/benchpress-documentation/" target="_blank"> ' . esc_html__ ( 'Documentation ' , 'benchpress ' ) . '</a> · <a href="https://robertdevore.com/contact/" target="_blank"> ' . esc_html__ ( 'Support ' , 'benchpress ' ) . '</a> · <a href="https://robertdevore.com/wordpress-and-woocommerce-plugins/" target="_blank"> ' . esc_html__ ( 'More Plugins ' , 'benchpress ' ) . '</a></p> ' ;
163+ echo '<div class="wrap"> ' ;
164+ benchpress_admin_header ( esc_html__ ( 'BenchPress ' , 'benchpress ' ) );
172165
173166 echo '<div id="benchpress-results"> ' ;
174167 $ table = new BenchPress_Table ();
@@ -221,14 +214,8 @@ function benchpress_render_settings_page() {
221214 $ post_types = get_post_types ( [ 'public ' => true ], 'objects ' );
222215 $ taxonomies = get_taxonomies ( [ 'public ' => true ], 'objects ' );
223216
224- echo '<div class="wrap"><h1> ' . esc_html__ ( 'BenchPress Settings ' , 'benchpress ' ) . '
225- <a id="benchpress-support-btn" href="https://robertdevore.com/contact/" target="_blank" class="button button-alt" style="margin-left: 10px;">
226- <span class="dashicons dashicons-format-chat" style="vertical-align: middle;"></span> ' . esc_html__ ( 'Support ' , 'benchpress ' ) . '
227- </a>
228- <a id="benchpress-docs-btn" href="https://robertdevore.com/articles/benchpress/" target="_blank" class="button button-alt" style="margin-left: 5px;">
229- <span class="dashicons dashicons-media-document" style="vertical-align: middle;"></span> ' . esc_html__ ( 'Documentation ' , 'benchpress ' ) . '
230- </a>
231- </h1><hr /> ' ;
217+ echo '<div class="wrap"> ' ;
218+ benchpress_admin_header ( esc_html__ ( 'BenchPress Settings ' , 'benchpress ' ) );
232219 echo '<form method="post"> ' ;
233220 wp_nonce_field ( 'benchpress_save_settings ' , 'benchpress_settings_nonce ' );
234221
0 commit comments