本文整理汇总了PHP中skin_widget函数的典型用法代码示例。如果您正苦于以下问题:PHP skin_widget函数的具体用法?PHP skin_widget怎么用?PHP skin_widget使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了skin_widget函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: regenerate_url
echo '<ul>';
echo '<li><input type="radio" name="' . $pp . 'status" value="-" class="radio"';
if ('-' == $status) {
echo ' checked="checked"';
}
echo ' /> <a href="' . regenerate_url('status', 'status=-') . '">' . T_('Without status') . '</a></li>';
foreach ($ItemStatusCache->cache as $loop_Obj) {
echo '<li><input type="radio" name="' . $pp . 'status" value="' . $loop_Obj->ID . '" class="radio"';
if ($loop_Obj->ID == $status) {
echo ' checked="checked"';
}
echo ' /> <a href="' . regenerate_url('status', 'status=' . $loop_Obj->ID) . '">';
$loop_Obj->disp('name');
echo '</a></li>';
}
echo '</ul>';
echo '</fieldset>';
}
// --------------------------------- START OF CATEGORY LIST --------------------------------
skin_widget(array('widget' => 'coll_category_list', 'block_start' => '<fieldset>', 'block_end' => '</fieldset>', 'block_title_start' => '<legend>', 'block_title_end' => '</legend>', 'link_type' => 'context', 'display_checkboxes' => 1, 'show_locked' => true));
// ---------------------------------- END OF CATEGORY LIST ---------------------------------
// ARCHIVES:
// Call the Archives plugin:
$Plugins->call_by_code('evo_Arch', array('block_start' => '<fieldset>', 'block_end' => "</fieldset>\n", 'title' => '<legend>' . T_('Archives') . "</legend>\n", 'link_type' => 'context', 'form' => true, 'limit' => '', 'more_link' => '', 'itemlist_prefix' => $pp));
$Form->submit(array('submit', T_('Search'), 'search'));
if ($ItemList->is_filtered()) {
// TODO: style this better:
echo ' <a href="?ctrl=items&blog=' . $Blog->ID . '&filter=reset">' . T_('Reset all filters!') . '</a>';
}
$Form->end_form();
echo $template['block_end'];
示例2: die
die('Please, do not access this page directly.');
}
?>
<div id="container">
<div id="header">
<div id="pagetopt">
<div class="bloglist">
<?php
if (true) {
?>
<div class="blog_list">
<?php
// START OF BLOG LIST
skin_widget(array('widget' => 'colls_list_public', 'block_start' => '', 'block_end' => '', 'block_display_title' => false, 'list_start' => '', 'list_end' => '', 'item_start' => '', 'item_end' => '', 'item_selected_start' => '<span class="selected">', 'item_selected_end' => '</span>'));
?>
</div>
<?php
}
?>
<?php
// Display container and contents:
skin_container(NT_('Page Top'), array('block_start' => '<div class="$wi_class$">', 'block_end' => '</div>', 'block_display_title' => false, 'list_start' => '<ul>', 'list_end' => '</ul>', 'item_start' => '<li>', 'item_end' => '</li>'));
?>
</div>
<div class="headerwidgets">
<?php
// ------------------------- "Header" CONTAINER EMBEDDED HERE --------------------------
// Display container and contents:
skin_container(NT_('Header'), array('block_start' => '<div class="$wi_class$">', 'block_end' => '</div>', 'block_title_start' => '<h1>', 'block_title_end' => '</h1>'));
示例3: skin_widget
require $skins_path . '_toolbar.inc.php';
// ------------------------------- END OF TOOLBAR --------------------------------
echo "\n";
if (show_toolbar()) {
echo '<div id="skin_wrapper" class="skin_wrapper_loggedin">';
} else {
echo '<div id="skin_wrapper" class="skin_wrapper_anonymous">';
}
echo "\n";
?>
<!-- InstanceEndEditable -->
<div class="pageHeader">
<!-- InstanceBeginEditable name="NavBar2" -->
<?php
// --------------------------------- START OF BLOG LIST --------------------------------
skin_widget(array('widget' => 'colls_list_public', 'block_start' => '<div class="NavBar">', 'block_end' => '</div>', 'block_display_title' => false, 'list_start' => '', 'list_end' => '', 'item_start' => '', 'item_end' => '', 'item_selected_start' => '', 'item_selected_end' => '', 'link_selected_class' => 'NavButton2', 'link_default_class' => 'NavButton2'));
// ---------------------------------- END OF BLOG LIST ---------------------------------
?>
<!-- InstanceEndEditable -->
<div class="pageTitle">
<h1 id="pageTitle"><!-- InstanceBeginEditable name="PageTitle" --><?php
echo T_('Multiblog demo');
?>
<!-- InstanceEndEditable --></h1>
</div>
</div>
<div class="pageSubTitle"><!-- InstanceBeginEditable name="SubTitle" --><?php
echo T_('This demo template displays 3 blogs at once (1 on the left, 2 on the right)');
?>
示例4: skin_container
<div class="container">
<header class="row">
<div class="coll-xs-12 coll-sm-12 col-md-4 col-md-push-8">
<div class="evo_container evo_container__page_top">
<?php
// ------------------------- "Page Top" CONTAINER EMBEDDED HERE --------------------------
// Display container and contents:
skin_container(NT_('Page Top'), array('block_start' => '<div class="evo_widget $wi_class$">', 'block_end' => '</div>', 'block_display_title' => false, 'list_start' => '<ul>', 'list_end' => '</ul>', 'item_start' => '<li>', 'item_end' => '</li>'));
// ----------------------------- END OF "Page Top" CONTAINER -----------------------------
?>
<?php
skin_widget(array('widget' => 'member_count', 'before' => '(', 'after' => ')'));
?>
</div>
</div><!-- .col -->
<div class="coll-xs-12 col-sm-12 col-md-8 col-md-pull-4">
<div class="evo_container evo_container__header">
<?php
// ------------------------- "Header" CONTAINER EMBEDDED HERE --------------------------
// Display container and contents:
skin_container(NT_('Header'), array('block_start' => '<div class="evo_widget $wi_class$">', 'block_end' => '</div>', 'block_title_start' => '<h1>', 'block_title_end' => '</h1>'));
// ----------------------------- END OF "Header" CONTAINER -----------------------------
?>
</div>
</div><!-- .col -->
示例5: die
<?php
/**
* This is the template that displays the category directory for a blog
*
* This file is not meant to be called directly.
* It is meant to be called by an include in the main.page.php template.
* To display the archive directory, you should call a stub AND pass the right parameters
* For example: /blogs/index.php?disp=catdir
*
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/gnu-gpl-license}
* @copyright (c)2003-2015 by Francois Planque - {@link http://fplanque.com/}
*
* @package evoskins
*/
if (!defined('EVO_MAIN_INIT')) {
die('Please, do not access this page directly.');
}
// --------------------------------- START OF CATEGORY LIST --------------------------------
skin_widget(array('widget' => 'coll_category_list', 'block_start' => '', 'block_end' => '', 'block_display_title' => false));
// ---------------------------------- END OF CATEGORY LIST ---------------------------------
示例6: param
<?php
if ($disp == 'edit') {
// Add or Edit a post
// TODO: fp>yura : this MUST NOT be in the skin. It must be in the b2evolution core (somewhere where we determine $disp)
$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', 'display_edit_links' => false, 'edit_text_create' => T_('New topic'), 'edit_text_update' => T_('Edit topic'), 'edit_text_copy' => T_('Duplicate topic'), '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'), 'register_text' => '', 'login_text' => '', 'lostpassword_text' => '', 'account_activation' => '', 'msgform_text' => '', 'user_text' => '', 'users_text' => ''));
// ----------------------------- END OF REQUEST TITLE ----------------------------
?>
<?php
if (in_array($disp, array('front', 'single', 'page', 'posts'))) {
// Widget 'Search form':
skin_widget(array('widget' => 'coll_search_form', 'block_display_title' => false, 'search_class' => 'compact_search_form', 'search_input_before' => '<div class="input-group">', 'search_input_after' => '', 'search_submit_before' => '<span class="input-group-btn">', 'search_submit_after' => '</span></div>', 'button' => T_('Search')));
// Display a button to view the Recent/New Topics:
$Skin->display_button_recent_topics();
}
?>
<?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="center"><ul class="pagination">', 'block_end' => '</ul></div>', 'page_current_template' => '<span>$page_num$</span>', 'page_item_before' => '<li>', 'page_item_after' => '</li>', 'page_item_current_before' => '<li class="active">', 'page_item_current_after' => '</li>', 'prev_text' => '<i class="fa fa-angle-double-left"></i>', 'next_text' => '<i class="fa fa-angle-double-right"></i>'), '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' => '<div class="jumbotron">', 'featured_intro_after' => '</div>', 'msgform_form_title' => T_('Sending a message'), 'edit_text_create' => T_('New topic'), 'edit_text_update' => T_('Edit topic'), 'edit_text_copy' => T_('Duplicate topic')));
// 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>
示例7: array
}
global $number_of_posts_in_cat, $cat, $legend_icons;
if (!is_array($legend_icons)) {
// Init this array only first time
$legend_icons = array();
}
// Get ID of single selected category:
$single_cat_ID = intval($cat);
// Get IDs of several selected categories:
$multi_cat_IDs = get_param('cat_array');
if ($single_cat_ID) {
$ChapterCache =& get_ChapterCache();
$current_Chapter =& $ChapterCache->get_by_ID($single_cat_ID, false, false);
}
// Breadcrumbs
skin_widget(array('widget' => 'breadcrumb_path', 'block_start' => '<ol class="breadcrumb">', 'block_end' => '</ol><div class="clear"></div>', 'separator' => '', 'item_mask' => '<li><a href="$url$">$title$</a></li>', 'item_active_mask' => '<li class="active">$title$</li>', 'suffix_text' => empty($single_cat_ID) ? T_('Latest topics') : ''));
if ($single_cat_ID) {
// Display sub-chapters:
$ChapterCache =& get_ChapterCache();
$chapters = $ChapterCache->get_chapters($Blog->ID, $single_cat_ID, true);
if (count($chapters) > 0) {
?>
<div class="panel panel-default forums_list front_panel">
<?php
$section_is_started = false;
foreach ($chapters as $Chapter) {
// Loop through categories:
if ($Chapter->meta) {
// Meta category
$chapters_children = $Chapter->get_children(true);
if ($section_is_started) {
示例8: array
?>
<div class="floatright">
<?php
// Optional display params for widgets below
$right_menu_params = array('block_start' => '', 'block_end' => '', 'block_display_title' => false, 'list_start' => '', 'list_end' => '', 'item_start' => '', 'item_end' => '', 'item_selected_start' => '', 'item_selected_end' => '', 'link_selected_class' => 'swhead_item swhead_item_selected', 'link_default_class' => 'swhead_item ');
if (is_logged_in()) {
// Display the following menus when current user is logged in
// Profile link:
// Call widget directly (without container):
skin_widget(array_merge($right_menu_params, array('widget' => 'profile_menu_link', 'profile_picture_size' => 'crop-top-32x32')));
// Messaging link:
// Call widget directly (without container):
skin_widget(array_merge($right_menu_params, array('widget' => 'msg_menu_link', 'link_type' => 'messages')));
// Logout link:
// Call widget directly (without container):
skin_widget(array_merge($right_menu_params, array('widget' => 'menu_link', 'link_type' => 'logout')));
} else {
// Display the following menus when current user is NOT logged in
// Login link:
// Call widget directly (without container):
skin_widget(array_merge($right_menu_params, array('widget' => 'menu_link', 'link_type' => 'login')));
// Register link:
// Call widget directly (without container):
skin_widget(array_merge($right_menu_params, array('widget' => 'menu_link', 'link_type' => 'register', 'link_selected_class' => 'swhead_item_white ' . $right_menu_params['link_selected_class'], 'link_default_class' => 'swhead_item_white ' . $right_menu_params['link_default_class'])));
}
?>
</div>
<div class="clear"></div>
</nav>
示例9: die
* To display the archive directory, you should call a stub AND pass the right parameters
* For example: /blogs/index.php?disp=postidx
*
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/gnu-gpl-license}
* @copyright (c)2003-2015 by Francois Planque - {@link http://fplanque.com/}
*
* @package evoskins
*/
if (!defined('EVO_MAIN_INIT')) {
die('Please, do not access this page directly.');
}
// Note: this is a very imperfect sitemap, but it's a start :)
echo '<div class="content_sitemap">';
echo '<h3 class="title_widgets">' . T_('Common links') . '</h3>';
// --------------------------------- START OF COMMON LINKS --------------------------------
skin_widget(array('widget' => 'coll_common_links', 'block_start' => '<div class="evo_widget $wi_class$">', 'block_end' => '</div>', 'block_display_title' => false, 'show_recently' => 1, 'show_postidx' => 0, 'show_archives' => 1, 'show_categories' => 0, 'show_mediaidx' => 1, 'show_latestcomments' => 1, 'show_owneruserinfo' => 1, 'show_ownercontact' => 1, 'show_sitemap' => 0));
// ---------------------------------- END OF COMMON LINKS ---------------------------------
echo '<h3 class="title_widgets">' . T_('Pages') . '</h3>';
// --------------------------------- START OF PAGE LIST --------------------------------
skin_widget(array('widget' => 'coll_page_list', 'block_start' => '<div class="evo_widget $wi_class$">', 'block_end' => '</div>', 'block_display_title' => false, 'order_by' => 'title', 'order_dir' => 'ASC', 'limit' => NULL));
// ---------------------------------- END OF PAGE LIST ---------------------------------
echo '<h3 class="title_widgets">' . T_('Categories') . '</h3>';
// --------------------------------- START OF CATEGORY LIST --------------------------------
skin_widget(array('widget' => 'coll_category_list', 'block_start' => '<div class="evo_widget $wi_class$">', 'block_end' => '</div>', 'block_display_title' => false));
// ---------------------------------- END OF CATEGORY LIST ---------------------------------
echo '<h3 class="title_widgets">' . T_('Posts') . '</h3>';
// --------------------------------- START OF POST LIST --------------------------------
skin_widget(array('widget' => 'coll_post_list', 'block_start' => '<div class="evo_widget $wi_class$">', 'block_end' => '</div>', 'block_display_title' => false, 'order_by' => 'title', 'order_dir' => 'ASC', 'limit' => NULL));
// ---------------------------------- END OF POST LIST ---------------------------------
echo '</div>';
示例10: die
* @subpackage manual
*/
if (!defined('EVO_MAIN_INIT')) {
die('Please, do not access this page directly.');
}
global $Item, $cat;
global $posttypes_specialtypes;
// Default params:
$params = array_merge(array('feature_block' => false, 'content_mode' => 'auto', 'item_class' => 'bPost', 'image_size' => 'fit-640x480', 'disp_comment_form' => true, 'item_link_type' => 'permalink'), $params);
if ($disp == 'single') {
// Display the breadcrumb path
if (empty($cat)) {
// Set a category as main of current Item
$cat = $Item->main_cat_ID;
}
skin_widget(array('widget' => 'breadcrumb_path', 'block_start' => '<div class="breadcrumbs">', 'block_end' => '</div>'));
}
?>
<div id="<?php
$Item->anchor_id();
?>
" class="<?php
$Item->div_classes($params);
?>
" lang="<?php
$Item->lang();
?>
">
<?php
示例11: die
<?php
/**
* This is the template that displays the search form for a blog
*
* This file is not meant to be called directly.
* It is meant to be called by an include in the main.page.php template.
*
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/gnu-gpl-license}
* @copyright (c)2003-2015 by Francois Planque - {@link http://fplanque.com/}
*
* @package evoskins
*/
if (!defined('EVO_MAIN_INIT')) {
die('Please, do not access this page directly.');
}
$params = array_merge(array('pagination' => array(), 'search_class' => 'extended_search_form', 'search_input_before' => '', 'search_input_after' => '', 'search_submit_before' => '', 'search_submit_after' => '', 'search_use_editor' => false, 'search_author_format' => 'avatar_name', 'search_cell_author_start' => '<div class="search_info dimmed">', 'search_cell_author_end' => '</div>', 'search_date_format' => locale_datefmt()), $params);
// ------------------------ START OF SEARCH FORM WIDGET ------------------------
skin_widget(array('widget' => 'coll_search_form', 'block_start' => '', 'block_end' => '', 'block_display_title' => false, 'disp_search_options' => 0, 'search_class' => $params['search_class'], 'search_input_before' => $params['search_input_before'], 'search_input_after' => $params['search_input_after'], 'search_submit_before' => $params['search_submit_before'], 'search_submit_after' => $params['search_submit_after'], 'use_search_disp' => 1));
// ------------------------- END OF SEARCH FORM WIDGET -------------------------
// Perform search (after having displayed the first part of the page) & display results:
search_result_block(array('pagination' => $params['pagination'], 'use_editor' => $params['search_use_editor'], 'author_format' => $params['search_author_format'], 'cell_author_start' => $params['search_cell_author_start'], 'cell_author_end' => $params['search_cell_author_end'], 'date_format' => $params['search_date_format']));
示例12: get_related_posts
/**
* Get related items (Posts/Pages)
*
* @param array of params
*
* @param string Output format, see {@link format_to_output()}
*
* return: display
*
* $achillis 2013-11-11
*
**/
function get_related_posts($limit = 10)
{
global $disp;
if ($disp == 'page') {
ob_start();
skin_widget(array('widget' => 'coll_item_list', 'block_start' => '', 'block_end' => '', 'block_display_title' => false, 'list_start' => '<ul id="relatedPosts" class="relatedPosts">', 'list_end' => '</ul>', 'item_start' => '<li><h3 class="title">', 'item_end' => '</h3></li>', 'order_dir' => 'DESC', 'order_by' => 'datestart', 'disp_excerpt' => false, 'limit' => $limit, 'item_type' => '1000', 'follow_mainlist' => 'tags', 'block_display_title' => false, 'disp_excerpt' => false));
$rel_posts = ob_get_clean();
} else {
ob_start();
skin_widget(array('widget' => 'coll_related_post_list', 'block_start' => '', 'block_end' => '', 'block_display_title' => false, 'list_start' => '<ul id="relatedPosts" class="relatedPosts">', 'list_end' => '</ul>', 'item_start' => '<li><h3 class="title">', 'item_end' => '</h3></li>', 'order_dir' => 'DESC', 'order_by' => 'datestart', 'disp_excerpt' => false, 'limit' => $limit));
$rel_posts = ob_get_clean();
}
$r = '<div class="section clearfix" id="section-relatedPosts">';
if (!empty($rel_posts)) {
$r .= '<div id="relatedPosts-wrap"><div class="clearfix">';
$r .= $rel_posts;
$r .= '</div></div>';
} else {
if ($disp == 'page') {
$r .= '<span class="comment_section_title">' . $this->T_('No related Links yet') . '</span>';
} else {
$r .= '<span class="comment_section_title">' . $this->T_('No related posts yet') . '</span>';
}
}
$r .= '</div>';
return $r;
}
示例13: die
<?php
/**
* This is the template that displays the 403 disp content
*
* This file is not meant to be called directly.
* It is meant to be called by an include in the main.page.php template.
*
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/gnu-gpl-license}
* @copyright (c)2003-2015 by Francois Planque - {@link http://fplanque.com/}
*
* @package evoskins
*/
if (!defined('EVO_MAIN_INIT')) {
die('Please, do not access this page directly.');
}
global $disp_detail, $baseurl, $app_name;
echo '<div class="error_403">';
echo '<h2>403 Forbidden</h2>';
echo '<p><a href="' . $baseurl . '">' . $app_name . '</a> cannot resolve the requested URL.</p>';
// You may use this to further customize this page:
// echo $disp_detail;
echo '</div>';
echo '<div class="error_additional_content">';
// --------------------------------- START OF CLOUD TAG --------------------------------
// Call the coll_search_form widget:
skin_widget(array('widget' => 'coll_tag_cloud', 'block_start' => '<div class="tag_cloud">', 'block_end' => '</div>', 'block_title_start' => '<h2>', 'block_title_end' => '</h2>'));
// ---------------------------------- END OF CLOUD TAG ---------------------------------
echo '</div>';
示例14: skin_container
// ---------------------- END OF "Menu" SOCIAL LINKS ----------------------
?>
<?php
// ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------
// Display container and contents:
// Note: this container is designed to be a single <ul> list
skin_container(NT_('Menu'), array('block_start' => '', 'block_end' => '', 'block_display_title' => false, 'list_start' => '', 'list_end' => '', 'item_start' => '<li class="evo_widget $wi_class$">', 'item_end' => '</li>', 'item_selected_start' => '<li class="active evo_widget $wi_class$">', 'item_selected_end' => '</li>', 'item_title_before' => '', 'item_title_after' => ''));
// ----------------------------- END OF "Menu" CONTAINER -----------------------------
?>
</ul>
</div><!-- .collapse -->
</nav><!-- .row -->
<?php
skin_widget(array('widget' => 'coll_search_form', 'block_start' => '<div class="evo_widget $wi_class$ header-main-search-field">', 'block_end' => '</div>', 'block_display_title' => false, 'search_submit_before' => '<span class="hidden">', 'search_submit_after' => '</span>'));
?>
<?php
// Go Grab the featured post if Special Intro Post is enabled
if ($Skin->get_setting('spec_cover_image') == true) {
// We have a featured/intro post to display:
// Special Cover image placement
$cover_image_url = $Item->get_cover_image_url();
if (!empty($cover_image_url)) {
?>
<div class="evo_post evo_cover_image" style="background-image: url(<?php
echo $cover_image_url;
?>
);" class="img-responsive">
<header class="spec_cover_image__header">
示例15: get_featured_Item
<?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 ----------------------------
}
// --------------------------------- START OF CONTENT HIERARCHY --------------------------------
echo '<h2 class="table_contents">' . T_('Table of contents') . '</h2>';
skin_widget(array('widget' => 'content_hierarchy', 'display_blog_title' => false, 'open_children_levels' => 20, 'class_selected' => ''));
// ---------------------------------- END OF CONTENT HIERARCHY ---------------------------------
if (!empty($intro_Item)) {
global $c, $ReqURI;
$c = 1;
// Display comments
// ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
skin_include('_item_feedback.inc.php', array('before_section_title' => '<h2 class="comments_list_title">', 'after_section_title' => '</h2>', 'form_title_start' => '<h3 class="comments_form_title">', 'form_title_end' => '</h3>', 'Item' => $intro_Item, 'form_title_text' => T_('Comment form'), 'comments_title_text' => T_('Comments on this chapter'), 'form_comment_redirect_to' => $ReqURI));
// 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>
<?php
// -------------------------- BODY FOOTER INCLUDED HERE --------------------------