Browse Source

sundance ULC film

windhamdavid 3 years ago
parent
commit
9ff1b4e6c5

+ 11 - 3
archive.php

@@ -14,8 +14,15 @@
 								printf( __( 'Tag Archives: %s', '_s' ), '<span>' . single_tag_title( '', false ) . '</span>' );
 
 							} elseif ( is_author() ) {
+								/* Queue the first post, that way we know
+								 * what author we're dealing with (if that is the case).
+								*/
 								the_post();
 								printf( __( 'Author Archives: %s', '_s' ), '<span class="vcard"><a class="url fn n" href="' . get_author_posts_url( get_the_author_meta( "ID" ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
+								/* Since we called the_post() above, we need to
+								 * rewind the loop back to the beginning that way
+								 * we can run the loop properly, in full.
+								 */
 								rewind_posts();
 
 							} elseif ( is_day() ) {
@@ -36,6 +43,7 @@
 				</header>
 				<?php rewind_posts(); ?>
 
+				<?php /* Start the Loop */ ?>
 				<?php while ( have_posts() ) : the_post(); ?>
 					<?php get_template_part( 'content', get_post_format() );?>
 				<?php endwhile; ?>
@@ -43,12 +51,12 @@
 				<article id="post-0" class="post no-results not-found">
 					<header class="entry-header">
 						<h1 class="entry-title"><?php _e( 'Nothing Found', '_s' ); ?></h1>
-					</header>
+					</header><!-- .entry-header -->
 					<div class="entry-content">
 						<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', '_s' ); ?></p>
 						<?php get_search_form(); ?>
-					</div>
-				</article>
+					</div><!-- .entry-content -->
+				</article><!-- #post-0 -->
 			<?php endif; ?>
 			</div>
 		</div>

+ 58 - 17
comments.php

@@ -1,35 +1,76 @@
-<div id="comments" class="comments-area">
+<?php
+/**
+ * The template for displaying Comments.
+ *
+ * The area of the page that contains both current comments
+ * and the comment form. The actual display of comments is
+ * handled by a callback to _s_comment() which is
+ * located in the functions.php file.
+ *
+ * @package _s
+ * @since _s 1.0
+ */
+?>
+	<div id="comments" class="comments-area">
 	<?php if ( post_password_required() ) : ?>
-		<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', '_ph' ); ?></p>
-	</div>
-	<?php return; endif; ?>
+		<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', '_s' ); ?></p>
+	</div><!-- #comments .comments-area -->
+	<?php
+			/* Stop the rest of comments.php from being processed,
+			 * but don't kill the script entirely -- we still have
+			 * to fully load the template.
+			 */
+			return;
+		endif;
+	?>
+
+	<?php // You can start editing here -- including this comment! ?>
+
 	<?php if ( have_comments() ) : ?>
 		<h2 class="comments-title">
 			<?php
-				printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), '_ph' ),
+				printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), '_s' ),
 					number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
 			?>
 		</h2>
+
 		<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
 		<nav role="navigation" id="comment-nav-above" class="site-navigation comment-navigation">
-			<h1 class="assistive-text"><?php _e( 'Comment navigation', '_ph' ); ?></h1>
-			<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', '_ph' ) ); ?></div>
-			<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', '_ph' ) ); ?></div>
+			<h1 class="assistive-text"><?php _e( 'Comment navigation', '_s' ); ?></h1>
+			<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', '_s' ) ); ?></div>
+			<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', '_s' ) ); ?></div>
 		</nav>
-		<?php endif;?>
+		<?php endif; // check for comment navigation ?>
+
 		<ol class="commentlist">
-			<?php wp_list_comments( array( 'callback' => '_s_comment' ) ); ?>
+			<?php
+				/* Loop through and list the comments. Tell wp_list_comments()
+				 * to use _s_comment() to format the comments.
+				 * If you want to overload this in a child theme then you can
+				 * define _s_comment() and that will be used instead.
+				 * See _s_comment() in functions.php for more.
+				 */
+				wp_list_comments( array( 'callback' => '_s_comment' ) );
+			?>
 		</ol>
+
 		<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
 		<nav role="navigation" id="comment-nav-below" class="site-navigation comment-navigation">
 			<h1 class="assistive-text"><?php _e( 'Comment navigation', '_s' ); ?></h1>
-			<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', '_ph' ) ); ?></div>
-			<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', '_ph' ) ); ?></div>
+			<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', '_s' ) ); ?></div>
+			<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', '_s' ) ); ?></div>
 		</nav>
-		<?php endif; ?>	
-	<?php endif; ?>
-	<?php if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
-		<p class="nocomments"><?php _e( 'Comments are closed.', '_ph' ); ?></p>
+		<?php endif; // check for comment navigation ?>
+
+	<?php endif; // have_comments() ?>
+
+	<?php
+		// If comments are closed and there are no comments, let's leave a little note, shall we?
+		if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
+	?>
+		<p class="nocomments"><?php _e( 'Comments are closed.', '_s' ); ?></p>
 	<?php endif; ?>
+
 	<?php comment_form(); ?>
-</div>
+
+</div><!-- #comments .comments-area -->

+ 20 - 0
content-page.php

@@ -0,0 +1,20 @@
+<?php
+/**
+ * The template used for displaying page content in page.php
+ *
+ * @package _s
+ * @since _s 1.0
+ */
+?>
+
+<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+	<header class="entry-header">
+		<h1 class="entry-title"><?php the_title(); ?></h1>
+	</header><!-- .entry-header -->
+
+	<div class="entry-content">
+		<?php the_content(); ?>
+		<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
+		<?php edit_post_link( __( 'Edit', '_s' ), '<span class="edit-link">', '</span>' ); ?>
+	</div><!-- .entry-content -->
+</article><!-- #post-<?php the_ID(); ?> -->

+ 22 - 0
content-single.php

@@ -0,0 +1,22 @@
+<?php ?>
+
+<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+	<header class="entry-header">
+		<h1 class="entry-title"><?php the_title(); ?></h1>
+
+		<div class="entry-meta">
+			<?php _ph_posted_on(); ?>
+		</div><!-- .entry-meta -->
+	</header><!-- .entry-header -->
+
+	<div class="entry-content">
+		<?php the_content(); ?>
+		<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
+	</div><!-- .entry-content -->
+
+	<footer class="entry-meta">
+
+
+		<?php edit_post_link( __( 'Edit', '_s' ), '<span class="edit-link">', '</span>' ); ?>
+	</footer><!-- .entry-meta -->
+</article><!-- #post-<?php the_ID(); ?> -->

+ 13 - 9
content.php

@@ -1,28 +1,31 @@
 <?php ?>
+
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 	<header class="entry-header">
 		<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', '_ph' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
+
 		<?php if ( 'post' == get_post_type() ) : ?>
 		<div class="entry-meta">
 			<?php _ph_posted_on(); ?>
-		</div>
+		</div><!-- .entry-meta -->
 		<?php endif; ?>
-	</header>
+	</header><!-- .entry-header -->
 
-	<?php if ( is_search() ) : ?>
+	<?php if ( is_search() ) : // Only display Excerpts for Search ?>
 	<div class="entry-summary">
 		<?php the_excerpt(); ?>
-	</div>
+	</div><!-- .entry-summary -->
 	<?php else : ?>
 	<div class="entry-content">
 		<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', '_ph' ) ); ?>
 		<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_ph' ), 'after' => '</div>' ) ); ?>
-	</div>
+	</div><!-- .entry-content -->
 	<?php endif; ?>
 
 	<footer class="entry-meta">
 		<?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
 			<?php
+				/* translators: used between list items, there is a space after the comma */
 				$categories_list = get_the_category_list( __( ', ', '_ph' ) );
 				if ( $categories_list && _ph_categorized_blog() ) :
 			?>
@@ -33,6 +36,7 @@
 			<?php endif; // End if categories ?>
 
 			<?php
+				/* translators: used between list items, there is a space after the comma */
 				$tags_list = get_the_tag_list( '', __( ', ', '_ph' ) );
 				if ( $tags_list ) :
 			?>
