| @@ -121,27 +121,8 @@ | ||
| 121 | 121 | </div> |
| 122 | 122 | </div> |
| 123 | 123 | |
| 124 | 124 | <div class="metasync-robots-txt-sidebar"> |
| 125 | - <div class="metasync-card"> | |
| 126 | - <div class="metasync-card-header"> | |
| 127 | - <h3><?php esc_html_e('Backup History', 'metasync'); ?></h3> | |
| 128 | - </div> | |
| 129 | - | |
| 130 | - <?php | |
| 131 | - // Backup History is paginated so the list always reflects the | |
| 132 | - // full stored state (and its true total), rather than a fixed | |
| 133 | - // slice that makes deleted entries appear to "reappear". | |
| 134 | - $robots_txt = Metasync_Robots_Txt::get_instance(); | |
| 135 | - $backup_per_page = Metasync_Robots_Txt_Database::BACKUPS_PER_PAGE; | |
| 136 | - $backup_total = $robots_txt->get_backup_count(); | |
| 137 | - $backup_total_pages = max(1, (int) ceil($backup_total / $backup_per_page)); | |
| 138 | - $backup_page = 1; | |
| 139 | - // $backups already holds the first page (from the controller). | |
| 140 | - require __DIR__ . '/backup-history.php'; | |
| 141 | - ?> | |
| 142 | - </div> | |
| 143 | - | |
| 144 | 125 | <div class="metasync-card metasync-warnings-card"> |
| 145 | 126 | <div class="metasync-card-header"> |
| 146 | 127 | <h3><?php esc_html_e('Important Notes', 'metasync'); ?></h3> |
| 147 | 128 | </div> |
| @@ -158,8 +139,27 @@ | ||
| 158 | 139 | <span class="dashicons dashicons-admin-plugins" style="color: #2271b1;"></span> |
| 159 | 140 | <?php esc_html_e('Some hosting providers may override robots.txt files. Check with your host if changes don\'t work.', 'metasync'); ?> |
| 160 | 141 | </li> |
| 161 | 142 | </ul> |
| 143 | + </div> | |
| 144 | + | |
| 145 | + <div class="metasync-card"> | |
| 146 | + <div class="metasync-card-header"> | |
| 147 | + <h3><?php esc_html_e('Backup History', 'metasync'); ?></h3> | |
| 148 | + </div> | |
| 149 | + | |
| 150 | + <?php | |
| 151 | + // Backup History is paginated so the list always reflects the | |
| 152 | + // full stored state (and its true total), rather than a fixed | |
| 153 | + // slice that makes deleted entries appear to "reappear". | |
| 154 | + $robots_txt = Metasync_Robots_Txt::get_instance(); | |
| 155 | + $backup_per_page = Metasync_Robots_Txt_Database::BACKUPS_PER_PAGE; | |
| 156 | + $backup_total = $robots_txt->get_backup_count(); | |
| 157 | + $backup_total_pages = max(1, (int) ceil($backup_total / $backup_per_page)); | |
| 158 | + $backup_page = 1; | |
| 159 | + // $backups already holds the first page (from the controller). | |
| 160 | + require __DIR__ . '/backup-history.php'; | |
| 161 | + ?> | |
| 162 | 162 | </div> |
| 163 | 163 | </div> |
| 164 | 164 | </div> |
| 165 | 165 | </div> |