This repository has been archived by the owner. It is now read-only.
Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
ucs/page-mediagallery.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
128 lines (100 sloc)
4.44 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template Name: Media Gallery | |
*/ | |
get_header(); ?> | |
<div class="row"> | |
<?php if (is_category()) { $posts = query_posts($query_string . '&orderby=title&order=asc'); } ?> | |
<div class="media-header"> | |
<!-- <h1> | |
<?php the_title(); ?> | |
</h1> --> | |
<span class="media-title"></span> | |
</div> | |
<div class="span12 floatleft"> | |
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | |
<div class="post content clearfix" id="post-<?php the_ID(); ?>"> | |
<div class="media-stage"> | |
<div class="entry"> | |
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> | |
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> | |
</div> | |
</div> | |
</div> | |
<?php endwhile; endif; ?> | |
</div> | |
<div class="row ie7"> | |
<div class="entry"> | |
<div class="span4 floatleft borderRight mediaPhotos"> | |
<h4 class="media-photo-header">Photos</h4> | |
<?php | |
$archive_pages_args = array( | |
'meta_key' => '_wp_page_template', | |
'meta_value' => 'page-media-photos.php' | |
); | |
$archive_pages = get_pages( $archive_pages_args ); | |
?> | |
<ul> | |
<?php | |
foreach ( $archive_pages as $archive_page ) { | |
$page_id = $archive_page->ID; | |
echo '<li class="media-item"><a href="' . get_permalink( $archive_page->ID ) . '" title="'.$page_id.'">'; | |
$profile_image = wp_get_attachment_image_src( get_post_thumbnail_id( $page_id ) ); | |
$src = $profile_image[0]; | |
echo '<img src="'.$src.'"/>' . $archive_page->post_title . ''; | |
echo '<span class="profile-field" id="contact">'.$contact.'</span>'; | |
echo '</a></li>'; | |
} | |
?> | |
</ul> | |
</div> | |
<div class="span4 floatleft noMargLeft borderRight mediaVideos"> | |
<h4 class="media-video-header">Videos</h4> | |
<?php | |
$archive_pages_args = array( | |
'meta_key' => '_wp_page_template', | |
'meta_value' => 'page-media-videos.php' | |
); | |
$archive_pages = get_pages( $archive_pages_args ); | |
?> | |
<ul> | |
<?php | |
foreach ( $archive_pages as $archive_page ) { | |
$page_id = $archive_page->ID; | |
echo '<li class="media-item"><a href="' . get_permalink( $archive_page->ID ) . '" title="'.$page_id.'">'; | |
$profile_image = wp_get_attachment_image_src( get_post_thumbnail_id( $page_id ) ); | |
$src = $profile_image[0]; | |
echo '<img src="'.$src.'"/>' . $archive_page->post_title . ''; | |
echo '<span class="profile-field" id="contact">'.$contact.'</span>'; | |
echo '</a></li>'; | |
} | |
?> | |
</ul> | |
</div> | |
<div class="span4 floatleft noMargLeft mediaAudio"> | |
<h4 class="media-audio-header">Audio</h4> | |
<?php | |
$archive_pages_args = array( | |
'meta_key' => '_wp_page_template', | |
'meta_value' => 'page-media-audio.php' | |
); | |
$archive_pages = get_pages( $archive_pages_args ); | |
?> | |
<ul> | |
<?php | |
foreach ( $archive_pages as $archive_page ) { | |
$page_id = $archive_page->ID; | |
echo '<li class="media-item"><a href="' . get_permalink( $archive_page->ID ) . '" title="'.$page_id.'">'; | |
$profile_image = wp_get_attachment_image_src( get_post_thumbnail_id( $page_id ) ); | |
$src = $profile_image[0]; | |
echo '<img src="'.$src.'"/>' . $archive_page->post_title . ''; | |
echo '<span class="profile-field" id="contact">'.$contact.'</span>'; | |
echo '</a></li>'; | |
} | |
?> | |
</ul> | |
</div> | |
</div> | |
</div> | |
</div> | |
<?php get_footer(); ?> |