-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtemplate-sessions.php
49 lines (44 loc) · 1.38 KB
/
template-sessions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* @deprecated (template name was Sessions)
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package WCBS
* @since WCBS 1.0
*/
$sessions = wcb_session_query();
get_header(); ?>
<div id="primary" class="site-content">
<div id="content" role="main">
<div class="callout lead"><?php
if ( have_posts() ):
the_post();
the_content();
endif; ?>
</div>
<div class="cpt-loop sessions"><?php
while ( wcb_have_sessions() ):
wcb_the_session();
?>
<div id="post-<?php the_ID(); ?>" <?php post_class( 'session' ); ?>>
<h3 class="entry-title session-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wordcampbase' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<div class="entry-meta session-speakers">
<?php wcb_entry_meta(); ?>
</div>
<div class="entry-content session-description"><?php
if ( has_post_thumbnail() )
the_post_thumbnail();
the_content(); ?>
</div>
</div>
<?php
endwhile; ?>
</div><!-- .cpt-loop -->
</div><!-- #content -->
</div><!-- #primary .site-content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>