本文整理汇总了PHP中request_title函数的典型用法代码示例。如果您正苦于以下问题:PHP request_title函数的具体用法?PHP request_title怎么用?PHP request_title使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了request_title函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: in_array
<div class="bPosts<?php
echo in_array($disp, array('catdir', 'posts', 'single', 'page', 'mediaidx')) ? ' full_width' : '';
?>
">
<!-- =================================== START OF MAIN AREA =================================== -->
<?php
// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
messages(array('block_start' => '<div class="action_messages">', 'block_end' => '</div>'));
// --------------------------------- END OF MESSAGES ---------------------------------
?>
<?php
// ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
request_title(array('title_before' => '<h2>', 'title_after' => '</h2>', 'title_none' => '', 'glue' => ' - ', 'title_single_disp' => false, 'format' => 'htmlbody', 'arcdir_text' => T_('Index'), 'catdir_text' => '', 'category_text' => T_('Gallery') . ': ', 'categories_text' => T_('Galleries') . ': ', 'user_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 ------------------------
skin_include('_item_block.inc.php', array('feature_block' => true, 'content_mode' => 'full', 'intro_mode' => 'normal', 'item_class' => 'featured_post', 'Item' => $Item));
// ----------------------------END ITEM BLOCK ----------------------------
}
?>
<?php
if ($disp == 'single' || $disp == 'page') {
示例2: skin_widget
?>
">
<main><!-- This is were a link like "Jump to main content" would land -->
<!-- =================================== START OF MAIN AREA =================================== -->
<?php
if (!empty($cat)) {
// Display breadcrumbs if some category is selected
skin_widget(array('widget' => 'breadcrumb_path', 'block_start' => '<nav><ol class="breadcrumb">', 'block_end' => '</ol></nav>', 'separator' => '', 'item_mask' => '<li><a href="$url$">$title$</a></li>', 'item_active_mask' => '<li class="active">$title$</li>'));
}
?>
<?php
// ------------------------ TITLE FOR THE CURRENT REQUEST ------------------------
request_title(array('title_before' => '<h1 class="page_title">', 'title_after' => '</h1>', 'title_single_disp' => false, 'title_page_disp' => false, 'format' => 'htmlbody', 'category_text' => '', 'categories_text' => '', 'catdir_text' => '', 'front_text' => '', 'posts_text' => '', 'register_text' => '', 'login_text' => '', 'lostpassword_text' => '', 'account_activation' => '', 'msgform_text' => '', 'user_text' => '', 'users_text' => '', 'display_edit_links' => false));
// ----------------------------- END OF REQUEST TITLE ----------------------------
?>
<?php
// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
skin_include('$disp$', $Skin->get_template('disp_params'));
// 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>
示例3: skin_include
skin_include('_left_navigation_bar.inc.php');
// -------------------------------- END OF LEFT NAVIGATION BAR -------------------
?>
<!-- =================================== START OF MAIN AREA =================================== -->
<div class="bPosts">
<?php
// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
messages(array('block_start' => '<div class="action_messages">', 'block_end' => '</div>'));
// --------------------------------- END OF MESSAGES ---------------------------------
?>
<?php
// ------------------------ TITLE FOR THE CURRENT REQUEST ------------------------
request_title(array('title_before' => '<h1 class="page_title">', 'title_after' => '</h1>', 'title_single_disp' => false, 'title_page_disp' => false, 'format' => 'htmlbody', 'edit_text_create' => T_('Post a new topic'), 'edit_text_update' => T_('Edit post'), 'category_text' => '', 'categories_text' => '', 'catdir_text' => ''));
// ----------------------------- END OF REQUEST TITLE ----------------------------
?>
<?php
// Display message if no post:
display_if_empty();
echo '<div id="styled_content_block">';
// Beginning of posts display
if ($Item =& mainlist_get_item()) {
// For each blog post, do everything below up to the closing curly brace "}"
// ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
skin_include('_item_block.inc.php', array('content_mode' => 'auto', 'image_size' => 'fit-640x480'));
// ----------------------------END ITEM BLOCK ----------------------------
}
echo '</div>';
示例4: messages
// 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
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links(array('block_start' => '<nav><ul class="pager">', '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 -------------------------
?>
<?php
// ------------------------ TITLE FOR THE CURRENT REQUEST ------------------------
request_title(array('title_before' => '<h2 class="title_main_content">', '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' => '', 'display_edit_links' => false));
// ----------------------------- END OF REQUEST TITLE ----------------------------
?>
<?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:
$masonry = '';
if ($Skin->get_setting('layout_posts') == 'masonry') {
$masonry = 'masonry_intro';
}
$intro_item_style = '';
$LinkOwner = new LinkItem($Item);
$LinkList = $LinkOwner->get_attachment_LinkList(1, 'cover');
if (!empty($LinkList) && ($Link =& $LinkList->get_next()) && ($File =& $Link->get_File()) && $File->exists() && $File->is_image()) {
示例5: messages
<div class="evo_main_area">
<?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 class="evo_req_title">', 'title_after' => '</h2>', 'title_none' => '', 'glue' => ' - ', 'title_single_disp' => false, 'format' => 'htmlbody'));
// ------------------------------ END OF REQUEST TITLE -----------------------------
?>
<!-- =================================== START OF MAIN AREA =================================== -->
<?php
// ------------------------------------ START OF POSTS ----------------------------------------
// Go Grab the featured post:
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' => 'featured_post', 'image_size' => 'fit-400x320'));
// ----------------------------END ITEM BLOCK ----------------------------
}
// Display message if no post:
示例6: messages
// Note: You can customize the default BODY header by copying the generic
// /skins/_body_header.inc.php file into the current skin folder.
// -------------------------------- END OF BODY HEADER ---------------------------
?>
<!-- =================================== START OF MAIN AREA =================================== -->
<div class="bPosts full_width">
<?php
// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
messages(array('block_start' => '<div class="action_messages">', 'block_end' => '</div>'));
// --------------------------------- END OF MESSAGES ---------------------------------
?>
<?php
// ------------------------ TITLE FOR THE CURRENT REQUEST ------------------------
request_title(array('title_before' => '<h1 class="page_title">', 'title_after' => '</h1>', 'title_single_disp' => false, 'title_page_disp' => false, 'format' => 'htmlbody'));
// ----------------------------- END OF REQUEST TITLE ----------------------------
?>
<?php
// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
skin_include('_access_denied.disp.php');
// 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 ---------------------------
?>
</div>
<?php
// -------------------------- BODY FOOTER INCLUDED HERE --------------------------
skin_include('_body_footer.inc.php');
示例7: skin_content_meta
">
<head>
<?php
skin_content_meta();
/* Charset for static pages */
?>
<?php
skin_base_tag();
/* Base URL for this skin. You need this to fix relative links! */
?>
<?php
$Plugins->trigger_event('SkinBeginHtmlHead');
?>
<title><?php
// ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
request_title(array('auto_pilot' => 'seo_title', 'arcdir_text' => T_('Index'), 'catdir_text' => T_('Albums'), 'category_text' => T_('Album') . ': ', 'categories_text' => T_('Albums') . ': '));
// ------------------------------ END OF REQUEST TITLE -----------------------------
?>
</title>
<meta name="description" content="<?php
$Blog->disp('shortdesc', 'htmlattr');
?>
" />
<meta name="keywords" content="<?php
$Blog->disp('keywords', 'htmlattr');
?>
" />
<?php
robots_tag();
?>
<meta name="generator" content="b2evolution <?php
示例8: messages
</nav><!-- .row -->
<main><!-- This is were a link like "Jump to main content" would land -->
<!-- ================================= START OF MAIN AREA ================================== -->
<?php
// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
messages(array('block_start' => '<div class="row"><div class="col-xs-12 action_messages">', 'block_end' => '</div></div>'));
// --------------------------------- END OF MESSAGES ---------------------------------
?>
<?php
// ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
request_title(array('title_before' => '<div class="row"><div class="col-xs-12><h2>', 'title_after' => '</h2></div></div>', 'title_none' => '', 'glue' => ' - ', 'title_single_disp' => false, 'format' => 'htmlbody', 'arcdir_text' => T_('Index'), 'catdir_text' => '', 'category_text' => T_('Gallery') . ': ', 'categories_text' => T_('Galleries') . ': ', 'user_text' => '', 'display_edit_links' => false));
// ------------------------------ END OF REQUEST TITLE -----------------------------
?>
<div class="row">
<div class="col-xs-12">
<?php
// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
skin_include('$disp$', array('mediaidx_thumb_size' => $Skin->get_setting('mediaidx_thumb_size'), 'author_link_text' => 'preferredname', 'item_class' => 'evo_post evo_content_block', 'item_type_class' => 'evo_post__ptyp_', 'item_status_class' => 'evo_post__', 'login_page_before' => '<div class="login_block"><div class="evo_details">', 'login_page_after' => '</div></div>', 'register_page_before' => '<div class="login_block"><div class="evo_details">', 'register_page_after' => '</div></div>', 'display_abort_link' => $Blog->get_setting('allow_access') == 'public'));
// 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 ---------------------------
?>
示例9: skin_include
<div id="contentleft">
<?php
// ------------------------- SIDEBAR INCLUDED HERE --------------------------
skin_include('_sidebar_left.inc.php');
// Note: You can customize the left sidebar by copying the
// _sidebar_left.inc.php file into the current skin folder.
// ----------------------------- END OF SIDEBAR -----------------------------
?>
<div id="content">
<?php
// ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
request_title(array('title_before' => '<h2 class="sectionhead">', 'title_after' => '</h2>', 'title_none' => '', 'glue' => ' - ', 'title_single_disp' => true, 'format' => 'htmlbody', 'user_text' => ''));
// ------------------------------ END OF REQUEST TITLE -----------------------------
?>
<?php
// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
messages(array('block_start' => '<div class="action_messages">', 'block_end' => '</div>'));
// --------------------------------- END OF MESSAGES ---------------------------------
?>
<?php
// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
skin_include('$disp$', array('author_link_text' => 'preferredname'));
// Note: you can customize any of the sub templates included here by
示例10: messages
<div>
<?php
// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
messages(array('block_start' => '<div class="action_messages">', 'block_end' => '</div>'));
// --------------------------------- END OF MESSAGES ---------------------------------
?>
<?php
if ($disp == 'edit') {
// Add or Edit a post
$p = param('p', 'integer', 0);
// Edit post from Front-office
}
// ------------------------ TITLE FOR THE CURRENT REQUEST ------------------------
request_title(array('title_before' => '<h2 class="page_title">', 'title_after' => '</h2>', 'title_single_disp' => false, 'title_page_disp' => false, 'format' => 'htmlbody', 'edit_text_create' => T_('Post a new topic'), 'edit_text_update' => T_('Edit post'), 'category_text' => '', 'categories_text' => '', 'catdir_text' => '', 'comments_text' => T_('Latest Replies'), 'front_text' => '', 'posts_text' => '', 'useritems_text' => T_('User\'s topics'), 'usercomments_text' => T_('User\'s replies'), 'user_text' => ''));
// ----------------------------- END OF REQUEST TITLE ----------------------------
?>
<?php
// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
skin_include('$disp$', array('profile_avatar_before' => '<div class="profile_avatar">', 'profile_avatar_after' => '</div>', 'disp_edit_categories' => false, 'notify_my_text' => T_('Notify me by email whenever a reply is published on one of <strong>my</strong> topics.'), 'notify_moderator_text' => T_('Notify me by email whenever a reply is posted in a forum where I am a moderator.'), 'user_itemlist_title' => T_('Topics created by %s'), 'user_itemlist_no_results' => T_('User has not created any topics'), 'user_commentlist_title' => T_('Replies posted by %s'), 'user_commentlist_no_results' => T_('User has not posted any replies'), 'user_commentlist_col_post' => T_('Reply on:')));
// 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 ---------------------------
?>
</div>
<?php
示例11: locale_lang
" lang="<?php
locale_lang();
?>
">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php
skin_content_meta();
/* Charset for static pages */
?>
<?php
$Plugins->trigger_event('SkinBeginHtmlHead');
?>
<title><?php
$Blog->disp('name', 'htmlhead');
request_title(' - ', '', ' - ', 'htmlhead');
?>
</title>
<?php
skin_base_tag();
/* To fix relative links! */
?>
<meta name="contributor" content="b2evo skin Underground - design by Andrew Hreschak (blog.thedarksighed.com)" />
<meta name="rating" content="General" />
<meta name="generator" content="b2evolution <?php
echo $app_version;
?>
" />
<link rel="alternate" type="text/xml" title="RSS 2.0" href="<?php
$Blog->disp('rss2_url', 'raw');
?>
示例12: skin_include
}
// -------------------------- HTML HEADER INCLUDED HERE --------------------------
skin_include('_html_header.inc.php', array());
// -------------------------------- END OF HEADER --------------------------------
// ---------------------------- SITE HEADER INCLUDED HERE ----------------------------
// If site headers are enabled, they will be included here:
skin_include('_body_header.inc.php');
// ------------------------------- END OF SITE HEADER --------------------------------
?>
<section class="search-box">
<div class="container">
<?php
// ------------------------ TITLE FOR THE CURRENT REQUEST ------------------------
request_title(array('title_before' => '<h2 class="title_search_box">', 'title_after' => '</h2>', 'search_text' => T_($Skin->get_setting('search_title')), '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' => 'test', 'users_text' => '', 'display_edit_links' => false));
// ----------------------------- END OF REQUEST TITLE ----------------------------
?>
<?php
if ($Skin->get_setting('search_field') == 1) {
// ------------------------ START OF SEARCH FORM WIDGET ------------------------
skin_widget(array('widget' => 'coll_search_form', 'block_start' => '<div class="evo_widget $wi_class$">', 'block_end' => '</div>', 'block_display_title' => false, 'disp_search_options' => 0, 'search_class' => 'compact_search_form', 'search_input_before' => '', 'search_input_after' => '', 'search_submit_before' => '', 'search_submit_after' => '', 'use_search_disp' => 1, 'button' => T_($Skin->get_setting('search_button_text'))));
// ------------------------- END OF SEARCH FORM WIDGET -------------------------
}
?>
</div>
</section>
<main id="main-content">
<div class="container">
示例13: 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 ---------------------------------
}
?>
<?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' => '', 'display_edit_links' => false, 'catdir_text' => T_('Categories'), 'arcdir_text' => T_('Archives')));
// ----------------------------- END OF REQUEST TITLE ----------------------------
?>
<?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
// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
示例14: messages
<!-- =================================== START OF MAIN AREA =================================== -->
<div class="bPosts">
<?php
// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
messages(array('block_start' => '<div class="action_messages">', 'block_end' => '</div>'));
// --------------------------------- END OF MESSAGES ---------------------------------
if (!empty($cat)) {
// Display breadcrumbs if some category is selected
skin_widget(array('widget' => 'breadcrumb_path', 'block_start' => '<div class="breadcrumbs">', 'block_end' => '</div>'));
}
?>
<?php
// ------------------------ TITLE FOR THE CURRENT REQUEST ------------------------
request_title(array('title_before' => '<h1 class="page_title">', 'title_after' => '</h1>', 'title_single_disp' => false, 'title_page_disp' => false, 'format' => 'htmlbody', 'category_text' => '', 'categories_text' => '', 'catdir_text' => '', 'front_text' => ''));
// ----------------------------- END OF REQUEST TITLE ----------------------------
?>
<?php
// Home page, display full categories list
// Go Grab the featured post:
$intro_Item =& get_featured_Item('front');
// $intro_Item is used below for comments form
$Item = $intro_Item;
if (!empty($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' => 'featured_post', 'image_size' => 'fit-640x480', 'disp_comment_form' => false, 'item_link_type' => 'none'));
// ----------------------------END ITEM BLOCK ----------------------------
}
示例15: messages
// 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
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links(array('block_start' => '<nav><ul class="pager">', '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 -------------------------
?>
<?php
// ------------------------ TITLE FOR THE CURRENT REQUEST ------------------------
request_title(array('title_before' => '<h2 class="title_mediaidx">', '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' => '', 'display_edit_links' => false, 'arcdir_text' => T_('Index'), 'catdir_text' => '', 'category_text' => T_('Gallery') . ': ', 'categories_text' => T_('Galleries') . ': '));
// ----------------------------- END OF REQUEST TITLE ----------------------------
?>
<?php
// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
skin_include('$disp$', array('author_link_text' => 'preferredname', 'item_class' => 'evo_post evo_content_block', 'item_type_class' => 'evo_post__ptyp_', 'item_status_class' => 'evo_post__', 'login_page_before' => '<div class="login_block"><div class="evo_details">', 'login_page_after' => '</div></div>', 'register_page_before' => '<div class="login_block"><div class="evo_details">', 'register_page_after' => '</div></div>', 'display_abort_link' => $Blog->get_setting('allow_access') == 'public'));
// 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 ---------------------------
?>
</div><!-- .col -->
<?php