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


PHP skin_include函数代码示例

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


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

示例1: T_

$CommentList->display_if_empty(array('msg_empty' => T_('No replies yet...')));
if ($CommentList->result_num_rows > 0) {
    ?>
<table class="bForums fixed_layout evo_content_block" width="100%" cellspacing="1" cellpadding="2" border="0">
	<tr>
		<th class="col1"><?php 
    echo T_('Author');
    ?>
</th>
		<th><?php 
    echo T_('Message');
    ?>
</th>
	</tr>
<?php 
    while ($Comment =& $CommentList->get_next()) {
        // Loop through comments:
        // Load comment's Item object:
        $Item = $Comment->get_Item();
        // ------------------ COMMENT INCLUDED HERE ------------------
        skin_include('_item_comment.inc.php', array('Comment' => &$Comment, 'comment_start' => '<div class="bText">', 'comment_end' => '</div>', 'display_vote_helpful' => false));
        // Note: You can customize the default item comment by copying the generic
        // /skins/_item_comment.inc.php file into the current skin folder.
        // ---------------------- END OF COMMENT ---------------------
    }
    // End of comment loop.
    ?>
</table>
<?php 
}
echo_comment_moderate_js();
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_comments.disp.php

示例2: core_addScriptFile

/* Step 2.2: Add per-page bits in the header */
function core_addScriptFile($type, $url)
{
    global $extraHeaders;
    $extraHeaders += '<script type="' . $type . '" src="' . $url . '"></script>' . "\n";
}
function core_addScriptCode($type, $codeString)
{
    global $extraHeaders;
    $extraHeaders += '<script type="' . $type . '">' . "\n" . $codeString . "\n" . '</script>';
}
/* Step 3: Authentication handling */
require_once "library/core/util-auth.php";
switch ($_REQUEST['auth-action']) {
    case 'logout':
        auth_logout();
        break;
    case 'login':
        auth_login();
        break;
    default:
        auth_validate();
        break;
}
/* Step 4: Gather/store skin information */
require_once "library/core/util-skin.php";
skin_storeName();
skin_include("parameters.php");
/* Step 5: Import commonly used classes */
require_once "library/core/class-block.php";
require_once "library/core/class-story.php";
开发者ID:JoFumc,项目名称:jofweb,代码行数:31,代码来源:block-early.php

示例3: mainlist_page_links

        ?>
		</div>
	<?php 
    }
    // ---------------------------------- END OF POSTS ------------------------------------
    ?>

	<?php 
    // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
    mainlist_page_links(array('block_start' => '<p class="center"><strong>', 'block_end' => '</strong></p>', 'links_format' => '$prev$ :: $next$', 'prev_text' => '&lt;&lt; ' . T_('Previous'), 'next_text' => T_('Next') . ' &gt;&gt;'));
    // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
    ?>

	<?php 
    // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
    skin_include('$disp$', array('disp_posts' => '', 'disp_single' => '', 'disp_page' => ''));
    // 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="bSideBar">

	<!-- =================================== START OF BLOG B =================================== -->

	<div class="bSideItem">
		<?php 
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:multiblogs.php

示例4: skin_include

<?php 
if (!$Item->can_see_comments(true) || $preview) {
    // If comments are disabled for this post we should close the <table> tag that was opened above for post content
    // Otherwise this tag will be closed below by 'comment_list_end'
    echo '</table>';
}
?>

	<?php 
$Item->locale_temp_switch();
// Temporarily switch to post locale (useful for multilingual blogs)
?>

	<?php 
// ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
skin_include('_item_feedback.inc.php', array('preview_block_start' => '<table id="comment_preview" class="forums_table topics_table single_topic" cellspacing="0" cellpadding="0">', 'preview_start' => '<div class="bText">', 'preview_end' => '</div>', 'preview_block_end' => '</table><br />', 'notification_text' => T_('This is your topic. You are receiving notifications when anyone posts a reply on your topics.'), 'notification_text2' => T_('You will be notified by email when someone posts a reply here.'), 'notification_text3' => T_('Notify me by email when someone posts a reply here.'), 'before_section_title' => '<h4>', 'after_section_title' => '</h4>', 'comment_list_end' => '</table>', 'comment_start' => '<div class="bText">', 'comment_end' => '</div>', 'disp_rating_summary' => false, 'disp_section_title' => false, 'form_title_start' => '', 'form_title_end' => '', 'form_title_text' => '', 'form_comment_text' => T_('Message body'), 'form_submit_text' => T_('Submit'), 'form_params' => array('formstart' => '<table class="forums_table topics_table" cellspacing="0" cellpadding="0"><tr class="table_title"><th colspan="2"><div class="form_title">' . T_('Post a reply') . '</div></th></tr>', 'formend' => '</table>', 'fieldset_begin' => '<tr><td colspan="2">', 'fieldset_end' => '</td></tr>', 'fieldstart' => '<tr>', 'fieldend' => '</tr>', 'labelstart' => '<td><strong>', 'labelend' => '</strong></td>', 'inputstart' => '<td>', 'inputend' => '</td>', 'infostart' => '<td>', 'infoend' => '</td>'), 'comments_disabled_text_member' => T_('You must be a member of this blog to post a reply.'), 'comments_disabled_text_registered' => T_('You must be logged in to post a reply.'), 'comments_disabled_text_validated' => T_('You must activate your account before you can post a reply.'), 'feed_title' => get_icon('feed') . ' ' . T_('RSS feed for replies to this topic'), 'before_comment_error' => '<p class="center" style="font-size:150%"><b>', 'comment_closed_text' => T_('This topic is closed.'), 'after_comment_error' => '</b></p>', 'comment_mode' => param('mode', 'string', ''), 'comment_qc' => param('qc', 'integer', 0), 'comment_qp' => param('qp', 'integer', 0), $dummy_fields['content'] => param($dummy_fields['content'], 'html'), 'disp_nav_top' => false, 'nav_bottom_inside' => true, 'nav_block_start' => '<tr class="panel bottom"><td colspan="2">' . $post_buttons . '<div class="navigation">', 'nav_block_end' => '</div></td></tr>', 'nav_prev_text' => T_('Previous'), 'nav_next_text' => T_('Next'), 'nav_prev_class' => 'prev', 'nav_next_class' => 'next'));
// 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)
?>
<script type="text/javascript">
jQuery( document ).ready( function()
{
	jQuery( '.quote_button' ).click( function()
	{ // Submit a form to save the already entered content
		console.log( jQuery( this ).attr( 'href' ) );
开发者ID:b2evolution,项目名称:pureforums_skin,代码行数:31,代码来源:_item_block.inc.php

示例5: skin_include

?>
</h2>

<?php 
if ($Item->status != 'published') {
    $Item->status(array('format' => 'styled'));
}
if (!$Item->is_intro()) {
    // Display only if we're not displaying an intro post:
    $Item->issue_time(array('before' => '<small>', 'after' => '</small>', 'time_format' => 'F jS, Y'));
}
?>

<?php 
// ---------------------- POST CONTENT INCLUDED HERE ----------------------
skin_include('_item_content.inc.php', $params);
// Note: You can customize the default item feedback by copying the generic
// /skins/_item_content.inc.php file into the current skin folder.
// -------------------------- END OF POST CONTENT -------------------------
?>

<?php 
// List all tags attached to this post:
$Item->tags(array('before' => '<div class="posttags">' . T_('Tags') . ': ', 'after' => '</div>', 'separator' => ', '));
?>

<?php 
if (!$Item->is_intro()) {
    // Display only if we're not displaying an intro post:
    ?>
<p class="postmetadata">
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_item_block.inc.php

示例6: implode

        if (empty($c_number) && empty($disp_title)) {
            // Still no title
            $disp_title[] = $Skin->T_('No feedback yet');
        }
        if (!empty($disp_title)) {
            echo $params['before_section_title'];
            echo implode(', ', $disp_title);
            echo $params['after_section_title'];
        }
        $Skin->disp_feedback_list('comment', $params);
        echo '</div>';
        // Display count of comments to be moderated:
        $Item->feedback_moderation('feedbacks', '<div class="moderation_msg"><p>', '</p></div>', '', $Skin->T_('This post has 1 feedback awaiting moderation... %s'), $Skin->T_('This post has %d feedbacks awaiting moderation... %s'));
    }
    // ------------------ COMMENT FORM INCLUDED HERE ------------------
    skin_include('_item_comment_form.inc.php', $params);
    // ---------------------- END OF COMMENT FORM ---------------------
    echo '</div></div>';
    if ($params['disp_trackbacks']) {
        // We want to display trackbacks:
        echo '<div class="section clearfix" id="section-trackbacks">
				<div id="trackbacks-wrap"><div class="clearfix">';
        if ($params['disp_trackback_url']) {
            echo $params['before_section_title'];
            echo $Skin->T_('Trackback address for this post');
            echo $params['after_section_title'];
            /*
             * Trigger plugin event, which could display a captcha form, before generating a whitelisted URL:
             */
            if (!$Plugins->trigger_event_first_true('DisplayTrackbackAddr', array('Item' => &$Item, 'template' => '<code>%url%</code>'))) {
                // No plugin displayed a payload, so we just display the default:
开发者ID:b2evolution,项目名称:mystique_skin,代码行数:31,代码来源:_item_feedback.inc.php

示例7: skin_include

	<?php 
if (!$Item->is_intro()) {
    // Display only if we're not displaying an intro post:
    ?>
			<p class="postmeta">
				
				<?php 
    $Item->more_link(array('force_more' => false, 'before' => '', 'after' => ' | ', 'link_text' => 'Read more', 'anchor_text' => '#', 'disppage' => '#', 'format' => 'htmlbody'));
    $Item->edit_link(array('before' => '', 'after' => ' | '));
    // Link to comments, trackbacks, etc.:
    $Item->feedback_link(array('type' => 'comments', 'link_before' => '', 'link_after' => '', 'link_text_zero' => '#', 'link_text_one' => '#', 'link_text_more' => '#', 'link_title' => '#'));
    $Item->issue_time(array('before' => ' | ', 'after' => ' ', 'time_format' => '#short_time'));
    ?>
				</p>
			<?php 
}
?>
	<?php 
// ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
skin_include('_item_feedback.inc.php', array('before_section_title' => '<h4>', 'after_section_title' => '</h4>', 'author_link_text' => 'preferredname'));
// 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 
locale_restore_previous();
// Restore previous locale (Blog locale)
echo '</div>';
// End of posts display
开发者ID:b2evolution,项目名称:colourise_skin,代码行数:31,代码来源:_item_block.inc.php

示例8: die

 *
 * 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=posts
 *
 * b2evolution - {@link http://b2evolution.net/}
 * Released under GNU GPL License - {@link http://b2evolution.net/about/gnu-gpl-license}
 * @copyright (c)2003-2016 by Francois Planque - {@link http://fplanque.com/}
 *
 * @package evoskins
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
// -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
mainlist_page_links(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>', 'block_end' => '</div>', 'page_item_current_before' => '<span class="active">', 'page_item_current_after' => '</span>'));
// ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
// --------------------------------- START OF POSTS -------------------------------------
// Display message if no post:
display_if_empty();
while (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_merge(array('content_mode' => 'auto'), $params));
    // ----------------------------END ITEM BLOCK  ----------------------------
}
// ---------------------------------- END OF POSTS ------------------------------------
// -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
mainlist_page_links(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>', 'block_end' => '</div>', 'page_item_current_before' => '<span class="active">', 'page_item_current_after' => '</span>'));
// ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
开发者ID:b2evolution,项目名称:photo_mouse_skin,代码行数:31,代码来源:_posts.disp.php

示例9: get_icon

?>
  </div>
  <div class="bTitle">
    <h2>
      <?php 
$Item->edit_link(array('before' => '', 'after' => ' ', 'text' => get_icon('edit')));
$Item->title();
?>
    </h2>
    <div class="postmeta">
      <?php 
$Item->categories(array('before' => T_('Categories') . ': ', 'after' => '', 'include_main' => true, 'include_other' => true, 'include_external' => true, 'link_categories' => true));
// List all tags attached to this post:
$Item->tags(array('before' => ' / ' . T_('Tags') . ': ', 'after' => '', 'separator' => ', '));
// Link to comments, trackbacks, etc.:
$Item->feedback_link(array('type' => 'comments', 'link_before' => ' / <span class="comments">', 'link_after' => '</span>', 'link_text_zero' => '#', 'link_text_one' => '#', 'link_text_more' => '#', 'link_title' => '#', 'use_popup' => false));
?>
    </div>
  </div>
  <div class="clear"></div>
  <?php 
// POST CONTENT INCLUDED HERE
skin_include('_item_content.inc.php', $params);
// "Post bottom" CONTAINER EMBEDDED HERE
skin_container(NT_('Post bottom'), array('block_start' => '<div class="PostBottom">', 'block_end' => '</div>'));
?>
</div>
<?php 
// FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE
skin_include('_item_feedback.inc.php');
locale_restore_previous();
开发者ID:b2evolution,项目名称:pyrmont_skin,代码行数:31,代码来源:_item_block.inc.php

示例10: skin_include

// Note: at the top of this file, we set: 'image_size' =>	'', // Do not display images in content block - Image is handled separately
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 -------------------------
?>

		<?php 
// URL link, if the post has one:
$Item->url_link(array('before' => '<div class="bSmallPrint">' . T_('Link') . ': ', 'after' => '</div>', 'text_template' => '$url$', 'url_template' => '$url$', 'target' => '', 'podcast' => false));
?>

		<div class="item_comments">
			<?php 
// ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
skin_include('_item_feedback.inc.php', array('before_section_title' => '<h4>', 'after_section_title' => '</h4>', 'author_link_text' => 'preferredname', 'comment_image_size' => 'fit-256x256'));
// 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>

	</div>

</div>
	<?php 
locale_restore_previous();
// Restore previous locale (Blog locale)
?>

</div>
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_item_block.inc.php

示例11: skin_include

    // We are running at least b2evo 6.7, so we can include this file:
    // ------------------ WORKFLOW PROPERTIES INCLUDED HERE ------------------
    skin_include('_item_workflow.inc.php');
    // ---------------------- END OF WORKFLOW PROPERTIES ---------------------
}
?>

	<?php 
if ($disp == 'single' || $disp == 'page') {
    ?>
		<div class="item_meta_comments">
			<?php 
    if (evo_version_compare($app_version, '6.7') >= 0) {
        // We are running at least b2evo 6.7, so we can include this file:
        // ------------------ META COMMENTS INCLUDED HERE ------------------
        skin_include('_item_meta_comments.inc.php', array('comment_start' => '<article class="evo_comment evo_comment__meta panel panel-default">', 'comment_end' => '</article>', 'comment_post_before' => '<h3 class="evo_comment_post_title">', 'comment_post_after' => '</h3>', 'comment_title_before' => '<div class="panel-heading"><h4 class="evo_comment_title panel-title">', 'comment_title_after' => '</h4></div><div class="panel-body">'));
        // ---------------------- END OF META COMMENTS ---------------------
    }
    ?>
		</div>
	<?php 
}
?>

	<?php 
locale_restore_previous();
// Restore previous locale (Blog locale)
?>

</article>
开发者ID:b2evolution,项目名称:business_skin,代码行数:30,代码来源:_item_block.inc.php

示例12: skin_include

if ($Skin->get_setting('display_msg_link')) {
    echo '<span class="msg-link info-icon" title="Message this user">';
    $Item->msgform_link();
    echo '</span>';
}
?>
		<?php 
$Item->edit_link(array('before' => '<span class="info-icon edit-link">', 'after' => '</span>', 'text' => 'Edit Post'));
?>


</div>

	<?php 
// ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
skin_include('_item_feedback.inc.php', array('before_section_title' => '<h4>', 'after_section_title' => '</h4>'));
// 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>

<?php 
/*
 * $Log: _item_block.inc.php,v $
 */
开发者ID:b2evolution,项目名称:chita_skin,代码行数:31,代码来源:_item_block.inc.php

示例13: messages

	<?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' => true, '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 ---------------------------
?>

	<hr>

	<div align="center">
		<p>
		<?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...')));
?>

		<?php 
开发者ID:b2evolution,项目名称:basic_skin,代码行数:30,代码来源:access_denied.main.php

示例14: skin_include

        // Beginning of posts display
        // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
        skin_include('_item_feedback.inc.php', array_merge(array('before_section_title' => '<h3 class="evo_comment__list_title">', 'after_section_title' => '</h3>', 'Item' => $intro_Item, 'form_title_text' => T_('Comment form'), 'comments_title_text' => T_('Comments on this chapter'), 'form_comment_redirect_to' => $ReqURI), $Skin->get_template('disp_params')));
        // 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) ---------------------
        echo '</div>';
        // End of posts display
    }
} else {
    // Display the latest posts:
    // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
    mainlist_page_links($params['pagination']);
    // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
    ?>
<ul class="posts_list">
<?php 
    while ($Item =& mainlist_get_item()) {
        // For each blog post, do everything below up to the closing curly brace "}"
        // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
        skin_include('_item_list.inc.php', array('before_title' => '<h3>', 'after_title' => '</h3>'));
        // ----------------------------END ITEM BLOCK  ----------------------------
    }
    ?>
</ul>
<?php 
    // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
    mainlist_page_links($params['pagination']);
    // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
}
// End of List of the latest posts
开发者ID:b2evolution,项目名称:bootstrap_manual_skin,代码行数:31,代码来源:_posts.disp.php

示例15: die

 * To display the archive directory, you should call a stub AND pass the right parameters
 * For example: /blogs/index.php?disp=posts
 *
 * b2evolution - {@link http://b2evolution.net/}
 * Released under GNU GPL License - {@link http://b2evolution.net/about/gnu-gpl-license}
 * @copyright (c)2003-2016 by Francois Planque - {@link http://fplanque.com/}
 *
 * @package evoskins
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
?>

<div class="main_item_posts">
<?php 
// --------------------------------- START OF POSTS -------------------------------------
// Display message if no post:
display_if_empty();
while (mainlist_get_item()) {
    // For each blog post, do everything below up to the closing curly brace "}"
    global $Skin;
    // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
    skin_include('_item_block.inc.php', array('content_mode' => 'auto'));
    // ----------------------------END ITEM BLOCK  ----------------------------
}
// ---------------------------------- END OF POSTS ------------------------------------
?>

</div>
开发者ID:b2evolution,项目名称:cuboid_blog_skin,代码行数:30,代码来源:_posts.disp.php


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