Created
February 20, 2013 00:31
-
-
Save anonymous/4991635 to your computer and use it in GitHub Desktop.
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 characters
| <?php get_header(); ?> | |
| <div id="primarycontent"> | |
| <div id="featured"> | |
| <div id="primary-videocontainer"><!--contains banner and video--> | |
| <?php | |
| $homeVideo = 'Wkav01p5bEk'; | |
| echo '<iframe width="470" height="263" src="http://www.youtube.com/embed/'.$homeVideo.'" frameborder="0" allowfullscreen></iframe>' | |
| ?> | |
| </div><!--end primary-videocontainer --> | |
| <div id="primary-right"> | |
| <?php gab_dynamic_sidebar('PrimaryRight1');?> | |
| <?php if (intval(of_get_option('of_wn_nr2')) > 0 ) { ?> | |
| <span class="catname"><a href="<?php echo get_category_link(of_get_option('of_wn_cat2'));?>"><?php echo get_cat_name(of_get_option('of_wn_cat2')); ?></a></span> | |
| <?php | |
| $count = 1; | |
| $args = array( | |
| 'post__not_in'=>$do_not_duplicate, | |
| 'posts_per_page' => of_get_option('of_wn_nr2'), | |
| 'cat' => of_get_option('of_wn_cat2', 1) | |
| ); | |
| $gab_query = new WP_Query();$gab_query->query($args); | |
| while ($gab_query->have_posts()) : $gab_query->the_post(); if (of_get_option('of_dnd') == 1) { $do_not_duplicate[] = $post->ID; } | |
| ?> | |
| <div class="featuredpost<?php if($count == of_get_option('of_wn_nr2')) { echo ' lastpost'; } ?>"> | |
| <h2 class="posttitle"> | |
| <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpnewspaper' ), the_title_attribute( 'echo=0' ) ); ?>" ><?php the_title(); ?></a> | |
| </h2> | |
| <div class="under_p"> | |
| <?php | |
| gab_media(array( 'imgtag' => 1, 'link' => 1, | |
| 'name' => 'wn-featured_right', | |
| 'enable_video' => 0, | |
| 'catch_image' => of_get_option('of_catch_img', 0), | |
| 'enable_thumb' => 1, | |
| 'resize_type' => 'c', | |
| 'media_width' => 80, | |
| 'media_height' => 63, | |
| 'thumb_align' => 'alignleft', | |
| 'enable_default' => 0 | |
| )); | |
| ?> | |
| <?php if (in_category(1843)) { ?> | |
| <span class="practice_area"><!-- marker image --></span> | |
| <?php } ?> | |
| </div> | |
| <p><?php echo string_limit_words(get_the_excerpt(),21); ?>…</p> | |
| <?php gab_postmeta(); ?> | |
| </div><!-- .featuredpost --> | |
| <?php $count++; endwhile; wp_reset_query(); ?> | |
| <?php } ?> | |
| <?php include_once(TEMPLATEPATH . '/ads/mainpage_300x250-top.php'); ?> | |
| <?php gab_dynamic_sidebar('PrimaryRight2');?> | |
| </div><!-- #primary-right --> | |
| <div class="home_728x90"> | |
| <?php include_once(TEMPLATEPATH . '/ads/home_728x90.php'); ?> | |
| </div> | |
| </div><!-- .featured --> | |
| <div id="primary-left"> <!--moved this over to the right, headlines section--> | |
| <?php gab_dynamic_sidebar('PrimaryLeft1');?> | |
| <?php if (intval(of_get_option('of_wn_nr1')) > 0 ) { ?> | |
| <span class="catname">Headlines | |
| </span> | |
| <?php | |
| $count = 1; | |
| $args = array( | |
| 'posts_per_page' => of_get_option('of_wn_nr1'), | |
| 'cat' => of_get_option('of_wn_cat1', 1) | |
| ); | |
| $gab_query = new WP_Query();$gab_query->query($args); | |
| while ($gab_query->have_posts()) : $gab_query->the_post(); | |
| if (of_get_option('of_dnd') == 1) { $do_not_duplicate[] = $post->ID; } | |
| ?> | |
| <div class="prleftpost" onmouseover="this.className='prleftposthover'" onmouseout="this.className='prleftpost'"> | |
| <h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpnewspaper' ), the_title_attribute( 'echo=0' ) ); ?>" ><?php the_title(); ?></a></h2> | |
| <span class="postmeta"><?php echo get_the_date(); ?></span> | |
| </div> | |
| <?php $count++; endwhile; wp_reset_query(); ?> | |
| <?php } ?> | |
| <?php gab_dynamic_sidebar('PrimaryLeft2');?> | |
| </div><!-- #primary-left (actually shows up on the right) --> | |
| </div><!-- #primarycontent --> | |
| <?php /* Call media slider if the number of entries are set greater than 0 on theme control panel */ | |
| $postnr = of_get_option('of_wn_tabnr1') + of_get_option('of_wn_tabnr2') + of_get_option('of_wn_tabnr3') + of_get_option('of_wn_tabnr4') + of_get_option('of_wn_tabnr5'); | |
| if (intval($postnr) > 0 ) { ?> | |
| <div id="mid-slider"> | |
| <div id="mid-slider-nav"> | |
| <ul id="mid-slider-pagination"> | |
| <?php | |
| $cat_count = 5; | |
| $options = array(); | |
| for ($i=1; $i<=$cat_count;$i++) { | |
| if(of_get_option('of_wn_tabnr'.$i) !== '0' ) { | |
| if (intval(of_get_option('of_wn_tabnr'.$i)) > 0 ) { ?> | |
| <li><a href="#"><?php echo get_cat_name(of_get_option('of_wn_tabcat'.$i)); ?></a></li><?php | |
| } | |
| } | |
| } | |
| ?> | |
| </ul> | |
| <a class="media_next" id="media_next" href="#"><?php _e('Next','wpnewspaper'); ?></a> | |
| <a class="media_prev" id="media_prev" href="#"><?php _e('Previous','wpnewspaper'); ?></a> | |
| <div class="clear"></div> | |
| </div><!-- /nav --> | |
| <div class="fea-slides-wrapper"> <!-- using this class just to generate a border --> | |
| <div class="fea-slides"> | |
| <?php | |
| $cat_count = 5; | |
| $options = array(); | |
| for ($i=1; $i<=$cat_count;$i++) { | |
| if(0 < strlen($variable = of_get_option('of_wn_tabnr'.$i))) { | |
| $options[$i]['posts_per_page'] = $variable; | |
| } | |
| if(0 < strlen($variable = of_get_option('of_wn_tabcat'.$i))) { | |
| $options[$i]['cat'] = $variable; | |
| } | |
| } | |
| foreach ($options as $id => $option) | |
| { | |
| if (0 == $options[$id]['posts_per_page']) { | |
| continue; | |
| } | |
| ?> | |
| <div class="slide_item"> | |
| <?php | |
| $count = 1; | |
| $args = array( | |
| 'post__not_in'=>$do_not_duplicate, | |
| 'posts_per_page' => $options[$id]['posts_per_page'], | |
| 'cat' => $options[$id]['cat'] | |
| ); | |
| $gab_query = new WP_Query();$gab_query->query($args); | |
| while ($gab_query->have_posts()) : $gab_query->the_post(); | |
| ?> | |
| <div class="featured-media<?php if($count% 4 == 0) { echo ' last'; }?>"> | |
| <?php | |
| gab_media(array( | |
| 'name' => 'wn-midtabs', | |
| 'imgtag' => 1, | |
| 'link' => 1, | |
| 'enable_video' => 1, | |
| 'catch_image' => of_get_option('of_catch_img', 0), | |
| 'video_id' => 'midslide5', | |
| 'enable_thumb' => 1, | |
| 'resize_type' => 'c', | |
| 'media_width' => '216', | |
| 'media_height' => '120', | |
| 'thumb_align' => 'tabbedimg', | |
| 'enable_default' => 0 | |
| )); | |
| ?> | |
| <h2 class="posttitle"> | |
| <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpnewspaper' ), the_title_attribute( 'echo=0' ) ); ?>" ><?php the_title(); ?></a> | |
| </h2> | |
| <p><?php echo string_limit_words(get_the_excerpt(),9); ?>…</p> | |
| </div><!-- .featured-media --> | |
| <?php if($count % 4 == 0) { echo '<div class="clear"></div>'; } ?> | |
| <?php $count++; endwhile; wp_reset_query(); ?> | |
| </div><!-- .slide-item --> | |
| <?php } ?> | |
| </div><!-- .fea-slides --> | |
| </div><!-- .fea-slides-wrapper --> | |
| </div><!-- #mid-slider --> | |
| <?php } ?> | |
| <div id="subnews"> | |
| <div id="subnews_left"> | |
| <div class="col"> | |
| <?php gab_dynamic_sidebar('Subnews1');?> | |
| <?php | |
| $postnr = of_get_option('of_wn_nr8') + of_get_option('of_wn_nr8a'); | |
| if (intval($postnr) > 0 ) { ?> | |
| <span class="catname"><a href="<?php echo get_category_link(of_get_option('of_wn_cat8'));?>"><?php echo get_cat_name(of_get_option('of_wn_cat8')); ?></a></span> | |
| <?php | |
| $count = 1; | |
| $args = array( | |
| 'post__not_in'=>$do_not_duplicate, | |
| 'posts_per_page' => $postnr, | |
| 'cat' => of_get_option('of_wn_cat8', 1) | |
| ); | |
| $gab_query = new WP_Query();$gab_query->query($args); | |
| while ($gab_query->have_posts()) : $gab_query->the_post(); if (of_get_option('of_dnd') == 1) { $do_not_duplicate[] = $post->ID; } | |
| ?> | |
| <div class="featuredpost<?php if($count == of_get_option('of_wn_nr8') or $count == $postnr) { echo ' lastpost'; } ?>"> | |
| <?php //if ($count <= of_get_option('of_wn_nr8')) { ?> | |
| <h2 class="posttitle"> | |
| <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpnewspaper' ), the_title_attribute( 'echo=0' ) ); ?>" ><?php the_title(); ?></a> | |
| </h2> | |
| <div class="opinion_wrapper"> | |
| <?php | |
| gab_media(array( 'imgtag' => 1, 'link' => 1, | |
| 'name' => 'wn-subnews', | |
| 'enable_video' => 0, | |
| 'catch_image' => of_get_option('of_catch_img', 0), | |
| 'enable_thumb' => 1, | |
| 'resize_type' => 'c', | |
| 'media_width' => 120, | |
| 'media_height' => 103, | |
| 'thumb_align' => 'alignleft', | |
| 'enable_default' => 0 | |
| )); | |
| ?> | |
| <div class="opinion_marker"><!-- opinion marker --></div> | |
| </div> | |
| <p><?php echo string_limit_words(get_the_excerpt(),27); ?>…</p> | |
| <?php gab_postmeta(); ?> | |
| <?php //} else { ?> | |
| <a class="listtitle" href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpnewspaper' ), the_title_attribute( 'echo=0' ) ); ?>" ><?php the_title(); ?></a> | |
| <?php //} ?> | |
| </div><!-- .featuredpost --> | |
| <?php $count++; endwhile; wp_reset_query(); ?> | |
| <?php } ?> | |
| </div><!-- .col --> | |
| <div class="col last"> | |
| <?php gab_dynamic_sidebar('Subnews2');?> | |
| <?php | |
| $postnr = of_get_option('of_wn_nr9') + of_get_option('of_wn_nr9a'); | |
| if (intval($postnr) > 0 ) { ?> | |
| <span class="catname"><a href="<?php echo get_category_link(of_get_option('of_wn_cat9'));?>"><?php echo get_cat_name(of_get_option('of_wn_cat9')); ?></a></span> | |
| <?php | |
| $count = 1; | |
| $args = array( | |
| 'post__not_in'=>$do_not_duplicate, | |
| 'posts_per_page' => $postnr, | |
| 'cat' => of_get_option('of_wn_cat9', 1) | |
| ); | |
| $gab_query = new WP_Query();$gab_query->query($args); | |
| while ($gab_query->have_posts()) : $gab_query->the_post(); if (of_get_option('of_dnd') == 1) { $do_not_duplicate[] = $post->ID; } | |
| ?> | |
| <div class="featuredpost<?php if($count == of_get_option('of_wn_nr9') or $count == $postnr) { echo ' lastpost'; } ?>"> | |
| <?php if ($count <= of_get_option('of_wn_nr9')) { ?> | |
| <h2 class="posttitle"> | |
| <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpnewspaper' ), the_title_attribute( 'echo=0' ) ); ?>" ><?php the_title(); ?></a> | |
| </h2> | |
| <div class="opinion_wrapper"> | |
| <?php | |
| gab_media(array( 'imgtag' => 1, 'link' => 1, | |
| 'name' => 'wn-subnews', | |
| 'enable_video' => 0, | |
| 'catch_image' => of_get_option('of_catch_img', 0), | |
| 'enable_thumb' => 1, | |
| 'resize_type' => 'c', | |
| 'media_width' => 120, | |
| 'media_height' => 103, | |
| 'thumb_align' => 'alignleft', | |
| 'enable_default' => 0 | |
| )); | |
| ?> | |
| <div class="opinion_marker"><!-- opinion marker --></div> | |
| </div> | |
| <p> | |
| <?php if (in_category(1843)) { ?> | |
| <span class="practice_area"><!-- marker image --></span> | |
| <?php } ?> | |
| <?php echo string_limit_words(get_the_excerpt(),27); ?>…</p> | |
| <?php gab_postmeta(); ?> | |
| <?php } else { ?> | |
| <a class="listtitle" href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpnewspaper' ), the_title_attribute( 'echo=0' ) ); ?>" ><?php the_title(); ?></a> | |
| <?php } ?> | |
| </div><!-- .featuredpost --> | |
| <?php $count++; endwhile; wp_reset_query(); ?> | |
| <?php } ?> | |
| </div><!-- .col last--> | |
| <div class="border"></div> | |
| <div class="col"> | |
| <?php gab_dynamic_sidebar('Subnews3');?> | |
| <?php | |
| $postnr = of_get_option('of_wn_nr10') + of_get_option('of_wn_nr10a'); | |
| if (intval($postnr) > 0 ) { ?> | |
| <span class="catname"><a href="<?php echo get_category_link(of_get_option('of_wn_cat10'));?>"><?php echo get_cat_name(of_get_option('of_wn_cat10')); ?></a></span> | |
| <?php | |
| $count = 1; | |
| $args = array( | |
| 'post__not_in'=>$do_not_duplicate, | |
| 'posts_per_page' => $postnr, | |
| 'cat' => of_get_option('of_wn_cat10', 1) | |
| ); | |
| $gab_query = new WP_Query();$gab_query->query($args); | |
| while ($gab_query->have_posts()) : $gab_query->the_post(); if (of_get_option('of_dnd') == 1) { $do_not_duplicate[] = $post->ID; } | |
| ?> | |
| <div class="featuredpost<?php if($count == of_get_option('of_wn_nr10') or $count == $postnr) { echo ' lastpost'; } ?>"> | |
| <?php if ($count <= of_get_option('of_wn_nr10')) { ?> | |
| <h2 class="posttitle"> | |
| <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpnewspaper' ), the_title_attribute( 'echo=0' ) ); ?>" ><?php the_title(); ?></a> | |
| </h2> | |
| <div class="opinion_wrapper"> | |
| <?php | |
| gab_media(array( 'imgtag' => 1, 'link' => 1, | |
| 'name' => 'wn-subnews', | |
| 'enable_video' => 0, | |
| 'catch_image' => of_get_option('of_catch_img', 0), | |
| 'enable_thumb' => 1, | |
| 'resize_type' => 'c', | |
| 'media_width' => 120, | |
| 'media_height' => 103, | |
| 'thumb_align' => 'alignleft', | |
| 'enable_default' => 0 | |
| )); | |
| ?> | |
| <div class="opinion_marker"><!-- opinion marker --></div> | |
| </div> | |
| <p> | |
| <?php if (in_category(1843)) { ?> | |
| <span class="practice_area"><!-- marker image --></span> | |
| <?php } ?> | |
| <?php echo string_limit_words(get_the_excerpt(),27); ?>…</p> | |
| <?php gab_postmeta(); ?> | |
| <?php } else { ?> | |
| <a class="listtitle" href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpnewspaper' ), the_title_attribute( 'echo=0' ) ); ?>" ><?php the_title(); ?></a> | |
| <?php } ?> | |
| </div><!-- .featuredpost --> | |
| <?php $count++; endwhile; wp_reset_query(); ?> | |
| <?php } ?> | |
| </div><!-- .col --> | |
| <div class="col last"> | |
| <?php gab_dynamic_sidebar('Subnews4');?> | |
| <?php | |
| $postnr = of_get_option('of_wn_nr11') + of_get_option('of_wn_nr11a'); | |
| if (intval($postnr) > 0 ) { ?> | |
| <span class="catname"><a href="<?php echo get_category_link(of_get_option('of_wn_cat11'));?>"><?php echo get_cat_name(of_get_option('of_wn_cat11')); ?></a></span> | |
| <?php | |
| $count = 1; | |
| $args = array( | |
| 'post__not_in'=>$do_not_duplicate, | |
| 'posts_per_page' => $postnr, | |
| 'cat' => of_get_option('of_wn_cat11', 1) | |
| ); | |
| $gab_query = new WP_Query();$gab_query->query($args); | |
| while ($gab_query->have_posts()) : $gab_query->the_post(); if (of_get_option('of_dnd') == 1) { $do_not_duplicate[] = $post->ID; } | |
| ?> | |
| <div class="featuredpost<?php if($count == of_get_option('of_wn_nr11') or $count == $postnr) { echo ' lastpost'; } ?>"> | |
| <?php if ($count <= of_get_option('of_wn_nr11')) { ?> | |
| <h2 class="posttitle"> | |
| <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpnewspaper' ), the_title_attribute( 'echo=0' ) ); ?>" ><?php the_title(); ?></a> | |
| </h2> | |
| <div class="opinion_wrapper"> | |
| <?php | |
| gab_media(array( 'imgtag' => 1, 'link' => 1, | |
| 'name' => 'wn-subnews', | |
| 'enable_video' => 0, | |
| 'catch_image' => of_get_option('of_catch_img', 0), | |
| 'enable_thumb' => 1, | |
| 'resize_type' => 'c', | |
| 'media_width' => 120, | |
| 'media_height' => 103, | |
| 'thumb_align' => 'alignleft', | |
| 'enable_default' => 0 | |
| )); | |
| ?> | |
| <div class="opinion_marker"><!-- opinion marker --></div> | |
| </div> | |
| <p> | |
| <?php if (in_category(1843)) { ?> | |
| <span class="practice_area"><!-- marker image --></span> | |
| <?php } ?> | |
| <?php echo string_limit_words(get_the_excerpt(),27); ?>…</p> | |
| <?php gab_postmeta(); ?> | |
| <?php } else { ?> | |
| <a class="listtitle" href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpnewspaper' ), the_title_attribute( 'echo=0' ) ); ?>" ><?php the_title(); ?></a> | |
| <?php } ?> | |
| </div><!-- .featuredpost --> | |
| <?php $count++; endwhile; wp_reset_query(); ?> | |
| <?php } ?> | |
| </div><!-- .col last--> | |
| <div class="border"></div> | |
| <div class="col"> | |
| <?php gab_dynamic_sidebar('Subnews5');?> | |
| <?php | |
| $postnr = of_get_option('of_wn_nr12') + of_get_option('of_wn_nr12a'); | |
| if (intval($postnr) > 0 ) { ?> | |
| <span class="catname"><a href="<?php echo get_category_link(of_get_option('of_wn_cat12'));?>"><?php echo get_cat_name(of_get_option('of_wn_cat12')); ?></a></span> | |
| <?php | |
| $count = 1; | |
| $args = array( | |
| 'post__not_in'=>$do_not_duplicate, | |
| 'posts_per_page' => $postnr, | |
| 'cat' => of_get_option('of_wn_cat12', 1) | |
| ); | |
| $gab_query = new WP_Query();$gab_query->query($args); | |
| while ($gab_query->have_posts()) : $gab_query->the_post(); if (of_get_option('of_dnd') == 1) { $do_not_duplicate[] = $post->ID; } | |
| ?> | |
| <div class="featuredpost<?php if($count == of_get_option('of_wn_nr12') or $count == $postnr) { echo ' lastpost'; } ?>"> | |
| <?php if ($count <= of_get_option('of_wn_nr12')) { ?> | |
| <h2 class="posttitle"> | |
| <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpnewspaper' ), the_title_attribute( 'echo=0' ) ); ?>" ><?php the_title(); ?></a> | |
| </h2> | |
| <div class="opinion_wrapper"> | |
| <?php | |
| gab_media(array( 'imgtag' => 1, 'link' => 1, | |
| 'name' => 'wn-subnews', | |
| 'enable_video' => 0, | |
| 'catch_image' => of_get_option('of_catch_img', 0), | |
| 'enable_thumb' => 1, | |
| 'resize_type' => 'c', | |
| 'media_width' => 120, | |
| 'media_height' => 103, | |
| 'thumb_align' => 'alignleft', | |
| 'enable_default' => 0 | |
| )); | |
| ?> | |
| <div class="opinion_marker"><!-- opinion marker --></div> | |
| </div> | |
| <p> | |
| <?php if (in_category(1843)) { ?> | |
| <span class="practice_area"><!-- marker image --></span> | |
| <?php } ?> | |
| <?php echo string_limit_words(get_the_excerpt(),27); ?>…</p> | |
| <?php gab_postmeta(); ?> | |
| <?php } else { ?> | |
| <a class="listtitle" href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpnewspaper' ), the_title_attribute( 'echo=0' ) ); ?>" ><?php the_title(); ?></a> | |
| <?php } ?> | |
| </div><!-- .featuredpost --> | |
| <?php $count++; endwhile; wp_reset_query(); ?> | |
| <?php } ?> | |
| </div><!-- .col --> | |
| <div class="col last"> | |
| <?php gab_dynamic_sidebar('Subnews6');?> | |
| <?php | |
| $postnr = of_get_option('of_wn_nr13') + of_get_option('of_wn_nr13a'); | |
| if (intval($postnr) > 0 ) { ?> | |
| <span class="catname"><a href="<?php echo get_category_link(of_get_option('of_wn_cat13'));?>"><?php echo get_cat_name(of_get_option('of_wn_cat13')); ?></a></span> | |
| <?php | |
| $count = 1; | |
| $args = array( | |
| 'post__not_in'=>$do_not_duplicate, | |
| 'posts_per_page' => $postnr, | |
| 'cat' => of_get_option('of_wn_cat13', 1) | |
| ); | |
| $gab_query = new WP_Query();$gab_query->query($args); | |
| while ($gab_query->have_posts()) : $gab_query->the_post(); if (of_get_option('of_dnd') == 1) { $do_not_duplicate[] = $post->ID; } | |
| ?> | |
| <div class="featuredpost<?php if($count == of_get_option('of_wn_nr13') or $count == $postnr) { echo ' lastpost'; } ?>"> | |
| <?php if ($count <= of_get_option('of_wn_nr13')) { ?> | |
| <h2 class="posttitle"> | |
| <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpnewspaper' ), the_title_attribute( 'echo=0' ) ); ?>" ><?php the_title(); ?></a> | |
| </h2> | |
| <div class="opinion_wrapper"> | |
| <?php | |
| gab_media(array( 'imgtag' => 1, 'link' => 1, | |
| 'name' => 'wn-subnews', | |
| 'enable_video' => 0, | |
| 'catch_image' => of_get_option('of_catch_img', 0), | |
| 'enable_thumb' => 1, | |
| 'resize_type' => 'c', | |
| 'media_width' => 120, | |
| 'media_height' => 103, | |
| 'thumb_align' => 'alignleft', | |
| 'enable_default' => 0 | |
| )); | |
| ?> | |
| <div class="opinion_marker"><!-- opinion marker --></div> | |
| </div> | |
| <p> | |
| <?php if (in_category(1843)) { ?> | |
| <span class="practice_area"><!-- marker image --></span> | |
| <?php } ?> | |
| <?php echo string_limit_words(get_the_excerpt(),27); ?>…</p> | |
| <?php gab_postmeta(); ?> | |
| <?php } else { ?> | |
| <a class="listtitle" href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpnewspaper' ), the_title_attribute( 'echo=0' ) ); ?>" ><?php the_title(); ?></a> | |
| <?php } ?> | |
| </div><!-- .featuredpost --> | |
| <?php $count++; endwhile; wp_reset_query(); ?> | |
| <?php } ?> | |
| </div><!-- .col last--> | |
| <div class="clear"></div> | |
| </div><!-- #subnews_left --> | |
| <div id="subnews_right"> | |
| <?php | |
| include_once(TEMPLATEPATH . '/ads/mainpage_300x250-bottom.php'); | |
| gab_dynamic_sidebar('Home-Sidebar1'); | |
| if (intval(of_get_option('of_wn_nr15')) > 0 ) { ?> | |
| <div id="video-slider"> | |
| <div id="video-slider-nav"> | |
| <div id="vid-nav"></div> | |
| <a class="vid_next" id="vid_next" href="#"><?php _e('Next','wpnewspaper'); ?></a> | |
| <a class="vid_prev" id="vid_prev" href="#"><?php _e('Previous','wpnewspaper'); ?></a> | |
| </div><!-- /nav --> | |
| <div class="fea-slides"> | |
| <?php | |
| $count = 1; | |
| $args = array( | |
| 'post__not_in'=>$do_not_duplicate, | |
| 'post_type' => 'any', | |
| 'posts_per_page' => of_get_option('of_wn_nr15'), | |
| 'meta_key' => 'iframe' | |
| ); | |
| $gab_query = new WP_Query();$gab_query->query($args); | |
| while ($gab_query->have_posts()) : $gab_query->the_post(); if (of_get_option('of_dnd') == 1) { $do_not_duplicate[] = $post->ID; } | |
| ?> | |
| <div class="slide_item"> | |
| <h2 class="posttitle"> | |
| <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'wpnewspaper' ), the_title_attribute( 'echo=0' ) ); ?>" ><?php the_title(); ?></a> | |
| </h2> | |
| <?php | |
| gab_media(array( | |
| 'name' => 'wn-vs', | |
| 'imgtag' => 1, | |
| 'link' => 1, | |
| 'enable_video' => 1, | |
| 'catch_image' => of_get_option('of_catch_img', 0), | |
| 'video_id' => 'sidebar-vid', | |
| 'enable_thumb' => 1, | |
| 'resize_type' => 'c', /* c to crop, h to resize only height, w to resize only width */ | |
| 'media_width' => '280', | |
| 'media_height' => '220', | |
| 'thumb_align' => 'media', | |
| 'enable_default' => 0 | |
| )); | |
| ?> | |
| </div><!-- .slide-item --> | |
| <?php $count++; endwhile; wp_reset_query(); ?> | |
| </div><!-- .fea-slides --> | |
| </div><!-- #video-slider --> | |
| <?php } | |
| gab_dynamic_sidebar('Home-Sidebar2'); | |
| ?> | |
| <div class="clear"></div> | |
| </div> | |
| <div class="clear"></div> | |
| </div><!-- .subnews --> | |
| <?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment