本文整理汇总了PHP中skin_container函数的典型用法代码示例。如果您正苦于以下问题:PHP skin_container函数的具体用法?PHP skin_container怎么用?PHP skin_container使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了skin_container函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
* @package evoskins
* @subpackage manual
*/
if (!defined('EVO_MAIN_INIT')) {
die('Please, do not access this page directly.');
}
global $Settings, $Session;
?>
<!-- =================================== START OF SIDEBAR =================================== -->
<div id="sidebar" class="bSideBar">
<?php
// ------------------------- "Sidebar" CONTAINER EMBEDDED HERE --------------------------
// Display container and contents:
// Note: this container is designed to be a single <ul> list
skin_container(NT_('Sidebar'), array('block_title_start' => '', 'block_title_end' => '', 'expand_all' => false, 'sorted' => true));
// ----------------------------- END OF "Sidebar" CONTAINER -----------------------------
?>
<?php
// Please help us promote b2evolution and leave this logo on your blog:
powered_by(array('block_start' => '<div class="powered_by">', 'block_end' => '</div>', 'img_url' => '$rsc$img/powered-by-b2evolution-120t.gif', 'img_width' => 120, 'img_height' => 32));
?>
</div>
<script type="text/javascript">
var has_touch_event;
window.addEventListener( 'touchstart', function set_has_touch_event ()
{
has_touch_event = true;
// Remove event listener once fired, otherwise it'll kill scrolling
window.removeEventListener( 'touchstart', set_has_touch_event );
示例2: powered_by
?>
</ul>
<?php
// Please help us promote b2evolution and leave this logo on your blog:
powered_by(array('block_start' => '<div class="powered_by">', 'block_end' => '</div>', 'img_url' => 'img/powered-by-b2evolution-138x39-895C46.gif', 'img_width' => 138, 'img_height' => 39));
?>
</div>
</div> <!-- END RS DIV -->
</div> <!-- END CONTENT DIV -->
<!-- =================================== START OF FOOTER =================================== -->
<div class="pagefoot">
<?php
// Display container and contents:
skin_container(NT_("Footer"), array());
// Note: Double quotes have been used around "Footer" only for test purposes.
?>
<p class="center">
<?php
// Display footer text (text can be edited in Blog Settings):
$Blog->footer_text(array('before' => '', 'after' => ' • '));
?>
<?php
// Display a link to contact the owner of this blog (if owner accepts messages):
$Blog->contact_link(array('before' => '', 'after' => '', 'text' => T_('Contact'), 'title' => T_('Send a message to the owner of this blog...')));
// Display a link to help page:
$Blog->help_link(array('before' => ' • ', 'after' => ' ', 'text' => T_('Help')));
?>
示例3: skin_container
</div><!-- .row -->
<footer class="row">
<!-- =================================== START OF FOOTER =================================== -->
<div class="col-md-12 center">
<?php
if ($Skin->is_visible_container('footer')) {
// Display 'Footer' widget container
?>
<div class="evo_container evo_container__footer">
<?php
// Display container and contents:
skin_container(NT_("Footer"), array('block_start' => '<div class="evo_widget $wi_class$">', 'block_end' => '</div>'));
// Note: Double quotes have been used around "Footer" only for test purposes.
?>
</div>
<?php
}
?>
<p>
<?php
// Display footer text (text can be edited in Blog Settings):
$Blog->footer_text(array('before' => '', 'after' => ' • '));
// TODO: dh> provide a default class for pTyp, too. Should be a name and not the ityp_ID though..?!
?>
<?php
示例4: die
die('Please, do not access this page directly.');
}
?>
<div id="sidebar">
<div class="rss2" align="center">
<?php
echo '<a href="' . $Blog->gen_blogurl() . '?tempskin=_rss2"><img alt="rss" src="images/rss.png" /></a>, ';
?>
</div>
<ul>
<?php
// ------------------------- "Sidebar" CONTAINER EMBEDDED HERE --------------------------
// Display container contents:
skin_container(NT_('Sidebar'), array('block_start' => '<li class="$wi_class$">', 'block_end' => '</li>', 'block_title_start' => '<h2>', 'block_title_end' => '</h2>', 'list_start' => '<ul>', 'list_end' => '</ul>', 'item_start' => '<li>', 'item_end' => '</li>', 'group_start' => '<ul>', 'group_end' => '</ul>', 'notes_start' => '<div class="notes">', 'notes_end' => '</div>'));
// ----------------------------- END OF "Sidebar" CONTAINER -----------------------------
?>
</ul>
<?php
// Please help us promote b2evolution and leave this logo on your blog:
powered_by(array('block_start' => '<div class="powered_by">', 'block_end' => '</div>', 'img_url' => 'images/b2evo-tilqi-logo-trans.png', 'img_width' => 150, 'img_height' => 58));
?>
<div class="validators" align="center">
<p>
<a href="http://validator.w3.org/check?uri=referer"><img
src="images/valid-xhtml10.png"
alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
</p>
示例5: skin_container
<?php
// ------------------------- "Front Page Secondary Area" CONTAINER EMBEDDED HERE --------------------------
// Display container and contents:
skin_container(NT_('Front Page Secondary Area'), array('block_start' => '<div class="widget $wi_class$">', 'block_end' => '</div>', 'block_title_start' => '<h2 class="page-header">', 'block_title_end' => '</h2>'));
// ----------------------------- END OF "Front Page Secondary Area" CONTAINER -----------------------------
?>
</div>
</div><!-- .col -->
<footer class="col-md-12 center">
<div class="evo_container evo_container__footer">
<?php
// ------------------------- "Footer" CONTAINER EMBEDDED HERE --------------------------
// Display container and contents:
skin_container(NT_('Footer'), array());
// ----------------------------- END OF "Footer" CONTAINER -----------------------------
?>
</div>
<p>
<?php
// Display footer text (text can be edited in Blog Settings):
$Blog->footer_text(array('before' => '', 'after' => ' • '));
// TODO: dh> provide a default class for pTyp, too. Should be a name and not the ityp_ID though..?!
?>
<?php
// Display a link to contact the owner of this blog (if owner accepts messages):
$Blog->contact_link(array('before' => '', 'after' => ' • ', 'text' => T_('Contact'), 'title' => T_('Send a message to the owner of this blog...')));
// Display a link to help page:
示例6: die
<?php
/**
* This is the template that displays the front page of a collection (when front page enabled)
*
* This file is not meant to be called directly.
* It is meant to be called by an include in a *.main.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('author_link_text' => 'name', 'featured_intro_before' => '', 'featured_intro_after' => '', 'front_block_start' => '<div class="evo_widget $wi_class$">', 'front_block_end' => '</div>', 'front_block_first_title_start' => '<h3>', 'front_block_first_title_end' => '</h3>', 'front_block_title_start' => '<h3>', 'front_block_title_end' => '</h3>'), $params);
// ------------------ "Front Page Main Area" CONTAINER EMBEDDED HERE -------------------
// Display container and contents:
?>
<div class="evo_container evo_container__front_page_primary">
<?php
skin_container(NT_('Front Page Main Area'), array('author_link_text' => $params['author_link_text'], 'featured_intro_before' => $params['featured_intro_before'], 'featured_intro_after' => $params['featured_intro_after'], 'block_start' => $params['front_block_start'], 'block_end' => $params['front_block_end'], 'block_first_title_start' => $params['front_block_first_title_start'], 'block_first_title_end' => $params['front_block_first_title_end'], 'block_title_start' => $params['front_block_title_start'], 'block_title_end' => $params['front_block_title_end']));
// --------------------- END OF "Front Page Main Area" CONTAINER -----------------------
?>
</div>
示例7: skin_include
<?php
// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
skin_include('$disp$', array('disp_posts' => '', 'disp_single' => '', 'disp_page' => '', 'author_link_text' => 'preferredname'));
// 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>
<!-- =================================== START OF SIDEBAR =================================== -->
<div class="evo_sidebar">
<?php
// Display container contents:
skin_container(NT_('Sidebar'), array('block_start' => '<div class="evo_side_item $wi_class$">', 'block_end' => '</div>', 'block_title_start' => '<h3>', 'block_title_end' => '</h3>', 'list_start' => '<ul>', 'list_end' => '</ul>', 'item_start' => '<li>', 'item_end' => '</li>', 'group_start' => '<ul>', 'group_end' => '</ul>'));
?>
<?php
// Please help us promote b2evolution and leave this logo on your blog:
powered_by(array('block_start' => '<div class="powered_by">', 'block_end' => '</div>', 'img_url' => '$rsc$img/powered-by-b2evolution-120t.gif', 'img_width' => 120, 'img_height' => 32));
?>
</div>
<div class="clear"><?php
echo get_icon('pixel');
?>
</div>
</div>
示例8: skin_container
<footer id="main-footer">
<?php
if ($Skin->is_visible_container('footer')) {
?>
<!-- =================================== START OF FOOTER =================================== -->
<?php
if ($Skin->get_setting('footer_widget') == '1') {
?>
<div class="main_widget">
<div class="container">
<div class="row">
<?php
// Display container and contents:
skin_container(NT_("Footer"), array('block_start' => '<div class="evo_widget $wi_class$ col-xs-12 col-sm-6 col-md-3 clearfix">', 'block_end' => '</div>', 'block_title_start' => '<h3 class="title_widget">', 'block_title_end' => '</h3>', 'list_start' => '<ul>', 'list_end' => '</ul>', 'item_start' => '<li>', 'item_end' => '</li>', 'group_start' => '<ul>', 'group_end' => '</ul>', 'notes_start' => '<div class="notes">', 'notes_end' => '</div>', '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>'));
// Note: Double quotes have been used around "Footer" only for test purposes.
?>
</div><!-- .row -->
</div><!-- end .container-->
</div><!-- .main_widger -->
<?php
}
?>
<!-- Social Media -->
<?php
if ($Skin->get_setting('footer_user_link') == 1) {
?>
<div class="footer_social_media">
<div class="container">
示例9: die
<?php
/**
* This is the sidebar include template.
*
* For a quick explanation of b2evo 2.0 skins, please start here:
* {@link http://manual.b2evolution.net/Skins_2.0}
*
* This is meant to be included in a page template.
*
* @package evoskins
* @subpackage nonzero
*/
if (!defined('EVO_MAIN_INIT')) {
die('Please, do not access this page directly.');
}
?>
<div id="columnD_wide">
<?php
// ------------------------- "Sidebar" CONTAINER EMBEDDED HERE --------------------------
// Display container contents:
skin_container(NT_('Sidebar-w-1'), array('block_start' => '<div class="$wi_class$">', 'block_end' => '</div>', 'block_title_start' => '<h4><span>', 'block_title_end' => '</span></h4>', 'list_start' => '<ul class="links">', 'list_end' => '</ul>', 'item_start' => '<li>', 'item_end' => '</li>', 'group_start' => '<ul>', 'group_end' => '</ul>', 'notes_start' => '<div class="notes">', 'notes_end' => '</div> <!-- end of class="notes" -->'));
// ----------------------------- END OF "Sidebar" CONTAINER -----------------------------
?>
</div> <!-- end of id="wideContent" -->
示例10: skin_container
</div><!-- .row -->
</div><!-- .container -->
</div><!-- .main-content -->
<footer id="main-footer">
<!-- =================================== START OF FOOTER =================================== -->
<?php
if ($Skin->is_visible_container('footer')) {
?>
<div class="widget_footer">
<div class="container">
<div class="row">
<?php
// Display container and contents:
skin_container(NT_("Footer"), array('block_start' => '<div class="evo_widget $wi_class$ col-xs-12 col-sm-6 col-md-3">', 'block_end' => '</div>', 'block_title_start' => '<h4 class="widget_title">', 'block_title_end' => '</h4>', 'search_input_before' => '<div class="input-group">', 'search_input_after' => '', 'search_submit_before' => '<span class="input-group-btn">', 'search_submit_after' => '</span></div>'));
// Note: Double quotes have been used around "Footer" only for test purposes.
?>
</div><!-- .row -->
</div><!-- .container -->
</div><!-- .widget_footer -->
<?php
}
?>
<div class="copyright">
<div class="container">
<p>
<?php
// Display footer text (text can be edited in Blog Settings):
$Blog->footer_text(array('before' => '', 'after' => ' • '));
示例11: die
die('Please, do not access this page directly.');
}
// ---------------------------- SITE HEADER INCLUDED HERE ----------------------------
// If site headers are enabled, they will be included here:
siteskin_include('_site_body_header.inc.php');
// ------------------------------- END OF SITE HEADER --------------------------------
?>
<div id="page" class="page-<?php
echo $Skin->get_setting('sidebar_position');
?>
">
<div id="header">
<div id="headerimg">
<?php
// Display container and contents:
skin_container(NT_('Page Top'), array('block_start' => '<div class="widget $wi_class$">', 'block_end' => '</div>', 'block_display_title' => false, 'list_start' => '<ul>', 'list_end' => '</ul>', 'item_start' => '<li>', 'item_end' => '</li>'));
?>
<?php
// ------------------------- "Header" CONTAINER EMBEDDED HERE --------------------------
// Display container and contents:
skin_container(NT_('Header'), array('block_start' => '<div class="widget $wi_class$">', 'block_end' => '</div>', 'block_title_start' => '<h1>', 'block_title_end' => '</h1>'));
// ----------------------------- END OF "Header" CONTAINER -----------------------------
?>
</div>
</div>
<hr />
示例12: button_class
$action_links = '<div class="' . button_class('group') . '">' . $action_links . '</div>';
}
if ($Item->status != 'published') {
$Item->format_status(array('template' => '<div class="evo_status evo_status__$status$ badge pull-right">$status_title$</div>'));
}
$Item->title(array('link_type' => $params['item_link_type'], 'before' => '<div class="evo_post_title"><h1>', 'after' => '</h1>' . $action_links . '</div>', 'nav_target' => false));
?>
<?php
if ($disp == 'single') {
?>
<div class="evo_container evo_container__item_single">
<?php
// ------------------------- "Item Single" CONTAINER EMBEDDED HERE --------------------------
// Display container contents:
skin_container(NT_('Item Single'), array('widget_context' => 'item', 'block_start' => '<div class="$wi_class$">', 'block_end' => '</div>', 'block_title_start' => '<h3>', 'block_title_end' => '</h3>', 'widget_item_tags_before' => '<div class="small text-muted">' . T_('Tags') . ': ', 'widget_item_tags_after' => '</div>', 'widget_item_tags_separator' => ', ', 'widget_item_small_print_before' => '<p class="small text-muted">', 'widget_item_small_print_after' => '</p>', 'widget_item_small_print_display_author' => false, 'widget_item_content_params' => $params));
// ----------------------------- END OF "Item Single" CONTAINER -----------------------------
?>
</div>
<?php
} else {
// ---------------------- POST CONTENT INCLUDED HERE ----------------------
skin_include('_item_content.inc.php', $params);
// Note: You can customize the default item content by copying the generic
// /skins/_item_content.inc.php file into the current skin folder.
// -------------------------- END OF POST CONTENT -------------------------
if (!$Item->is_intro() && !$Item->is_featured()) {
// Don't display this additional info for intro posts
// List all tags attached to this post:
$Item->tags(array('before' => '<div class="small text-muted">' . T_('Tags') . ': ', 'after' => '</div>', 'separator' => ', '));
echo '<p class="small text-muted">';
示例13: skin_container
</header>
<?php
}
?>
<?php
if ($disp == 'single') {
?>
<div class="evo_container evo_container__item_single">
<?php
// ------------------------- "Item Single" CONTAINER EMBEDDED HERE --------------------------
// WARNING: EXPERIMENTAL -- NOT RECOMMENDED FOR PRODUCTION -- MAY CHANGE DRAMATICALLY BEFORE RELEASE.
// Display container contents:
skin_container(NT_('Item Single'), array('widget_context' => 'item', 'block_start' => '<div class="$wi_class$">', 'block_end' => '</div>', 'block_title_start' => '<h3>', 'block_title_end' => '</h3>', 'widget_coll_item_tags_before' => '<div class="evo_post__full">' . T_('Tags') . ': ', 'widget_coll_item_tags_after' => '</div>', 'widget_coll_item_content_params' => $params));
// ----------------------------- END OF "Item Single" CONTAINER -----------------------------
?>
</div>
<?php
} else {
if ($Skin->get_setting('posts_format') == 'default') {
// this will create a <section>
// ---------------------- POST CONTENT INCLUDED HERE ----------------------
skin_include('_item_content.inc.php', array_merge(array('more_link_text' => 'Continue reading'), $params));
// Note: You can customize the default item content by copying the generic
// /skins/_item_content.inc.php file into the current skin folder.
// -------------------------- END OF POST CONTENT -------------------------
} else {
if ($Skin->get_setting('posts_format') == 'masonry') {
// If Masonry Post Format
示例14: die
<?php
/**
* This is the mobile footer include template.
*
* For a quick explanation of b2evo 2.0 skins, please start here:
* {@link http://b2evolution.net/man/skin-development-primer}
*
* This is meant to be included in a page template.
*
* @package evoskins
* @subpackage evopress
*/
if (!defined('EVO_MAIN_INIT')) {
die('Please, do not access this page directly.');
}
?>
<div id="mobile_footer" class="mobile_footer">
<ul>
<?php
// ------------------------- "Mobile Footer" CONTAINER EMBEDDED HERE --------------------------
// Display container contents:
skin_container(NT_('Mobile: Footer'), array('block_start' => '<li class="widget $wi_class$">', 'block_end' => '</li>', 'block_title_start' => '', 'block_title_end' => '', 'list_start' => '<ul>', 'list_end' => '</ul>', 'item_start' => '<li>', 'item_end' => '</li>', 'group_start' => '<ul>', 'group_end' => '</ul>', 'notes_start' => '<div class="notes">', 'notes_end' => '</div>'));
// ----------------------------- END OF "Mobile Footer" CONTAINER -----------------------------
?>
</ul>
</div>
示例15: include_headlines
<?php
include_headlines();
?>
</head>
<body>
<?php
// -------------------------------- END OF HEADER --------------------------------
// ---------------------------- SITE HEADER INCLUDED HERE ----------------------------
// If site headers are enabled, they will be included here:
siteskin_include('_site_body_header.inc.php');
// ------------------------------- END OF SITE HEADER --------------------------------
?>
<?php
// Display container and contents:
skin_container(NT_('Page Top'), array('block_start' => '<div>', 'block_end' => '</div>', 'block_display_title' => false, 'list_start' => T_('Select blog:') . ' ', 'list_end' => '', 'item_start' => ' [', 'item_end' => '] ', 'item_selected_start' => ' [<strong>', 'item_selected_end' => '</strong>] '));
?>
<hr>
<div align="center">
<h1><?php
$Blog->name();
?>
</h1>
<?php
$Blog->tagline(array('before' => '<p>', 'after' => '</p>'));
?>
</div>
<?php
$Blog->longdesc(array('before' => '<hr><small>', 'after' => '</small>'));