本文整理汇总了PHP中item_prevnext_links函数的典型用法代码示例。如果您正苦于以下问题:PHP item_prevnext_links函数的具体用法?PHP item_prevnext_links怎么用?PHP item_prevnext_links使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了item_prevnext_links函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: messages
</div>
<?php
$Blog->longdesc(array('before' => '<hr><small>', 'after' => '</small>'));
?>
<hr>
<?php
// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
messages(array('block_start' => '<div class="action_messages">', 'block_end' => '</div>'));
// --------------------------------- END OF MESSAGES ---------------------------------
?>
<?php
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links(array('block_start' => '', 'prev_start' => '', 'prev_end' => ' :', 'next_start' => ': ', 'next_end' => '', 'block_end' => ''));
// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
?>
<?php
// ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
request_title(array('title_before' => '<h2>', 'title_after' => '</h2>', 'title_none' => '', 'glue' => ' - ', 'title_single_disp' => true, 'format' => 'htmlbody', 'user_text' => ''));
// ------------------------------ END OF REQUEST TITLE -----------------------------
?>
<?php
// ---------------------------------- START OF POSTS --------------------------------------
// Display message if no post:
display_if_empty();
while ($Item =& mainlist_get_item()) {
// For each blog post, do everything below up to the closing curly brace "}"
示例2: skin_include
skin_include('_item_feedback.inc.php', array('before_section_title' => '<h3 id="comments">', 'after_section_title' => '</h3>', 'form_title_start' => '<h3 class="comment_form_title">', 'form_title_end' => '</h3>'));
// Note: You can customize the default item feedback by copying the generic
// /skins/_item_feedback.inc.php file into the current skin folder.
// ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
?>
<?php
locale_restore_previous();
// Restore previous locale (Blog locale)
}
?>
<div class="space"></div>
<?php
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links(array('block_start' => '<div id="navigation">', 'prev_start' => '<div class="floatleft">', 'prev_end' => '</div> <!-- end of class="floatleft" -->', 'next_start' => '<div class="floatright">', 'next_end' => '</div> <!-- end of class="floatright" -->', 'block_end' => '</div> <!-- end of id="navigation" -->'));
// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
?>
</div> <!-- end of id="primaryContent" -->
</div> <!-- end of id="primaryContentContainer" -->
<?php
// ------------------------- SIDEBAR INCLUDED HERE --------------------------
skin_include('_sidebar_right.inc.php');
// Note: You can customize the default BODY footer by copying the
// _body_footer.inc.php file into the current skin folder.
// ----------------------------- END OF SIDEBAR -----------------------------
?>
</div> <!-- end of id="content" -->
示例3: item_prevnext_links
?>
<div class="container main-page-content">
<div class="row">
<div class="<?php
echo $Skin->get_column_class_single();
?>
">
<main><!-- This is were a link like "Jump to main content" would land -->
<?php
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links(array('block_start' => '<nav><ul class="pager special_pager_layout">', 'prev_start' => '<li class="previous">', 'prev_end' => '</li>', 'next_start' => '<li class="next">', 'next_end' => '</li>', 'block_end' => '</ul></nav>'));
// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
?>
<!-- ================================= START OF MAIN AREA ================================== -->
<?php
if (!in_array($disp, array('login', 'lostpassword', 'register', 'activateinfo', 'access_requires_login'))) {
// Don't display the messages here because they are displayed inside wrapper to have the same width as form
// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
messages(array('block_start' => '<div class="action_messages">', 'block_end' => '</div>'));
// --------------------------------- END OF MESSAGES ---------------------------------
}
?>
<?php
示例4: messages
?>
</h2>
</div>
<hr />
<!-- =================================== START OF MAIN AREA =================================== -->
<div id="page">
<div class="bPosts">
<?php
// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
messages(array('block_start' => '<div class="action_messages">', 'block_end' => '</div>'));
// --------------------------------- END OF MESSAGES ---------------------------------
?>
<?php
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links(array('template' => '$next$$prev$', 'block_start' => '<table class="prevnext_post"><tr>', 'prev_start' => '<td class="right">', 'prev_end' => '</td>', 'next_start' => '<td>', 'next_end' => '</td>', 'block_end' => '</tr></table>', 'prev_text' => '$title$»', 'next_text' => '«$title$'));
// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
?>
<?php
// ------------------------ TITLE FOR THE CURRENT REQUEST ------------------------
request_title(array('title_before' => '<h2>', 'title_after' => '</h2>', 'title_none' => '', 'glue' => ' - ', 'title_single_disp' => false, 'format' => 'htmlbody'));
// ----------------------------- END OF REQUEST TITLE ----------------------------
?>
<?php
// -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
mainlist_page_links(array('block_start' => '<p class="center">' . T_('Pages:') . ' <strong>', 'block_end' => '</strong></p>'));
// ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
?>
<?php
示例5: skin_include
?>
<?php
// Go Grab the featured post:
if (!in_array($disp, array('single', 'page')) && ($Item =& get_featured_Item())) {
// We have a featured/intro post to display:
// ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
skin_include('_item_block.inc.php', array('feature_block' => true, 'content_mode' => 'full', 'intro_mode' => 'normal', 'item_class' => $Item->is_intro() ? 'evo_intro_post' : 'evo_featured_post'));
// ----------------------------END ITEM BLOCK ----------------------------
}
?>
<?php
if ($disp == 'single') {
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links(array('block_start' => '<div class="single_page_navigation center">', 'next_text' => '<i class="fa fa-caret-right" title="' . T_('Next') . '"></i>', 'prev_text' => '<i class="fa fa-caret-left" title="' . T_('Previous') . '"></i>', 'page_item_current_before' => '<span class="active">', 'page_item_current_after' => '</span>', 'block_end' => '</div><div class="clear"></div>'));
// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
}
?>
<?php
// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
skin_include('$disp$', array('author_link_text' => 'preferredname', 'profile_tabs' => array('block_start' => '<nav><ul class="nav nav-tabs profile_tabs">', 'item_start' => '<li>', 'item_end' => '</li>', 'item_selected_start' => '<li class="active">', 'item_selected_end' => '</li>', 'block_end' => '</ul></nav>'), 'pagination' => array('block_start' => '<div class="page_navigation center">', 'next_text' => '<i class="fa fa-caret-right" title="' . T_('Next') . '"></i>', 'prev_text' => '<i class="fa fa-caret-left" title="' . T_('Previous') . '"></i>', 'page_item_current_before' => '<span class="active">', 'page_item_current_after' => '</span>', 'block_end' => '</div><div class="clear"></div>'), 'url_link_position' => 'top', 'parent_link_position' => 'top', 'skin_form_before' => '<div class="panel panel-default skin-form">' . '<div class="panel-heading">' . '<h3 class="panel-title">$form_title$</h3>' . '</div>' . '<div class="panel-body">', 'skin_form_after' => '</div></div>', 'display_form_messages' => true, 'form_title_login' => T_('Log in to your account') . '$form_links$', 'form_title_lostpass' => get_request_title() . '$form_links$', 'lostpass_page_class' => 'evo_panel__lostpass', 'login_form_inskin' => false, 'login_page_class' => 'evo_panel__login', 'login_page_before' => '<div class="$form_class$">', 'login_page_after' => '</div>', 'display_reg_link' => true, 'abort_link_position' => 'form_title', 'abort_link_text' => '<button type="button" class="close" aria-label="Close"><span aria-hidden="true">×</span></button>', 'register_page_before' => '<div class="evo_panel__register">', 'register_page_after' => '</div>', 'register_form_title' => T_('Register'), 'register_links_attrs' => '', 'register_use_placeholders' => true, 'register_field_width' => 252, 'register_disabled_page_before' => '<div class="evo_panel__register register-disabled">', 'register_disabled_page_after' => '</div>', 'activate_form_title' => T_('Account activation'), 'activate_page_before' => '<div class="evo_panel__activation">', 'activate_page_after' => '</div>', 'search_input_before' => '<div class="input-group">', 'search_input_after' => '', 'search_submit_before' => '<span class="input-group-btn">', 'search_submit_after' => '</span></div>', 'featured_intro_before' => '', 'featured_intro_after' => '', 'msgform_form_title' => T_('Sending a message')));
// Note: you can customize any of the sub templates included here by
// copying the matching php file into your skin directory.
// ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
?>
</main>
</div><!-- .col -->
示例6: die
* @subpackage bootstrap_manual
*/
if (!defined('EVO_MAIN_INIT')) {
die('Please, do not access this page directly.');
}
global $cat;
// Display message if no post:
display_if_empty();
if ($Item =& mainlist_get_item()) {
// For each blog post, do everything below up to the closing curly brace "}"
echo '<div class="evo_content_block">';
// Beginning of posts display
if (empty($cat)) {
// Set a category as main of current Item
$cat = $Item->main_cat_ID;
// Display the breadcrumbs only when global $cat is empty before line above
// Otherwise it is already displayed in header file
skin_widget(array('widget' => 'breadcrumb_path', 'block_start' => '<ol class="breadcrumb">', 'block_end' => '</ol>', 'separator' => '', 'item_mask' => '<li><a href="$url$">$title$</a></li>', 'item_active_mask' => '<li class="active">$title$</li>'));
}
if ($Skin->get_setting('page_navigation')) {
// Display navigation between posts in the same category:
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links(array('block_start' => '<ul class="pager">', 'prev_start' => '<li class="previous">', 'prev_text' => '<span aria-hidden="true">←</span> $title$', 'prev_end' => '</li>', 'separator' => ' ', 'next_start' => '<li class="next">', 'next_text' => '$title$ <span aria-hidden="true">→</span>', 'next_end' => '</li>', 'block_end' => '</ul>', 'target_blog' => $Blog->ID, 'post_navigation' => 'same_category', 'featured' => false));
// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
}
// ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
skin_include('_item_block.inc.php', array_merge(array('content_mode' => 'auto', 'item_class' => 'evo_post evo_content_block'), $Skin->get_template('disp_params')));
// ----------------------------END ITEM BLOCK ----------------------------
echo '</div>';
// End of posts display
}
示例7: messages
<?php
// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
messages(array('block_start' => '<div class="action_messages">', 'block_end' => '</div>'));
// --------------------------------- END OF MESSAGES ---------------------------------
?>
<?php
// -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
mainlist_page_links(array('block_start' => '<div class="nav_right">', 'block_end' => '</div>', 'links_format' => '$next$ $prev$', 'prev_text' => '<img src="img/prev.gif" width="29" height="29" alt="' . T_('Previous') . '" title="' . T_('Previous') . '" />', 'next_text' => '<img src="img/next.gif" width="29" height="29" alt="' . T_('Next') . '" title="' . T_('Next') . '" />', 'no_prev_text' => '', 'no_next_text' => '<img src="' . $rsc_url . '/img/blank.gif" width="29" height="29" alt="" class="no_nav" />'));
// ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
?>
<?php
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links(array('template' => '$next$$prev$', 'block_start' => '<div class="nav_right">', 'next_start' => '', 'next_text' => '<img src="img/next.gif" width="29" height="29" alt="' . T_('Next') . '" title="' . T_('Next') . '" />', 'next_no_item' => '<img src="' . $rsc_url . '/img/blank.gif" width="29" height="29" alt="" class="no_nav" />', 'next_end' => ' ', 'prev_start' => '', 'prev_text' => '<img src="img/prev.gif" width="29" height="29" alt="' . T_('Previous') . '" title="' . T_('Previous') . '" />', 'prev_no_item' => '', 'prev_end' => '', 'block_end' => '</div>'));
// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
?>
<?php
// ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
request_title(array('title_before' => '<h2>', 'title_after' => '</h2>', 'title_none' => '<h2> </h2>', 'glue' => ' - ', 'title_single_disp' => false, 'format' => 'htmlbody', 'arcdir_text' => T_('Index'), 'catdir_text' => T_('Albums'), 'category_text' => T_('Album') . ': ', 'categories_text' => T_('Albums') . ': '));
// ------------------------------ END OF REQUEST TITLE -----------------------------
?>
<?php
// ------------------------------------ START OF POSTS ----------------------------------------
// Display message if no post:
display_if_empty();
while ($Item =& mainlist_get_item()) {
// For each blog post, do everything below up to the closing curly brace "}"
示例8: T_
// Author info:
echo '<div class="ft_author_info">' . T_('Started by');
$Item->author(array('link_text' => 'auto', 'after' => ''));
echo ', ' . mysql2date('D M j, Y H:i', $Item->datecreated);
echo '</div>';
?>
</th>
</tr>
<tr class="panel">
<td colspan="2" valign="middle" align="center"><?php
// Buttons to post/reply
$post_buttons = $Skin->get_post_button($current_cat, $Item);
echo $post_buttons;
if (!$Item->is_featured()) {
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links(array('block_start' => '<div class="posts_navigation">', 'separator' => ' :: ', 'block_end' => '</div>', 'target_blog' => $Blog->ID, 'post_navigation' => 'same_category', 'featured' => false));
// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
}
?>
</td>
</tr>
<tr class="ft_post_info">
<td><?php
$Item->author(array('link_text' => 'auto'));
?>
</td>
<td><?php
// We want to display the post date:
$Item->issue_time(array('before' => '', 'after' => ' ', 'time_format' => 'D M j, Y H:i'));
?>
<a href="<?php
示例9: get_icon
<span class="nav_album_title">
<?php
$single_Item->title(array('link_type' => 'permalink', 'before' => '', 'after' => ''));
?>
<?php
if ($Skin->enabled_status_banner($single_Item->status)) {
// Status banner
$single_Item->format_status(array('template' => '<div class="evo_status evo_status__$status$ badge">$status_title$</div>'));
}
$single_Item->edit_link(array('before' => '', 'after' => '', 'text' => get_icon('edit'), 'title' => T_('Edit title/description...')));
?>
</span><!-- .nav_album_title -->
<?php
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links(array('template' => '$prev$$next$', 'block_start' => '<ul class="pager hidden-xs">', 'next_class' => 'next', 'next_start' => '<li class="next">', 'next_text' => 'Next', 'next_no_item' => '', 'next_end' => '</li>', 'prev_class' => 'previous', 'prev_start' => '<li class="previous">', 'prev_text' => 'Previous', 'prev_no_item' => '', 'prev_end' => '', 'block_end' => '</ul>'));
// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
?>
<div class="clear"></div>
</nav><!-- .nav_album -->
</div><!-- .col -->
</div><!-- .row -->
<?php
}
// ------------------- END OF NAVIGATION BAR FOR ALBUM(POST) -------------------
?>
<?php
// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
示例10: T_
?>
<div class="single-post-meta-bottom">
<?php
$Item->categories(array('before' => ' ' . T_('Categories') . ': ', 'after' => '.', 'include_main' => true, 'include_other' => true, 'include_external' => true, 'link_categories' => true));
?>
<?php
// List all tags attached to this post:
$Item->tags(array('before' => '<br />' . T_('Tags') . ': ', 'after' => ' ', 'separator' => ', '));
?>
</div>
<?php
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links(array('block_start' => '<ul id="post-options">', 'prev_start' => '<li>', 'prev_text' => '', 'prev_end' => '</li>', 'prev_class' => 'oprev', 'next_start' => '<li>', 'next_text' => '', 'next_end' => '</li>', 'next_class' => 'onext', 'block_end' => '</ul>'));
// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
?>
</div>
<?php
// ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
skin_include('_item_feedback.inc.php', array('author_link_text' => 'auto'));
// Note: You can customize the default item feedback by copying the generic
// /skins/_item_feedback.inc.php file into the current skin folder.
// ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
?>
<?php
示例11: skin_include
skin_include('_item_feedback.inc.php', array('before_section_title' => '<h3 id="commentstitle">', 'after_section_title' => '</h3>', 'form_title_start' => '<h3 class="comment_form_title">', 'form_title_end' => '</h3>'));
// Note: You can customize the default item feedback by copying the generic
// /skins/_item_feedback.inc.php file into the current skin folder.
// ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
?>
</div> <!-- end of id="comments" -->
<?php
locale_restore_previous();
// Restore previous locale (Blog locale)
}
?>
<?php
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links(array('block_start' => '<div id="nextprevious">', 'prev_start' => '<div class="floatleft">', 'prev_end' => '</div> <!-- end of class="floatleft" -->', 'next_start' => '<div class="floatright">', 'next_end' => '</div> <!-- end of class="floatright" -->', 'block_end' => '<div class="cleared"></div></div> <!-- end of id="nextprevious" -->'));
// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
?>
</div> <!-- end of id="content" -->
</div> <!-- end of id="contentwrapper" -->
<?php
// ------------------------- SIDEBAR INCLUDED HERE --------------------------
skin_include('_sidebar_right.inc.php');
// Note: You can customize the default BODY footer by copying the
// _body_footer.inc.php file into the current skin folder.
// ----------------------------- END OF SIDEBAR -----------------------------
?>
示例12: messages
">RSS Feed</a></li>
</ul>
</div>
<div class="clear"></div>
<div id="container">
<div id="main">
<?php
// MESSAGES GENERATED FROM ACTIONS
messages(array('block_start' => '<div class="action_messages">', 'block_end' => '</div>'));
// Display search results
global $ASearch_plugin;
if (is_object($ASearch_plugin)) {
$ASearch_plugin->display_results();
}
// PREV/NEXT POST LINKS (SINGLE POST MODE)
item_prevnext_links(array('block_start' => '<div class="navigation">', 'prev_start' => '<div class="left">', 'prev_end' => '</div>', 'next_start' => '<div class="right">', 'next_end' => '</div>', 'block_end' => '</div>'));
// TITLE FOR THE CURRENT REQUEST
request_title(array('title_before' => '<h2 class="request_title">', 'title_after' => '</h2>', 'title_none' => '', 'glue' => ' - ', 'title_single_disp' => false, 'title_page_disp' => false, 'format' => 'htmlbody'));
if ($Item =& get_featured_Item()) {
// We have a featured/intro post to display:
// ITEM BLOCK INCLUDED HERE
skin_include('_item_block.inc.php', array('feature_block' => true, 'content_mode' => 'auto', 'intro_mode' => 'normal', 'item_class' => 'bPost bFeatured', 'image_size' => 'fit-400x320'));
}
// START OF POSTS
// Display message if no post:
display_if_empty(array('before' => '<div class="bPost display_empty">', 'after' => '</div>'));
while ($Item =& mainlist_get_item()) {
// ITEM BLOCK INCLUDED HERE
skin_include('_item_block.inc.php', array('content_mode' => 'auto', 'image_size' => 'fit-400x320'));
}
// PREV/NEXT PAGE LINKS (POST LIST MODE)
示例13: sidebar
<!-- main content: primary + sidebar(s) -->
<div id="main">
<div id="main-inside" class="clearfix">
<!-- primary content -->
<div id="primary-content">
<div class="blocks">
<?php
// MESSAGES GENERATED FROM ACTIONS
messages(array('block_start' => '<div class="action_messages">', 'block_end' => '</div>'));
// Display search results
global $ASearch_plugin;
if (is_object($ASearch_plugin)) {
$ASearch_plugin->display_results();
}
// PREV/NEXT POST LINKS (SINGLE POST MODE)
item_prevnext_links(array('block_start' => '<div class="single-navigation clear-block">', 'block_end' => '</div>', 'prev_start' => '<div class="alignleft">', 'prev_end' => '</div>', 'next_start' => '<div class="alignright">', 'next_end' => '</div>'));
// TITLE FOR THE CURRENT REQUEST
request_title(array('title_before' => '<h2 class="request_title">', 'title_after' => '</h2>', 'title_none' => '', 'glue' => ' - ', 'title_single_disp' => false, 'title_page_disp' => false, 'format' => 'htmlbody'));
if ($Item =& get_featured_Item()) {
// We have a featured/intro post to display:
// ITEM BLOCK INCLUDED HERE
skin_include('_item_block.inc.php', array('feature_block' => true, 'content_mode' => 'auto', 'intro_mode' => 'normal', 'item_class' => 'post clearfix bFeatured', 'image_size' => 'fit-520x390'));
}
// START OF POSTS
// Display message if no post:
display_if_empty(array('before' => '<div class="bPost display_empty">', 'after' => '</div>'));
while ($Item =& mainlist_get_item()) {
// ITEM BLOCK INCLUDED HERE
skin_include('_item_block.inc.php', array('content_mode' => 'auto', 'image_size' => 'fit-520x390', 'item_class' => 'post clearfix'));
}
// PREV/NEXT PAGE LINKS (POST LIST MODE)
示例14: messages
// /skins/_html_header.inc.php file into the current skin folder.
// -------------------------------- END OF HEADER --------------------------------
?>
<!-- =================================== START OF MAIN AREA =================================== -->
<div id="contentwrap">
<div class="Content">
<?php
// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
messages(array('block_start' => '<div class="action_messages">', 'block_end' => '</div>'));
// --------------------------------- END OF MESSAGES ---------------------------------
?>
<?php
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links(array('block_start' => '<table class="prevnext_post"><tr>', 'prev_start' => '<td>', 'prev_end' => '</td>', 'next_start' => '<td class="right">', 'next_end' => '</td>', 'block_end' => '</tr></table>'));
// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
?>
<?php
// ------------------------ TITLE FOR THE CURRENT REQUEST ------------------------
request_title(array('title_before' => '<h2>', 'title_after' => '</h2>', 'title_none' => '', 'glue' => ' - ', 'title_single_disp' => true, 'format' => 'htmlbody'));
// ----------------------------- END OF REQUEST TITLE ----------------------------
?>
<?php
// --------------------------------- START OF POSTS -------------------------------------
// Display message if no post:
示例15: messages
<!-- ================================= START OF MAIN AREA ================================== -->
<?php
if (!in_array($disp, array('login', 'lostpassword', 'register', 'activateinfo', 'access_requires_login'))) {
// Don't display the messages here because they are displayed inside wrapper to have the same width as form
// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
messages(array('block_start' => '<div class="action_messages">', 'block_end' => '</div>'));
// --------------------------------- END OF MESSAGES ---------------------------------
}
// Start of wrapper for front page area, in order to have the $Messages outside this block
echo '<div class="front_main_content">';
?>
<?php
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links(array('block_start' => '<ul class="pager">', 'prev_start' => '<li class="previous">', 'prev_end' => '</li>', 'next_start' => '<li class="next">', 'next_end' => '</li>', 'block_end' => '</ul>'));
// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
?>
<?php
// ------------------------ TITLE FOR THE CURRENT REQUEST ------------------------
request_title(array('title_before' => '<h2>', 'title_after' => '</h2>', 'title_none' => '', 'glue' => ' - ', 'title_single_disp' => false, 'title_page_disp' => false, 'format' => 'htmlbody', 'register_text' => '', 'login_text' => '', 'lostpassword_text' => '', 'account_activation' => '', 'msgform_text' => '', 'user_text' => '', 'users_text' => ''));
// ----------------------------- END OF REQUEST TITLE ----------------------------
?>
<?php
// Go Grab the featured post:
if ($Item =& get_featured_Item()) {
// We have a featured/intro post to display:
// ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
echo '<div class="panel panel-default"><div class="panel-body">';