@@ -40,8 +44,8 @@
 				<?php printf( __( 'Tagged %1$s', '_ph' ), $tags_list ); ?>
 			</span>
 			<span class="sep"> | </span>
-			<?php endif; ?>
-		<?php endif; ?>
+			<?php endif; // End if $tags_list ?>
+		<?php endif; // End if 'post' == get_post_type() ?>
 
 		<?php if ( comments_open() || ( '0' != get_comments_number() && ! comments_open() ) ) : ?>
 		<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', '_ph' ), __( '1 Comment', '_ph' ), __( '% Comments', '_ph' ) ); ?></span>
@@ -49,5 +53,5 @@
 		<?php endif; ?>
 
 		<?php edit_post_link( __( 'Edit', '_ph' ), '<span class="edit-link">', '</span>' ); ?>
-	</footer>
-</article>
+	</footer><!-- #entry-meta -->
+</article><!-- #post-<?php the_ID(); ?> -->

File diff suppressed because it is too large
+ 1092 - 0
css/bootstrap-responsive.css


File diff suppressed because it is too large
+ 9 - 0
css/bootstrap-responsive.min.css


File diff suppressed because it is too large
+ 6039 - 0
css/bootstrap.css


File diff suppressed because it is too large
+ 9 - 0
css/bootstrap.min.css


+ 27 - 0
css/content-sidebar-sidebar.css

@@ -0,0 +1,27 @@
+/*
+Theme Name: _s
+Layout: Content-Sidebar-Sidebar
+*/
+
+.site-content {
+	float: left;
+	width: 100%;
+}
+#content {
+	margin: 0 40% 0 0;
+}
+#main .widget-area {
+	float: left;
+	overflow: hidden;
+	width: 20%;
+}
+#secondary { /* Sidebar 1 */
+	margin: 0 0 0 -40%;
+}
+#tertiary { /* Sidebar 2 */
+	margin: 0 0 0 -20%;
+}
+.site-footer {
+	clear: both;
+	width: 100%;
+}

+ 25 - 0
css/content-sidebar.css

@@ -0,0 +1,25 @@
+/*
+Theme Name: _s
+Layout: Content-Sidebar
+*/
+
+.site-content {
+	float: left;
+	margin: 0 -25% 0 0;
+	width: 100%;
+}
+#content {
+	margin: 0 25% 0 0;
+}
+#secondary { /* Sidebar 1 */
+	float: right;
+	overflow: hidden;
+	width: 25%;
+}
+#tertiary { /* Sidebar 2 */
+	clear: right;
+}
+.site-footer {
+	clear: both;
+	width: 100%;
+}

+ 27 - 0
css/sidebar-content-sidebar.css

@@ -0,0 +1,27 @@
+/*
+Theme Name: _s
+Layout: Sidebar-Content-Sidebar
+*/
+
+.site-content {
+	float: left;
+	width: 100%;
+}
+#content {
+	margin: 0 20%;
+}
+#main .widget-area {
+	float: left;
+	overflow: hidden;
+	width: 20%;
+}
+#secondary { /* Sidebar 1 */
+	margin: 0 0 0 -100%;
+}
+#tertiary { /* Sidebar 2 */
+	margin: 0 0 0 -20%;
+}
+.site-footer {
+	clear: both;
+	width: 100%;
+}

+ 25 - 0
css/sidebar-content.css

@@ -0,0 +1,25 @@
+/*
+Theme Name: _s
+Layout: Sidebar-Content
+*/
+
+.site-content {
+	float: right;
+	margin: 0 0 0 -25%;
+	width: 100%;
+}
+#content {
+	margin: 0 0 0 25%;
+}
+#secondary { /* Sidebar 1 */
+	float: left;
+	overflow: hidden;
+	width: 25%;
+}
+#tertiary { /* Sidebar 2 */
+	clear: left;
+}
+.site-footer {
+	clear: both;
+	width: 100%;
+}

+ 22 - 0
css/sidebar-sidebar-content.css

