<?php 
require_once('functions.php');
include('header.php');
?>
<div id="main-area">
<?php 
	$sql = "
	SELECT * FROM news_feed WHERE news_feed_permalink = '" . $_REQUEST['feed'] . "'";
    $result = &DBQuery($sql); 
	$row = $result->fetch_assoc();
	$news_feed_date = date('m/d/Y', strtotime($row['news_feed_date']));
?>	
	<div class="entry">
		<div class="entry-top"> 
			<div class="entry-content">
            	           		
                <div class="entry-title2">
                    <h1 class="title"><?php echo $row['news_feed_title'] ?>
                    <p style="font-size:16px; font-weight:normal; font-style:italic;">
					<?php echo '<a href="' . $row['news_feed_source_link'] . '" target="_blank" rel="nofollow">' . $row['news_feed_source'] . '</a> - ' . $news_feed_date; ?>
                    </p></h1>
                </div>  <!-- end .entry-title -->				 	

            	<div class="post-content">                 
					<?php echo $row['news_feed_content']; ?>
					<script type="text/javascript"><!--
						google_ad_client = "ca-pub-7990500349573717";
						/* News */
						google_ad_slot = "1110941991";
						google_ad_width = 468;
						google_ad_height = 60;
						//-->
					</script>
					<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>				
				</div> <!-- end .post-content -->
                
				<img src="images/spacer.gif" height="20px" />
                
				<div class="add-this">
<span class='st_facebook_hcount' displayText='Facebook'></span>
<span class='st_twitter_hcount' displayText='Tweet'></span>
<span class='st_googleplus_hcount' displayText='Google +'></span>
<span class='st_pinterest_hcount' displayText='Pinterest'></span>
<span class='st_linkedin_hcount' displayText='LinkedIn'></span>
<span class='st_fblike_hcount' displayText='Facebook Like'></span>						
                </div>

                <div align="right"><a href="javascript:history.go(-1);" title="go back to previous page"><< back</a></div>
            
			</div> <!-- end .entry-content -->
		</div> <!-- end .entry-top -->
	</div> <!-- end .entry -->
    
    <div class="entry">
		<div class="entry-top"> 
			<div class="entry-content">
				
				<div class="">
    				<h1 class="title">Leave a comment</h1>                                   
                </div>  <!-- end .entry-title -->
                    
				<div class="post-content">
                	<div class="clear"></div>
					<div class="fb-comments" data-href="https://www.pollheadlines.com/news-feeds.php?feed=<?php echo $_REQUEST['feed']; ?>" data-num-posts="100" data-width="570"></div>                 	
                </div> <!-- end .post-content -->  
                            				
			</div> <!-- end .entry-content -->
		</div> <!-- end .entry-top -->
	</div> <!-- end .entry -->
    				

    <!-- AD -->
	<div class="ad">
		<div class="ad-top"> 
			<div class="ad-content">                    
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Sidebar -->
<ins class="adsbygoogle"
     style="display:inline-block;width:300px;height:250px"
     data-ad-client="ca-pub-7990500349573717"
     data-ad-slot="5801185982"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Sidebar -->
<ins class="adsbygoogle"
     style="display:inline-block;width:300px;height:250px"
     data-ad-client="ca-pub-7990500349573717"
     data-ad-slot="5801185982"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
			</div> <!-- end .entry-content -->
		</div> <!-- end .entry-top -->
	</div> <!-- end .entry -->
        <!-- AD -->
        	<div class="ad">
		<div class="ad-top"> 
			<div class="ad-content">                    
            <div align="center">
          <script type="text/javascript">

//Random iframe content- © Dynamic Drive (www.dynamicdrive.com)
//Modified to produce 2 Random iframes
//For full source code, and Terms Of use, visit http://dynamicdrive.com
//This credit MUST stay intact for use

var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1
var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1

//Specify IFRAMEs display attributes
var iframeprops1='width=604 height=200 marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"'
var iframeprops2='width=604 height=200 marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"'

//Specify random URLs to display inside 1st iframe
var randomcontent1=new Array()
randomcontent1[0]="https://www.pollheadlines.com/ads/ad1.html"
randomcontent1[1]="https://www.pollheadlines.com/ads/ad2.html"
randomcontent1[2]="https://www.pollheadlines.com/ads/ad3.html"
randomcontent1[3]="https://www.pollheadlines.com/ads/ad4.html"
randomcontent1[4]="https://www.pollheadlines.com/ads/ad5.html"
randomcontent1[5]="https://www.pollheadlines.com/ads/ad6.html"
randomcontent1[6]="https://www.pollheadlines.com/ads/ad7.html"
randomcontent1[7]="https://www.pollheadlines.com/ads/ad8.html"
randomcontent1[8]="https://www.pollheadlines.com/ads/ad9.html"
randomcontent1[9]="https://www.pollheadlines.com/ads/ad10.html"
randomcontent1[10]="https://www.pollheadlines.com/ads/ad11.html"
randomcontent1[11]="https://www.pollheadlines.com/ads/ad12.html"
randomcontent1[12]="https://www.pollheadlines.com/ads/ad13.html"
randomcontent1[13]="https://www.pollheadlines.com/ads/ad14.html"
randomcontent1[14]="https://www.pollheadlines.com/ads/ad15.html"
randomcontent1[15]="https://www.pollheadlines.com/ads/ad16.html"
randomcontent1[16]="https://www.pollheadlines.com/ads/ad17.html"
randomcontent1[17]="https://www.pollheadlines.com/ads/ad18.html"

//Specify random URLs to display inside 2nd iframe
var randomcontent2=new Array()
randomcontent2[0]="https://www.pollheadlines.com/ads/ad19.html"
randomcontent2[1]="https://www.pollheadlines.com/ads/ad20.html"
randomcontent2[2]="https://www.pollheadlines.com/ads/ad21.html"
randomcontent2[3]="https://www.pollheadlines.com/ads/ad22.html"
randomcontent2[4]="https://www.pollheadlines.com/ads/ad23.html"
randomcontent2[5]="https://www.pollheadlines.com/ads/ad24.html"
randomcontent2[6]="https://www.pollheadlines.com/ads/ad25.html"
randomcontent2[7]="https://www.pollheadlines.com/ads/ad26.html"
randomcontent2[8]="https://www.pollheadlines.com/ads/ad27.html"
randomcontent2[9]="https://www.pollheadlines.com/ads/ad28.html"
randomcontent2[10]="https://www.pollheadlines.com/ads/ad29.html"
randomcontent2[11]="https://www.pollheadlines.com/ads/ad30.html"

//No need to edit after here
if (ie||dom)
document.write('<iframe id="dynstuff1" src="" '+iframeprops1+'></iframe><br>')
document.write('<iframe id="dynstuff2" src="" '+iframeprops2+'></iframe>')

function random_iframe(){
if (ie||dom){
var iframeobj1=document.getElementById? document.getElementById("dynstuff1") : document.all.dynstuff
iframeobj1.src=randomcontent1[Math.floor(Math.random()*randomcontent1.length)]
var iframeobj2=document.getElementById? document.getElementById("dynstuff2") : document.all.dynstuff
iframeobj2.src=randomcontent2[Math.floor(Math.random()*randomcontent2.length)]
}
}

window.onload=random_iframe

</script>
</div>
                            				
			</div> <!-- end .entry-content -->
		</div> <!-- end .entry-top -->
	</div> <!-- end .entry -->
    </div> <!-- end #main-area -->
<?php 
include('sidebar.php'); 
include('footer.php'); 
?>