当前位置: 首页>>代码示例>>PHP>>正文


PHP printAllNewsCategories函数代码示例

本文整理汇总了PHP中printAllNewsCategories函数的典型用法代码示例。如果您正苦于以下问题:PHP printAllNewsCategories函数的具体用法?PHP printAllNewsCategories怎么用?PHP printAllNewsCategories使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了printAllNewsCategories函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: printThemeMenu

function printThemeMenu()
{
    echo '<ul id="main">';
    if (getMainSiteName() != '') {
        echo '<li class="title">' . gettext('Main site') . '</li>';
        echo '<ul>';
        echo '<li><a href="' . getMainSiteURL() . '" title="' . getMainSiteName() . '">' . getMainSiteName() . '</a></li>';
        echo '</ul>';
    }
    if (function_exists('printAlbumMenu')) {
        echo '<li class="title">' . gettext('Gallery') . '</li>';
        $temp = getGalleryTitle();
        printAlbumMenu('list', false, '', 'menu-active', 'submenu', 'menu-active', $temp, true);
    } else {
        echo '<li class="title">' . gettext('Gallery') . '</li>';
        echo '<ul>';
        echo '<li><a href="' . getGalleryIndexURL() . '" title="' . getGalleryTitle() . '">' . getGalleryTitle() . '</a></li>';
        echo '</ul>';
    }
    if (function_exists('printNewsIndexURL')) {
        echo '<li class="title">' . gettext('News blog') . '</li>';
        printAllNewsCategories("All news", FALSE, "", "menu-active");
    }
    if (function_exists("printPageMenu")) {
        echo '<li class="title">' . gettext('Pages') . '</li>';
        printPageMenu("list", "", "menu-active", "submenu", "menu-active");
    }
    echo '<li class="title">' . gettext('Stay informed') . '</li>';
    echo '<ul>';
    echo '<li><a href="' . getCustomPageURL('archive') . '">' . gettext('Archives') . '</a></li>';
    echo '</ul>';
    echo '</ul>';
    echo '<div id="login">';
    echo '<div class="title">' . gettext('Connection') . '</div>';
    if (function_exists('printUserLogin_out') and !zp_loggedin()) {
        printUserLogin_out();
    }
    echo '</div>';
    if (function_exists("printLanguageSelector")) {
        echo '<div id="languages">';
        echo '<div class="title">' . gettext('Languages') . '</div>';
        printLanguageSelector();
        echo '<div class="clear_left"></div>';
        echo '</div>';
    }
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:46,代码来源:functions.php

示例2: printLatestComments

            ?>
</span></h4>
					<?php 
            printLatestComments(3, '100');
            ?>
				<?php 
        }
        ?>
				<?php 
    }
}
?>

		<!-- PRINTS NEWS CATEGORIES IF IN NEWS CONTEXT -->
		<?php 
if ($_zp_gallery_page == 'news.php') {
    ?>
			<div id="newscats">
				<h4 class="blockhead"><span><?php 
    echo gettext('News Categories');
    ?>
</span></h4>
						<?php 
    printAllNewsCategories('');
    ?>
			</div>
		<?php 
}
?>

	</div>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:inc-sidebar.php

示例3: gettext

						<li class="disabledlink"><span><?php 
            echo gettext('older');
            ?>
 &raquo;</span></li>
					<?php 
        }
        ?>
					</ul>
				</div>
			</div>
			<?php 
    } else {
        ?>
			<div class="news-cat-list">
				<?php 
        printAllNewsCategories(gettext('All news'), true, 'news-cat-list', 'news-cat-active');
        ?>
			</div>
			<?php 
    }
    ?>
			<h3><?php 
    printNewsIndexURL(gettext('News'));
    printCurrentNewsCategory(' » ' . gettext('Category') . ' : ');
    printCurrentNewsArchive(' » ');
    ?>
</h3>
		</div>

	<?php 
    // single news article
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:news.php

示例4: gettext

}
?>
				
			</div>
			
			<?php 
if ($zpbase_newsstyle == 'blog-style') {
    ?>
			<div id="sidebar">
				<div class="block">
					<h3><?php 
    echo gettext('Categories');
    ?>
</h3>
					<?php 
    printAllNewsCategories(gettext('All news'), true, '', 'menu-active', true, 'submenu', 'menu-active');
    ?>
				</div>
			</div>
			<?php 
}
?>
			
		</div>
	</div>

<?php 
if ($zpbase_newsstyle == 'masonry-style') {
    include 'masonry-jscall.php';
}
include 'footer.php';
开发者ID:BimbaLaszlo,项目名称:zpbase,代码行数:31,代码来源:index-news.php

