Esempio n. 1
0
				<span class="colon">:</span>
				<input type="text" name="post-publish-minute" value="<?php 
    echo date('i');
    ?>
" />
			</div>

			<input id="post-schedule" type="checkbox" name="post-schedule" value="1" />
			<label for="post-schedule">Schedule post</label>
		</div>

		<div class="input-group">
			<h3>Comments</h3>

			<?php 
    echo ae_Forms::postCommentsStatus('post-comments-status', ae_PageModel::COMMENTS_OPEN);
    ?>
		</div>

		<div class="submit-buttons">
			<button type="submit" class="btn btn-draft" name="submit" value="draft">save draft</button>
			<button type="submit" class="btn btn-publish" name="submit" value="publish">publish</button>
		</div>
	</aside>

	<div class="main-content">
		<div class="input-group">
			<input type="text" name="post-title" id="convert-to-permalink" placeholder="Title" />
			<input type="text" name="post-permalink" class="permalink" placeholder="Permalink" />
		</div>
		<div class="input-group">
Esempio n. 2
0
	<?php 
echo ae_SiteBuilder::pagination($numPages, $pageOffset, $linkBase);
?>
</nav>

<?php 
while ($entry = $list->next()) {
    ?>

	<?php 
    $status = $entry->getStatus();
    $basePath = '../media/' . $entry->getDatetime('Y/m/');
    $path = $basePath . $entry->getName();
    $meta = $entry->getMetaInfo();
    $filesize = isset($meta['file_size']) ? ae_Forms::formatSize($meta['file_size']) : '? KB';
    $icon = ae_Forms::getIcon($entry->getType());
    $type = htmlspecialchars($entry->getType());
    $linkEdit = 'admin.php?area=edit&amp;media=' . $entry->getId();
    $linkStatus = 'scripts/manage.php?media=' . $entry->getId();
    $linkAvailable = $linkStatus . '&amp;status=' . ae_MediaModel::STATUS_AVAILABLE;
    $linkTrash = $linkStatus . '&amp;status=' . ae_MediaModel::STATUS_TRASH;
    $linkDelete = $linkStatus . '&amp;status=delete';
    ?>
	<div class="manage-entry category-entry status-<?php 
    echo $entry->getStatus();
    ?>
">
		<input type="checkbox" name="entry[]" value="<?php 
    echo $entry->getId();
    ?>
" />
Esempio n. 3
0
                if ($area == 'page') {
                    $statuses = ae_PageModel::listStatuses();
                } else {
                    if ($area == 'post') {
                        $statuses = ae_PostModel::listStatuses();
                    } else {
                        if ($area == 'user') {
                            $statuses = ae_UserModel::listStatuses();
                        }
                    }
                }
            }
        }
    }
}
$select = ae_Forms::selectStatus('bulk-status-change', $statuses);
if (isset($_GET['status']) && $_GET['status'] == 'trash') {
    $select = str_replace('trash', 'delete', $select);
} else {
    if (isset($_GET['status']) && $_GET['status'] == 'inactive' && $area == 'cofilter') {
        $select = str_replace('inactive', 'delete', $select);
    }
}
?>

<div class="bulk-action">
	<?php 
echo $select;
?>
	<button type="submit" class="btn btn-publish">apply</button>
</div>
Esempio n. 4
0
				<span class="colon">:</span>
				<input type="text" name="post-publish-minute" value="<?php 
    echo $time[1];
    ?>
" />
			</div>

			<input id="post-schedule" type="checkbox" name="post-schedule" value="1" checked />
			<label for="post-schedule">Schedule post</label>
		</div>

		<div class="input-group">
			<h3>Comments</h3>

			<?php 
    echo ae_Forms::postCommentsStatus('post-comments-status', $model->getCommentsStatus());
    ?>
		</div>

		<div class="submit-buttons">
			<button type="submit" class="btn btn-draft" name="submit" value="draft">save draft</button>
			<button type="submit" class="btn btn-publish" name="submit" value="publish">publish</button>
		</div>
	</aside>

	<div class="main-content">
		<div class="input-group">
			<input type="text" name="post-title" id="convert-to-permalink" placeholder="Title" value="<?php 
    echo htmlspecialchars($model->getTitle());
    ?>
" />