Created
August 27, 2012 01:13
Revisions
-
davemac revised this gist
Aug 27, 2012 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,10 @@ <?php elseif ( has_post_thumbnail() ) : $featured_image_link = ( get_field( 'featured_image_links_to' ) ); if ( $featured_image_link ) { echo '<a href="'.get_permalink($post_object->ID) .'">'; if ( has_post_thumbnail()) { the_post_thumbnail( 'hero-image-medium', array( 'class' => 'large fx' ) ); } echo '</a>'; } else { the_post_thumbnail( 'hero-image-medium', array( 'class' => 'large fx' ) ); }; endif; ?> -
davemac revised this gist
Aug 27, 2012 . 1 changed file with 2 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,9 @@ <?php elseif ( has_post_thumbnail() ) : $featured_image_link = ( get_field( 'featured_image_links_to' ) ); if ( $featured_image_link ) : echo '<a href="'.get_permalink($post_object->ID) .'">'; if ( has_post_thumbnail()) { the_post_thumbnail( 'hero-image-medium', array( 'class' => 'large fx' ) ); } echo '</a>'; elseif : the_post_thumbnail( 'hero-image-medium', array( 'class' => 'large fx' ) ); endif; -
davemac revised this gist
Aug 27, 2012 . 1 changed file with 12 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,12 @@ <?php elseif ( has_post_thumbnail() ) : $featured_image_link = (get_field('featured_image_links_to') ); if ( $featured_image_link ) : foreach (get_field('featured_image_links_to') as $post_object): echo '<a href="'.get_permalink($post_object->ID) .'">'; if(has_post_thumbnail()) { the_post_thumbnail( 'hero-image-medium', array( 'class' => 'large fx' ) ); } echo '</a>'; endforeach; elseif : the_post_thumbnail( 'hero-image-medium', array( 'class' => 'large fx' ) ); endif; endif; ?> -
davemac revised this gist
Aug 27, 2012 . 1 changed file with 5 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,8 @@ <?php if ( has_post_thumbnail() ) : foreach (get_field('featured_image_links_to') as $post_object): echo '<a href="'.get_permalink($post_object->ID) .'">'; if(has_post_thumbnail()) { the_post_thumbnail( 'hero-image-medium', array( 'class' => 'large fx' ) ); } echo '</a>'; endforeach; endif; ?> -
davemac created this gist
Aug 27, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ <?php if ( has_post_thumbnail() ) : if (get_field('featured_image_links_to') : foreach (get_field('featured_image_links_to') as $post_object): echo '<a href="'.get_permalink($post_object->ID) .'">'; if (has_post_thumbnail()) { the_post_thumbnail( 'hero-image-med' ); } echo '</a>'; endforeach; endif; endif; ?>