Exemplo n.º 1
0
    printNewsContent();
    printCodeblock(1);
    ?>
					</div>
					<div id="pagination">
						<?php 
    if (getPrevNewsURL()) {
        ?>
<div class="prev"><?php 
        printPrevNewsLink('←');
        ?>
</div><?php 
    }
    ?>
						<?php 
    if (getNextNewsURL()) {
        ?>
<div class="next"><?php 
        printNextNewsLink('→');
        ?>
</div><?php 
    }
    ?>
					</div>	
					<?php 
    if (function_exists('printCommentForm')) {
        ?>
<div class="section"><?php 
        printCommentForm();
        ?>
</div><?php 
Exemplo n.º 2
0
</a></li>
					<?php 
        } else {
            ?>
						<li class="disabledlink"><span>&laquo; <?php 
            echo gettext('newer');
            ?>
</span></li>
					<?php 
        }
        ?>
					<?php 
        if (getNextNewsURL()) {
            ?>
						<li><a href="<?php 
            $article_url = getNextNewsURL();
            echo $article_url['link'];
            ?>
" title="<?php 
            echo $article_url['title'];
            ?>
"><?php 
            echo gettext('older');
            ?>
 &raquo;</a></li>
					<?php 
        } else {
            ?>
						<li class="disabledlink"><span><?php 
            echo gettext('older');
            ?>
Exemplo n.º 3
0
        printPrevNewsLink();
        ?>
</div><?php 
    }
    ?>
					<?php 
    if (getNextNewsURL()) {
        ?>
<div class="singlenews_next"><?php 
        printNextNewsLink();
        ?>
</div><?php 
    }
    ?>
					<?php 
    if (getPrevNewsURL() or getNextNewsURL()) {
        ?>
<br style="clear:both" /><?php 
    }
    ?>
					<div class="newsarticlewrapper" style="margin-top: 1em; padding-bottom:0.4em;"><div class="newsarticle">
							<h3 style="color: #82996F;"><?php 
    printNewsTitle();
    ?>
</h3>
							<div class="newsarticlecredit"><span class="newsarticlecredit-left"><?php 
    printNewsDate();
    ?>
 | <?php 
    echo gettext("Comments:");
    ?>
Exemplo n.º 4
0
        ?>
							<?php 
        if (getNextNewsURL()) {
            $nextnews = getNextNewsURL();
            ?>
<a class="imgnext" href="<?php 
            echo html_encode($nextnews['link']);
            ?>
" data-role="button" data-icon="arrow-r" data-iconpos="right" data-inline="true"><?php 
            echo gettext("next");
            ?>
</a><?php 
        }
        ?>
							<?php 
        if (getPrevNewsURL() || getNextNewsURL()) {
        }
        ?>


								<?php 
    } else {
        printNewsPageListWithNav(gettext('next »'), gettext('« prev'), true, 'pagelist', true, 7);
        ?>
							<ul data-role="listview" data-inset="true" data-theme="a" class="ui-listview ui-group-theme-a">
		<?php 
        while (next_news()) {
            ?>
									<li>
										<a href="<?php 
            echo html_encode(jqm_getLink());
Exemplo n.º 5
0
/**
 * Prints the link of the next article in single news article pagination if available
 *
 * NOTE: This is not available if using the CombiNews feature
 *
 * @param string $next If you want to show something with the title of the article like a symbol
 * @return string
 */
function printNextNewsLink($next = " »")
{
    $article_url = getNextNewsURL();
    if ($article_url && array_key_exists('link', $article_url) && $article_url['link'] != "") {
        echo "<a href=\"" . html_encode($article_url['link']) . "\" title=\"" . html_encode(getBare($article_url['title'])) . "\">" . $article_url['title'] . "</a> " . html_encode($next);
    }
}
Exemplo n.º 6
0
		<div class="five columns offset-by-one sidebar">
			<?php 
if (is_NewsArticle()) {
    ?>
				<?php 
    if ($zpskel_social) {
        include "inc-social.php";
    }
    ?>
				<?php 
    printNewsExtraContent();
    ?>

				<div class="news-nav">
					<?php 
    $next_article_url = getNextNewsURL('date', 'desc');
    if ($next_article_url && array_key_exists('link', $next_article_url) && $next_article_url['link'] != "") {
        echo "<a class=\"button\" href=\"" . html_encode($next_article_url['link']) . "\" title=\"" . html_encode(strip_tags($next_article_url['title'])) . "\">" . $next_article_url['title'] . " &raquo;</a> ";
    }
    $prev_article_url = getPrevNews('date', 'desc');
    if ($prev_article_url && array_key_exists('link', $prev_article_url) && $prev_article_url['link'] != "") {
        echo "<a class=\"button\" href=\"" . html_encode($prev_article_url['link']) . "\" title=\"" . html_encode(strip_tags($prev_article_url['title'])) . "\">&laquo; " . $prev_article_url['title'] . "</a> ";
    }
    ?>
				</div>

			<?php 
}
?>
			<h3><?php 
echo gettext('News Categories');
Exemplo n.º 7
0
        ?>
<span>Prev</span><?php 
    }
    ?>
					</div>
					<div id="next" <?php 
    if (getNextNewsURL()) {
        echo 'class="active"';
    }
    ?>
>
					<?php 
    if (getNextNewsURL()) {
        ?>
<a href="<?php 
        echo getNextNewsURL()['link'];
        ?>
">Next</a><?php 
    } else {
        ?>
<span>Next</span><?php 
    }
    ?>
					</div>
					<?php 
} else {
    ?>
					<div id="prev" <?php 
    if (getPrevNewsPageURL()) {
        echo 'class="active"';
    }