$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();
/* 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";
?> </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' => '<< ' . T_('Previous'), 'next_text' => T_('Next') . ' >>')); // ------------------------- 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
<?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' ) );
?> </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">
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:
<?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
* * 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 -------------------------
?> </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();
// 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>
// 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>
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 $ */
// /skins/_item_content.inc.php file into the current skin folder. // -------------------------- END OF POST CONTENT ------------------------- ?> <div class="evo_post_foot"> <?php // 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' => '#')); ?> <?php // Link to comments, trackbacks, etc.: $Item->feedback_link(array('type' => 'trackbacks', 'link_before' => ' • ', 'link_after' => '', 'link_text_zero' => '#', 'link_text_one' => '#', 'link_text_more' => '#', 'link_title' => '#')); ?> </div> <?php // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ skin_include('_item_feedback.inc.php', array('before_section_title' => '<h4>', 'after_section_title' => '</h4>', 'author_link_text' => $params['author_link_text'])); // 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 echo '</div>'; // End of post display
<?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
// 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
* 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>
// INIT/PREVIEW: if ($Comment = $Session->get('core.preview_Comment')) { // We have a comment to preview if ($Comment->item_ID == $Item->ID) { // display PREVIEW: // We do not want the current rendered page to be cached!! if (!empty($PageCache)) { $PageCache->abort_collect(); } if ($Comment->email_is_detected) { // We set it to define a some styles below $email_is_detected = true; } if (!$Blog->get_setting('threaded_comments')) { // ------------------ PREVIEW COMMENT INCLUDED HERE ------------------ skin_include($params['comment_template'], array('Comment' => &$Comment, 'comment_block_start' => $Comment->email_is_detected ? '' : $params['preview_block_start'], 'comment_start' => $Comment->email_is_detected ? $params['comment_error_start'] : $params['preview_start'], 'comment_end' => $Comment->email_is_detected ? $params['comment_error_end'] : $params['preview_end'], 'comment_block_end' => $Comment->email_is_detected ? '' : $params['preview_block_end'], 'author_link_text' => $params['author_link_text'])); // Note: You can customize the default item feedback by copying the generic // /skins/_item_comment.inc.php file into the current skin folder. // ---------------------- END OF PREVIEW COMMENT --------------------- } // Form fields: $comment_content = $Comment->original_content; // comment_attachments contains all file IDs that have been attached $comment_attachments = $Comment->preview_attachments; // checked_attachments contains all attachment file IDs which checkbox was checked in $checked_attachments = $Comment->checked_attachments; // for visitors: $comment_author = $Comment->author; $comment_author_email = $Comment->author_email; $comment_author_url = $Comment->author_url; // Display error messages again after preview of comment
<div id="bookshelf-canvas-div"> <?php // If the skin has pre-content setup, include it here. require_once "library/core/util-skin.php"; skin_include("block-dashboard-canvas-pre.php"); ?> <div id="bookshelf-canvas-container"> <?php require_once "library/core/class-story.php"; $cStory = new akStory(); $cStory->createSimpleChunk(STORY_CHUNK_SECTION, "Welcome"); $cStory->createSimpleChunk(STORY_CHUNK_FILE, "assets/blocks/bookshelf-canvas/welcome.html"); // CLEAN: Add intro text here? $cStory->emit(); ?> </div><!-- Close bookshelf-canvas-container --> <?php // If the skin has post-content setup, include it here. skin_include("block-dashboard-canvas-post.php"); ?> </div>
* * @package evoskins * @subpackage pixel */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } // By default, this does nothing. It's just here to simplify the includes of different sidebars, minimizing edits. ?> <div id="sidebars"> <?php // ------------------------- SIDEBAR INCLUDED HERE -------------------------- skin_include('_sidebar-w-1.inc.php'); // Note: You can customize the default BODY footer by copying the // _body_footer.inc.php file into the current skin folder. // ----------------------------- END OF SIDEBAR ----------------------------- // ------------------------- SIDEBAR INCLUDED HERE -------------------------- skin_include('_sidebar-1.inc.php'); // Note: You can customize the default BODY footer by copying the // _body_footer.inc.php file into the current skin folder. // ----------------------------- END OF SIDEBAR ----------------------------- // ------------------------- SIDEBAR INCLUDED HERE -------------------------- skin_include('_sidebar-2.inc.php'); // Note: You can customize the default BODY footer by copying the // _body_footer.inc.php file into the current skin folder. // ----------------------------- END OF SIDEBAR ----------------------------- ?> <div class="cleared"></div> </div> <!-- end of id="sidebars" -->
* This is the template that displays a page 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?p=123 * * 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 * @subpackage bootstrap_manual */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } // --------------------------------- 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 "}" echo '<div class="evo_content_block">'; // Beginning of posts display // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ skin_include('_item_block.inc.php', array_merge(array('content_mode' => 'auto', 'item_class' => 'evo_post evo_content_block'), $Skin->get_template('disp_params'))); // ----------------------------END ITEM BLOCK ---------------------------- echo '</div>'; // End of posts display } // ---------------------------------- END OF POSTS ------------------------------------
$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: echo '<div class="evo_content_block">'; // Beginning of posts display // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ skin_include('_item_block.inc.php', array('feature_block' => true, 'content_mode' => 'auto', 'intro_mode' => 'normal', 'item_class' => 'jumbotron evo_content_block evo_post', 'disp_comment_form' => false, 'item_link_type' => 'none')); // ----------------------------END ITEM BLOCK ---------------------------- echo '</div>'; // End of posts display } // --------------------------------- 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' => '', 'item_before_opened' => get_icon('collapse'), 'item_before_closed' => get_icon('expand'), 'item_before_post' => get_icon('file_message'))); // ---------------------------------- END OF CONTENT HIERARCHY --------------------------------- if (!empty($intro_Item)) { global $c, $ReqURI; $c = 1; // Display comments echo '<div class="evo_content_block">'; // 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 }
<?php locale_restore_previous(); // Restore previous locale (Blog locale) ?> </div> <?php } // --------------------------------- END OF POSTS ----------------------------------- ?> <?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 --------------------------- ?> <hr> <div align="center"> <?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' => '<< ' . T_('Previous'), 'next_text' => T_('Next') . ' >>')); // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- ?>
<?php /* Headers are entirely skin-dependent */ require_once "library/core/util-skin.php"; skin_include("block-header.php");
* * @package evoskins * @subpackage manual */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } global $MainList; // --------------------------------- START OF COMMON LINKS -------------------------------- skin_widget(array('widget' => 'coll_search_form', 'block_start' => '', 'block_end' => '', 'block_display_title' => false, 'disp_search_options' => 1, 'use_search_disp' => 1)); // ---------------------------------- END OF COMMON LINKS --------------------------------- // Display message if no post: display_if_empty(array('before' => '<p class="msg_nothing" style="margin: 2em 0">', 'after' => '</p>', 'msg_empty' => T_('Sorry, we could not find anything matching your request, please try to broaden your search.'))); // --------------------------------- START OF POSTS ------------------------------------- if (isset($MainList) && $MainList->result_num_rows > 0) { // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- mainlist_page_links(array('block_start' => '<p class="center"><strong>', 'block_end' => '</strong></p>', 'prev_text' => '<<', 'next_text' => '>>')); // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- echo '<ul class="posts_list" style="margin-top:1em">'; while (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()); // ----------------------------END ITEM BLOCK ---------------------------- } echo '</ul>'; // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- mainlist_page_links(array('block_start' => '<p class="center"><strong>', 'block_end' => '</strong></p>', 'prev_text' => '<<', 'next_text' => '>>')); // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- } // ---------------------------------- END OF POSTS ------------------------------------
// 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 align="center"> <?php // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- mainlist_page_links(array('block_start' => '<p class="center">', 'block_end' => '</p>', 'links_format' => '$prev$ :: $next$', 'prev_text' => '<< ' . T_('Previous'), 'next_text' => T_('Next') . ' >>')); // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- ?> </div> </div> <?php // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- skin_include('_body_footer.inc.php'); // Note: You can customize the default BODY footer by copying the // _body_footer.inc.php file into the current skin folder. // ------------------------------- END OF FOOTER -------------------------------- $Hit->log(); // log the hit on this page debug_info(); // output debug info if requested ?> </div><!-- end of wrap --></div> </div><!-- end of center --> </body> </html>
<section class="table table-hover"> <?php if ($single_cat_ID) { // Go to grab the featured posts only on pages with defined category: while ($Item =& get_featured_Item()) { // We have a intro post to display: // ---------------------- ITEM LIST INCLUDED HERE ------------------------ skin_include('_item_list.inc.php', array('Item' => $Item)); // ----------------------------END ITEM LIST ---------------------------- } } if ($MainList->result_num_rows > 0) { while (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('content_mode' => 'auto', 'image_size' => 'fit-1280x720')); // ----------------------------END ITEM BLOCK ---------------------------- } } elseif (isset($current_Chapter)) { // Display a message about no posts in this category ?> <div class="ft_no_post"> <?php echo T_('There is no topic in this forum yet.'); ?> </div> <?php } ?> </section>
<?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>'; // End of posts display ?> </div> <?php // -------------------------- BODY FOOTER INCLUDED HERE -------------------------- skin_include('_body_footer.inc.php'); // Note: You can customize the default BODY footer by copying the generic // /skins/_body_footer.inc.php file into the current skin folder. // -------------------------------- END OF BODY FOOTER --------------------------- // ---------------------------- SITE FOOTER INCLUDED HERE ---------------------------- // If site footers are enabled, they will be included here: siteskin_include('_site_body_footer.inc.php'); // ------------------------------- END OF SITE FOOTER -------------------------------- // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- skin_include('_html_footer.inc.php'); // Note: You can customize the default HTML footer by copying the // _html_footer.inc.php file into the current skin folder. // ------------------------------- END OF FOOTER --------------------------------
<?php /** * This is the template that displays a page 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?p=123 * * b2evolution - {@link http://b2evolution.net/} * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html} * @copyright (c)2003-2013 by Francois Planque - {@link http://fplanque.com/} * * @package evoskins */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } // --------------------------------- 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('content_mode' => 'auto', 'image_size' => 'fit-400x320')); // ----------------------------END ITEM BLOCK ---------------------------- } // ---------------------------------- END OF POSTS ------------------------------------
} ?> </div> <?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) --------------------- ?> <?php // ------------------ WORKFLOW PROPERTIES INCLUDED HERE ------------------ skin_include('_item_workflow.inc.php'); // ---------------------- END OF WORKFLOW PROPERTIES --------------------- ?> <?php // ------------------ 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>')); // ---------------------- END OF META COMMENTS --------------------- ?> <?php locale_restore_previous(); // Restore previous locale (Blog locale) ?> </article>
$Item->tags(array('before' => '<nav class="small post_tags">', 'after' => '</nav>', 'separator' => ' ')); } ?> <nav class="post_comments_link"> <?php // 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' => '#')); // Link to comments, trackbacks, etc.: $Item->feedback_link(array('type' => 'trackbacks', 'link_before' => ' • ', 'link_after' => '', 'link_text_zero' => '#', 'link_text_one' => '#', 'link_text_more' => '#', 'link_title' => '#')); ?> </nav> </footer> <?php // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ skin_include('_item_feedback.inc.php', array_merge(array('before_section_title' => '<div class="clearfix"></div><h3 class="evo_comment__list_title">', 'after_section_title' => '</h3>'), $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) --------------------- ?> <?php locale_restore_previous(); // Restore previous locale (Blog locale) ?> </article> <?php echo '</div>'; // End of post display