Example #1
0
<?php 
} elseif ($editArea == 'Post') {
    ?>

	<?php 
    $datetime = explode(' ', $model->getDatetime());
    $date = explode('-', $datetime[0]);
    $time = explode(':', $datetime[1]);
    ?>

	<aside>
		<div class="input-group">
			<h3>Categories</h3>

			<?php 
    echo ae_Forms::categories('post-categories', ae_Forms::INPUT_CHECKBOX, $model->getCategoryIds());
    ?>
		</div>

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

			<div class="input-group-datetime">
				<span class="icon-add-before icon-before-clock" title="Datetime to publish this post"></span>
				<?php 
    echo ae_Forms::monthSelect('post-publish-month', $date[1]);
    ?>
				<input type="text" name="post-publish-day" value="<?php 
    echo $date[2];
    ?>
" />