PluginProbe
MainWP Dashboard: Self-hosted WordPress Management for Agencies / 4.1
MainWP Dashboard: Self-hosted WordPress Management for Agencies v4.1
6.2 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1 6.0.12 6.0.11 4.6.0.1 5.0 5.0.1 5.0.2 5.0.3 5.0.3.1 5.0.3.2 5.1 5.1.1 5.2 5.2.1 5.2.2 5.3 All 153 releases
mainwp / class / class-mainwp-system-view.php

class-mainwp-system-view.php in MainWP Dashboard: Self-hosted WordPress Management for Agencies 4.1, at class/class-mainwp-system-view.php

733 lines 42.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * MainWP System View.
4 *
5 * @package MainWP/Dashboard
6 */
7
8 namespace MainWP\Dashboard;
9
10 /**
11 * Class MainWP_System_View
12 *
13 * @package MainWP\Dashboard
14 */
15 class MainWP_System_View {
16
17 /**
18 * Get Class Name
19 *
20 * @return string __CLASS__
21 */
22 public static function get_class_name() {
23 return __CLASS__;
24 }
25
26 /**
27 * Method get_mainwp_translations()
28 * Build Translations Array.
29 *
30 * @return array $mainwpTranslations.
31 */
32 public static function get_mainwp_translations() {
33
34 /**
35 * Method mainwpAddTranslation()
36 *
37 * Grab info needed to build array and strip chartacters "/[^A-Za-z0-9_]/".
38 *
39 * @param mixed $pArray Array of tranlatable text.
40 * @param mixed $pKey Key for each array enty.
41 * @param mixed $pText Text for each array entry.
42 */
43 function mainwpAddTranslation( &$pArray, $pKey, $pText ) {
44 if ( ! is_array( $pArray ) ) {
45 $pArray = array();
46 }
47
48 $strippedText = str_replace( ' ', '_', $pKey );
49 $strippedText = preg_replace( '/[^A-Za-z0-9_]/', '', $strippedText );
50
51 $pArray[ $strippedText ] = $pText;
52 }
53
54 $mainwpTranslations = array();
55 mainwpAddTranslation( $mainwpTranslations, 'Update settings.', __( 'Update settings.', 'mainwp' ) );
56 mainwpAddTranslation( $mainwpTranslations, 'Settings have been updated.', __( 'Settings have been updated.', 'mainwp' ) );
57 mainwpAddTranslation( $mainwpTranslations, 'An error occured.', __( 'An error occured.', 'mainwp' ) );
58 mainwpAddTranslation( $mainwpTranslations, 'Testing login.', __( 'Testing login.', 'mainwp' ) );
59 mainwpAddTranslation( $mainwpTranslations, 'Your login is valid.', __( 'Your login is valid.', 'mainwp' ) );
60 mainwpAddTranslation( $mainwpTranslations, 'Your login is invalid.', __( 'Your login is invalid.', 'mainwp' ) );
61 mainwpAddTranslation( $mainwpTranslations, 'An error occured, please contact us.', __( 'An error occured, please contact us.', 'mainwp' ) );
62 mainwpAddTranslation( $mainwpTranslations, 'more', __( 'more', 'mainwp' ) );
63 mainwpAddTranslation( $mainwpTranslations, 'less', __( 'less', 'mainwp' ) );
64 mainwpAddTranslation( $mainwpTranslations, 'An error occured: ', __( 'An error occured: ', 'mainwp' ) );
65 mainwpAddTranslation( $mainwpTranslations, 'No data available. Connect your sites using the Settings submenu.', __( 'No data available. Connect your sites using the Settings submenu.', 'mainwp' ) );
66 mainwpAddTranslation( $mainwpTranslations, 'Undefined error.', __( 'Undefined error.', 'mainwp' ) );
67 mainwpAddTranslation( $mainwpTranslations, 'PENDING', __( 'PENDING', 'mainwp' ) );
68 mainwpAddTranslation( $mainwpTranslations, 'UPDATING', __( 'UPDATING', 'mainwp' ) );
69 mainwpAddTranslation( $mainwpTranslations, 'UPGRADING', __( 'UPGRADING', 'mainwp' ) );
70 mainwpAddTranslation( $mainwpTranslations, 'FAILED', __( 'FAILED', 'mainwp' ) );
71 mainwpAddTranslation( $mainwpTranslations, 'DONE', __( 'DONE', 'mainwp' ) );
72 mainwpAddTranslation( $mainwpTranslations, 'SYNCING', __( 'SYNCING', 'mainwp' ) );
73 mainwpAddTranslation( $mainwpTranslations, 'DISCONNECTED', __( 'DISCONNECTED', 'mainwp' ) );
74 mainwpAddTranslation( $mainwpTranslations, 'TIMEOUT', __( 'TIMEOUT', 'mainwp' ) );
75 mainwpAddTranslation( $mainwpTranslations, 'Ignored', __( 'Ignored', 'mainwp' ) );
76 mainwpAddTranslation( $mainwpTranslations, 'No ignored %1s', __( 'No ignored %1s', 'mainwp' ) );
77 mainwpAddTranslation( $mainwpTranslations, 'No ignored %1 conflicts', __( 'No ignored %1 conflicts', 'mainwp' ) );
78 mainwpAddTranslation( $mainwpTranslations, 'No ignored plugins', __( 'No ignored plugins', 'mainwp' ) );
79 mainwpAddTranslation( $mainwpTranslations, 'No ignored themes', __( 'No ignored themes', 'mainwp' ) );
80 mainwpAddTranslation( $mainwpTranslations, 'Upgrading..', __( 'Upgrading..', 'mainwp' ) );
81 mainwpAddTranslation( $mainwpTranslations, 'Update successful', __( 'Update successful', 'mainwp' ) );
82 mainwpAddTranslation( $mainwpTranslations, 'Update failed', __( 'Update failed', 'mainwp' ) );
83 mainwpAddTranslation( $mainwpTranslations, 'Show All', __( 'Show All', 'mainwp' ) );
84 mainwpAddTranslation( $mainwpTranslations, 'Show', __( 'Show', 'mainwp' ) );
85 mainwpAddTranslation( $mainwpTranslations, 'Hide All', __( 'Hide All', 'mainwp' ) );
86 mainwpAddTranslation( $mainwpTranslations, 'Hide', __( 'Hide', 'mainwp' ) );
87 mainwpAddTranslation( $mainwpTranslations, 'Testing ...', __( 'Testing ...', 'mainwp' ) );
88 mainwpAddTranslation( $mainwpTranslations, 'Test Settings', __( 'Test Settings', 'mainwp' ) );
89 mainwpAddTranslation( $mainwpTranslations, 'Received wrong response from the server.', __( 'Received wrong response from the server.', 'mainwp' ) );
90 mainwpAddTranslation( $mainwpTranslations, 'Untitled', __( 'Untitled', 'mainwp' ) );
91 mainwpAddTranslation( $mainwpTranslations, 'Are you sure you want to remove this destination. This could make some of the backup tasks invalid.', __( 'Are you sure you want to remove this destination. This could make some of the backup tasks invalid.', 'mainwp' ) );
92 mainwpAddTranslation( $mainwpTranslations, 'Starting backup task.', __( 'Starting backup task.', 'mainwp' ) );
93 mainwpAddTranslation( $mainwpTranslations, 'Cancel', __( 'Cancel', 'mainwp' ) );
94 mainwpAddTranslation( $mainwpTranslations, 'Backup task complete', __( 'Backup task complete', 'mainwp' ) );
95 mainwpAddTranslation( $mainwpTranslations, 'with errors', __( 'with errors', 'mainwp' ) );
96 mainwpAddTranslation( $mainwpTranslations, 'Close', __( 'Close', 'mainwp' ) );
97 mainwpAddTranslation( $mainwpTranslations, 'Creating backupfile.', __( 'Creating backupfile.', 'mainwp' ) );
98 mainwpAddTranslation( $mainwpTranslations, 'Backupfile created successfully.', __( 'Backupfile created successfully.', 'mainwp' ) );
99 mainwpAddTranslation( $mainwpTranslations, 'Download from child site completed.', __( 'Download from child site completed.', 'mainwp' ) );
100 mainwpAddTranslation( $mainwpTranslations, 'Uploading to remote destinations..', __( 'Uploading to remote destinations..', 'mainwp' ) );
101 mainwpAddTranslation( $mainwpTranslations, 'Backup complete.', __( 'Backup complete.', 'mainwp' ) );
102 mainwpAddTranslation( $mainwpTranslations, 'Upload to %1 (%2) failed:', __( 'Upload to %1 (%2) failed:', 'mainwp' ) );
103 mainwpAddTranslation( $mainwpTranslations, 'Upload to %1 (%2) succesful', __( 'Upload to %1 (%2) succesful', 'mainwp' ) );
104 mainwpAddTranslation( $mainwpTranslations, 'Please select websites or groups to add a backup task.', __( 'Please select websites or groups to add a backup task.', 'mainwp' ) );
105 mainwpAddTranslation( $mainwpTranslations, 'Adding the task to MainWP', __( 'Adding the task to MainWP', 'mainwp' ) );
106 mainwpAddTranslation( $mainwpTranslations, 'Please select websites or groups.', __( 'Please select websites or groups.', 'mainwp' ) );
107 mainwpAddTranslation( $mainwpTranslations, 'Are you sure you want to delete this backup task?', __( 'Are you sure you want to delete this backup task?', 'mainwp' ) );
108 mainwpAddTranslation( $mainwpTranslations, 'Removing the task..', __( 'Removing the task..', 'mainwp' ) );
109 mainwpAddTranslation( $mainwpTranslations, 'The task has been removed', __( 'The task has been removed', 'mainwp' ) );
110 mainwpAddTranslation( $mainwpTranslations, 'An unspecified error occured', __( 'An unspecified error occured', 'mainwp' ) );
111 mainwpAddTranslation( $mainwpTranslations, 'Connection test failed.', __( 'Connection test failed.', 'mainwp' ) );
112 mainwpAddTranslation( $mainwpTranslations, 'Error message:', __( 'Error message:', 'mainwp' ) );
113 mainwpAddTranslation( $mainwpTranslations, 'Received HTTP-code:', __( 'Received HTTP-code:', 'mainwp' ) );
114 mainwpAddTranslation( $mainwpTranslations, 'Connection test successful.', __( 'Connection test successful.', 'mainwp' ) );
115 mainwpAddTranslation( $mainwpTranslations, 'Invalid response from the server, please try again.', __( 'Invalid response from the server, please try again.', 'mainwp' ) );
116 mainwpAddTranslation( $mainwpTranslations, 'Please enter csv file for upload.', __( 'Please enter csv file for upload.', 'mainwp' ) );
117 mainwpAddTranslation( $mainwpTranslations, 'Please enter a name for the website', __( 'Please enter a name for the website', 'mainwp' ) );
118 mainwpAddTranslation( $mainwpTranslations, 'Please enter a valid URL for your site', __( 'Please enter a valid URL for your site', 'mainwp' ) );
119 mainwpAddTranslation( $mainwpTranslations, 'Please enter a username for the administrator', __( 'Please enter a username for the administrator', 'mainwp' ) );
120 mainwpAddTranslation( $mainwpTranslations, 'Adding the site to MainWP', __( 'Adding the site to MainWP', 'mainwp' ) );
121 mainwpAddTranslation( $mainwpTranslations, 'No MainWP Child plugin detected, first install and activate the plugin and add your site to MainWP afterwards. Click <a href="%1" target="_blank">here</a> to install <a href="%2" target="_blank">MainWP</a> plugin (do not forget to activate it after installation).', __( 'No MainWP Child plugin detected, first install and activate the plugin and add your site to MainWP afterwards. Click <a href="%1" target="_blank">here</a> to install <a href="%2" target="_blank">MainWP</a> plugin (do not forget to activate it after installation).', 'mainwp' ) );
122 mainwpAddTranslation( $mainwpTranslations, 'Testing the connection', __( 'Testing the connection', 'mainwp' ) );
123 mainwpAddTranslation( $mainwpTranslations, 'Are you sure you want to delete this site?', __( 'Are you sure you want to delete this site?', 'mainwp' ) );
124 mainwpAddTranslation( $mainwpTranslations, 'Removing and deactivating the MainWP Child plugin..', __( 'Removing and deactivating the MainWP Child plugin..', 'mainwp' ) );
125 mainwpAddTranslation( $mainwpTranslations, 'The site has been removed and the MainWP Child plugin has been disabled.', __( 'The site has been removed and the MainWP Child plugin has been disabled.', 'mainwp' ) );
126 mainwpAddTranslation( $mainwpTranslations, 'The requested site has not been found', __( 'The requested site has not been found', 'mainwp' ) );
127 mainwpAddTranslation( $mainwpTranslations, 'The site has been removed but the MainWP Child plugin could not be disabled', __( 'The site has been removed but the MainWP Child plugin could not be disabled', 'mainwp' ) );
128 mainwpAddTranslation( $mainwpTranslations, 'Paused import by user.', __( 'Paused import by user.', 'mainwp' ) );
129 mainwpAddTranslation( $mainwpTranslations, 'Continue', __( 'Continue', 'mainwp' ) );
130 mainwpAddTranslation( $mainwpTranslations, 'Continue import.', __( 'Continue import.', 'mainwp' ) );
131 mainwpAddTranslation( $mainwpTranslations, 'Pause', __( 'Pause', 'mainwp' ) );
132 mainwpAddTranslation( $mainwpTranslations, 'Finished', __( 'Finished', 'mainwp' ) );
133 mainwpAddTranslation( $mainwpTranslations, 'Please enter the Site name.', __( 'Please enter the Site name.', 'mainwp' ) );
134 mainwpAddTranslation( $mainwpTranslations, 'Please enter the Site url.', __( 'Please enter the Site url.', 'mainwp' ) );
135 mainwpAddTranslation( $mainwpTranslations, 'Please enter Admin name of the site.', __( 'Please enter Admin name of the site.', 'mainwp' ) );
136 mainwpAddTranslation( $mainwpTranslations, 'Number of sites to Import: %1 Created sites: %2 Failed: %3', __( 'Number of sites to Import: %1 Created sites: %2 Failed: %3', 'mainwp' ) );
137 mainwpAddTranslation( $mainwpTranslations, 'HTTP error - website does not exist', __( 'HTTP error - website does not exist', 'mainwp' ) );
138 mainwpAddTranslation( $mainwpTranslations, 'No selected Categories', __( 'No selected Categories', 'mainwp' ) );
139 mainwpAddTranslation( $mainwpTranslations, 'Please select websites or groups to add a user.', __( 'Please select websites or groups to add a user.', 'mainwp' ) );
140 mainwpAddTranslation( $mainwpTranslations, 'Number of Users to Import: %1 Created users: %2 Failed: %3', __( 'Number of Users to Import: %1 Created users: %2 Failed: %3', 'mainwp' ) );
141 mainwpAddTranslation( $mainwpTranslations, 'Please enter the username.', __( 'Please enter the username.', 'mainwp' ) );
142 mainwpAddTranslation( $mainwpTranslations, 'Please enter the email.', __( 'Please enter the email.', 'mainwp' ) );
143 mainwpAddTranslation( $mainwpTranslations, 'Please enter the password.', __( 'Please enter the password.', 'mainwp' ) );
144 mainwpAddTranslation( $mainwpTranslations, 'Please select a valid role.', __( 'Please select a valid role.', 'mainwp' ) );
145 mainwpAddTranslation( $mainwpTranslations, 'Loading previous page..', __( 'Loading previous page..', 'mainwp' ) );
146 mainwpAddTranslation( $mainwpTranslations, 'Loading next page..', __( 'Loading next page..', 'mainwp' ) );
147 mainwpAddTranslation( $mainwpTranslations, 'Searching the WordPress repository..', __( 'Searching the WordPress repository..', 'mainwp' ) );
148 mainwpAddTranslation( $mainwpTranslations, 'Please select websites or groups on the right side to install files.', __( 'Please select websites or groups on the right side to install files.', 'mainwp' ) );
149 mainwpAddTranslation( $mainwpTranslations, 'Queued', __( 'Queued', 'mainwp' ) );
150 mainwpAddTranslation( $mainwpTranslations, 'In progress', __( 'In progress', 'mainwp' ) );
151 mainwpAddTranslation( $mainwpTranslations, 'Preparing %1 installation.', __( 'Preparing %1 installation.', 'mainwp' ) );
152 mainwpAddTranslation( $mainwpTranslations, 'Installation successful', __( 'Installation successful', 'mainwp' ) );
153 mainwpAddTranslation( $mainwpTranslations, 'Installation failed', __( 'Installation failed', 'mainwp' ) );
154 mainwpAddTranslation( $mainwpTranslations, 'Please select websites or groups to install files.', __( 'Please select websites or groups to install files.', 'mainwp' ) );
155 mainwpAddTranslation( $mainwpTranslations, 'Creating the backupfile on the child installation, this might take a while depending on the size. Please be patient.', __( 'Creating the backupfile on the child installation, this might take a while depending on the size. Please be patient.', 'mainwp' ) );
156 mainwpAddTranslation( $mainwpTranslations, 'Backupfile on child site created successfully.', __( 'Backupfile on child site created successfully.', 'mainwp' ) );
157 mainwpAddTranslation( $mainwpTranslations, 'Downloading the file.', __( 'Downloading the file.', 'mainwp' ) );
158 mainwpAddTranslation( $mainwpTranslations, 'Download from child completed.', __( 'Download from child completed.', 'mainwp' ) );
159 mainwpAddTranslation( $mainwpTranslations, 'Please wait while we are saving your note', __( 'Please wait while we are saving your note', 'mainwp' ) );
160 mainwpAddTranslation( $mainwpTranslations, 'Note saved.', __( 'Note saved.', 'mainwp' ) );
161 mainwpAddTranslation( $mainwpTranslations, 'An error occured while saving your message.', __( 'An error occured while saving your message.', 'mainwp' ) );
162 mainwpAddTranslation( $mainwpTranslations, 'Please search and select users for update password.', __( 'Please search and select users for update password.', 'mainwp' ) );
163 mainwpAddTranslation( $mainwpTranslations, 'All', __( 'All', 'mainwp' ) );
164 mainwpAddTranslation( $mainwpTranslations, 'Any', __( 'Any', 'mainwp' ) );
165 mainwpAddTranslation( $mainwpTranslations, 'HTTP error', __( 'HTTP error', 'mainwp' ) );
166 mainwpAddTranslation( $mainwpTranslations, 'Error on your child WordPress', __( 'Error on your child WordPress', 'mainwp' ) );
167 mainwpAddTranslation( $mainwpTranslations, 'MainWP Child plugin not detected. First, install and activate the plugin and add your site to MainWP afterwards. If you continue experiencing this issue, please, contact MainWP Support.', __( 'MainWP Child plugin not detected. First, install and activate the plugin and add your site to MainWP afterwards. If you continue experiencing this issue, please, contact MainWP Support.', 'mainwp' ) );
168 mainwpAddTranslation( $mainwpTranslations, 'Remove', __( 'Remove', 'mainwp' ) );
169 mainwpAddTranslation( $mainwpTranslations, 'Please reconnect to Dropbox', __( 'Please reconnect to Dropbox', 'mainwp' ) );
170 mainwpAddTranslation( $mainwpTranslations, 'Please wait', __( 'Please wait', 'mainwp' ) );
171 mainwpAddTranslation( $mainwpTranslations, 'Upgrading all', __( 'Upgrading all', 'mainwp' ) );
172 mainwpAddTranslation( $mainwpTranslations, 'Upgrading %1', __( 'Upgrading %1', 'mainwp' ) );
173 mainwpAddTranslation( $mainwpTranslations, 'Updating your plan...', __( 'Updating your plan...', 'mainwp' ) );
174 mainwpAddTranslation( $mainwpTranslations, 'Updated your plan', __( 'Updated your plan', 'mainwp' ) );
175 $mainwp_backup_before_upgrade_days = get_option( 'mainwp_backup_before_upgrade_days' );
176 if ( empty( $mainwp_backup_before_upgrade_days ) || ! ctype_digit( $mainwp_backup_before_upgrade_days ) ) {
177 $mainwp_backup_before_upgrade_days = 7;
178 }
179 mainwpAddTranslation( $mainwpTranslations, 'A full backup has not been taken in the last days for the following sites:', str_replace( '%1', '' . $mainwp_backup_before_upgrade_days, __( 'A full backup has not been taken in the last %1 days for the following sites:', 'mainwp' ) ) );
180 mainwpAddTranslation( $mainwpTranslations, 'Starting required backup(s).', __( 'Starting required backup(s).', 'mainwp' ) );
181 mainwpAddTranslation( $mainwpTranslations, 'Required backup(s) complete', __( 'Required backup(s) complete', 'mainwp' ) );
182 mainwpAddTranslation( $mainwpTranslations, 'Continue update anyway', __( 'Continue update anyway', 'mainwp' ) );
183 mainwpAddTranslation( $mainwpTranslations, 'Continue update', __( 'Continue update', 'mainwp' ) );
184 mainwpAddTranslation( $mainwpTranslations, 'Pause', __( 'Pause', 'mainwp' ) );
185 mainwpAddTranslation( $mainwpTranslations, 'Resume', __( 'Resume', 'mainwp' ) );
186 mainwpAddTranslation( $mainwpTranslations, 'Checking if a backup is required for the selected updates...', __( 'Checking if a backup is required for the selected updates...', 'mainwp' ) );
187 mainwpAddTranslation( $mainwpTranslations, 'Full backup required', __( 'Full backup required', 'mainwp' ) );
188 mainwpAddTranslation( $mainwpTranslations, 'Checking backup settings', __( 'Checking backup settings', 'mainwp' ) );
189 mainwpAddTranslation( $mainwpTranslations, 'Hide Shortcuts', __( 'Hide Shortcuts', 'mainwp' ) );
190 mainwpAddTranslation( $mainwpTranslations, 'Show Shortcuts', __( 'Show Shortcuts', 'mainwp' ) );
191 mainwpAddTranslation( $mainwpTranslations, 'Are you sure?', __( 'Are you sure?', 'mainwp' ) );
192 mainwpAddTranslation( $mainwpTranslations, 'Bulk reconnect finished.', __( 'Bulk reconnect finished.', 'mainwp' ) );
193 mainwpAddTranslation( $mainwpTranslations, 'Note Saved', __( 'Note Saved', 'mainwp' ) );
194 mainwpAddTranslation( $mainwpTranslations, 'An error occured while saving your message', __( 'An error occured while saving your message', 'mainwp' ) );
195 mainwpAddTranslation( $mainwpTranslations, 'Download from child site completed.', __( 'Download from child site completed.', 'mainwp' ) );
196 mainwpAddTranslation( $mainwpTranslations, 'Please wait while we are saving your note', __( 'Please wait while we are saving your note', 'mainwp' ) );
197 mainwpAddTranslation( $mainwpTranslations, 'Installation Successful', __( 'Installation Successful', 'mainwp' ) );
198 mainwpAddTranslation( $mainwpTranslations, 'Upload to %1 (%2) successful.', __( 'Upload to %1 (%2) successful.', 'mainwp' ) );
199 mainwpAddTranslation( $mainwpTranslations, 'Upload to %1 (%2) failed:', __( 'Upload to %1 (%2) failed:', 'mainwp' ) );
200 mainwpAddTranslation( $mainwpTranslations, 'Updating Themes', __( 'Updating Themes', 'mainwp' ) );
201 mainwpAddTranslation( $mainwpTranslations, 'Updating Plugins', __( 'Updating Plugins', 'mainwp' ) );
202 mainwpAddTranslation( $mainwpTranslations, 'Updating WordPress', __( 'Updating WordPress', 'mainwp' ) );
203 mainwpAddTranslation( $mainwpTranslations, 'updated', __( 'updated', 'mainwp' ) );
204 mainwpAddTranslation( $mainwpTranslations, 'Updating', __( 'Updating', 'mainwp' ) );
205 mainwpAddTranslation( $mainwpTranslations, 'Please enter a valid name for your backup task', __( 'Please enter a valid name for your backup task', 'mainwp' ) );
206 mainwpAddTranslation( $mainwpTranslations, 'The backup task was added successfully', __( 'The backup task was added successfully', 'mainwp' ) );
207 mainwpAddTranslation( $mainwpTranslations, 'Bulk test connection finished', __( 'Bulk test connection finished', 'mainwp' ) );
208 mainwpAddTranslation( $mainwpTranslations, 'To find out more about what your HTTP status code means please %1click here%2 to locate your number (%3)', __( 'To find out more about what your HTTP status code means please %1click here%2 to locate your number (%3)', 'mainwp' ) );
209 mainwpAddTranslation( $mainwpTranslations, 'Refreshing the page for Step 3 "Grab API Keys" in 5 seconds... if refresh fails please %1click here%2.', __( 'Refreshing the page for Step 3 "Grab API Keys" in 5 seconds... if refresh fails please %1click here%2.', 'mainwp' ) );
210 mainwpAddTranslation( $mainwpTranslations, 'No ignored abandoned plugins', __( 'No ignored abandoned plugins', 'mainwp' ) );
211 mainwpAddTranslation( $mainwpTranslations, 'Please upload plugins to install.', __( 'Please upload plugins to install.', 'mainwp' ) );
212 mainwpAddTranslation( $mainwpTranslations, 'Please upload themes to install.', __( 'Please upload themes to install.', 'mainwp' ) );
213 mainwpAddTranslation( $mainwpTranslations, 'Did you know with the %1 you can control the settings of this plugin directly from your MainWP Dashboard?', __( 'Did you know with the %1 you can control the settings of this plugin directly from your MainWP Dashboard?', 'mainwp' ) );
214 mainwpAddTranslation( $mainwpTranslations, 'Did you know with the %1 you can control the settings of these plugins directly from your MainWP Dashboard?', __( 'Did you know with the %1 you can control the settings of these plugins directly from your MainWP Dashboard?', 'mainwp' ) );
215 mainwpAddTranslation( $mainwpTranslations, 'Did you know with the %1 you can control the settings of this theme directly from your MainWP Dashboard?', __( 'Did you know with the %1 you can control the settings of this theme directly from your MainWP Dashboard?', 'mainwp' ) );
216 mainwpAddTranslation( $mainwpTranslations, 'Did you know with the %1 you can control the settings of these themes directly from your MainWP Dashboard?', __( 'Did you know with the %1 you can control the settings of these themes directly from your MainWP Dashboard?', 'mainwp' ) );
217 mainwpAddTranslation( $mainwpTranslations, 'Would you like to use the Bulk Settings Manager with this plugin? Check out the %1Documentation%2.', __( 'Would you like to use the Bulk Settings Manager with this plugin? Check out the %1Documentation%2.', 'mainwp' ) );
218 mainwpAddTranslation( $mainwpTranslations, 'Would you like to use the Bulk Settings Manager with these plugin? Check out the %1Documentation%2.', __( 'Would you like to use the Bulk Settings Manager with these plugin? Check out the %1Documentation%2.', 'mainwp' ) );
219 mainwpAddTranslation( $mainwpTranslations, 'Would you like to use the Bulk Settings Manager with this theme? Check out the %1Documentation%2.', __( 'Would you like to use the Bulk Settings Manager with this theme? Check out the %1Documentation%2.', 'mainwp' ) );
220 mainwpAddTranslation( $mainwpTranslations, 'Would you like to use the Bulk Settings Manager with these themes? Check out the %1Documentation%2.', __( 'Would you like to use the Bulk Settings Manager with these themes? Check out the %1Documentation%2.', 'mainwp' ) );
221 mainwpAddTranslation( $mainwpTranslations, 'is_activated_parent', __( '%1 could not be deleted. This theme is parent theme for the currently active theme.', 'mainwp' ) );
222 mainwpAddTranslation( $mainwpTranslations, 'is_activated_theme', __( '%1 could not be deleted. This theme is active theme.', 'mainwp' ) );
223
224 return $mainwpTranslations;
225 }
226
227 /**
228 * Check if MainWP Extensions are Activated or not.
229 *
230 * @param mixed $plugin_slug Plugin Slug.
231 * @param mixed $plugin_data Plugin Data.
232 * @param mixed $status Status of plugin activation.
233 *
234 * @return string Activation warning message.
235 */
236 public static function after_extensions_plugin_row( $plugin_slug, $plugin_data, $status ) {
237 $extensions = MainWP_Extensions_Handler::get_indexed_extensions_infor();
238 if ( ! isset( $extensions[ $plugin_slug ] ) ) {
239 return;
240 }
241
242 if ( ! isset( $extensions[ $plugin_slug ]['apiManager'] ) || ! $extensions[ $plugin_slug ]['apiManager'] ) {
243 return;
244 }
245
246 if ( isset( $extensions[ $plugin_slug ]['activated_key'] ) && 'Activated' == $extensions[ $plugin_slug ]['activated_key'] ) {
247 return;
248 }
249
250 $slug = basename( $plugin_slug, '.php' );
251
252 $activate_notices = get_user_option( 'mainwp_hide_activate_notices' );
253 if ( is_array( $activate_notices ) ) {
254 if ( isset( $activate_notices[ $slug ] ) ) {
255 return;
256 }
257 }
258 ?>
259 <style type="text/css">
260 tr[data-plugin="<?php echo esc_attr( $plugin_slug ); ?>"] {
261 box-shadow: none;
262 }
263 </style>
264 <tr class="plugin-update-tr active" slug="<?php echo esc_attr( $slug ); ?>"><td colspan="3" class="plugin-update colspanchange"><div class="update-message api-deactivate">
265 <?php printf( __( 'You have a MainWP Extension that does not have an active API entered. This means you will not receive updates or support. Please visit the %1$sExtensions%2$s page and enter your API.', 'mainwp' ), '<a href="admin.php?page=Extensions">', '</a>' ); ?>
266 <span class="mainwp-right"><a href="#" class="mainwp-activate-notice-dismiss" ><i class="times circle icon"></i> <?php esc_html_e( 'Dismiss', 'mainwp' ); ?></a></span>
267 </div></td></tr>
268 <?php
269 }
270
271 /** MainWP Version 4 update Notice. */
272 public static function mainwp_4_update_notice() {
273 if ( MainWP_Utility::show_mainwp_message( 'notice', 'upgrade_4' ) ) {
274 ?>
275 <div class="ui icon message yellow" style="margin-bottom: 0; border-radius: 0;">
276 <i class="exclamation circle icon"></i>
277 <strong><?php echo esc_html__( 'Important Notice: ', 'mainwp' ); ?></strong>&nbsp;<?php printf( __( 'MainWP Version 4 is a major upgrade from MainWP Version 3. Please, read this&nbsp; %1$supdating FAQ%2$s.', 'mainwp' ), '<a href="https://kb.mainwp.com/docs/faq-on-upgrading-from-mainwp-version-3-to-mainwp-version-4/" target="_blank">', '</a>' ); ?>
278 <i class="close icon mainwp-notice-dismiss" notice-id="upgrade_4"></i>
279 </div>
280 <?php
281 }
282 }
283
284 /** Render Administration Notice. */
285 public static function admin_notices() {
286 if ( get_option( 'mainwp_refresh' ) ) {
287 echo '<meta http-equiv="refresh" content="0">';
288 delete_option( 'mainwp_refresh' );
289 }
290
291 $current_options = get_option( 'mainwp_showhide_events_notice' );
292 if ( ! is_array( $current_options ) ) {
293 $current_options = array();
294 }
295
296 self::render_notice_version();
297
298 self::render_notice_config_warning();
299
300 if ( is_multisite() && ( ! isset( $current_options['hide_multi_site_notice'] ) || empty( $current_options['hide_multi_site_notice'] ) ) ) {
301 self::render_notice_multi_sites();
302 }
303
304 if ( ! isset( $current_options['trust_child'] ) || empty( $current_options['trust_child'] ) ) {
305 if ( MainWP_System::is_mainwp_pages() ) {
306 if ( ! MainWP_Plugins_Handler::check_auto_update_plugin( 'mainwp-child/mainwp-child.php' ) ) {
307 self::render_notice_trust_update();
308 }
309 }
310 }
311
312 self::check_rating_notice( $current_options );
313 }
314
315 /** Render PHP Version Notice. */
316 public static function render_notice_version() {
317 $phpver = phpversion();
318 if ( version_compare( $phpver, '5.5', '<' ) ) {
319 if ( MainWP_Utility::show_mainwp_message( 'notice', 'phpver_5_5' ) ) {
320 ?>
321 <div class="ui icon yellow message" style="margin-bottom: 0; border-radius: 0;">
322 <i class="exclamation circle icon"></i>
323 <?php printf( __( 'Your server is currently running PHP version %1$s. In the next few months your MainWP Dashboard will require PHP 5.6 as a minimum. Please upgrade your server to at least 5.6 but we recommend PHP 7 or newer. You can find a template email to send your host %2$shere%3$s.', 'mainwp' ), $phpver, '<a href="https://wordpress.org/about/requirements/" target="_blank">', '</a>' ); ?>
324 <i class="close icon mainwp-notice-dismiss" notice-id="phpver_5_5"></i>
325 </div>
326 <?php
327 }
328 }
329 }
330
331 /** Render OpenSSL Error message. */
332 public static function render_notice_config_warning() {
333 if ( MainWP_Server_Information_Handler::is_openssl_config_warning() ) {
334 if ( MainWP_Utility::show_mainwp_message( 'notice', 'ssl_warn' ) ) {
335 if ( isset( $_GET['page'] ) && 'SettingsAdvanced' != $_GET['page'] ) {
336 ?>
337 <div class="ui icon yellow message" style="margin-bottom: 0; border-radius: 0;">
338 <i class="exclamation circle icon"></i>
339 <?php printf( __( 'MainWP has detected that the <strong>OpenSSL.cnf</strong> file is not configured properly. It is required to configure this so you can start connecting your child sites. Please, %1$sclick here to configure it!%2$s', 'mainwp' ), '<a href="admin.php?page=SettingsAdvanced">', '</a>' ); ?>
340 <i class="close icon mainwp-notice-dismiss" notice-id="ssl_warn"></i>
341 </div>
342 <?php
343 }
344 }
345 }
346 }
347
348 /** Render WP Multisite Error Message. */
349 public static function render_notice_multi_sites() {
350 ?>
351 <div class="ui icon red message" style="margin-bottom: 0; border-radius: 0;">
352 <i class="exclamation circle icon"></i>
353 <?php esc_html_e( 'MainWP plugin is not designed nor fully tested on WordPress Multisite installations. Various features may not work properly. We highly recommend installing it on a single site installation!', 'mainwp' ); ?>
354 <i class="close icon mainwp-notice-dismiss" notice-id="multi_site"></i>
355 </div>
356 <?php
357 }
358
359 /**
360 * Render MainWP Review Request.
361 *
362 * @param bool $current_options false|true Weather or not to display request.
363 */
364 public static function check_rating_notice( $current_options ) {
365 $display_request1 = false;
366 $display_request2 = false;
367
368 if ( isset( $current_options['request_reviews1'] ) ) {
369 if ( 'forever' == $current_options['request_reviews1'] ) {
370 $display_request1 = false;
371 } else {
372 $days = intval( $current_options['request_reviews1'] );
373 $start_time = $current_options['request_reviews1_starttime'];
374 $display_request1 = ( ( time() - $start_time ) > $days * 24 * 3600 ) ? true : false;
375 }
376 } else {
377 $current_options['request_reviews1'] = 30;
378 $current_options['request_reviews1_starttime'] = time();
379 update_option( 'mainwp_showhide_events_notice', $current_options );
380 }
381
382 if ( isset( $current_options['request_reviews2'] ) ) {
383 if ( 'forever' == $current_options['request_reviews2'] ) {
384 $display_request2 = false;
385 } else {
386 $days = intval( $current_options['request_reviews2'] );
387 $start_time = $current_options['request_reviews2_starttime'];
388 $display_request2 = ( ( time() - $start_time ) > $days * 24 * 3600 ) ? true : false;
389 }
390 } else {
391 $currentExtensions = MainWP_Extensions_Handler::get_extensions();
392 if ( is_array( $currentExtensions ) && count( $currentExtensions ) > 10 ) {
393 $display_request2 = true;
394 }
395 }
396
397 if ( $display_request1 ) {
398 self::render_rating_notice_1();
399 } elseif ( $display_request2 ) {
400 self::render_rating_notice_2();
401 }
402 }
403
404 /** Render MainWP Dashboard & Child Plugin auto update Alert. */
405 public static function render_notice_trust_update() {
406 ?>
407 <div class="ui icon yellow message" style="margin-bottom: 0; border-radius: 0;">
408 <i class="info circle icon"></i>
409 <div class="content">
410 <?php esc_html_e( 'You have not set your MainWP Child plugins for auto updates, this is highly recommended!', 'mainwp' ); ?> <a id="mainwp_btn_autoupdate_and_trust" class="ui mini yellow button" href="#"><?php esc_html_e( 'Turn On', 'mainwp' ); ?></a>
411 </div>
412 <i class="close icon mainwp-events-notice-dismiss" notice="trust_child"></i>
413 </div>
414 <?php
415 }
416
417 /** Render MainWP 30 day review request. */
418 public static function render_rating_notice_1() {
419 ?>
420 <div class="ui green icon message" style="margin-bottom: 0; border-radius: 0;">
421 <i class="star icon"></i>
422 <div class="content">
423 <div class="header">
424 <?php esc_html_e( 'Hi, I noticed you have been using MainWP for over 30 days and that\'s awesome!', 'mainwp' ); ?>
425 </div>
426 <?php esc_html_e( 'Could you please do me a BIG favor and give it a 5-star rating on WordPress? Reviews from users like you really help the MainWP community grow.', 'mainwp' ); ?>
427 <br /><br />
428 <a href="https://wordpress.org/support/view/plugin-reviews/mainwp#postform" target="_blank" class="ui green mini button"><?php esc_html_e( 'Ok, you deserve!', 'mainwp' ); ?></a>
429 <a href="" class="ui mini green basic button mainwp-events-notice-dismiss" notice="request_reviews1"><?php esc_html_e( 'Nope, maybe later.', 'mainwp' ); ?></a>
430 <a href="" class="ui mini green basic button mainwp-events-notice-dismiss" notice="request_reviews1_forever"><?php esc_html_e( 'I already did.', 'mainwp' ); ?></a>
431 </div>
432 <i class="close icon mainwp-notice-dismiss" notice="request_reviews1"></i>
433 </div>
434 <?php
435 }
436
437 /** Render MainWP review notice after a few extensions have been installed. */
438 public static function render_rating_notice_2() {
439 ?>
440 <div class="ui green icon message" style="margin-bottom: 0; border-radius: 0;">
441 <i class="star icon"></i>
442 <div class="content">
443 <div class="header">
444 <?php esc_html_e( 'Hi, I noticed you have a few MainWP Extensions installed and that\'s awesome!', 'mainwp' ); ?>
445 </div>
446 <?php esc_html_e( 'Could you please do me a BIG favor and give it a 5-star rating on WordPress? Reviews from users like you really help the MainWP community to grow.', 'mainwp' ); ?>
447 <br /><br />
448 <a href="https://wordpress.org/support/view/plugin-reviews/mainwp#postform" target="_blank" class="ui green mini button"><?php esc_html_e( 'Ok, you deserve!', 'mainwp' ); ?></a>
449 <a href="" class="ui mini green basic button mainwp-events-notice-dismiss" notice="request_reviews2"><?php esc_html_e( 'Nope, maybe later.', 'mainwp' ); ?></a>
450 <a href="" class="ui mini green basic button mainwp-events-notice-dismiss" notice="request_reviews2_forever"><?php esc_html_e( 'I already did.', 'mainwp' ); ?></a>
451 </div>
452 <i class="close icon mainwp-notice-dismiss" notice="request_reviews2"></i>
453 </div>
454 <?php
455 }
456
457 /** Render Send Mail Function may have failed error. */
458 public static function wp_admin_notices() {
459
460 /**
461 * Current pagenow.
462 *
463 * @global string
464 */
465 global $pagenow;
466
467 $mail_failed = get_option( 'mainwp_notice_wp_mail_failed' );
468 if ( 'yes' == $mail_failed ) {
469 ?>
470 <div class="ui icon yellow message" style="margin-bottom: 0; border-radius: 0;">
471 <i class="exclamation circle icon"></i>
472 <?php echo esc_html__( 'Send mail function may failed.', 'mainwp' ); ?>
473 <i class="close icon mainwp-notice-dismiss" notice-id="mail_failed"></i>
474 </div>
475 <?php
476 }
477
478 if ( 'plugins.php' !== $pagenow ) {
479 return;
480 }
481
482 $deactivated_exts = get_transient( 'mainwp_transient_deactivated_incomtible_exts' );
483 if ( $deactivated_exts && is_array( $deactivated_exts ) && count( $deactivated_exts ) > 0 ) {
484 ?>
485 <div class='notice notice-error my-dismiss-notice is-dismissible'>
486 <p><?php echo esc_html__( 'MainWP Dashboard 4.0 or newer requires Extensions 4.0 or newer. MainWP will automatically deactivate older versions of MainWP Extensions in order to prevent compatibility problems.', 'mainwp' ); ?></p>
487 </div>
488 <?php
489 }
490 }
491
492
493 /**
494 * Method admin_footer()
495 *
496 * Render Admin Footer.
497 */
498 public static function admin_footer() {
499 $disabled_confirm = get_option( 'mainwp_disable_update_confirmations', 0 );
500 ?>
501 <input type="hidden" id="mainwp-disable-update-confirmations" value="<?php echo intval( $disabled_confirm ); ?>">
502
503 <script type="text/javascript">
504 jQuery( document ).ready(
505 function ()
506 {
507 jQuery( '#adminmenu #collapse-menu' ).hide();
508 }
509 );
510 </script>
511 <?php
512 /**
513 * Filter: mainwp_open_hide_referrer
514 *
515 * Filters whether the MainWP should hide referrer when going to child site.
516 *
517 * @since Unknown
518 */
519 $hide_ref = apply_filters( 'mainwp_open_hide_referrer', false );
520 if ( $hide_ref ) {
521 ?>
522 <script type="text/javascript">
523 jQuery( document ).on( 'click', 'a.mainwp-may-hide-referrer', function ( e ) {
524 e.preventDefault();
525 mainwp_open_hide_referrer( e.target.href );
526 } );
527
528 function mainwp_open_hide_referrer( url ) {
529 var ran = Math.floor( Math.random() * 100 ) + 1;
530 var site = window.open( "", "mainwp_hide_referrer_" + ran );
531 var meta = site.document.createElement( 'meta' );
532 meta.name = "referrer";
533 meta.content = "no-referrer";
534 site.document.getElementsByTagName( 'head' )[0].appendChild( meta );
535 site.document.open();
536 site.document.writeln( '<script type="text/javascript">window.location = "' + url + '";<\/script>' );
537 site.document.close();
538 }
539 </script>
540 <?php
541 }
542 }
543
544 /** Admin print styles. */
545 public static function admin_print_styles() {
546 ?>
547 <style>
548 <?php
549 if ( ! MainWP_System::is_mainwp_pages() ) {
550 ?>
551 html.wp-toolbar{
552 padding-top: 32px !important;
553 }
554 <?php
555 } else {
556 ?>
557 #wpbody-content > div.update-nag,
558 #wpbody-content > div.updated {
559 margin-left: 190px;
560 }
561 <?php
562 }
563 ?>
564 .mainwp-checkbox:before {
565 content: '<?php esc_html_e( 'YES', 'mainwp' ); ?>';
566 }
567 .mainwp-checkbox:after {
568 content: '<?php esc_html_e( 'NO', 'mainwp' ); ?>';
569 }
570 </style>
571 <?php
572 }
573
574
575 /** MainWP Productions Site warning. */
576 public static function mainwp_warning_notice() {
577
578 if ( get_option( 'mainwp_installation_warning_hide_the_notice' ) == 'yes' ) {
579 return;
580 }
581 if ( MainWP_DB::instance()->get_websites_count() > 0 ) {
582 return;
583 } else {
584 $plugins = get_plugins();
585 if ( ! is_array( $plugins ) || count( $plugins ) <= 4 ) {
586 return;
587 }
588 }
589 ?>
590 <div class="ui red icon message" style="margin-bottom: 0; border-radius: 0;">
591 <i class="info circle icon"></i>
592 <div class="content">
593 <div class="header"><?php esc_html_e( 'This appears to be a production site', 'mainwp' ); ?></div>
594 <?php esc_html_e( 'We HIGHLY recommend a NEW WordPress install for your MainWP Dashboard.', 'mainwp' ); ?> <?php printf( __( 'Using a new WordPress install will help to cut down on plugin conflicts and other issues that can be caused by trying to run your MainWP Dashboard off an active site. Most hosting companies provide free subdomains %s and we recommend creating one if you do not have a specific dedicated domain to run your MainWP Dashboard.', 'mainwp' ), '("<strong>demo.yourdomain.com</strong>")' ); ?>
595 <br /><br />
596 <a href="#" class="ui red mini button" id="remove-mainwp-installation-warning"><?php esc_html_e( 'I have read the warning and I want to proceed', 'mainwp' ); ?></a>
597 </div>
598 </div>
599 <?php
600 }
601
602 /** Render Admin Header */
603 public static function admin_head() {
604 ?>
605 <script type="text/javascript">var mainwp_ajax_nonce = "<?php echo wp_create_nonce( 'mainwp_ajax' ); ?>"</script>
606 <?php
607 }
608
609 /**
610 * MainWP Admin body CSS class attributes.
611 *
612 * @param mixed $class_string MainWP CSS Class attributes.
613 *
614 * @return string $class_string The CSS attributes to add to the page.
615 */
616 public static function admin_body_class( $class_string ) {
617 if ( MainWP_System::is_mainwp_pages() ) {
618 $class_string .= ' mainwp-ui mainwp-ui-page ';
619 $class_string .= ' mainwp-ui-leftmenu ';
620 }
621 return $class_string;
622 }
623
624 /**
625 * Method render_footer_content()
626 *
627 * Render footer content.
628 *
629 * @param mixed $websites The websites object.
630 */
631 public static function render_footer_content( $websites ) {
632
633 $cntr = 0;
634 if ( is_array( $websites ) ) {
635 $count = count( $websites );
636 for ( $i = 0; $i < $count; $i ++ ) {
637 $website = $websites[ $i ];
638 if ( '' == $website->sync_errors ) {
639 $cntr ++;
640 echo '<input type="hidden" name="dashboard_wp_ids[]" class="dashboard_wp_id" value="' . intval( $website->id ) . '" />';
641 }
642 }
643 } elseif ( false !== $websites ) {
644 while ( $website = MainWP_DB::fetch_object( $websites ) ) {
645 if ( '' == $website->sync_errors ) {
646 $cntr ++;
647 echo '<input type="hidden" name="dashboard_wp_ids[]" class="dashboard_wp_id" value="' . intval( $website->id ) . '" />';
648 }
649 }
650 }
651
652 /**
653 * Action: mainwp_admin_footer
654 *
655 * Fires at the bottom of MainWP content.
656 *
657 * @since Unknown
658 */
659 do_action( 'mainwp_admin_footer' );
660
661 ?>
662 <div class="ui longer modal" id="mainwp-sync-sites-modal">
663 <div class="header"><?php esc_html_e( 'Data Synchronization', 'mainwp' ); ?></div>
664 <div class="ui green progress mainwp-modal-progress">
665 <div class="bar"><div class="progress"></div></div>
666 <div class="label"></div>
667 </div>
668 <div class="scrolling content mainwp-modal-content">
669 <div class="ui middle aligned divided selection list" id="sync-sites-status">
670 <?php
671 if ( is_array( $websites ) ) {
672 $count = count( $websites );
673 for ( $i = 0; $i < $count; $i ++ ) {
674 $nice_url = MainWP_Utility::get_nice_url( $website->url );
675 $website = $websites[ $i ];
676 $is_sync_err = ( '' != $website->sync_errors ) ? true : false;
677 ?>
678 <div class="item <?php echo $is_sync_err ? 'disconnected-site' : ''; ?>">
679 <div class="right floated content">
680 <div class="sync-site-status" niceurl="<?php echo esc_html( $nice_url ); ?>" siteid="<?php echo intval( $website->id ); ?>"><i class="<?php echo $is_sync_err ? 'exclamation red icon' : 'clock outline icon'; ?>"></i></div>
681 </div>
682 <div class="content">
683 <?php echo esc_html( $nice_url ); ?>
684 <?php do_action( 'mainwp_sync_popup_content', $website ); ?>
685 </div>
686 </div>
687 <?php
688 }
689 } else {
690 MainWP_DB::data_seek( $websites, 0 );
691 while ( $website = MainWP_DB::fetch_object( $websites ) ) {
692 $nice_url = MainWP_Utility::get_nice_url( $website->url );
693 $is_sync_err = ( '' != $website->sync_errors ) ? true : false;
694 ?>
695 <div class="item <?php echo $is_sync_err ? 'disconnected-site' : ''; ?>">
696 <div class="right floated content">
697 <div class="sync-site-status" niceurl="<?php echo esc_html( $nice_url ); ?>" siteid="<?php echo intval( $website->id ); ?>"><i class="<?php echo $is_sync_err ? 'exclamation red icon' : 'clock outline icon'; ?>"></i></div>
698 </div>
699 <div class="content">
700 <?php echo esc_html( $nice_url ); ?>
701 <?php do_action( 'mainwp_sync_popup_content', $website ); ?>
702 </div>
703 </div>
704 <?php
705 }
706 }
707 ?>
708 </div>
709 </div>
710 <div class="actions mainwp-modal-actions">
711 <div class="mainwp-modal-close ui cancel button"><?php esc_html_e( 'Close', 'mainwp' ); ?></div>
712 </div>
713 </div>
714
715 <input type="hidden" id="sync_selected_site_ids" value="" />
716
717 <div class="ui tiny modal" id="mainwp-modal-confirm">
718 <div class="header"><?php esc_html_e( 'Confirmation', 'mainwp' ); ?></div>
719 <div class="content">
720 <div class="content-massage"></div>
721 <div class="ui mini yellow message hidden update-confirm-notice" ><?php printf( __( 'To disable update confirmations, go to the %1$sSettings%2$s page and disable the "Disable update confirmations" option', 'mainwp' ), '<a href="admin.php?page=Settings">', '</a>' ); ?></div>
722 </div>
723 <div class="actions">
724 <div class="ui cancel button"><?php esc_html_e( 'Cancel', 'mainwp' ); ?></div>
725 <div class="ui positive right labeled icon button"><?php esc_html_e( 'Yes', 'mainwp' ); ?><i class="checkmark icon"></i></div>
726 </div>
727 </div>
728 <?php
729 }
730
731
732 }
733