示例5: printCustomMenu

    printCustomMenu($menu, 'list', '', "menu-active", "submenu", "menu-active", 2);
    ?>
	</div>
	<?php 
} else {
    //	"standard zenpage sidebar menus
    if (extensionEnabled('zenpage') && ZP_NEWS_ENABLED) {
        if (getNumNews(true)) {
            ?>
			<div class="menu">
				<h3><?php 
            echo gettext("News articles");
            ?>
</h3>
				<?php 
            printAllNewsCategories(gettext("All news"), true, "", "menu-active", true, "submenu", "menu-active");
            ?>
				<div class="menu_rule"></div>
			</div>
			<?php 
        }
    }
    ?>
	<?php 
    if (function_exists("printAlbumMenu")) {
        ?>
		<div class="menu">
			<?php 
        if (extensionEnabled('zenpage')) {
            if ($_zp_gallery_page == 'index.php' || $_zp_gallery_page != 'gallery.php') {
                ?>
开发者ID:rb26,项目名称:zenphoto,代码行数:31,代码来源:sidebar.php

示例6: rem_context

<?php

rem_context(ZP_ALBUM | ZP_IMAGE);
if (function_exists("printAllNewsCategories")) {
    ?>
<div class="menu">
	<h3><?php 
    echo gettext("News articles");
    ?>
</h3>
	<?php 
    printAllNewsCategories("All news", TRUE, "", "menu-active");
    ?>
</div>
<?php 
}
?>

<div class="menu">
	<h3><?php 
echo gettext("Gallery");
?>
</h3>
	<ul>
	<li><a href="<?php 
echo htmlspecialchars(getGalleryIndexURL());
?>
" title="<?php 
echo gettext('Visit the photo gallery');
?>
"><?php 
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:31,代码来源:sidebar.php

示例7: printAllNewsCategories

?>
/images/logo.png" height="50px"  alt="Logo Negpos" >
      </a>
    </div> 
    <div class="collapse navbar-collapse" id="myNavbar">
      <ul class="nav navbar-nav" >
        <li class="dropdown">
          <a class="dropdown-toggle" data-toggle="dropdown" href="../news">
          <?php 
echo "Actualités";
?>
          <span class="caret"></span>
          </a>
          <ul class="dropdown-menu">
          <?php 
printAllNewsCategories("", FALSE, "", "", FALSE);
?>
          </ul>
        </li>
        <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown"
               href="<?php 
echo html_encode(getCustomPageURL('gallery'));
?>
" >
               <?php 
echo gettext("Gallery");
?>
               <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
开发者ID:bgenere,项目名称:negpos,代码行数:31,代码来源:navbar.php

示例8: getNewsIndexURL

			<li>
				<a <?php 
    if ($_zp_gallery_page == "news.php" && is_null($_zp_current_category)) {
        ?>
class="active" <?php 
    }
    ?>
href="<?php 
    echo getNewsIndexURL();
    ?>
"><?php 
    echo gettext('News');
    ?>
</a>
				<?php 
    printAllNewsCategories('', false, '', 'active open', true, 'submenu', 'active open', 'list', true, null);
    ?>
			</li>
			<?php 
}
?>
			<?php 
if ($zenpage && ZP_PAGES_ENABLED) {
    printPageMenu('list', '', 'active open', 'submenu', 'active open', '', true, false);
}
?>
			<li <?php 
if ($_zp_gallery_page == "archive.php" || $_zp_gallery_page == "search.php") {
    ?>
class="active" <?php 
}
开发者ID:ckfreeman,项目名称:libratus,代码行数:31,代码来源:inc-header.php

示例9: getNewsIndexURL

        if ($_zp_gallery_page == "news.php") {
            ?>
class="active" <?php 
        }
        ?>
>
							<a href="<?php 
        echo getNewsIndexURL();
        ?>
"><?php 
        echo gettext('News');
        ?>
</a>
							<?php 
        if ($_zp_gallery_page == "news.php") {
            printAllNewsCategories('', true, '', 'active', true, '', 'active', 'list', true);
        }
        ?>
						</li>
						<?php 
    }
    ?>
						<?php 
    if (function_exists('printPageMenu')) {
        printPageMenu('list', '', 'active', '', 'active', '', true, false);
    }
    ?>
						<?php 
    if (function_exists('printContactForm')) {
        ?>
<li <?php 
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:inc-sidemenu.php

示例10: printCustomMenu

	<div class="menu">
		<?php 
    printCustomMenu('zenpage', 'list', '', "menu-active", "submenu", "menu-active", 2);
    ?>
	</div>
	<?php 
} else {
    if (function_exists("printAllNewsCategories")) {
        ?>
		<div class="menu">
			<h3><?php 
        echo gettext("News articles");
        ?>
</h3>
			<?php 
        printAllNewsCategories(gettext("All news"), TRUE, "", "menu-active");
        ?>
		</div>
	<?php 
    }
    ?>

	<?php 
    if (function_exists("printAlbumMenu")) {
        ?>
		<div class="menu">
			<?php 
        if (extensionEnabled('zenpage')) {
            if ($_zp_gallery_page == 'index.php' || $_zp_gallery_page != 'gallery.php') {
                ?>
					<h3>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:sidebar.php

示例11: jqm_printMenusLinks

/**
 * Prints the foldout (sidebar/bottom) menu links
 */
function jqm_printMenusLinks()
{
    global $_zp_gallery_page, $_zp_zenpage;
    ?>
	<div id="collapsible-lists" data-collapsed="false">
	<?php 
    if (extensionEnabled('zenpage') && ZP_NEWS_ENABLED) {
        ?>
			<div data-role="collapsible" data-content-theme="c" data-theme="b"<?php 
        if ($_zp_gallery_page == 'news.php') {
            echo ' data-collapsed="false"';
        }
        ?>
>
				<h3><?php 
        echo gettext('News');
        ?>
</h3>
			<?php 
        printAllNewsCategories(gettext("All news"), TRUE, "", "menu-active", true, "submenu", "menu-active");
        ?>
			</div>
		<?php 
    }
    ?>
	<?php 
    if (function_exists('printAlbumMenu')) {
        ?>
			<div data-role="collapsible" data-content-theme="c" data-theme="b"<?php 
        if ($_zp_gallery_page == 'gallery.php' || $_zp_gallery_page == 'album.php' || $_zp_gallery_page == 'image.php') {
            echo ' data-collapsed="false"';
        }
        ?>
>
				<h3><?php 
        echo gettext('Gallery');
        ?>
</h3>
			<?php 
        printAlbumMenu('list', true, '', '', '', '', 'Gallery Index', false, false, false);
        ?>
			</div>
		<?php 
    }
    ?>
	<?php 
    if (extensionEnabled('zenpage') && ZP_PAGES_ENABLED) {
        ?>
			<div data-role="collapsible" data-content-theme="c" data-theme="b"<?php 
        if ($_zp_gallery_page == 'pages.php') {
            echo ' data-collapsed="false"';
        }
        ?>
>
				<h3><?php 
        echo gettext('Pages');
        ?>
</h3>
			<?php 
        printPageMenu("list", "", "menu-active", "submenu", "menu-active", NULL, true, true, NULL);
        ?>
			</div>
			<?php 
    }
    ?>
		<div data-role="collapsible" data-content-theme="c" data-theme="b">
	<?php 
    jqm_printRSSlinks();
    ?>
		</div>
	</div>
	<?php 
}
开发者ID:rauldobrota,项目名称:zenphoto,代码行数:76,代码来源:functions.php

示例12: printPageMenu

</h3>
					<?php 
printPageMenu('list', 'sidebar-page-menu', 'top-active', 'sub-list', 'sub-active', null, true, true, 25);
?>
				</div>
				
				<?php 
if (getOption('zpbase_usenews') && getNumNews(true) > 0) {
    ?>
				<div class="sidebar-block news-cats">
					<h3><?php 
    echo gettext('News Categories');
    ?>
</h3>
					<?php 
    printAllNewsCategories($newsname, true, '', 'menu-active', true, 'submenu', 'menu-active', 'list', true, 25);
    ?>
				</div>
				<?php 
}
?>
				
				<?php 
if (getOption('zpbase_disqus') && getOption('zpbase_disqus_shortname')) {
    ?>
				<div class="sidebar-block">
					<h3><?php 
    echo gettext('Latest Comments');
    ?>
</h3>
					<script type="text/javascript" src="http://<?php 
开发者ID:BimbaLaszlo,项目名称:zpbase,代码行数:31,代码来源:sidebar.php

示例13: gettext

	</div>
	<?php 
} else {
    //	"standard zenpage sidebar menus
    ?>
	<!-- standard menu -->	<?php 
    if (extensionEnabled('zenpage')) {
        if (getNumNews(true)) {
            ?>
			<div class="menu">
				<h3><?php 
            echo gettext("News articles");
            ?>
</h3>
				<?php 
            printAllNewsCategories(gettext("All news"), TRUE, "news_menu", "menu", true, "menu_sub", "menu_sub_active");
            ?>
			</div>
			<?php 
        }
    }
    ?>

	<?php 
    if (function_exists("printAlbumMenu")) {
        ?>
		<div class="menu">
			<?php 
        if (extensionEnabled('zenpage') && $_zp_gallery_page != 'gallery.php') {
            ?>
				<h3>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:sidebar.php

示例14: getPrevNews

    $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');
?>
</h3>
			<?php 
printAllNewsCategories('', true, 'side-menu', 'active');
?>
		</div>
	</div>
</div>
<?php 
if (is_NewsArticle()) {
    ?>
	<div class="wrapper contrast">
		<div class="container">
			<div class="sixteen columns">
				<?php 
    if (function_exists('printAlbumMenu')) {
        ?>
<div class="jump-menu"><?php 
        printAlbumMenu('jump');
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:news.php


注:本文中的printAllNewsCategories函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。