</ul> </div> </div> <?php if ($url != '') { ?> <p class="editfooter"><?php if (!$newdraft && isset($pubDate)) { echo '<span><i class="fa fa-clock-o"></i>'; echo sprintf($draft ? i18n_r('DRAFT_LAST_SAVED') : i18n_r('LAST_SAVED'), '<em>' . (empty($author) ? i18n_r('UNKNOWN') : $author . '</em>')) . ' ' . output_datetime($pubDate) . '</span>'; } if ($draft && fileHasBackup(GSDATADRAFTSPATH . $url . '.xml')) { echo '<span>•</span><a href="backup-edit.php?p=view&draft&id=' . $url . '" target="_blank" ><i class="fa fa-file-archive-o"></i>' . i18n_r('BACKUP_AVAILABLE') . '</a></span>'; } else { if (!$draft && fileHasBackup(GSDATAPAGESPATH . $url . '.xml')) { echo '<span>•</span><span><a href="backup-edit.php?p=view&id=' . $url . '" target="_blank" ><i class="fa fa-file-archive-o"></i>' . i18n_r('BACKUP_AVAILABLE') . '</a></span>'; } } ?> </p> <?php } ?> </form> </div><!-- end main --> </div><!-- end maincontent --> <div id="sidebar" > <?php include 'template/sidebar-pages.php';
function getPagesRowMissing($ancestor, $level, $children) { $menu = '<tr id="tr-' . $ancestor . '" class="tree-error tree-parent depth-' . $level . '" data-depth="' . $level . '"><td colspan="4" class="pagetitle"><a><strong>' . $ancestor . '</strong> ' . i18n_r('MISSING_PARENT') . '</a>'; if (fileHasBackup(GSDATAPAGESPATH . $ancestor . '.xml')) { $menu .= ' <a href="backup-edit.php?p=view&id=' . $ancestor . '" target="_blank" >' . i18n_r('BACKUP_AVAILABLE') . '</a>'; } $menu .= "</td></tr>"; return $menu; }