Esempio n. 1
0
            ?>
							<h1><?php 
            echo gettext('Edit Article:');
            ?>
 <em><?php 
            checkForEmptyTitle($result->getTitle(), 'news', false);
            ?>
</em></h1>
							<?php 
            if ($result->getDatetime() >= date('Y-m-d H:i:s')) {
                echo '<small><strong id="scheduldedpublishing">' . gettext('(Article scheduled for publishing)') . '</strong></small>';
                if ($result->getShow() != 1) {
                    echo '<p class="scheduledate"><small>' . gettext('<strong>Note:</strong> Scheduled publishing is not active unless the article is also set to <em>published</em>') . '</small></p>';
                }
            }
            if ($result->inProtectedCategory()) {
                echo '<p class="notebox">' . gettext('<strong>Note:</strong> This article belongs to a password protected category.') . '</p>';
            }
        }
        if (is_AdminEditPage('newscategory')) {
            ?>
							<h1><?php 
            echo gettext('Edit Category:');
            ?>
 <em><?php 
            checkForEmptyTitle($result->getTitle(), 'category', false);
            ?>
</em></h1>
							<?php 
        }
        if (is_AdminEditPage('page')) {
Esempio n. 2
0
        ?>
			<h1><?php 
        echo gettext('Edit Article:');
        ?>
 <em><?php 
        checkForEmptyTitle($result->getTitle(), 'news', false);
        ?>
</em></h1>
			<?php 
        if ($result->getDatetime() >= date('Y-m-d H:i:s')) {
            echo '<small><strong id="scheduldedpublishing">' . gettext('(Article scheduled for publishing)') . '</strong></small>';
            if ($result->getShow() != 1) {
                echo '<p class="scheduledate"><small>' . gettext('<strong>Note:</strong> Scheduled publishing is not active unless the article is also set to <em>published</em>') . '</small></p>';
            }
        }
        if ($result->inProtectedCategory() && GALLERY_SECURITY != 'private') {
            echo '<p class="notebox">' . gettext('<strong>Note:</strong> This article belongs to a password protected category.') . '</p>';
        }
    }
    if (is_AdminEditPage('category')) {
        ?>
			<h1><?php 
        echo gettext('Edit Category:');
        ?>
 <em><?php 
        checkForEmptyTitle($result->getTitle(), 'category', false);
        ?>
</em></h1>
			<?php 
    }
    if (is_AdminEditPage('page')) {