Пример #1
0
        ?>
		</div>

		<div id="news" class="clearfix">
			<?php 
        while (next_news()) {
            ?>
			<div class="news-truncate clearfix">
				<h3><?php 
            printNewsURL();
            ?>
</h3>
				<div class="newsarticlecredit">
					<?php 
            printNewsDate();
            printNewsCategories(', ', ' | ', 'hor-list');
            ?>
				</div>

				<?php 
            printNewsContent();
            ?>

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

		<div class="pagination-news clearfix">
			<?php 
Пример #2
0
									<?php 
        $count = @call_user_func('getCommentCount');
        $cat = getNewsCategories();
        printNewsDate();
        if ($count > 0) {
            echo ' | ';
            printf(gettext("Comments: %d"), $count);
        }
        if (!empty($cat)) {
            echo ' | ';
        }
        ?>
								</span>
								<?php 
        if (!empty($cat)) {
            printNewsCategories(", ", gettext("Categories: "), "newscategories");
        }
        ?>
								<?php 
        printCodeblock(1);
        ?>
								<?php 
        printNewsContent();
        ?>
								<?php 
        printCodeblock(2);
        ?>
							</div>
							<?php 
        @call_user_func('printRating');
        commonComment();
Пример #3
0
    ?>
						<?php 
    while (next_news()) {
        ?>
 
						<div class="news-truncate"> 
							<h2><?php 
        printNewsURL();
        ?>
</h2>	
							<div class="newsarticlecredit">
								<span><?php 
        printNewsDate();
        ?>
 &sdot; <?php 
        printNewsCategories(", ", gettext("Categories: "), "taglist");
        if (function_exists('printCommentForm')) {
            ?>
 &sdot; <?php 
            echo gettext("Comments:");
            ?>
 <?php 
            echo getCommentCount();
            ?>
 <?php 
        }
        ?>
</span>
							</div>	
							<?php 
        printNewsContent();
Пример #4
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);
    }
}
Пример #5
0
    echo $zpbase_newsstyle;
    ?>
-padding">
							<h3><?php 
    printNewsURL();
    ?>
</h3>
							<div class="news-meta">
								<span>
								<?php 
    if (getOption('zpbase_date_news')) {
        echo getNewsDate() . '&nbsp;|&nbsp;';
    }
    ?>
								<?php 
    printNewsCategories(', ', gettext('Categories: '), 'taglist');
    ?>
								</span>
							</div>	
							<?php 
    printNewsContent();
    ?>
						</div>
					</div>
					<?php 
}
?>
				</div>
				
				<?php 
if ($zpbase_newsstyle == 'masonry-style') {
Пример #6
0
        case 9:
            $sticky = ' <small><strong>[' . gettext('sticky') . ']</strong></small>';
            break;
        default:
            $sticky = '';
            break;
    }
    echo '<a href="admin-edit.php' . getNewsAdminOptionPath(array_merge(array('newsarticle' => NULL, 'titlelink' => urlencode($article->getTitlelink())), getNewsAdminOption(NULL))) . '">';
    checkForEmptyTitle($article->getTitle(), "news");
    echo '</a>' . checkHitcounterDisplay($article->getHitcounter()) . $sticky;
    ?>

									</td>
									<td>
										<?php 
    printNewsCategories($article);
    ?>
<br />
									</td>
									<td>
										<?php 
    echo html_encode($article->getAuthor());
    ?>
									</td>
									<td>
										<?php 
    if ($sortorder == 'date') {
        echo $article->getDateTime();
    } else {
        echo $article->getLastchange();
    }
