HEX
Server: Apache
System: Linux c119.dattaweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: c1190199 (57165)
PHP: 7.4.33
Disabled: mail, system, shell, exec, system_exec, shell_exec, mysql_pconnect, passthru, popen, proc_open, proc_close, proc_nice, proc_terminate, proc_get_status, escapeshellarg, escapeshellcmd, eval, dl, imap_mail, libvirt_connect, gnupg_init, unsetenv, apache_setenv, pcntl_exec, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_get_handler, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_getpriority, pcntl_setpriority, pcntl_async_signals, opcache_get_status, opcache_reset, opcache_get_configuration
Upload Files
File: /home/c1190199/public_html/wp-content/themes/infocus/lib/includes/template-single.php
<?php
/*
Template Name: Blog Single Template
*/
//get_header();
require(WEBTREATS_INCLUDES . "/var.php");

$teaser_text = get_post_meta($post->ID, 'teaser_text', true);
$teaser_text_custom = get_post_meta($post->ID, 'teaser_text_custom', true);
if ($teaser_text == 'disable' || $header_teaser == 'disable') {
	$header_disable = true; }
?>

<script type="text/javascript">
/* <![CDATA[ */
	document.write('<style type="text/css">.noscript { display:none; }</style>');
	jQuery.noConflict();
	
	function portfolio_img_hover() {
		jQuery(".blog_frame").hover(
			function() {
					jQuery(this).find('.hover_fade').stop().animate({opacity:0.4},400);
				},
				function() {
					jQuery(this).find('.hover_fade').stop().animate({opacity:1},400);
				});
	}
	
	// preload ajax-loader.gif
	jQuery.preloadImages("<?php echo get_template_directory_uri();?>/images/ajax-loader.gif");
		
	// ajax page GET function
	jQuery(document).ready(function() {	
	
	// image loader
	jQuery(this).delay(500,function() {
		
		// id of the div containers
		var $imgContainerId = "div[id^='image_loader_']";
		
		// grab the images
		var $images = jQuery($imgContainerId+' span img');
		
		// image length
		var $max = $images.length;
		
		// remove them from DOM to prevent normal load
		jQuery('.rm_portfolio_img').remove();

		// loading div object
		var $loadDiv = null;
		
		// start loading
		if($max>0) {
			LoadImage(0,$max);
		}

	// loading function handler
	function LoadImage(index,$max) {
		if(index<$max) {

			// add list to div
			jQuery('<span id="img'+(index+1)+'"></span>').each(function() {
			   jQuery(this).appendTo('#image_loader_'+(index+1)+' a.load_blog_img');
			});

			// new image object
			var $img = new Image();
			
			// current image
			var $curr = jQuery("#img"+(index+1));
			
			// load current image
			jQuery($img).load(function () {
				
				// hide it first + .hide() failed in safari
				jQuery(this).css('display','none');
				
				//add alt attr & hover fade
				jQuery(this).attr({alt: ""});
				jQuery(this).addClass('hover_fade');
				
				// remove loading class from div and insert the image into it
				jQuery($curr).append(this);
				
				// fade it in
				jQuery(this).fadeIn(250,function() {
					
					jQuery('#image_loader_'+(index+1)).find('.loading_blog').remove();
					jQuery('#image_loader_'+(index+1)).find('.roll_over').css('display','block');

					if(index == ($max-1)) {
						// activate hover class
						   portfolio_img_hover();
						}else{
						  // we are inform loading next item
						  //jQuery($loadDiv).html('Wait Loading Next Item ...');
						  LoadImage(index+1,$max);
						}
				});
			}).error(function () {
				// if loading error remove div
				jQuery($curr).remove();
				// try to load next item
				LoadImage(index+1,$max);
			}).attr('src', jQuery($images[index]).attr('src'));
	   	  }
    	}
    });
	
});	
/* ]]> */
</script>


<div id="intro_blurb"<?php if ($header_disable){echo ' style="display:none;"';}?>>
	<div class="inner">
		<div id="intro_blurb_title"><span><?php echo get_the_title($blog_page) ?></span></div>
			<div id="blurb">
			
			<?php
			//Header Teaser Text Options
			if (!$teaser_text || $teaser_text == 'default') {

				if ($header_teaser == 'customtext' && $teaser_custom) {
					echo stripslashes($teaser_custom);
				}
				if ($header_teaser == 'twitter' && !$twitter_id) {
					echo 'You must have your Twitter user name entered in the "General Settings" tab of your themes options for this to function properly.';
				}
				if ($header_teaser == 'twitter' && $twitter_id) {
					$usernames = $twitter_id; $limit = '1'; $type = 'teaser';
					parse_cache_feed($usernames, $limit, $type);
				}
			
			}else{
			
				if ($teaser_text == 'custom' && !$teaser_text_custom) {
					echo stripslashes($teaser_custom);
				}
				if ($teaser_text == 'custom' && $teaser_text_custom) {
					echo stripslashes($teaser_text_custom);
				}
				if ($teaser_text == 'twitter' && !$twitter_id) {
					echo 'You must have your Twitter user name entered in the "General Settings" tab of your themes options for this to function properly.';
				}
				if ($teaser_text == 'twitter' && $twitter_id) {
					$usernames = $twitter_id; $limit = '1'; $type = 'teaser';
					parse_cache_feed($usernames, $limit, $type);
				}
			}
			?> 
		</div>
	</div><!-- inner -->						
