Permalink
Browse files

Update page-britney-dance-series.php

Added videos.
  • Loading branch information...
1 parent 42f6f93 commit 492c5dcb38de051c234278a32683712944c5310f @jayfresh committed Mar 25, 2013
Showing with 52 additions and 1 deletion.
  1. +52 −1 themes/sos/page-britney-dance-series.php
View
53 themes/sos/page-britney-dance-series.php
@@ -1 +1,52 @@
-content
+<?php
+/* for Britney dance series page */
+get_header();
+?>
+ <div class="contentPage">
+ <?php if ( have_posts() ) :
+ while ( have_posts() ) : the_post(); ?>
+ <div class="contentColumn left">
+ <h1><?php the_title(); ?></h1>
+ <?php the_content(); ?>
+ </div>
+ <div class="eventbox plainbox left">
+ <div class="carouselContainer eventImageContainer">
+ <?php
+ $size = 'content-page';
+ if($images = get_children(array(
+ 'post_parent' => get_the_ID(),
+ 'post_type' => 'attachment',
+ 'numberposts' => -1, // show all
+ 'post_status' => null,
+ 'post_mime_type' => 'image',
+ 'order' => 'ASC',
+ 'orderby' => 'menu_order',
+ ))) { ?>
+ <ul class="carousel">
+ <li>
+ <iframe width="610" height="343" src="http://www.youtube.com/embed/Mzybwwf2HoQ?rel=0" frameborder="0" allowfullscreen></iframe>
+ </li>
+ <li>
+ <iframe width="610" height="343" src="http://www.youtube.com/embed/C-u5WLJ9Yk4?rel=0" frameborder="0" allowfullscreen></iframe>
+ </li>
+ <li>
+ <iframe width="610" height="343" src="http://www.youtube.com/embed/CduA0TULnow?rel=0" frameborder="0" allowfullscreen></iframe>
+ </li>
+ <li>
+ <iframe width="610" height="343" src="http://www.youtube.com/embed/LOZuxwVk7TU?rel=0" frameborder="0" allowfullscreen></iframe>
+ </li>
+ <?php foreach($images as $image) {
+ $attsrc = wp_get_attachment_image_src($image->ID, $size);
+ $atttitle = apply_filters('the_title',$image->post_title); ?>
+ <li><img alt="<?php echo $atttitle; ?>" src="<?php echo $attsrc[0]; ?>"></li>
+ <?php } ?>
+ </ul>
+ <?php } ?>
+ </div>
+ </div>
+ <?php endwhile;
+ endif; ?>
+ </div>
+<?php
+get_footer();
+?>

0 comments on commit 492c5dc

Please sign in to comment.