/**
 * Prints the page number list for news page navigation
 *
 * @param string $class The CSS class for the disabled link
 *
 * @return string
 */
function printNewsPageList($class = 'pagelist')
{
    printNewsPageListWithNav("", "", false, $class, true);
}
Example #2
0
					<?php 
            printNewsDate();
            printNewsCategories(', ', ' | ', 'hor-list');
            ?>
				</div>

				<?php 
            printNewsContent();
            ?>

			</div>
			<?php 
        }
        ?>
		</div>

		<div class="pagination-news clearfix">
			<?php 
        printNewsPageListWithNav(' » ', ' « ', true, 'clearfix');
        ?>
		</div>

	<?php 
    }
    ?>

<?php 
    include 'inc_footer.php';
} else {
    include SERVERPATH . '/' . ZENFOLDER . '/404.php';
}
Example #3
0
				<div id="page-nav" class="clearfix">
					<div class="jump"><?php 
    printBaseAlbumMenuJump('count', gettext('Gallery Index'));
    ?>
</div>
				</div>
				<?php 
} else {
    ?>
				<div class="page-nav">
					<div class="jump"><?php 
    printBaseAlbumMenuJump('count', gettext('Gallery Index'));
    ?>
</div>
					<?php 
    printNewsPageListWithNav(gettext('Next »'), gettext('« Prev'), true, 'pagination', true);
    ?>
				</div>
				<?php 
}
?>
				
			</div>
			
			<?php 
if ($zpbase_newsstyle == 'blog-style') {
    ?>
			<div id="sidebar">
				<div class="block">
					<h3><?php 
    echo gettext('Categories');
Example #4
0
							<?php 
        printNewsContent();
        printCodeblock(1);
        ?>
						</div>	
						<?php 
    }
    ?>
					</div>
					<?php 
    if (getNextNewsPageURL() || getPrevNewsPageURL()) {
        ?>
				
					<div id="pagination">
						<?php 
        printNewsPageListWithNav(gettext('Next →'), gettext('← Prev'), true, '');
        ?>
					</div>
					<?php 
    }
    ?>
					<?php 
}
?>
 
				</div>
				<div id="sidebar"<?php 
if ($zpmin_switch) {
    echo ' class="switch"';
}
?>
Example #5
0
function commonNewsLoop($paged)
{
    $newstypes = array('album' => gettext('album'), 'image' => gettext('image'), 'video' => gettext('video'), 'news' => gettext('news'));
    while (next_news()) {
        $newstypedisplay = gettext('news');
        if (stickyNews()) {
            $newstypedisplay .= ' <small><em>' . gettext('sticky') . '</em></small>';
        }
        ?>
		<div class="newsarticle<?php 
        if (stickyNews()) {
            echo ' sticky';
        }
        ?>
">
			<h3><?php 
        printNewsURL();
        echo " <span class='newstype'>[" . $newstypedisplay . "]</span>";
        ?>
</h3>
			<div class="newsarticlecredit">
				<span class="newsarticlecredit-left">
					<?php 
        $count = @call_user_func('getCommentCount');
        $cat = getNewsCategories();
        printNewsDate();
        if ($count > 0) {
            echo ' | ';
            printf(gettext("Comments: %d"), $count);
        }
        ?>
				</span>
				<?php 
        if (!empty($cat)) {
            echo ' | ';
            printNewsCategories(", ", gettext("Categories: "), "newscategories");
        }
        ?>
			</div> <!-- newsarticlecredit -->
			<?php 
        printCodeblock(1);
        ?>
			<?php 
        printNewsContent();
        ?>
		<?php 
        printCodeblock(2);
        ?>
			<br class="clearall" />
		</div>
		<?php 
    }
    if ($paged) {
        printNewsPageListWithNav(gettext('next »'), gettext('« prev'), true, 'pagelist', true);
    }
}
Example #6
0
							<?php 
        printNewsContent();
        ?>
							<?php 
        printCodeblock(1);
        ?>
							<?php 
        printTags('links', gettext('<strong>Tags:</strong>') . ' ', 'taglist', ', ');
        ?>
							<br style="clear:both;" /><br />
						</div>

						<?php 
    }
    echo "</div><br/><hr/>";
    printNewsPageListWithNav(gettext('next »'), gettext('« prev'));
}
?>


			</div><!-- content left-->


			<div id="sidebar">
				<?php 
include "sidebar.php";
?>
			</div><!-- sidebar -->


			<div id="footer">
Example #7
0
        printNewsContent();
        ?>
									<?php 
        printCodeblock(1);
        ?>
									<?php 
        if (getTags()) {
            echo gettext('<strong>Tags:</strong>');
        }
        printTags('links', '', 'taglist', ', ');
        ?>
									<br style="clear:both;" /><br />
								</div>
								<?php 
    }
    printNewsPageListWithNav(gettext('next &raquo;'), gettext('&laquo; prev'), true, 'pagelist', true);
}
?>


</div><!-- content left-->


	<div id="sidebar">
		<?php 
include "sidebar.php";
?>
	</div><!-- sidebar -->


	<div id="footer">
Example #8
0
 <small>(<?php 
            printNewsDate();
            ?>
)</small>
											<div class="albumdesc"><?php 
            echo shortenContent(getBare(getNewsContent()), 57, '(...)', false);
            ?>
</div>
										</a>
									</li>
								<?php 
        }
        ?>
							</ul>
		<?php 
        printNewsPageListWithNav(gettext('next »'), gettext('« prev'), true, 'pagelist', true, 7);
    }
    ?>

					</div>
					<div class="content-secondary">
				<?php 
    jqm_printMenusLinks();
    ?>
					</div>
				</div><!-- /content -->
			<?php 
    jqm_printBacktoTopLink();
    ?>
			<?php 
    jqm_printFooterNav();
