Example #1
0
			<div class='date' day="<?php 
    echo zpFormattedDate('%e', $dt);
    ?>
"
				  month="<?php 
    echo zpFormattedDate('%b', $dt);
    ?>
"
			      year="<?php 
    echo zpFormattedDate('%Y', $dt);
    ?>
"/>
			<div class='content'><?php 
    echo getNewsContent();
    ?>
</div>
			<div class='categories'><?php 
    echo ThemeUtil::clean(NewsUtil::printNewsCategories(',', false, false), FALSE);
    ?>
</div>
			<div class='preview'><?php 
    echo ThemeUtil::clean(getNewsContent(), FALSE, 120, FALSE);
    ?>
</div>
		</div>
	<?php 
    $u++;
}
?>
</div>
Example #2
0
<?php

if (getOption('simplicity2_print_home_menu_item')) {
    MenuUtil::printMenuItem(getGalleryIndexUrl(), gettext("Home"), THEME_HOME, "first");
}
MenuUtil::printMenuItem(getGalleryIndexUrl(), gettext("Gallery"), THEME_GALLERY, '', true);
if (function_exists('getNewsIndexURL')) {
    //if zenpage is enabled
    MenuUtil::printMenuItem(NewsUtil::getNewsIndexUrl(), gettext("Notes"), THEME_NEWS);
}
$m = SERVERPATH . "/themes/" . basename(dirname(dirname(__FILE__))) . "/menus/main.php";
if (file_exists($m)) {
    include $m;
}
if (getOption('simplicity2_print_contact_menu_item') && !getOption('simplicity2_contact_is_secondary')) {
    $pageName = getOption('simplicity2_contact_page_name');
    if (is_null($pageName) or trim($pageName) == '') {
        MenuUtil::printMenuItem(getCustomPageURL("contact"), gettext("Contact"), THEME_CONTACT, '', false, 'contact-link');
    } else {
        MenuUtil::printMenuPageLink($pageName, gettext('Contact'), 'contact-link');
    }
}
?>

Example #3
0
	<div class="nav-cell filler end"><span>&nbsp;</span></div>
</div>

<div style="padding-left: 1px;">
	<div id="album-menu" class="opa60">
		<div id="album-thumb">
			<img src="<?php 
echo getRandomImages()->getCustomImage(NULL, 192, 48, 192, 48, NULL, null, false);
?>
" width="195" height="48"/>
		</div>
	</div>
	
	<div id="page-date" class="opa60">
		<?php 
echo NewsUtil::printPageLastChangeDate();
?>
 
	</div>

	<?php 
$codeBlock = getCodeblock(2);
if (isset($codeBlock) && ThemeUtil::clean($codeBlock, false) != '') {
    ?>
		<div id="album-description" class="page opa60">
			<?php 
    printCodeBlock(2);
    ?>
		</div>
	<?php 
}
Example #4
0
			<div class="news-preview">
				<div class="news-preview-title">
					<span><?php 
    printNewsTitle();
    ?>
</span>
				</div>
				<div class="news-preview-content">
					<?php 
    echo ThemeUtil::clean(getNewsContent(), FALSE, 120, FALSE);
    ?>
				</div>
			</div>
		</div>
	<?php 
    ThemeUtil::$script .= 'news.push({' . '	"titleLink": \'' . $_zp_current_zenpage_news->getTitleLink() . '\',' . '	"title": \'' . ThemeUtil::clean(getNewsTitle(), FALSE) . '\',' . '	"content": \'' . ThemeUtil::clean(getNewsContent()) . '\',' . '	"date": ' . zpFormattedDate("{day: %d, month:  '%b', year: %Y}", strtotime($_zp_current_zenpage_news->getDateTime())) . ', ' . '	"categories": \'' . ThemeUtil::clean(NewsUtil::printNewsCategories(',', false, false), FALSE) . '\', ' . '    "commentson": ' . (NewsUtil::commentsAllowed() ? "true" : "false") . "," . '	"commentCount": ' . $_zp_current_zenpage_news->getCommentCount() . '}); ';
    $u++;
}
ThemeUtil::$script .= $sel;
?>
	</div>

	<?php 
echo isset($prevNext['next']) ? $prevNext['next'] : "<div id='news-nav-next' class='proxy'></div>";
?>
	
	<div id="page-filler" class="opa20">&nbsp;</div>

</div>

<div id="workaround-non-xml-comment-crap" style="display: none;"></div>
				<div class="left opa40">
					<img src='<?php 
    echo $_zp_themeroot;
    ?>
/resources/images/avatar.png' style="vertical-align: bottom;"/> 
					<span class="news-comment-author">
						<?php 
    echo gettext("posted by");
    ?>
 <?php 
    printCommentAuthorLink();
    ?>
					</span>
				</div>
				<?php 
    NewsUtil::printNewsDateBlock();
    ?>
				<div class="clear"></div>
			</div>
			<div class="comment">
				<div class="comment-text">
					<?php 
    echo getCommentBody();
    ?>
				</div>
			</div>
		</div>
	<?php 
}
?>
Example #6
0
<?php

require_once 'theme_functions.php';
$f = $_REQUEST['f'];
if (isset($f) && $f == 'xml') {
    include 'tiles/news/fetch-news.php';
} else {
    if (isset($_REQUEST['c']) && $_REQUEST['c'] == 1) {
        include "tiles/news/fetch-comments.php";
    } else {
        MenuUtil::setArea(THEME_NEWS);
        NewsUtil::setCurrentNewsPage();
        TileSet::init("News", "news");
        include_once 'template.php';
    }
}
Example #7
0
			<div id="latest-news" class="left">
			<?php 
$n = getOption('simplicity2_home_news_number');
if (!isset($n) || !is_numeric($n)) {
    $n = 2;
}
$news = getLatestNews($n);
foreach ($news as $n) {
    $link = getNewsURL($n['titlelink']);
    ?>
			
				<div class="news home">
					<div class="news-header home"> 
						<!--
						<div id="news-categories-placeholder" class="right">In: <?php 
    NewsUtil::printNewsCategories();
    ?>
</div>
						-->
						<div class="news-date-placeholder">
							<span class="left"><a href="<?php 
    echo $link;
    ?>
"><?php 
    echo $n['title'];
    ?>
</a></span>
							<span class="right" style="margin-top: 2px;text-align: right">
								<a href="<?php 
    echo $link;
    ?>
Example #8
0
<?php

global $_zp_themeroot;
include dirname(dirname(__FILE__)) . "/shared/init.php";
?>

zin.fetchNewsCommentUrl = '<?php 
echo NewsUtil::getNewsIndexUrl();
?>
';
zin.postCommentUrl = '<?php 
echo getCustomPageUrl("add-comment");
?>
';
zin.messages = zin.messages || { } ;
$.extend(zin.messages, {
	success: '<?php 
echo gettext("Success");
?>
',
	error: '<?php 
echo gettext("Error");
?>
'
});