</div><!-- intro_blurb -->	

<div class="clearboth"></div>

<div id="breadcrumbs">
	<div class="inner">
		<?php if (!$breadcrumb_disable){ if (class_exists('simple_breadcrumb')) { $bc = new simple_breadcrumb; }} ?>
	</div><!-- inner -->							
</div><!-- breadcrumbs -->

<div id="has_sidebar">
	<div id="body_block">
		<div class="inner">
			<div id="primary">
				<div class="content">

<?php $counter=0; ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<div class="post" id="post_id_<?php the_ID(); ?>">
		
<h2 class="blog_header"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="top_metadata">
	<?php $get_year = get_the_time('Y'); $get_month = get_the_time('m'); ?>
	Posted <a href="<?php echo get_month_link($get_year, $get_month); ?>"><?php the_time('M j Y') ?></a> by <?php the_author_posts_link(); ?>		
			<?php if ( count(($categories=get_the_category())) > 1 || $categories[0]->cat_ID != 1 ) : ?>
				 in <?php the_category(', ') ?>
			<?php endif; ?>
	with <?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?>
</div>


<?php
$portfolio_full = get_post_meta($post->ID, 'portfolio_full_img', true);
$portfolio_video = get_post_meta($post->ID, 'portfolio_video_link', true);
$portfolio_full_resized = webtreats_image_resize($height='234', $width='612', $portfolio_full);
$portfolio_link = ($portfolio_video) ? $portfolio_video : $portfolio_full;
$rollover_class = ($portfolio_video) ? ' rollover_play' : ' rollover';
?>

<?php if ($portfolio_full) { $counter++; ?>
	
<div id="image_loader_<?php echo $counter; ?>">
	<div class="blog_frame">
		<div class="loading_blog"></div>
		<a class="load_blog_img" rel="lightbox" title="<?php the_title(); ?>" href="<?php echo $portfolio_link; ?>">
			<span class="rm_portfolio_img noscript"><img src="<?php echo $portfolio_full_resized; ?>" alt="" /></span>
			<span class="roll_over<?php echo $rollover_class; ?>"></span>
		</a>
	</div>
</div>

<?php } ?>

	<div class="entry">
		<?php the_content(); ?>
		<div class="clearboth"></div>
	</div>
	<?php wp_link_pages('before=<div id="page-links">Pages: &after=</div>'); ?>
			
	<div class="bottom_metadata">
		<span class="tags">
		<?php the_tags('<strong>Tags</strong>: <em>', '</em>, <em>', '</em>'); ?>
		</span>		
		<?php if ( count(($categories=get_the_category())) > 1 || $categories[0]->cat_ID != 1 ) : ?>
		 <strong>Category:</strong> 
		 <?php the_category(', ') ?>
		<?php endif; ?>
		<?php edit_post_link('Edit', '&nbsp;&nbsp;(&nbsp;&nbsp;', '&nbsp;&nbsp;)&nbsp;&nbsp;'); ?>
	</div>
</div> <!-- post -->

<?php if (!$social_bookmarks) { ?>
<div class="gradient_box_middle" id="spread_the_word">
	<div class="gradient_box_top">
		<div class="gradient_box_bottom">
			<span class="sprite"></span>
			<div class="icons">
				<?php echo webtreats_sociable_bookmarks(); ?>	
			</div>	
			<div class="clearboth"></div>
		</div>	
	</div>	
</div>
<?php } ?>

<?php if (!$about_author) { webtreats_author_info(); } ?>

<div class="clearboth"></div>

<?php if (!$related_popular_posts) { ?>
<div id="popular_related_posts">	
	<div class="one_half"><?php webtreats_popular_post(); ?></div>
	<div class="one_half last"><?php webtreats_related_post(); ?></div>
	<div class="clearboth"></div>
</div>
<?php } ?>

<div id="comments">
	<?php comments_template(); ?>
</div>
<?php endwhile; else : ?>
	
	<p>Sorry, no posts matched your criteria.</p>

<?php endif; ?>

<?php get_sidebar(); ?>
<?php get_footer(); ?>