Browse Source

wrap fixes

windhamdavid 3 years ago
parent
commit
5e227b5ecb
5 changed files with 19 additions and 12 deletions
  1. 9 2
      film.php
  2. 1 1
      inc/films-cpt.php
  3. 1 1
      inc/tweaks.php
  4. 6 6
      index.php
  5. 2 2
      style.css

+ 9 - 2
film.php

@@ -76,6 +76,9 @@
 								<?php if ( get_post_meta($post->ID, 'publicity', true) ) : ?>
 						     	<li><a href="#media">Publicity</a></li>
 								<?php endif; ?>
+								<?php if ( get_post_meta($post->ID, 'reviews', true) ) : ?>
+						     	<li><a href="#reviews">Reviews</a></li>
+								<?php endif; ?>
 						   </ul>					
 							<ul class="tabs-content">
 								<li class="active" id="summary">
@@ -89,8 +92,12 @@
 								<li id="media">			
 									<?php if ( get_post_meta($post->ID, 'publicity', true) ) : ?>
 									   <?php echo get_post_meta($post->ID, 'publicity', true) ?>
-									<?php endif; ?>
-									
+									<?php endif; ?>						
+								</li>
+								<li id="reviews">			
+									<?php if ( get_post_meta($post->ID, 'reviews', true) ) : ?>
+									   <?php echo get_post_meta($post->ID, 'reviews', true) ?>
+									<?php endif; ?>						
 								</li>
 							</ul>
 						</article>

+ 1 - 1
inc/films-cpt.php

@@ -163,7 +163,7 @@ add_action('save_post', 'phf_meta_save');
 function phf_meta_save(){
 
 	global $post;
-
+  if( !is_object($post) ) {return;}
   if( $post->post_type == 'film' )  {
   	if (isset( $_POST ) ) {
   		update_post_meta($post->ID, "ph_year", $_POST["ph_year"]);

+ 1 - 1
inc/tweaks.php

@@ -158,6 +158,6 @@ function ph_rss_widget(){
 function ph_editor_styles() {
     add_editor_style( 'style.css' );
 }
-add_action( 'init', 'ph_editor_styles' );
+//add_action( 'init', 'ph_editor_styles' );
 
 ?>

+ 6 - 6
index.php

@@ -23,18 +23,18 @@
 	</div>
 
 	<div class="container front">
-		<div class="row">
+		<!--<div class="row">
 			<div class="eightcol">
 				<h2 class="col-title" style="color:#777;text-align:center;">&nbsp;</h2>
 			</div>
 			<div class="fourcol last">
-				<!--<h1 class="josefin-head" style="color:#777;text-align:center;">DVD HIGHLIGHT</h1>-->
+				<h1 class="josefin-head" style="color:#777;text-align:center;">DVD HIGHLIGHT</h1>
 			</div>
-		</div>
+		</div>-->
 		<div class="row">
 			<div class="fourcol">
 				<div class="press">
-					<?php query_posts( array ( 'category_name' => 'Press', 'posts_per_page' => 3 ) ); ?>
+					<?php query_posts( array ( 'category_name' => 'Press', 'posts_per_page' => 5 ) ); ?>
 					<?php while (have_posts()) : the_post(); ?>
 					<article>
 						<a href="<?php the_permalink() ?>" class="rollover" title="<?php the_excerpt();?>"><?php if ( has_post_thumbnail() ) { the_post_thumbnail();} ?></a>
@@ -60,7 +60,7 @@
 			</div>
 			<div class="fourcol">
 				<div class="press">
-					<?php query_posts( array ( 'category_name' => 'Press', 'offset'=> 3, 'posts_per_page' => 3 ) ); ?>
+					<?php query_posts( array ( 'category_name' => 'Press', 'offset'=> 5, 'posts_per_page' => 4 ) ); ?>
 					<?php while (have_posts()) : the_post(); ?>
 					<article>
 						<a href="<?php the_permalink() ?>" class="rollover" title="<?php the_excerpt();?>"><?php if ( has_post_thumbnail() ) { the_post_thumbnail();} ?></a>
@@ -72,7 +72,7 @@
 			</div>
 			<div class="fourcol last">
 				<div class="press">
-					<?php query_posts( array ( 'category_name' => 'News', 'posts_per_page' => 1 ) ); ?>
+					<?php query_posts( array ( 'cat' => 50, 'posts_per_page' => 1 ) ); ?>
 					<?php while (have_posts()) : the_post(); ?>
 					<article>
 						<a href="<?php the_permalink() ?>"><?php if ( has_post_thumbnail() ) { the_post_thumbnail('spotlight');} ?></a>

+ 2 - 2
style.css

@@ -569,7 +569,7 @@ li.credits {
 	background: #fff;
 }
 .container.films {
-	padding: 20px 30px;
+	padding: 30px 30px 100px;
 	background: #b3b3b3;
 }
 .films {
@@ -743,7 +743,7 @@ img.play {
 	margin: 23px 0;
 }
 .press img {
-	float: left;
+
 	margin: 0px 0px 15px 15px;
 }
 .press article {