Example #9
0
            ?>
	    <?php 
            printNewsContent();
            ?>
	    <?php 
            printCodeblock(2);
            ?>
	    <p><?php 
            printNewsReadMoreLink();
            ?>
</p>
	    
	    </div>	
	<?php 
        }
        printNewsPageListWithNav(gettext('next &raquo;'), gettext('&laquo; prev'));
    }
}
?>
 

			</div><!-- content left-->
			<div id="sidebar">
			<?php 
include "sidebar.php";
?>
			</div><!-- sidebar -->
			<br style="clear:both" />
		</div> <!-- main2 -->
		
	</div> <!-- content -->
Example #10
0
function commonNewsLoop($paged)
{
    $newstypes = array('album' => gettext('album'), 'image' => gettext('image'), 'video' => gettext('video'), 'news' => gettext('news'));
    while (next_news()) {
        $newstype = getNewsType();
        $newstypedisplay = $newstypes[$newstype];
        if (stickyNews()) {
            $newstypedisplay .= ' <small><em>' . gettext('sticky') . '</em></small>';
        }
        ?>
		<div class="newsarticle<?php 
        if (stickyNews()) {
            echo ' sticky';
        }
        ?>
">
			<h3><?php 
        printNewsTitleLink();
        echo " <span class='newstype'>[" . $newstypedisplay . "]</span>";
        ?>
</h3>
			<div class="newsarticlecredit">
				<span class="newsarticlecredit-left">
					<?php 
        $count = getCommentCount();
        $cat = getNewsCategories();
        printNewsDate();
        if ($count > 0) {
            echo ' | ';
            printf(gettext("Comments: %d"), $count);
        }
        ?>
				</span>
				<?php 
        if (is_GalleryNewsType()) {
            echo ' | ' . gettext("Album:") . " <a href='" . getNewsAlbumURL() . "' title='" . getBareNewsAlbumTitle() . "'>" . getNewsAlbumTitle() . "</a>";
        } else {
            if (!empty($cat) && !in_context(ZP_ZENPAGE_NEWS_CATEGORY)) {
                echo ' | ';
                printNewsCategories(", ", gettext("Categories: "), "newscategories");
            }
        }
        ?>
			</div> <!-- newsarticlecredit -->
			<br clear="all" />
			<?php 
        printCodeblock(1);
        ?>
			<?php 
        printNewsContent();
        ?>
			<?php 
        printCodeblock(2);
        ?>
			<br clear="all" />
			</div>
	<?php 
    }
    if ($paged) {
        printNewsPageListWithNav(gettext('next &raquo;'), gettext('&laquo; prev'), true, 'pagelist', true);
    }
}
Example #11
0
        ?>
</span>
					</div>	
					<?php 
        printNewsContent();
        ?>
					<?php 
        printCodeblock(1);
        ?>
				</div>	
				<?php 
    }
    ?>
			</div>	
			<div class="paging">
				<?php 
    printNewsPageListWithNav(gettext('Next ›'), gettext('‹ Previous'), true, '');
    ?>
			</div>
			<?php 
}
?>
 
		</div>
	</div>
	
<?php 
include "footer.php";
?>

Example #12
0
                ?>
							</div>
							<?php 
            }
            ?>
							<?php 
            printNewsContent();
            ?>
						</div>
					</div>
					<?php 
        }
        ?>
					<?php 
        if (getNextNewsPageURL() || getPrevNewsPageURL()) {
            printNewsPageListWithNav(gettext('next') . ' »', '« ' . gettext('prev'), true, 'pagination', true);
        }
        ?>
					<?php 
    }
    ?>
					
				</div>
				
				<div class="page-sidebar pad">
					<?php 
    if (is_NewsArticle()) {
        ?>
					<div class="single-nav">
						<?php 
        if ($prev = getNextPrevNews('prev')) {
Example #13
0
						<?php 
        printNewsContent();
        ?>
						<?php 
        printCodeblock();
        ?>
					</div>
				<?php 
    }
    ?>
				<?php 
    if (getPrevNewsPageURL() || getNextNewsPageURL()) {
        ?>
					<div class="pagination">
						<?php 
        printNewsPageListWithNav('»', '«', true, 'pagination', true, 5);
        ?>
					</div>
				<?php 
    }
    ?>
			<?php 
}
?>
		</div>
		<div class="five columns offset-by-one sidebar">
			<?php 
if (is_NewsArticle()) {
    ?>
				<?php 
    if ($zpskel_social) {
Example #14
0
				</div>
				<h3><?php 
        printNewsURL();
        ?>
</h3>
				<?php 
        printNewsContent();
        ?>
				<?php 
        printCodeblock();
        ?>
			</div>
		<?php 
    }
    ?>
		<div class="page-nav">
			<?php 
    printNewsPageListWithNav('»', '«', 'true', 'page-nav');
    ?>
		</div>
	<?php 
}
?>

</div>

<?php 
include "inc-footer.php";
?>

Example #15
0
				<?php 
        include 'inc_print_news.php';
        ?>
			<?php 
    }
    ?>
			</div>
		</div>

		<div class="span3">
	<?php 
    printAllNewsCategories(gettext('All news'), false, 'news-cat-list', 'active');
    ?>
		</div>
	</div>

	<div class="row">
		<div class="span12">
			<div class="pagination">
	<?php 
    printNewsPageListWithNav('»', '«', true, 'pagination top-margin-reset', true, 7);
    ?>
			</div>
		</div>
	</div>
<?php 
}
?>

<?php 
include 'inc_footer.php';