/b2evolution/corporatemag/single.main.php
http://laibcomsthemes.googlecode.com/ · PHP · 232 lines · 147 code · 23 blank · 62 comment · 2 complexity · ea3598e37ee5d3c7dfb1aa7efa36eba8 MD5 · raw file
- <?php
- /**
- * This is the main/default page template.
- *
- * For a quick explanation of b2evo 2.0 skins, please start here:
- * {@link http://manual.b2evolution.net/Skins_2.0}
- *
- * The main page template is used to display the blog when no specific page template is available
- * to handle the request (based on $disp).
- *
- * @package evoskins
- * @subpackage corporatemag
- *
- * @version $Id: single.main.php,v 1.10 2008/04/15 21:53:31 fplanque Exp $
- */
- if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
-
- if( version_compare( $app_version, '3.3' ) < 0 )
- { // Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
- die( 'This skin is designed for b2evolution 3.3 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
- }
-
- // This is the main template; it may be used to display very different things.
- // Do inits depending on current $disp:
- skin_init( $disp );
-
-
- // -------------------------- HTML HEADER INCLUDED HERE --------------------------
- skin_include( '_html_header.inc.php' );
- // Note: You can customize the default HTML header by copying the generic
- // /skins/_html_header.inc.php file into the current skin folder.
- // -------------------------------- END OF HEADER --------------------------------
- ?>
-
-
- <?php
- // ------------------------- BODY HEADER INCLUDED HERE --------------------------
- skin_include( '_body_header.inc.php' );
- // Note: You can customize the default BODY header by copying the generic
- // /skins/_body_footer.inc.php file into the current skin folder.
- // ------------------------------- END OF HEADER --------------------------------
- ?>
-
- <div id="container">
- <div id="content">
- <?php
- // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
- messages( array(
- 'block_start' => '<div class="action_messages">',
- 'block_end' => '</div> <!-- end of class="action_messages" -->',
- ) );
- // --------------------------------- END OF MESSAGES ---------------------------------
- ?>
-
- <?php
- // Display message if no post:
- display_if_empty();
-
- while( $Item = & mainlist_get_item() )
- { // For each blog post, do everything below up to the closing curly brace "}"
- ?>
- <div id="<?php $Item->anchor_id() ?>" class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>">
-
- <?php
- $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
- ?>
-
- <h3 class="title"><?php $Item->title(); ?></h3>
-
- <div class="meta">
- <?php
- $Item->author( array(
- 'before' => T_('<span class="text">By</span> '),' ',
- 'after' => ' ',
- ) );
- $Item->issue_time( array(
- 'before' => /* TRANS: date */ T_('<span class="text">on</span> '),
- 'after' => ' ',
- 'time_format' => 'F j, Y'.'',
- ) );
- $Item->edit_link( array( // Link to backoffice for editing
- 'before' => ' <span class="separator">|</span> <span class="edit">',
- 'after' => '</span> ',
- ) );
- ?>
- </div><!-- end of class="meta" -->
-
- <div class="entry">
- <?php
- // ---------------------- POST CONTENT INCLUDED HERE ----------------------
- skin_include( '_item_content.inc.php', array(
- 'image_size' => 'fit-400x320',
- ) );
- // 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 POST CONTENT -------------------------
- ?>
- </div><!-- end of class="entry" -->
-
- <p class="entry-meta post-meta-data">
- <span class="categories">
- <?php
- $Item->categories( array(
- 'before' => T_('<span class="text">Posted in '),
- 'after' => '</span> ',
- 'include_main' => true,
- 'include_other' => true,
- 'include_external'=> true,
- 'link_categories' => true,
- ) );
- ?>
- </span>
- <?php
- // Link to comments, trackbacks, etc.:
- $Item->feedback_link( array(
- 'type' => 'feedbacks',
- 'link_before' => ' <span class="separator">|</span> <span class="comments-link">',
- 'link_after' => '</span>',
- 'link_text_zero' => '#',
- 'link_text_one' => '#',
- 'link_text_more' => '#',
- 'link_title' => '#',
- 'use_popup' => false,
- ) );
- ?>
- <br/>
- <span class="categories">
- <?php
- // List all tags attached to this post:
- $Item->tags( array(
- 'before' => '<span class="text">'.T_('Tags').': ',
- 'after' => '</span>',
- 'separator' => ', ',
- ) );
- ?>
- </span>
- </p>
-
- <?php
- // Display container and contents:
- skin_container( NT_('Post Loop'), array(
- // The following (optional) params will be used as defaults for widgets included in this container:
- // This will enclose each widget in a block:
- 'block_start' => '<li id="$wi_ID$" class="widget $wi_class$">',
- 'block_end' => '</li>',
- //
- 'block_display_title' => true,
- // This will enclose the title of each widget:
- 'block_title_start' => '<h4 class="widget-title">',
- 'block_title_end' => '</h4>',
- // This will enclose the content of the widget:
- 'block_content_start' => '<div class="widget-content">',
- 'block_content_end' => '</div> <!-- end of class="widget-content" -->',
- // If a widget displays a list, this will enclose that list:
- 'list_start' => '<ul>',
- 'list_end' => '</ul>',
- // This will enclose each item in a list:
- 'item_start' => '<li>',
- 'item_end' => '</li>',
- //
- 'link_default_class' => 'default',
- // This will enclose sub-lists in a list:
- 'group_start' => '<ul>',
- 'group_end' => '</ul>',
- // This will enclose (foot)notes:
- 'notes_start' => '<div class="notes">',
- 'notes_end' => '</div> <!-- end of class="notes" -->',
- ) );
- ?>
-
- <div class="space"></div>
- </div>
-
- <br/>
- <?php
- // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
- skin_include( '_item_feedback.inc.php', array(
- 'before_section_title' => '<h3 id="comments">',
- 'after_section_title' => '</h3>',
- 'form_title_start' => '<h3 class="comment_form_title">',
- 'form_title_end' => '</h3>',
- ) );
- // 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)
- }
- ?>
-
- <br/><br/>
- <div class="space"></div>
- <?php
- // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
- item_prevnext_links( array(
- 'block_start' => '<div id="post-nav">',
- 'prev_start' => '<div id="nav-prev-post">',
- 'prev_end' => '</div>',
- 'next_start' => '<div id="nav-next-post">',
- 'next_end' => '</div>',
- 'block_end' => '<div class="clear"></div></div> <!-- end of id="post-nav" -->',
- ) );
- // ------------------------- END OF PREV/NEXT POST LINKS -------------------------
- ?>
-
- </div> <!-- end of id="content" -->
-
- <?php
- // ------------------------- SIDEBAR INCLUDED HERE --------------------------
- skin_include( '_sidebar_right.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 -----------------------------
- ?>
-
- <?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 --------------------------------
- ?>
-
- <?php
- // ------------------------- 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 --------------------------------
- ?>