Last active
September 25, 2017 19:39
-
-
Save katzgrau/7560e008ea0ddad95b1ce660c5335c70 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 | |
| /** | |
| * The Header template for our theme | |
| * | |
| * Displays all of the <head> section and everything up till <div id="main"> | |
| * | |
| * @package WordPress | |
| * @subpackage Twenty_Thirteen | |
| * @since Twenty Thirteen 1.0 | |
| */ | |
| ?><!DOCTYPE html> | |
| <html <?php language_attributes(); ?>> | |
| <head> | |
| <meta charset="<?php bloginfo( 'charset' ); ?>"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title><?php wp_title( '|', true, 'right' ); ?></title> | |
| <meta name="description" content="New York's front page for political news. Latest NY politics news, reports, and columnists"> | |
| <link rel="profile" href="http://gmpg.org/xfn/11"> | |
| <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> | |
| <!--[if lt IE 9]> | |
| <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script> | |
| <![endif]--> | |
| <?php wp_head(); ?> | |
| <link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/images/favicon.ico" /> | |
| <script> | |
| jQuery(document).ready(function(){ | |
| jQuery('.topads a,.topnews a,.topstorybelowlogo a,.site-header a,.topstory a,.site-main a').click(function (event) { | |
| var id = jQuery(this).attr("id"); | |
| //alert(id); | |
| jQuery.post("http://empirereportnewyork.com/wp-content/plugins/links_reports/ajax-insert.php", | |
| { | |
| action: "insert_enter", | |
| post_id: id | |
| }, function(response) { | |
| } | |
| ); | |
| }); | |
| //------------------ form submit ------------------- | |
| jQuery('.form-submit-button').click(function (event) { | |
| var messge = jQuery('#input_1').val(); | |
| //alert(id); | |
| jQuery.post("http://empirereportnewyork.com/wp-content/plugins/links_reports/ajax-email.php", | |
| { | |
| action: "sendemail", | |
| messge: messge | |
| }, function(response) { | |
| jQuery(".form-all").html(response); | |
| } | |
| ); | |
| }); | |
| var deviceAgent = navigator.userAgent.toLowerCase(); | |
| var agentID = deviceAgent.match(/(iphone)/); | |
| if (agentID) { | |
| jQuery('.youtubediv').attr('src', 'https://www.youtube.com/embed/gMVpXZGgJDc?rel=0&showinfo=0&autoplay=1&') | |
| } else { | |
| jQuery('.youtubediv').attr('src', 'https://www.youtube.com/embed/gMVpXZGgJDc?rel=0&showinfo=0&autoplay=1&mute=1') | |
| } | |
| }); | |
| function topaddfunc(){ | |
| var E=document.getElementsByClassName("topads"); | |
| var m=E.length; | |
| var n=parseInt(Math.random()*m); | |
| for(var i=m-1;i>=0;i--){ | |
| var e=E[i];e.style.display='none'; | |
| } | |
| E[n].style.display=''; | |
| //setTimeout(topaddfunc, 5000); | |
| } | |
| setInterval(function() { | |
| window.location.reload(); | |
| }, 400000); | |
| </script> | |
| <?php | |
| if(isset($_SESSION['vistor'])){ | |
| $_SESSION['vistor']=$_SESSION['vistor']+1; | |
| } else { | |
| $_SESSION['vistor']=1; | |
| } | |
| // echo $_SESSION['vistor']; | |
| if($_SESSION['vistor']==2){ | |
| echo ' | |
| <style> | |
| .cycle-2{ | |
| display:block !important; | |
| } | |
| .cycle-1,.cycle-3,.cycle-4{ | |
| display:none !important; | |
| } | |
| .mobile-show{ | |
| display:none !important; | |
| } | |
| .desktop-show{ | |
| display:none !important; | |
| } | |
| @media only screen and (max-width: 768px) { | |
| .desktop-show{ display:none !important; } | |
| } | |
| </style> | |
| '; | |
| } else if($_SESSION['vistor']==1){ | |
| echo ' | |
| <style> | |
| .cycle-1{ | |
| display:block !important; | |
| } | |
| .cycle-2,.cycle-3,.cycle-4{ | |
| display:none !important; | |
| } | |
| .mobile-show{ | |
| display:none !important; | |
| } | |
| @media only screen and (max-width: 768px) { | |
| .desktop-show{ display:none !important; } | |
| .mobile-show{ display:block !important; } | |
| } | |
| </style> | |
| '; | |
| } | |
| else if($_SESSION['vistor']==3){ | |
| echo ' | |
| <style> | |
| .cycle-3{ | |
| display:block !important; | |
| } | |
| .cycle-2,.cycle-1,.cycle-4{ | |
| display:none !important; | |
| } | |
| .mobile-show{ | |
| display:none !important; | |
| } | |
| @media only screen and (max-width: 768px) { | |
| .desktop-show{ display:none !important; } | |
| .mobile-show{ display:block !important; } | |
| } | |
| </style> | |
| '; | |
| $_SESSION['vistor']=0; | |
| } if($_SESSION['vistor']==4){ | |
| echo ' | |
| <style> | |
| .cycle-4{ | |
| display:block !important; | |
| } | |
| .cycle-2,.cycle-1,.cycle-3{ | |
| display:none !important; | |
| } | |
| .mobile-show{ | |
| display:none !important; | |
| } | |
| @media only screen and (max-width: 768px) { | |
| .desktop-show{ display:none !important; } | |
| .mobile-show{ display:block !important; } | |
| } | |
| </style> | |
| '; | |
| $_SESSION['vistor']=0; | |
| } | |
| ?> | |
| <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> | |
| <script> | |
| (adsbygoogle = window.adsbygoogle || []).push({ | |
| google_ad_client: "ca-pub-8537916137184145", | |
| enable_page_level_ads: true | |
| }); | |
| </script> | |
| <!-- Start Alexa Certify Javascript --> | |
| <script type="text/javascript"> | |
| _atrk_opts = { atrk_acct:"GDKKp1IWh910Y8", domain:"empirereportnewyork.com",dynamic: true}; | |
| (function() { var as = document.createElement('script'); as.type = 'text/javascript'; as.async = true; as.src = "https://d31qbv1cthcecs.cloudfront.net/atrk.js"; var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(as, s); })(); | |
| </script> | |
| <noscript><img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=GDKKp1IWh910Y8" style="display:none" height="1" width="1" alt="" /></noscript> | |
| <!-- End Alexa Certify Javascript --> | |
| <script src="https://cdn.broadstreetads.com/init-2.min.js"></script> | |
| </head> | |
| <body <?php body_class(); ?> onload="topaddfunc()"> | |
| <?php | |
| /* | |
| $args = array( 'posts_per_page' => 10, 'cat' => 5 ); | |
| $myposts = query_posts( $args ); | |
| foreach ( $myposts as $post ) : setup_postdata( $post ); ?> | |
| <?php $topads=get_field('upload_image'); | |
| $topurl=get_field('enter_url'); | |
| $htmlcode=get_field('enter_code_here'); | |
| $horizontal=get_field('add_horizontal_line_below_the_news'); | |
| $heighlit=get_field('highlighting_news'); | |
| $italicize=get_field('italicize_the_news'); | |
| if($italicize=='Yes') $classitalicize='italicize'; | |
| else $classitalicize=''; | |
| if($heighlit=='Yes') $classheighlight='heighlight'; | |
| else $classheighlight=''; | |
| if($horizontal=='Yes') $classhline='<hr>'; | |
| else $classhline=''; | |
| if($htmlcode!=''){ | |
| echo '<div class="topads" style="display: none;">'.$htmlcode; | |
| echo '</div>'; | |
| //<a id="'.$post->ID.'" class="topbannerurl" href="">Advertise on NY EMPIRE REPORT 2016.</a> | |
| } else { | |
| echo '<div class="topads"><a id="'.$post->ID.'" class="topimg" href="mailto:[email protected]"><img src="'.$topads['url'].'"/></a>'; | |
| echo '</div>'; | |
| } | |
| endforeach; | |
| wp_reset_postdata(); | |
| */ | |
| ?> | |
| <div class="topads"><broadstreet-zone zone-id="61647"></broadstreet-zone></div> | |
| <div class="topnews"> | |
| <ul> | |
| <?php | |
| global $post; | |
| $args = array( 'posts_per_page' => 10, 'cat' => 6 ); | |
| $myposts = query_posts( $args ); | |
| foreach ( $myposts as $post ) : setup_postdata( $post ); ?> | |
| <?php $topnewstitle=get_field('enter_title'); | |
| $topnewsurl=get_field('enter_url'); | |
| $topnewsimage= array(); | |
| $topnewsimagex=get_field('upload_image', false, false); | |
| $color=get_field('select_color'); | |
| $topnewsimage['url']=wp_get_attachment_image( $topnewsimagex, '' ); | |
| $htmlcode=get_field('enter_code_here'); | |
| $horizontal=get_field('add_horizontal_line_below_the_news'); | |
| $heighlit=get_field('highlighting_news'); | |
| $italicize=get_field('italicize_the_news'); | |
| if($italicize=='Yes') $classitalicize='italicize'; | |
| else $classitalicize=''; | |
| if($heighlit=='Yes') $classheighlight='heighlight'; | |
| else $classheighlight=''; | |
| if($horizontal=='Yes') $classhline='<hr>'; | |
| else $classhline=''; | |
| if($color=='') $classcolor='style="color:#000 !important"'; | |
| else $classcolor='style="color:'.$color.' !important"'; | |
| if($topnewsimage['url']!='' && $topnewsurl!='' && $topnewstitle!=''){ | |
| echo ' <li class="alloption"><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewsimage['url'].'<span>'.$topnewstitle.'</span></a></li>'; | |
| } else if($topnewsimage['url']!='' && $topnewsurl!=''){ | |
| echo ' <li><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewsimage['url'].'</a></li>'; | |
| } else if($topnewsimage['url']!='' && $topnewsurl==''){ | |
| echo '<li>'.$topnewsimage['url'].'</li>'; | |
| } else if($htmlcode!=''){ | |
| echo '<li>'.$htmlcode.'</li>'; | |
| } else { | |
| echo '<li><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewstitle.'</a></li>'; | |
| } | |
| echo $classhline; | |
| endforeach; | |
| wp_reset_postdata(); | |
| ?> | |
| </ul> | |
| </div> | |
| <div class="topstorybelowlogo"> | |
| <ul> | |
| <?php | |
| $args = array( 'posts_per_page' => 10, 'cat' => 15 ); | |
| $myposts = query_posts( $args ); | |
| // var_dump($myposts); | |
| foreach ( $myposts as $post ) : setup_postdata( $post ); ?> | |
| <?php $topnewstitle=get_field('enter_title'); | |
| $topnewsurl=get_field('enter_url'); | |
| $topnewsimage= array(); | |
| $topnewsimagex=get_field('upload_image', false, false); | |
| $color=get_field('select_color'); | |
| $topnewsimage['url']=wp_get_attachment_image( $topnewsimagex, '' ); | |
| $htmlcode=get_field('enter_code_here'); | |
| $horizontal=get_field('add_horizontal_line_below_the_news'); | |
| $heighlit=get_field('highlighting_news'); | |
| $italicize=get_field('italicize_the_news'); | |
| if($italicize=='Yes') $classitalicize='italicize'; | |
| else $classitalicize=''; | |
| if($heighlit=='Yes') $classheighlight='heighlight'; | |
| else $classheighlight=''; | |
| if($horizontal=='Yes') $classhline='<hr>'; | |
| else $classhline=''; | |
| if($color=='') $classcolor='style="color:#000 !important"'; | |
| else $classcolor='style="color:'.$color.' !important"'; | |
| if($topnewsimage['url']!='' && $topnewsurl!='' && $topnewstitle!=''){ | |
| echo ' <li class="alloption"><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewsimage['url'].'<span>'.$topnewstitle.'</span></a></li>'; | |
| } else if($topnewsimage['url']!='' && $topnewsurl!=''){ | |
| echo ' <li><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewsimage['url'].'</a></li>'; | |
| } else if($topnewsimage['url']!='' && $topnewsurl==''){ | |
| echo '<li>'.$topnewsimage['url'].'</li>'; | |
| } else if($htmlcode!=''){ | |
| echo '<li>'.$htmlcode.'</li>'; | |
| } else { | |
| echo '<li><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewstitle.'</a></li>'; | |
| } | |
| echo $classhline; | |
| endforeach; | |
| wp_reset_postdata();?> | |
| </ul> | |
| </div> | |
| <div id="page" class="hfeed site"> | |
| <header id="masthead" class="site-header" role="banner"> | |
| <a class="home-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img width="610" src="<?php bloginfo( 'template_url' ); ?>/images/logo.png" align="NY EMPIRE REPORT 2016"></a> | |
| <!-- #navbar --> | |
| </header><!-- #masthead --> | |
| <div class="topstory"> | |
| <ul> | |
| <?php | |
| $args = array( 'posts_per_page' => 10, 'cat' => 14 ); | |
| $myposts = query_posts( $args ); | |
| foreach ( $myposts as $post ) : setup_postdata( $post ); ?> | |
| <?php $topnewstitle=get_field('enter_title'); | |
| $topnewsurl=get_field('enter_url'); | |
| $topnewsimage=get_field('upload_image'); | |
| $color=get_field('select_color'); | |
| $htmlcode=get_field('enter_code_here'); | |
| $horizontal=get_field('add_horizontal_line_below_the_news'); | |
| $heighlit=get_field('highlighting_news'); | |
| $italicize=get_field('italicize_the_news'); | |
| if($italicize=='Yes') $classitalicize='italicize'; | |
| else $classitalicize=''; | |
| if($heighlit=='Yes') $classheighlight='heighlight'; | |
| else $classheighlight=''; | |
| if($horizontal=='Yes') $classhline='<hr>'; | |
| else $classhline=''; | |
| if($color=='') $classcolor='style="color:#000 !important"'; | |
| else $classcolor='style="color:'.$color.' !important"'; | |
| if($topnewsimage['url']!='' && $topnewsurl!='' && $topnewstitle!=''){ | |
| echo ' <li class="alloption"><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'"><img src="'.$topnewsimage['url'].'"/><span>'.$topnewstitle.'</span></a></li>'; | |
| } else if($topnewsimage['url']!='' && $topnewsurl!=''){ | |
| echo ' <li><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'"><img src="'.$topnewsimage['url'].'"/></a></li>'; | |
| } else if($topnewsimage['url']!='' && $topnewsurl==''){ | |
| echo '<li><img src="'.$topnewsimage['url'].'"/></li>'; | |
| } else if($htmlcode!=''){ | |
| echo '<li>'.$htmlcode.'</li>'; | |
| } else { | |
| echo '<li><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewstitle.'</a></li>'; | |
| } | |
| echo $classhline; | |
| endforeach; | |
| wp_reset_postdata();?> | |
| </ul> | |
| </div> | |
| <div id="main" class="site-main"> | |
| <table> | |
| <tr> | |
| <td> | |
| <div class="leftsidebarstory"> | |
| <ul> | |
| <?php | |
| $args = array( 'posts_per_page' => 100, 'cat' => 8 ); | |
| $myposts = query_posts( $args ); | |
| foreach ( $myposts as $post ) : setup_postdata( $post ); ?> | |
| <?php $topnewstitle=get_field('enter_title'); | |
| $topnewsurl=get_field('enter_url'); | |
| $topnewsimagex=get_field('upload_image'); | |
| $topnewsimage= array(); | |
| $topnewsimagex=get_field('upload_image', false, false); | |
| $color=get_field('select_color'); | |
| $topnewsimage['url']=wp_get_attachment_image( $topnewsimagex, '' ); | |
| $htmlcode=get_field('enter_code_here'); | |
| $horizontal=get_field('add_horizontal_line_below_the_news'); | |
| $heighlit=get_field('highlighting_news'); | |
| $italicize=get_field('italicize_the_news'); | |
| if($italicize=='Yes') $classitalicize='italicize'; | |
| else $classitalicize=''; | |
| if($heighlit=='Yes') $classheighlight='heighlight'; | |
| else $classheighlight=''; | |
| if($horizontal=='Yes') $classhline='<hr>'; | |
| else $classhline=''; | |
| if($color=='') $classcolor='style="color:#000 !important"'; | |
| else $classcolor='style="color:'.$color.' !important"'; | |
| if($topnewsimage['url']!='' && $topnewsurl!='' && $topnewstitle!=''){ | |
| echo ' <li class="alloption"><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewsimage['url'].'<span>'.$topnewstitle.'</span></a></li>'; | |
| } else if($topnewsimage['url']!='' && $topnewsurl!=''){ | |
| echo ' <li><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewsimage['url'].'</a></li>'; | |
| } else if($topnewsimage['url']!='' && $topnewsurl==''){ | |
| echo '<li>'.$topnewsimage['url'].'</li>'; | |
| } else if($htmlcode!=''){ | |
| echo '<li>'.$htmlcode.'</li>'; | |
| } else { | |
| echo '<li><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewstitle.'</a></li>'; | |
| } | |
| echo $classhline; | |
| endforeach; | |
| wp_reset_postdata();?> | |
| </ul> | |
| </div> | |
| <div class="leftsidefooter"> | |
| <ul> | |
| <?php | |
| $args = array( 'posts_per_page' => 100, 'cat' => 11 ); | |
| $myposts = query_posts( $args ); | |
| foreach ( $myposts as $post ) : setup_postdata( $post ); ?> | |
| <?php $topnewstitle=get_field('enter_title'); | |
| $topnewsurl=get_field('enter_url'); | |
| $topnewsimage=get_field('upload_image'); | |
| $color=get_field('select_color'); | |
| $htmlcode=get_field('enter_code_here'); | |
| $horizontal=get_field('add_horizontal_line_below_the_news'); | |
| $heighlit=get_field('highlighting_news'); | |
| $italicize=get_field('italicize_the_news'); | |
| if($italicize=='Yes') $classitalicize='italicize'; | |
| else $classitalicize=''; | |
| if($heighlit=='Yes') $classheighlight='heighlight'; | |
| else $classheighlight=''; | |
| if($horizontal=='Yes') $classhline='<hr>'; | |
| else $classhline=''; | |
| if($color=='') $classcolor='style="color:#000 !important"'; | |
| else $classcolor='style="color:'.$color.' !important"'; | |
| if($topnewsimage['url']!='' && $topnewsurl!='' && $topnewstitle!=''){ | |
| echo ' <li class="alloption"><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'"><img style="width:200px" width="250" src="'.$topnewsimage['url'].'"/><span>'.$topnewstitle.'</span></a></li>'; | |
| } else if($topnewsimage['url']!='' && $topnewsurl!=''){ | |
| echo ' <li><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'"><img style="width:200px" width="250" src="'.$topnewsimage['url'].'"/></a></li>'; | |
| } else if($topnewsimage['url']!='' && $topnewsurl==''){ | |
| echo '<li class="'.$classheighlight.' '.$classitalicize.'"><img style="width:200px" width="250" src="'.$topnewsimage['url'].'"/></li>'; | |
| } else if($htmlcode!=''){ | |
| echo '<li>'.$htmlcode.'</li>'; | |
| } else { | |
| echo '<li><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewstitle.'</a></li>'; | |
| } | |
| echo $classhline; | |
| endforeach; | |
| wp_reset_postdata();?> | |
| </ul> | |
| </div> | |
| </td> | |
| <td style="border-left: 2px solid rgb(237, 237, 237); border-right: 2px solid rgb(237, 237, 237);"> | |
| <div class="middlesidebarstory"> | |
| <ul> | |
| <?php | |
| $args = array( 'posts_per_page' => 100, 'cat' => 9 ); | |
| $myposts = query_posts( $args ); | |
| foreach ( $myposts as $post ) : setup_postdata( $post ); ?> | |
| <?php $topnewstitle=get_field('enter_title'); | |
| $topnewsurl=get_field('enter_url'); | |
| $topnewsimagex=get_field('upload_image'); | |
| $topnewsimage= array(); | |
| $topnewsimagex=get_field('upload_image', false, false); | |
| $color=get_field('select_color'); | |
| $topnewsimage['url']=wp_get_attachment_image( $topnewsimagex, '' ); | |
| $htmlcode=get_field('enter_code_here'); | |
| $horizontal=get_field('add_horizontal_line_below_the_news'); | |
| $heighlit=get_field('highlighting_news'); | |
| $italicize=get_field('italicize_the_news'); | |
| if($italicize=='Yes') $classitalicize='italicize'; | |
| else $classitalicize=''; | |
| if($heighlit=='Yes') $classheighlight='heighlight'; | |
| else $classheighlight=''; | |
| if($horizontal=='Yes') $classhline='<hr>'; | |
| else $classhline=''; | |
| if($color=='') $classcolor='style="color:#000 !important"'; | |
| else $classcolor='style="color:'.$color.' !important"'; | |
| if($topnewsimage['url']!='' && $topnewsurl!='' && $topnewstitle!=''){ | |
| echo ' <li class="alloption"><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewsimage['url'].'<span>'.$topnewstitle.'</span></a></li>'; | |
| } else if($topnewsimage['url']!='' && $topnewsurl!=''){ | |
| echo ' <li><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewsimage['url'].'</a></li>'; | |
| } else if($topnewsimage['url']!='' && $topnewsurl==''){ | |
| echo '<li class="'.$classheighlight.' '.$classitalicize.'">'.$topnewsimage['url'].'</li>'; | |
| } else if($htmlcode!=''){ | |
| echo '<li>'.$htmlcode.'</li>'; | |
| } else { | |
| echo '<li><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewstitle.'</a></li>'; | |
| } | |
| echo $classhline; | |
| endforeach; | |
| wp_reset_postdata();?> | |
| </ul> | |
| </div> | |
| <div class="middlesidefooter"> | |
| <ul> | |
| <?php | |
| $args = array( 'posts_per_page' => 100, 'cat' => 12 ); | |
| $myposts = query_posts( $args ); | |
| foreach ( $myposts as $post ) : setup_postdata( $post ); ?> | |
| <?php $topnewstitle=get_field('enter_title'); | |
| $topnewsurl=get_field('enter_url'); | |
| $topnewsimage=get_field('upload_image'); | |
| $topnewsimage= array(); | |
| $topnewsimagex=get_field('upload_image', false, false); | |
| $color=get_field('select_color'); | |
| $topnewsimage['url']=wp_get_attachment_image( $topnewsimagex, '' ); | |
| $htmlcode=get_field('enter_code_here'); | |
| $horizontal=get_field('add_horizontal_line_below_the_news'); | |
| $heighlit=get_field('highlighting_news'); | |
| $italicize=get_field('italicize_the_news'); | |
| if($italicize=='Yes') $classitalicize='italicize'; | |
| else $classitalicize=''; | |
| if($heighlit=='Yes') $classheighlight='heighlight'; | |
| else $classheighlight=''; | |
| if($horizontal=='Yes') $classhline='<hr>'; | |
| else $classhline=''; | |
| if($color=='') $classcolor='style="color:#000 !important"'; | |
| else $classcolor='style="color:'.$color.' !important"'; | |
| if($topnewsimage['url']!='' && $topnewsurl!='' && $topnewstitle!=''){ | |
| echo ' <li class="alloption"><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewsimage['url'].'<span>'.$topnewstitle.'</span></a></li>'; | |
| } else if($topnewsimage['url']!='' && $topnewsurl!=''){ | |
| echo ' <li><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewsimage['url'].'</a></li>'; | |
| } else if($topnewsimage['url']!='' && $topnewsurl==''){ | |
| echo '<li class="'.$classheighlight.' '.$classitalicize.'">'.$topnewsimage['url'].'</li>'; | |
| } else if($htmlcode!=''){ | |
| echo '<li>'.$htmlcode.'</li>'; | |
| } else { | |
| echo '<li><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewstitle.'</a></li>'; | |
| } | |
| echo $classhline; | |
| endforeach; | |
| wp_reset_postdata();?> | |
| </ul> | |
| </div> | |
| </td> | |
| <td> | |
| <div class="rightsidebarstory"> | |
| <ul> | |
| <?php | |
| $args = array( 'posts_per_page' => 100, 'cat' => 10 ); | |
| $myposts = query_posts( $args ); | |
| foreach ( $myposts as $post ) : setup_postdata( $post ); ?> | |
| <?php $topnewstitle=get_field('enter_title'); | |
| $topnewsurl=get_field('enter_url'); | |
| $topnewsimagex=get_field('upload_image', false, false); | |
| $color=get_field('select_color'); | |
| $topnewsimage= array(); | |
| $topnewsimage['url']=wp_get_attachment_image( $topnewsimagex, '' ); | |
| $htmlcode=get_field('enter_code_here'); | |
| $horizontal=get_field('add_horizontal_line_below_the_news'); | |
| $heighlit=get_field('highlighting_news'); | |
| $italicize=get_field('italicize_the_news'); | |
| if($italicize=='Yes') $classitalicize='italicize'; | |
| else $classitalicize=''; | |
| if($heighlit=='Yes') $classheighlight='heighlight'; | |
| else $classheighlight=''; | |
| if($horizontal=='Yes') $classhline='<hr>'; | |
| else $classhline=''; | |
| if($color=='') $classcolor='style="color:#000 !important"'; | |
| else $classcolor='style="color:'.$color.' !important"'; | |
| if($topnewsimage['url']!='' && $topnewsurl!='' && $topnewstitle!=''){ | |
| echo ' <li class="alloption"><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewsimage['url'].'<span>'.$topnewstitle.'</span></a></li>'; | |
| } else if($topnewsimage['url']!='' && $topnewsurl!=''){ | |
| echo ' <li><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewsimage['url'].'</a></li>'; | |
| } else if($topnewsimage['url']!='' && $topnewsurl==''){ | |
| echo '<li class="'.$classheighlight.' '.$classitalicize.'">'.$topnewsimage['url'].'</li>'; | |
| } else if($htmlcode!=''){ | |
| echo '<li>'.$htmlcode.'</li>'; | |
| } else { | |
| echo '<li><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewstitle.'</a></li>'; | |
| } | |
| echo $classhline; | |
| endforeach; | |
| wp_reset_postdata();?> | |
| </ul> | |
| </div> | |
| <div class="rightsidefooter"> | |
| <ul> | |
| <?php | |
| $args = array( 'posts_per_page' => 100, 'cat' => 13 ); | |
| $myposts = query_posts( $args ); | |
| foreach ( $myposts as $post ) : setup_postdata( $post ); ?> | |
| <?php $topnewstitle=get_field('enter_title'); | |
| $topnewsurl=get_field('enter_url'); | |
| $topnewsimagex=get_field('upload_image'); | |
| $topnewsimage= array(); | |
| $topnewsimagex=get_field('upload_image', false, false); | |
| $color=get_field('select_color'); | |
| $topnewsimage['url']=wp_get_attachment_image( $topnewsimagex, '' ); | |
| $htmlcode=get_field('enter_code_here'); | |
| $horizontal=get_field('add_horizontal_line_below_the_news'); | |
| $heighlit=get_field('highlighting_news'); | |
| $italicize=get_field('italicize_the_news'); | |
| if($italicize=='Yes') $classitalicize='italicize'; | |
| else $classitalicize=''; | |
| if($heighlit=='Yes') $classheighlight='heighlight'; | |
| else $classheighlight=''; | |
| if($horizontal=='Yes') $classhline='<hr>'; | |
| else $classhline=''; | |
| if($color=='') $classcolor='style="color:#000 !important"'; | |
| else $classcolor='style="color:'.$color.' !important"'; | |
| if($topnewsimage['url']!='' && $topnewsurl!='' && $topnewstitle!=''){ | |
| echo ' <li class="alloption"><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewsimage['url'].'<span>'.$topnewstitle.'</span></a></li>'; | |
| } else if($topnewsimage['url']!='' && $topnewsurl!=''){ | |
| echo ' <li><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewsimage['url'].'</a></li>'; | |
| } else if($topnewsimage['url']!='' && $topnewsurl==''){ | |
| echo '<li class="'.$classheighlight.' '.$classitalicize.'">'.$topnewsimage['url'].'</li>'; | |
| } else if($htmlcode!=''){ | |
| echo '<li>'.$htmlcode.'</li>'; | |
| } else { | |
| echo '<li><a '.$classcolor.' id="'.$post->ID.'" class="topimg '.$classheighlight.' '.$classitalicize.'" href="'.$topnewsurl.'">'.$topnewstitle.'</a></li>'; | |
| } | |
| echo $classhline; | |
| endforeach; | |
| wp_reset_postdata();?> | |
| </ul> | |
| <a href="http://news.google.com" title="Google News" class="googlenews" style="margin-left: 5px; clear: both; display: block; font-weight: bold; font-size: 18px ! important; padding: 20px 0px;">GOOGLE NEWS</a> | |
| <form class="newsform" method="get" action="http://search.news.yahoo.com/search/news"> | |
| <input type="text" size="15" name="p"> | |
| <input type="submit" value="SEARCH WIRES"> | |
| </form> | |
| <div class="form-all"> | |
| <ul class="form-section page-section"> | |
| <li id="id_1" data-type="control_textarea" class="form-line"> | |
| <label for="input_1" id="label_1" class="form-label form-label-top"> SEND NEWS TIPS TO EMPIRE REPORT </label> | |
| <div class="form-input-wide jf-required" id="cid_1"> | |
| <textarea rows="6" cols="40" name="q1_input1" class="form-textarea" id="input_1"></textarea> | |
| </div> | |
| </li> | |
| <li id="id_2" data-type="control_button" class="form-line"> | |
| <div class="form-input-wide" id="cid_2"> | |
| <div class="form-buttons-wrapper" style="margin-left:156px"> | |
| <button class="form-submit-button" type="submit" id="input_2"> | |
| Submit | |
| </button> | |
| </div> | |
| </div> | |
| </li> | |
| <li style="display:none"> | |
| Should be Empty: | |
| <input type="text" value="" name="website"> | |
| </li> | |
| </ul> | |
| </div> | |
| <?php dynamic_sidebar( 'sidebar-1' ); ?> | |
| <a class="naked_link blogger" href="mailto:[email protected]" style="margin-left: 5px;">Contact Us</a> | |
| </div> | |
| </td> | |
| </tr> | |
| </table> | |
| <?php | |
| $args = array( 'posts_per_page' => 1, 'cat' => 5 ); | |
| $myposts = query_posts( $args ); | |
| foreach ( $myposts as $post ) : setup_postdata( $post ); ?> | |
| <?php $topads=get_field('upload_image'); | |
| $color=get_field('select_color'); | |
| $topurl=get_field('enter_url'); | |
| $htmlcode=get_field('enter_code_here'); | |
| $horizontal=get_field('add_horizontal_line_below_the_news'); | |
| $heighlit=get_field('highlighting_news'); | |
| $italicize=get_field('italicize_the_news'); | |
| if($italicize=='Yes') $classitalicize='italicize'; | |
| else $classitalicize=''; | |
| if($heighlit=='Yes') $classheighlight='heighlight'; | |
| else $classheighlight=''; | |
| if($horizontal=='Yes') $classhline='<hr>'; | |
| else $classhline=''; | |
| if($color=='') $classcolor='style="color:#000 !important"'; | |
| else $classcolor='style="color:'.$color.' !important"'; | |
| if($topads){ | |
| if($htmlcode!=''){ | |
| echo '<div class="topads">'.$htmlcode; | |
| echo '<a id="'.$post->ID.'" class="topbannerurl" href="">Advertise on NY EMPIRE REPORT 2016.</a></div>'; | |
| } else { | |
| //echo '<div class="topads"><a class="topimg" href="'.$topurl.'"><img src="'.$topads['url'].'"/></a>'; | |
| // echo '<a class="topbannerurl" title="[email protected]" href="mailto:[email protected]">Advertise on NY EMPIRE REPORT 2016.</a></div>'; | |
| } | |
| } | |
| ?> | |
| <?php | |
| endforeach; | |
| wp_reset_postdata();?> | |
| <?php | |
| /** | |
| * The main template file | |
| * | |
| * This is the most generic template file in a WordPress theme and one of the | |
| * two required files for a theme (the other being style.css). | |
| * It is used to display a page when nothing more specific matches a query. | |
| * For example, it puts together the home page when no home.php file exists. | |
| * | |
| * @link https://codex.wordpress.org/Template_Hierarchy | |
| * | |
| * @package WordPress | |
| * @subpackage Twenty_Thirteen | |
| * @since Twenty Thirteen 1.0 | |
| */ | |
| ?> | |
| <!-- #primary --> | |
| <?php | |
| /** | |
| * The template for displaying the footer | |
| * | |
| * Contains footer content and the closing of the #main and #page div elements. | |
| * | |
| * @package WordPress | |
| * @subpackage Twenty_Thirteen | |
| * @since Twenty Thirteen 1.0 | |
| */ | |
| ?> | |
| </div><!-- #main --> | |
| <footer id="colophon" class="site-footer" role="contentinfo"> | |
| <!-- .site-info --> | |
| </footer><!-- #colophon --> | |
| </div><!-- #page --> | |
| <?php wp_footer(); ?> | |
| <script> | |
| (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
| (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
| m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
| })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | |
| ga('create', 'UA-72597188-1', 'auto'); | |
| ga('send', 'pageview'); | |
| </script> | |
| <!-- Quantcast Tag --> | |
| <script type="text/javascript"> | |
| var _qevents = _qevents || []; | |
| (function() { | |
| var elem = document.createElement('script'); | |
| elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge") + ".quantserve.com/quant.js"; | |
| elem.async = true; | |
| elem.type = "text/javascript"; | |
| var scpt = document.getElementsByTagName('script')[0]; | |
| scpt.parentNode.insertBefore(elem, scpt); | |
| })(); | |
| _qevents.push({ | |
| qacct:"p-JeSWtL3rRx5EC" | |
| }); | |
| </script> | |
| <noscript> | |
| <div style="display:none;"> | |
| <img src="//pixel.quantserve.com/pixel/p-JeSWtL3rRx5EC.gif" border="0" height="1" width="1" alt="Quantcast"/> | |
| </div> | |
| </noscript> | |
| <!-- End Quantcast tag --> | |
| <script>broadstreet.loadNetworkJS(5210)</script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment