Ejemplo n.º 1
0
							</div>
							<?php 
    } else {
        echo gettext('No unpublished categories');
    }
    ?>
					</fieldset>
					<br class="clearall" />
					<?php 
    $visible = $report == 'news';
    $items = $_zp_zenpage->getArticles(0, false);
    $output = '';
    $c = 0;
    foreach ($items as $key => $item) {
        $itemobj = new ZenpageNews($item['titlelink']);
        if (!$itemobj->getShow()) {
            $c++;
            $output .= '<li><label><input type="checkbox" name="' . $item['titlelink'] . '" value="' . $item['titlelink'] . '" class="artcheck" />' . $itemobj->getTitle() . '</label><a href="' . html_encode($itemobj->getLink()) . '" title="' . html_encode($itemobj->getTitle()) . '"> (' . gettext('View') . ')</a></li>';
        }
    }
    ?>
					<fieldset class="smallbox">
						<legend><?php 
    reveal('newsbox', $visible);
    echo gettext('News articles not published');
    ?>
</legend>
						<?php 
    if ($output) {
        echo sprintf(ngettext('%u unpublished article', '%u unpublished articles', $c), $c);
        ?>