Пример #7
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);
    }
}
Пример #8
0
    ?>
				<?php 
    while (next_news()) {
        ?>
 
				<div class="news-truncate"> 
					<h3><?php 
        printNewsURL();
        ?>
</h3>	
					<div class="newsarticlecredit">
						<span><?php 
        printNewsDate();
        ?>
 | <?php 
        printNewsCategories(", ", gettext("Categories: "), "hor-list");
        if (function_exists('printCommentForm')) {
            ?>
 | <?php 
            echo gettext("Comments:");
            ?>
 <?php 
            echo getCommentCount();
            ?>
 <?php 
        }
        ?>
</span>
					</div>	
					<?php 
        printNewsContent();
Пример #9
0
							<div class="post-date">
								<span class="month"><?php 
echo strftime('%b', strtotime($_zp_current_article->getDateTime()));
?>
</span>
								<span class="day"><?php 
echo strftime('%d', strtotime($_zp_current_article->getDateTime()));
?>
</span>
								<span class="year"><?php 
echo strftime('%Y', strtotime($_zp_current_article->getDateTime()));
?>
</span>
							</div>
							<h3 class="post-title"><?php 
printNewsURL();
?>
</h3>
							<div class="post-meta"><?php 
printNewsCategories('', '', 'nav nav-label');
?>
</div>
							<div class="post-content clearfix">
								<?php 
printNewsContent();
if (is_NewsArticle()) {
    printCodeblock(1);
}
?>
							</div>
						</div>
Пример #10
0
/**
 * Displays a list of all news in zenphoto
 *
 */
function newsListDisplay()
{
    while (next_news()) {
        ?>
		<div class="newslist_article">
			<div class="newslist_title">
				<span class="italic date_news"><?php 
        printNewsDate();
        ?>
</span>
				<h4><?php 
        printNewsURL();
        ?>
</h4>
				<div class="newslist_detail">
					<div class="italic newslist_type">
						<?php 
        $cat = getNewsCategories();
        if (!empty($cat)) {
            printNewsCategories(", ", gettext("Categories: "), "newslist_categories");
        }
        ?>
					</div>
				</div>
			</div>
			<div class="newslist_content">
				<?php 
        printCodeblock(1);
        ?>
				<?php 
        printNewsContent();
        ?>
				<?php 
        printCodeblock(2);
        ?>
				<?php 
        if (getNewsReadMore()) {
            ?>
					<p class="italic newslist_readmore">
						<?php 
            $readmore = getNewsReadMore($readmore);
            if (!empty($readmore)) {
                $newsurl = getNewsURL();
                echo "<a href='" . $newsurl . "' title=\"" . getBareNewsTitle() . "\">" . html_encode($readmore) . "</a>";
            }
            ?>
					</p>
				<?php 
        }
        ?>
			</div>
		</div>
		<?php 
    }
}
Пример #11
0
            ?>
							<?php 
            if (function_exists('getCommentCount')) {
                ?>
							<span><i class="fa fa-comments-o"></i>&nbsp;<?php 
                echo gettext('Comments:') . ' ' . getCommentCount();
                ?>
&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<?php 
            }
            ?>
							<?php 
            if (getNewsCategories()) {
                ?>
<span><i class="fa fa-folder-o"></i>&nbsp;<?php 
                printNewsCategories(', ', '', 'taglist');
                ?>
&nbsp;&nbsp;&nbsp;&nbsp;</span><?php 
            }
            ?>
						</div>
						<div class="news-content">
							<?php 
            $hasFeaturedImage = false;
            if (function_exists('printSizedFeaturedImage')) {
                $hasFeaturedImage = getFeaturedImage();
            }
            if ($hasFeaturedImage) {
                ?>
							<div class="featured-image news-reel">
								<?php 
Пример #12
0
			<span class="month"><?php 
echo zpFormattedDate('%b', $dt);
?>
</span>
			<span class="day"><?php 
echo date('jS', $dt);
?>
</span>
		</div>
		<div class="news-info">
			<div class="news-title"><?php 
echo getNewsTitle();
?>
</div>
			<div class="news-categories">In: <?php 
printNewsCategories(',', false, false);
?>
</div>
		</div>
	</div>
	<div class="news-content">
		<?php 
$c = getNewsContent();
if (defined('CROP_NEWS')) {
    $c = Utils::crop($c, 200, '<p><a>', '<a href="' . getNewsURL(getNewsTitleLink()) . '">(...)</a>');
}
echo $c;
?>
	</div>
</div>
Пример #13
0
										<?php 
            printNewsDate();
            if (function_exists('getCommentCount')) {
                ?>
											|
											<?php 
                echo gettext("Comments:");
                ?>
											<?php 
                echo getCommentCount();
            }
            ?>
									</span>
									<?php 
            echo ' | ';
            printNewsCategories(", ", gettext("Categories: "), "list-inline");
            ?>
								</div>
								<?php 
            printNewsContent();
            printCodeblock(1);
            if (getTags()) {
                echo gettext('<strong>Tags:</strong>');
            }
            printTags('links', '', 'taglist', ', ');
            ?>
							</div>
							<?php 
        }
        printNewsPageListWithNav(gettext('next »'), gettext('« prev'), true, 'pagelist', true);
    }
Пример #14
0
/**
 * Displays a list of all news in zenphoto
 *
 */
function newsListDisplay()
{
    while (next_news()) {
        ?>
		<div class="newslist_article">
			<div class="newslist_title">
				<span class="italic date_news"><?php 
        printNewsDate();
        ?>
</span>
				<h4><?php 
        printNewsURL();
        ?>
</h4>
				<div class="newslist_detail">
					<div class="italic newslist_type">
						<?php 
        $cat = getNewsCategories();
        if (!empty($cat)) {
            printNewsCategories(", ", gettext("Categories: "), "newslist_categories");
        }
        ?>
					</div>
				</div>
			</div>
			<div class="newslist_content">
				<?php 
        printCodeblock(1);
        ?>
				<?php 
        printNewsContent();
        ?>
				<?php 
        printCodeblock(2);
        ?>
			</div>
		</div>
<?php 
    }
}