/** * wcb_the_session() * * Loads up the current session in the loop. * * @return object WordCamp information */ function wcb_the_session() { $query = wcb_session_query(); return $query->the_post(); }
<?php /** * @deprecated (template name was Sessions) * * A custom page template that provides a list of sessions. */ $structure = wcb_get('structure'); $structure->full_width_content(); $sessions = wcb_session_query(); wcb_suppress_sharing(); get_header(); ?> <div id="container"> <div id="content" role="main"> <div class="callout lead"><?php if (have_posts()) { the_post(); the_content(); } ?> </div> <div class="cpt-loop sessions"><?php $half_id = wcb_optimal_column_split($sessions, 200); // Open the first column echo '<div class="grid_6 alpha">'; while (wcb_have_sessions()) { wcb_the_session(); // Close the first column, open the second.