/b2evolution/corporatemag/posts.main.php
http://laibcomsthemes.googlecode.com/ · PHP · 333 lines · 179 code · 24 blank · 130 comment · 2 complexity · fbd8fa9a0df44d29525b53249fcf6625 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: posts.main.php,v 1.10 2009/01/21 20:33:49 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="top-container">
-
- <?php /*----------------------- FEATURED POST GLIDE -----------------------*/ ?>
- <?php /*
- if ($corporatemag->option['featuredCat'] != '' && $corporatemag->option['featuredCat'] != 'Select a category:' && $corporatemag->option['featuredNum'] != '0' && $corporatemag->option['featuredNum'] !=''):
- $glidecat = $corporatemag->option['featuredCat'];
- $glidecount = $corporatemag->option['featuredNum'];
- $my_query = new WP_Query('category_name= '. $glidecat .'&showposts= '. $glidecount);
- if ($my_query->have_posts()):
- */ ?>
- <? /*
- <script type="text/javascript">
- featuredcontentglider.init({
- gliderid: "featured-posts",
- contentclass: "post",
- togglerid: "togglebox",
- remotecontent: "",
- selected: 1,
- persiststate: true,
- speed: 300,
- direction: "leftright",
- autorotate: true,
- autorotateconfig: [10000, 9999] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
- })
- </script>
- */ ?>
- <div id="featured-posts-wrapper">
- <div id="featured-posts" class="glidecontentwrapper">
- <?php /* while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; ?>
- <div class="post">
- <h2 class="title"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
- <div class="entry">
- <p><?php the_content_rss('', TRUE, '', 140); ?></p>
- <a class="more-link" href="<?php the_permalink() ?>" title="Read More <?php the_title(); ?>"><span>Read More...</span></a>
- </div>
- </div>
- <?php endwhile; */ ?>
- </div>
- <div id="togglebox" class="glidecontenttoggler">
- <a href="<?php $Blog->disp('url') ?>#" class="prev"></a>
- <a href="<?php $Blog->disp('url') ?>#" class="next"></a>
- <div class="clear"></div>
- </div>
- <div class="clear"></div>
- </div><!-- /featured-posts-wrapper -->
- <?php /* endif; endif; */ ?>
- <?php /*----------------------- FEATURED POST GLIDE -----------------------*/ ?>
-
- <?php /*----------------------- TAB -----------------------*/ ?>
- <div id="tab-content">
- <ul class="tabnav">
- <li><a href="<?php $Blog->disp('url') ?>#recent-entries">Recent Entries</a></li>
- <li><a href="<?php $Blog->disp('url') ?>#recent-comments">Recent Comments</a></li>
- <li class="last"><a href="<?php $Blog->disp('url') ?>#archives">Archives</a></li>
- </ul>
-
- <div id="recent-entries" class="tabdiv">
- <ul>
- <?php
- // ------------------------- "Sidebar" CONTAINER EMBEDDED HERE --------------------------
- // Display container contents:
- skin_container( NT_('Tab-1'), 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="$wi_class$">',
- 'block_end' => '</li>',
- // Turn On or Off the display of block titles
- 'block_display_title' => false,
- // This will enclose the title of each widget:
- 'block_title_start' => '',
- 'block_title_end' => '',
- // 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>',
- // This will enclose sub-lists in a list:
- 'group_start' => '<ul>',
- 'group_end' => '</ul>',
- // This will enclose (foot)notes:
- 'notes_start' => '</div><div class="notes">',
- 'notes_end' => '</div> <!-- end of class="notes" -->',
- ) );
- // ----------------------------- END OF "Sidebar" CONTAINER -----------------------------
- ?>
- </ul>
- </div><!--/recent-entries-->
-
- <div id="recent-comments" class="tabdiv">
- <ul>
- <?php
- // ------------------------- "Sidebar" CONTAINER EMBEDDED HERE --------------------------
- // Display container contents:
- skin_container( NT_('Tab-2'), 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="$wi_class$">',
- 'block_end' => '</li>',
- // Turn On or Off the display of block titles
- 'block_display_title' => false,
- // This will enclose the title of each widget:
- 'block_title_start' => '',
- 'block_title_end' => '',
- // 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>',
- // This will enclose sub-lists in a list:
- 'group_start' => '<ul>',
- 'group_end' => '</ul>',
- // This will enclose (foot)notes:
- 'notes_start' => '</div><div class="notes">',
- 'notes_end' => '</div> <!-- end of class="notes" -->',
- ) );
- // ----------------------------- END OF "Sidebar" CONTAINER -----------------------------
- ?>
- </ul>
- </div><!--/recent-comments-->
-
- <div id="archives" class="tabdiv">
- <ul>
- <?php
- // ------------------------- "Sidebar" CONTAINER EMBEDDED HERE --------------------------
- // Display container contents:
- skin_container( NT_('Tab-3'), 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="$wi_class$">',
- 'block_end' => '</li>',
- // Turn On or Off the display of block titles
- 'block_display_title' => false,
- // This will enclose the title of each widget:
- 'block_title_start' => '',
- 'block_title_end' => '',
- // 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>',
- // This will enclose sub-lists in a list:
- 'group_start' => '<ul>',
- 'group_end' => '</ul>',
- // This will enclose (foot)notes:
- 'notes_start' => '</div><div class="notes">',
- 'notes_end' => '</div> <!-- end of class="notes" -->',
- ) );
- // ----------------------------- END OF "Sidebar" CONTAINER -----------------------------
- ?>
- </ul>
- </div><!-- /archives -->
- <div class="clear"></div>
- </div><!-- /tab-content -->
- <?php /*----------------------- TAB -----------------------*/ ?>
-
- <div class="clear"></div>
- </div><!-- end of id="top-container" -->
- <?php /*----------------------- POST with IMAGE SLIDE -----------------------*/ ?>
- <?php /*
- if($corporatemag->option['slideCat'] !='Select a category:' && $corporatemag->option['slideCat'] !='' && $corporatemag->option['slideNum'] != 0 && $corporatemag->option['slideNum'] !=''):
- $slidecat = $corporatemag->option['slideCat'];
- $slidecount = $corporatemag->option['slideNum'];
- $my_query = new WP_Query('category_name= '. $slidecat .'&showposts='.$slidecount.'');
- if($my_query->have_posts()):
- */ ?>
- <?php /*
- <script type="text/javascript">
- stepcarousel.setup({
- galleryid: 'mygallery', //id of carousel DIV
- beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
- panelclass: 'panel', //class of panel DIVs each holding content
- panelbehavior: {speed:500, wraparound:true, persist:true},
- defaultbuttons: {enable: true, moveby: 4, leftnav: ['<?php bloginfo('template_directory'); ?>/img/sliding-prev-button.gif', -25, 78, 'slide-prev-nav'], rightnav: ['<?php bloginfo('template_directory'); ?>/img/sliding-next-button.gif', 15, 78, 'slide-next-nav']},
- statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
- contenttype: ['external'] //content setting ['inline'] or ['external', 'path_to_external_file']
- })
- </script>
- */ ?>
- <?php /*
- <div id="mygallery" class="stepcarousel">
- <div class="belt">
- */ ?>
- <?php /* while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; ?>
- <div class="panel">
- <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" > <img src="<?php echo get_post_meta($post->ID,'thumbnail', true); ?>" width="200" height="156" alt="<?php the_title(); ?>"/> </a>
- </div>
- <?php endwhile; */ ?>
- <?php /*
- </div>
- */ ?>
- </div><!-- /mygallery -->
- <?php /* endif; endif; */ ?>
- <?php /*----------------------- POST with IMAGE SLIDE -----------------------*/ ?>
-
- <div id="content">
- <?php
- // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
- request_title( array(
- 'title_before'=> '<h2 class="sectionhead">',
- 'title_after' => '</h2>',
- 'title_none' => '',
- 'glue' => ' - ',
- 'title_single_disp' => true,
- 'format' => 'htmlbody',
- ) );
- // ------------------------------ END OF REQUEST TITLE -----------------------------
- ?>
- <?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:
- // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
- skin_include( '_item_block.inc.php', array(
- 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail
- '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 ITEM BLOCK ----------------------------
- }
- ?>
-
- <div class="clear"></div>
-
- <div id="post-nav">
- <?php
- // -------------------- PREV PAGE LINK --------------------
- mainlist_page_links( array(
- 'block_start' => '<div id="nav-prev-post">',
- 'block_end' => '</div>',
- 'block_single' => '',
- 'links_format' => '$prev$',
- 'prev_text' => '« Prev',
- ) );
- // ------------------------- END OF PREV PAGE LINK -------------------------
-
- // -------------------- NEXT PAGE LINK --------------------
- mainlist_page_links( array(
- 'block_start' => '<div id="nav-next-post">',
- 'block_end' => '</div>',
- 'block_single' => '',
- 'links_format' => '$next$',
- 'next_text' => 'Next »',
- ) );
- // ------------------------- END OF NEXT PAGE LINK -------------------------
- ?>
-
- <div class="clear"></div>
- </div><!-- end of id="post-nav" -->
-
- </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 --------------------------------
- ?>