@@ -0,0 +1,22 @@
+/*
+Theme Name: _s
+Layout: Sidebar-Sidebar-Content
+*/
+
+.site-content {
+	float: right;
+	margin: 0 0 0 -40%;
+	width: 100%;
+}
+#content {
+	margin: 0 0 0 40%;
+}
+#main .widget-area {
+	float: left;
+	overflow: hidden;
+	width: 20%;
+}
+.site-footer {
+	clear: both;
+	width: 100%;
+}

+ 56 - 56
footer.php

@@ -1,57 +1,57 @@
-<?php ?>
-
-<div id="footer-wrap">
-<footer>
-	<div class="container">
-		<div class="row">
-			<div class="fourcol">
-				<div class="info">
-					<p>262 West 91st Street New York, NY 10024</p>
-					<p><a href="<?php echo home_url( '/' ); ?>contact">Contact</a> | <a href="">info@phfilms.com</a></p>	
-					<a href="<?php echo home_url( '/' ); ?>"><img class="logo" src="<?php echo get_template_directory_uri(); ?>/img/camera.png" width="120" alt="PENNEBAKER HEGEDUS FILMS" title="PENNEBAKER HEGEDUS FILMS"/></a>
-				</div>
-			</div>
-			<div class="twocol">
-
-			</div>
-			<div class="sixcol last">
-				<div class="social">
-					<p class="symbol">
-						&nbsp; <a href="http://vimeo.com/phfilms" title="Vimeo" class="tooltip" target="_blank"><span class="vimeo">&nbsp;</span></a> 
-						&nbsp; <a href="http://www.youtube.com/user/PennebakerHegedus" title="YouTube" class="tooltip" target="_blank"><span class="yt">&nbsp;</span></a> 
-						&nbsp; <a href="http://gowatchit.com/director/D-A--Pennebaker" title="GoWatchIt" class="tooltip" target="_blank"><span class="gowatch">&nbsp;</span></a>  
-						&nbsp; <a href="http://www.facebook.com/PHFilms" title="Facebook" class="tooltip" target="_blank"><span class="fb">&nbsp;</span></a> 
-						&nbsp; <a href="http://twitter.com/#!/phfilms" title="Twitter" class="tooltip" target="_blank"><span class="twit">&nbsp;</span></a> 
-						&nbsp; <a href="http://pennebakerhegedusfilms.tumblr.com/" title="Tumblr" class="tooltip" target="_blank"><span class="tumblr">&nbsp;</span></a>
-					</p>
-				</div>
-			</div>
-		</div>
-	</div>
-</footer>
-</div>
-
-<script src="<?php echo get_template_directory_uri(); ?>/js/libs/jquery-1.8.3.min.js"></script>
-<script>window.jQuery || document.write("<script src='<?php echo get_template_directory_uri(); ?>/js/libs/jquery-1.8.3.min.js'>\x3C/script>")</script>
-<script src="<?php echo get_template_directory_uri(); ?>/js/scripts.js"></script>
-<script src="<?php echo get_template_directory_uri(); ?>/js/init.js"></script>
-<script src="<?php echo get_template_directory_uri(); ?>/js/minicart.js"></script>
-<script>PAYPAL.apps.MiniCart.render();</script>
-<script type="text/javascript">
-  var _gaq = _gaq || [];
-  _gaq.push(['_setAccount', 'UA-1906067-30']);
-  _gaq.push(['_trackPageview']);
-
-  (function() {
-    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
-    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
-    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
-  })();
-</script>
-<!--[if lt IE 7 ]>
-  <script src="js/libs/dd_belatedpng.js"></script>
-  <script>DD_belatedPNG.fix("img, .png_bg");</script>
-<![endif]-->
-<?php wp_footer(); ?>
-</body>
+<?php ?>
+
+<div id="footer-wrap">
+<footer>
+	<div class="container">
+		<div class="row">
+			<div class="fourcol">
+				<div class="info">
+					<p>262 West 91st Street New York, NY 10024</p>
+					<p><a href="<?php echo home_url( '/' ); ?>contact">Contact</a> | <a href="">info@phfilms.com</a></p>	
+					<a href="<?php echo home_url( '/' ); ?>"><img class="logo" src="<?php echo get_template_directory_uri(); ?>/img/camera.png" width="120" alt="PENNEBAKER HEGEDUS FILMS" title="PENNEBAKER HEGEDUS FILMS"/></a>
+				</div>
+			</div>
+			<div class="twocol">
+
+			</div>
+			<div class="sixcol last">
+				<div class="social">
+					<p class="symbol">
+						&nbsp; <a href="http://vimeo.com/phfilms" title="Vimeo" class="tooltip" target="_blank"><span class="vimeo">&nbsp;</span></a> 
+						&nbsp; <a href="http://www.youtube.com/user/PennebakerHegedus" title="YouTube" class="tooltip" target="_blank"><span class="yt">&nbsp;</span></a> 
+						&nbsp; <a href="http://gowatchit.com/director/D-A--Pennebaker" title="GoWatchIt" class="tooltip" target="_blank"><span class="gowatch">&nbsp;</span></a>  
+						&nbsp; <a href="http://www.facebook.com/PHFilms" title="Facebook" class="tooltip" target="_blank"><span class="fb">&nbsp;</span></a> 
+						&nbsp; <a href="http://twitter.com/#!/phfilms" title="Twitter" class="tooltip" target="_blank"><span class="twit">&nbsp;</span></a> 
+						&nbsp; <a href="http://pennebakerhegedusfilms.tumblr.com/" title="Tumblr" class="tooltip" target="_blank"><span class="tumblr">&nbsp;</span></a>
+					</p>
+				</div>
+			</div>
+		</div>
+	</div>
+</footer>
+</div>
+
+<script src="<?php echo get_template_directory_uri(); ?>/js/libs/jquery-1.8.3.min.js"></script>
+<script>window.jQuery || document.write("<script src='<?php echo get_template_directory_uri(); ?>/js/libs/jquery-1.8.3.min.js'>\x3C/script>")</script>
+<script src="<?php echo get_template_directory_uri(); ?>/js/scripts.js"></script>
+<script src="<?php echo get_template_directory_uri(); ?>/js/init.js"></script>
+<script src="<?php echo get_template_directory_uri(); ?>/js/minicart.js"></script>
+<script>PAYPAL.apps.MiniCart.render();</script>
+<script type="text/javascript">
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-1906067-30']);
+  _gaq.push(['_trackPageview']);
+
+  (function() {
+    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+  })();
+</script>
+<!--[if lt IE 7 ]>
+  <script src="js/libs/dd_belatedpng.js"></script>
+  <script>DD_belatedPNG.fix("img, .png_bg");</script>
+<![endif]-->
+<?php wp_footer(); ?>
+</body>
 </html>

