item->htmlcode) {
echo $this->item->htmlcode;
} else {
?>
item->id) {
$path = JPATH_ROOT . '/administrator/components/com_pagebuilderck/backup/' . $this->item->id . '_bak';
if (JFolder::exists($path)) {
$files = JFolder::files($path, '.pbck', false, false);
if (count($files)) {
natsort($files);
$i = 0;
foreach ($files as $file) {
if (stristr($file, 'locked_')) {
$backupdate = str_replace('locked_' . $this->item->id . '_', '', JFile::stripExt($file));
$isLocked = true;
} else {
$backupdate = str_replace('backup_' . $this->item->id . '_', '', JFile::stripExt($file));
$isLocked = false;
}
$date = DateTime::createFromFormat('d-m-Y-G-i-s', $backupdate);
$lockedIcon = $isLocked ? '' : '';
echo '
' . $date->format('d-M-Y H:i:s') . '
' . $lockedIcon . '
' . JText::_('CK_DO_RESTORATION') . '
';
$i++;
}
} else {
echo '' . JText::_('CK_NO_RESTORE_FILE_FOUND') . '
';
}
} else {
echo '' . JText::_('CK_NO_RESTORE_FILE_FOUND') . '
';
}
}
?>