2014-10-05 03:48:16 +03:00
|
|
|
<?php
|
2014-10-12 13:00:46 +03:00
|
|
|
/*
|
|
|
|
* Template Name: Speakers
|
|
|
|
*/
|
|
|
|
|
2014-10-15 17:31:41 +03:00
|
|
|
get_header();
|
|
|
|
|
|
|
|
if ( preg_match('/^(schedule|programa|speakers|halls)/', $pagename) ) {
|
|
|
|
wp_nav_menu( array( 'theme_location' => 'footer-schedule', 'container_class' => 'content subnav cf' ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
2014-10-05 03:48:16 +03:00
|
|
|
<div class="separator"></div>
|
|
|
|
<section class="content grid">
|
|
|
|
<div class="col-left">
|
2014-10-16 10:14:34 +03:00
|
|
|
<h1 class="big"><?php e_('Лектори'); ?></h1>
|
2014-10-12 13:10:24 +03:00
|
|
|
|
|
|
|
<div class="grid members">
|
|
|
|
<?php
|
|
|
|
$speakers_args = array( 'post_type' => 'speakers', 'nopaging' => 'true', 'order' => 'ASC' );
|
|
|
|
$speakers = new WP_Query( $speakers_args );
|
|
|
|
|
|
|
|
if ( $speakers->have_posts() ) :
|
|
|
|
while ( $speakers->have_posts() ) : $speakers->the_post();
|
|
|
|
?>
|
|
|
|
<div class="member col4">
|
|
|
|
|
|
|
|
<a href="#<?php the_title(); ?>">
|
|
|
|
<?php
|
|
|
|
if ( has_post_thumbnail() ) {
|
|
|
|
the_post_thumbnail(array(100, 100));
|
|
|
|
} else {
|
|
|
|
?>
|
|
|
|
<img src="/img/speaker.jpg">
|
|
|
|
<?php
|
|
|
|
}
|
2014-10-16 10:14:34 +03:00
|
|
|
?><br>
|
2014-10-12 13:10:24 +03:00
|
|
|
<?php the_title(); ?>
|
2014-10-15 18:41:11 +03:00
|
|
|
|
2014-10-12 13:10:24 +03:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
endwhile;
|
|
|
|
wp_reset_postdata();
|
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
|
|
|
|
</div>
|
2014-10-19 00:20:55 +03:00
|
|
|
<div class="separator"></div>
|
2014-10-05 03:48:16 +03:00
|
|
|
<?php
|
2014-10-12 13:00:46 +03:00
|
|
|
$speakers_args = array( 'post_type' => 'speakers', 'nopaging' => 'true', 'order' => 'ASC' );
|
2014-10-05 03:48:16 +03:00
|
|
|
$speakers = new WP_Query( $speakers_args );
|
|
|
|
|
|
|
|
if ( $speakers->have_posts() ) :
|
|
|
|
while ( $speakers->have_posts() ) : $speakers->the_post();
|
|
|
|
?>
|
2014-10-12 13:10:24 +03:00
|
|
|
<div class="speaker" id="<?php the_title() ?>">
|
2014-10-05 03:48:16 +03:00
|
|
|
<?php
|
|
|
|
if ( has_post_thumbnail() ) {
|
2014-10-12 13:00:46 +03:00
|
|
|
the_post_thumbnail(array(100, 100));
|
2014-10-05 03:48:16 +03:00
|
|
|
} else {
|
|
|
|
?>
|
2014-10-12 13:00:46 +03:00
|
|
|
<img src="/img/speaker.jpg">
|
2014-10-05 03:48:16 +03:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<h3><?php the_title(); ?></h3>
|
2014-10-15 18:41:11 +03:00
|
|
|
<div class="icons">
|
|
|
|
<?php
|
|
|
|
$custom = get_post_custom();
|
|
|
|
if (!empty($custom['twitter'])) echo '<a href="https://twitter.com/'.$custom['twitter'][0].'"><i class="fa fa-twitter"></i></a>';
|
|
|
|
if (!empty($custom['github'])) echo '<a href="https://github.com/'.$custom['github'][0].'"><i class="fa fa-github"></i></a>';
|
|
|
|
if (!empty($custom['public_email'])) echo '<a href="mailto:'.$custom['public_email'][0].'"><i class="fa fa-envelope"></i></a>';
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
|
2014-10-05 03:48:16 +03:00
|
|
|
<?php
|
|
|
|
the_content();
|
|
|
|
?>
|
|
|
|
</div>
|
2014-10-15 18:41:11 +03:00
|
|
|
<?php
|
2014-10-05 03:48:16 +03:00
|
|
|
endwhile;
|
|
|
|
wp_reset_postdata();
|
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
</div>
|
2014-10-12 13:10:24 +03:00
|
|
|
<?php get_sidebar(); ?>
|
2014-10-05 03:48:16 +03:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<?php get_footer(); ?>
|