Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding beyonce page

  • Loading branch information...
commit 8997da3a31a07eddd99742216ea4c2d3df3b25c4 1 parent 272b7c6
@jayfresh authored
Showing with 58 additions and 0 deletions.
  1. +58 −0 themes/sos/page-beyonce-dance-series.php
View
58 themes/sos/page-beyonce-dance-series.php
@@ -0,0 +1,58 @@
+<?php
+/* for Classes 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/VBmMU_iwe6U?rel=0" frameborder="0" allowfullscreen></iframe>
+ </li>
+ <li>
+ <iframe width="610" height="343" src="http://www.youtube.com/embed/ArDXxTsJJoo?rel=0" frameborder="0" allowfullscreen></iframe>
+ </li>
+ <li>
+ <iframe width="610" height="343" src="http://www.youtube.com/embed/Ob7vObnFUJc?rel=0" frameborder="0" allowfullscreen></iframe>
+ </li>
+ <li>
+ <iframe width="610" height="343" src="http://www.youtube.com/embed/PGc9n6BiWXA?rel=0" frameborder="0" allowfullscreen></iframe>
+ </li>
+ <li>
+ <iframe width="610" height="343" src="http://www.youtube.com/embed/4m1EFMoRFvY?rel=0" frameborder="0" allowfullscreen></iframe>
+ </li>
+ <li>
+ <iframe width="610" height="343" src="http://www.youtube.com/embed/ViwtNLUqkMY?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();
+?>
Please sign in to comment.
Something went wrong with that request. Please try again.