+ 1 - 1
header.php

@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<?php ?><!DOCTYPE html>
 <html dir="ltr" lang="en-US">
 <head>
 <meta charset="UTF-8"/>

+ 48 - 21
image.php

@@ -1,16 +1,27 @@
-<?php get_header();?>
-<div id="press-wrap">
-<div class="container">
-	<div class="row journal">
-		<div class="twelvecol">
+<?php
+/**
+ * The template for displaying image attachments.
+ *
+ * @package _s
+ * @since _s 1.0
+ */
+
+get_header();
+?>
+
+		<div id="primary" class="site-content image-attachment">
+			<div id="content" role="main">
+
 			<?php while ( have_posts() ) : the_post(); ?>
+
 				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 					<header class="entry-header">
 						<h1 class="entry-title"><?php the_title(); ?></h1>
+
 						<div class="entry-meta">
 							<?php
 								$metadata = wp_get_attachment_metadata();
-								printf( __( 'Published <span class="entry-date"><time class="entry-date" datetime="%1$s" pubdate>%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%7$s</a>', '_ph' ),
+								printf( __( 'Published <span class="entry-date"><time class="entry-date" datetime="%1$s" pubdate>%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%7$s</a>', '_s' ),
 									esc_attr( get_the_date( 'c' ) ),
 									esc_html( get_the_date() ),
 									wp_get_attachment_url(),
@@ -20,48 +31,62 @@
 									get_the_title( $post->post_parent )
 								);
 							?>
-							<?php edit_post_link( __( 'Edit', '_ph' ), '<span class="sep">|</span> <span class="edit-link">', '</span>' ); ?>
-						</div>
+							<?php edit_post_link( __( 'Edit', '_s' ), '<span class="sep">|</span> <span class="edit-link">', '</span>' ); ?>
+						</div><!-- .entry-meta -->
+
 						<nav id="image-navigation">
 							<span class="previous-image"><?php previous_image_link( false, __( '&larr; Previous', '_s' ) ); ?></span>
 							<span class="next-image"><?php next_image_link( false, __( 'Next &rarr;', '_s' ) ); ?></span>
-						</nav>
-					</header>
+						</nav><!-- #image-navigation -->
+					</header><!-- .entry-header -->
 
 					<div class="entry-content">
 
 						<div class="entry-attachment">
 							<div class="attachment">
 								<?php
+									/**
+									 * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
+									 * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
+									 */
 									$attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
 									foreach ( $attachments as $k => $attachment ) {
 										if ( $attachment->ID == $post->ID )
 											break;
 									}
 									$k++;
+									// If there is more than 1 attachment in a gallery
 									if ( count( $attachments ) > 1 ) {
 										if ( isset( $attachments[ $k ] ) )
+											// get the URL of the next image attachment
 											$next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
 										else
+											// or get the URL of the first image attachment
 											$next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
 									} else {
+										// or, if there's only 1 image, get the URL of the image
 										$next_attachment_url = wp_get_attachment_url();
 									}
 								?>
+
 								<a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
 								$attachment_size = apply_filters( '_s_attachment_size', 1200 );
-								echo wp_get_attachment_image( $post->ID, array( $attachment_size, $attachment_size ) ); 
+								echo wp_get_attachment_image( $post->ID, array( $attachment_size, $attachment_size ) ); // filterable image width with, essentially, no limit for image height.
 								?></a>
-							</div>
+							</div><!-- .attachment -->
+
 							<?php if ( ! empty( $post->post_excerpt ) ) : ?>
 							<div class="entry-caption">
 								<?php the_excerpt(); ?>
 							</div>
 							<?php endif; ?>
-						</div>
+						</div><!-- .entry-attachment -->
+
 						<?php the_content(); ?>
 						<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
-					</div>
+
+					</div><!-- .entry-content -->
+
 					<footer class="entry-meta">
 						<?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?>
 							<?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', '_s' ), get_trackback_url() ); ?>
@@ -73,12 +98,14 @@
 							<?php _e( 'Both comments and trackbacks are currently closed.', '_s' ); ?>
 						<?php endif; ?>
 						<?php edit_post_link( __( 'Edit', '_s' ), ' <span class="edit-link">', '</span>' ); ?>
-					</footer>
-				</article>
+					</footer><!-- .entry-meta -->
+				</article><!-- #post-<?php the_ID(); ?> -->
+
 				<?php comments_template(); ?>
-			<?php endwhile; ?>
-		</div>
-	</div>
-</div>
-</div>
+
+			<?php endwhile; // end of the loop. ?>
+
+			</div><!-- #content -->
+		</div><!-- #primary .site-content -->
+
 <?php get_footer(); ?>

+ 6 - 5
inc/template-tags.php

@@ -13,7 +13,7 @@ function _ph_content_nav( $nav_id ) {
 	<nav role="navigation" id="<?php echo $nav_id; ?>" class="<?php echo $nav_class; ?>">
 		<h1 class="assistive-text"><?php _e( 'Post navigation', '_ph' ); ?></h1>
 
-	<?php if ( is_single() ) : ?>
+	<?php if ( is_single() ) : // navigation links for single posts ?>
 
 		<?php previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', '_ph' ) . '</span> %title' ); ?>
 		<?php next_post_link( '<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', '_ph' ) . '</span>' ); ?>
@@ -64,25 +64,26 @@ function _ph_comment( $comment, $args, $depth ) {
 				<div class="comment-meta commentmetadata">
 					<a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><time pubdate datetime="<?php comment_time( 'c' ); ?>">
 					<?php
+						/* translators: 1: date, 2: time */
 						printf( __( '%1$s at %2$s', '_ph' ), get_comment_date(), get_comment_time() ); ?>
 					</time></a>
 					<?php edit_comment_link( __( '(Edit)', '_ph' ), ' ' );
 					?>
-				</div>
+				</div><!-- .comment-meta .commentmetadata -->
 			</footer>
 
 			<div class="comment-content"><?php comment_text(); ?></div>
 
 			<div class="reply">
 				<?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
-			</div>
-		</article>
+			</div><!-- .reply -->
+		</article><!-- #comment-## -->
 
 	<?php
 			break;
 	endswitch;
 }
-endif;
+endif; // ends check for _ph_comment()
 
 if ( ! function_exists( '_ph_posted_on' ) ) :
 

File diff suppressed because it is too large
+ 2159 - 0
js/bootstrap.js


File diff suppressed because it is too large
+ 6 - 0
js/bootstrap.min.js


File diff suppressed because it is too large
+ 1678 - 0
js/cart.js


+ 14 - 0
js/keyboard-image-navigation.js

@@ -0,0 +1,14 @@
+jQuery( document ).ready( function( $ ) {
+	$( document ).keydown( function( e ) {
+		var url = false;
+		if ( e.which == 37 ) {  // Left arrow key code
+			url = $( '.previous-image a' ).attr( 'href' );
+		}
+		else if ( e.which == 39 ) {  // Right arrow key code
+			url = $( '.entry-attachment a' ).attr( 'href' );
+		}
+		if ( url && ( !$( 'textarea, input' ).is( ':focus' ) ) ) {
+			window.location = url;
+		}
+	} );
+} );

File diff suppressed because it is too large
+ 9266 - 0
js/libs/jquery-1.7.1.js


File diff suppressed because it is too large
+ 4 - 0
js/libs/jquery-1.7.1.min.js


+ 39 - 0
js/small-menu.js

@@ -0,0 +1,39 @@
+/**
+ * Handles toggling the main navigation menu for small screens.
+ */
+jQuery( document ).ready( function( $ ) {
+	var $masthead = $( '#masthead' ),
+	    timeout = false;
+
+	$.fn.smallMenu = function() {
+		$masthead.find( '.site-navigation' ).removeClass( 'main-navigation' ).addClass( 'main-small-navigation' );
+		$masthead.find( '.site-navigation h1' ).removeClass( 'assistive-text' ).addClass( 'menu-toggle' );
+
+		$( '.menu-toggle' ).click( function() {
+			$masthead.find( '.menu' ).toggle();
+			$( this ).toggleClass( 'toggled-on' );
+		} );
+	};
+
+	// Check viewport width on first load.
+	if ( $( window ).width() < 600 )
+		$.fn.smallMenu();
+
+	// Check viewport width when user resizes the browser window.
+	$( window ).resize( function() {
+		var browserWidth = $( window ).width();
+
+		if ( false !== timeout )
+			clearTimeout( timeout );
+
+		timeout = setTimeout( function() {
+			if ( browserWidth < 600 ) {
+				$.fn.smallMenu();
+			} else {
+				$masthead.find( '.site-navigation' ).removeClass( 'main-small-navigation' ).addClass( 'main-navigation' );
+				$masthead.find( '.site-navigation h1' ).removeClass( 'menu-toggle' ).addClass( 'assistive-text' );
+				$masthead.find( '.menu' ).removeAttr( 'style' );
+			}
+		}, 200 );
+	} );
+} );

+ 7 - 0
js/tinymce.js

@@ -0,0 +1,7 @@
+jQuery(document).ready( function () { 
+jQuery("#phf_credits").addClass("mceEditor"); 
+if ( typeof( tinyMCE ) == "object" && typeof( tinyMCE.execCommand ) == "function" ) {
+	jQuery("#phf_credits").wrap( "<div id='editorcontainer'></div>" ); 
+	tinyMCE.execCommand("mceAddControl", false, "phf_credits");
+}
+});

+ 12 - 0
page-log.php

@@ -0,0 +1,12 @@
+<?php /* Template Name: Log */ ?>
+<?php get_header(); ?>
+
+<div class="container">
+	<div class="row journal">
+		<div class="twelvecol">
+			<?php wp_login_form(); ?>
+		</div>
+	</div>
+</div>
+
+<?php get_footer(); ?>

+ 1 - 1
page-promo.php

@@ -12,7 +12,7 @@
 				<img src="<?php echo get_template_directory_uri(); ?>/img/LOGLINE.png" />
 			<div class="sixcol">
 				<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
-					<div style="float:left;margin: 0 20px 20px 0;max-width:100%;">
+					<div style="float:left;margin: 0 20px 0px 0;max-width:100%;">
 					<?php the_post_thumbnail('large');?>
 					</div>
 					<?php the_excerpt(); ?>

+ 4 - 1
page.php

@@ -4,9 +4,12 @@
 		<div class="row">
 			<div class="twelvecol">
 				<?php while ( have_posts() ) : the_post(); ?>
+
 					<?php get_template_part( 'content', 'page' ); ?>
+
 					<?php comments_template( '', true ); ?>
-				<?php endwhile; ?>
+
+				<?php endwhile; // end of the loop. ?>
 			</div>
 		</div>
 	</div>

+ 13 - 0
searchform.php

@@ -0,0 +1,13 @@
+<?php
+/**
+ * The template for displaying search forms in _s
+ *
+ * @package _s
+ * @since _s 1.0
+ */
+?>
+	<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
+		<label for="s" class="assistive-text"><?php _e( 'Search', '_s' ); ?></label>
+		<input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search &hellip;', '_s' ); ?>" />
+		<input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', '_s' ); ?>" />
+	</form>

+ 34 - 0
sidebar.php

@@ -0,0 +1,34 @@
+<?php
+/**
+ * The Sidebar containing the main widget areas.
+ *
+ * @package _s
+ * @since _s 1.0
+ */
+?>
+		<div id="secondary" class="widget-area" role="complementary">
+			<?php do_action( 'before_sidebar' ); ?>
+			<?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
+
+				<aside id="search" class="widget widget_search">
+					<?php get_search_form(); ?>
+				</aside>
+
+				<aside id="archives" class="widget">
+					<h1 class="widget-title"><?php _e( 'Archives', '_s' ); ?></h1>
+					<ul>
+						<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
+					</ul>
+				</aside>
+
+				<aside id="meta" class="widget">
+					<h1 class="widget-title"><?php _e( 'Meta', '_s' ); ?></h1>
+					<ul>
+						<?php wp_register(); ?>
+						<li><?php wp_loginout(); ?></li>
+						<?php wp_meta(); ?>
+					</ul>
+				</aside>
+
+			<?php endif; // end sidebar widget area ?>
+		</div><!-- #secondary .widget-area -->

+ 11 - 2
single.php

@@ -4,9 +4,18 @@
 	<div class="row journal">
 		<div class="twelvecol">
 			<?php while ( have_posts() ) : the_post(); ?>
+
+
 				<?php get_template_part( 'content', 'single' ); ?>
-				<?php if ( comments_open() || '0' != get_comments_number() ) comments_template( '', true ); ?>
-			<?php endwhile; ?>
+
+				<?php
+					// If comments are open or we have at least one comment, load up the comment template
+					if ( comments_open() || '0' != get_comments_number() )
+						comments_template( '', true );
+				?>
+
+			<?php endwhile; // end of the loop. ?>
+
 		</div>
 	</div>
 </div>

+ 2 - 6
style.css

@@ -1,14 +1,10 @@
-/* @override http://macs.local/phf/wp-content/themes/phf/style.css */
-
-/* @override http://magicbullet.local/phf/wp-content/themes/ph/style.css */
-
-
 /*
-Theme Name: (Git) Pennebaker Hegedus Films
+Theme Name: Pennebaker Hegedus Films
 Theme URI: https://phfilms.com
 Author: windhamdavid
 Author URI: http://davidawindham.com
 Description: pretty good
+Version: 2.0
 
 	/* Thanks! 
 		http://meyerweb.com/eric/tools/css/reset/ - Eric Myer