14
14
15
15
/**
16
16
* Class STL_Admin
17
- *
17
+ *
18
18
* Handles the admin page and UI of the plugin
19
19
*/
20
20
class STL_Admin {
@@ -60,8 +60,17 @@ public function add_admin_menu() {
60
60
'manage_options ' ,
61
61
'staging2live ' ,
62
62
array ( $ this , 'render_admin_page ' ),
63
- 'dashicons-migrate ' ,
64
- 30
63
+ 'dashicons-controls-repeat ' ,
64
+ 90
65
+ );
66
+
67
+ add_submenu_page (
68
+ 'staging2live ' ,
69
+ 'Sync ' ,
70
+ 'Sync ' ,
71
+ 'manage_options ' ,
72
+ 'staging2live ' ,
73
+ array ( $ this , 'render_admin_page ' )
65
74
);
66
75
}
67
76
@@ -117,18 +126,18 @@ public function render_admin_page() {
117
126
?>
118
127
<div class="wrap">
119
128
<h1><?php echo esc_html ( get_admin_page_title () ); ?> </h1>
120
-
129
+
121
130
<div class="stl-tabs">
122
131
<ul class="stl-tabs-nav">
123
132
<li><a href="#stl-tab-files"><?php esc_html_e ( 'File Changes ' , 'staging2live ' ); ?> </a></li>
124
133
<li><a href="#stl-tab-database"><?php esc_html_e ( 'Database Changes ' , 'staging2live ' ); ?> </a></li>
125
134
</ul>
126
-
135
+
127
136
<div id="stl-tab-files" class="stl-tab-content">
128
137
<h2><?php esc_html_e ( 'File Changes ' , 'staging2live ' ); ?> </h2>
129
138
<?php $ this ->render_file_changes ( $ file_changes ); ?>
130
139
</div>
131
-
140
+
132
141
<div id="stl-tab-database" class="stl-tab-content">
133
142
<h2><?php esc_html_e ( 'Database Changes ' , 'staging2live ' ); ?> </h2>
134
143
<?php $ this ->render_db_changes ( $ db_changes ); ?>
@@ -242,4 +251,4 @@ private function get_status_label( $status ) {
242
251
}
243
252
244
253
// Initialize the admin class
245
- STL_Admin::get_instance ();
254
+ STL_Admin::get_instance ();
0 commit comments