HEX
Server: Apache/2.4.49 (FreeBSD) OpenSSL/1.0.2s-freebsd PHP/5.6.36
System: FreeBSD hosting.icon.bg 11.3-RELEASE-p13 FreeBSD 11.3-RELEASE-p13 #0: Tue Sep 1 06:56:51 UTC 2020 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
User: ftpuser (1002)
PHP: 5.6.36
Disabled: NONE
Upload Files
File: /hosting/kak.bg/web/wp-content/themes/Primero/search.php
<?php get_header(); ?>


		
		<?php if (function_exists('progression_breadcrumbs')) progression_breadcrumbs(); ?>
		
		<div class="content-container">
			
			<div class="<?php if(of_get_option('blog_sidebar', 'yes') == 'yes'): ?>sidebar-container<?php else: ?>content-container<?php endif; ?> container-<?php echo of_get_option('sidebar', 'right'); ?>">
				
			<div class="page-content <?php if(of_get_option('blog_sidebar', 'yes') == 'yes'): ?>content-sidebar<?php if(of_get_option('sidebar', 'right') != 'right') echo '-'.of_get_option('sidebar', 'right');  //if statement needed to avoid css layout issues ?><?php endif; ?>">
		
		
		<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'progressionstudios' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
			
			
		
	 <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
		
		<?php $title = get_the_title(); $keys= explode(" ",$s); $title = preg_replace('/('.implode('|', $keys) .')/iu', '<span style="text-decoration:underline; ">\0</span>', $title); ?>
		
		

		<div class="blog-post">
			<h2 class="blog-title"><a href="<?php echo the_permalink(); ?>"><?php the_title(); ?></a></h2>
			
			
			
			
			<?php if(of_get_option('blog_sidebar', 'yes') == 'yes'): ?>
			
			<?php
				if(get_post_meta($post->ID, 'pyre_video_embed_link', true)):
			?>
				<div class="blog-featured-image">
					
					<?php
					$values = get_post_custom_values('pyre_video_embed_link');
					$pattern = "/height=\"[0-9]*\"/";
					$values = preg_replace($pattern, "height='354'", $values);
					$pattern = "/width=\"[0-9]*\"/";
					$values = preg_replace($pattern, "width='630'", $values);
					$shortcode_output = do_shortcode($values[0]);
					print $shortcode_output;										
					?>
				</div>
			<?php
				elseif(has_post_thumbnail()):
				
					$thumbnail_2 = wp_get_attachment_image_src ( get_post_thumbnail_id($post->ID),'blog-image');					
			?>
				<div class="blog-featured-image"><a href="<?php the_permalink(); ?>"><img src="<?php echo $thumbnail_2[0]; ?>" /></a></div>
			<?php
				endif;
			?>
			
			<?php endif; ?>
			
			
			<?php if(of_get_option('blog_sidebar', 'no') == 'no'): ?>
			<?php
				if(get_post_meta($post->ID, 'pyre_video_embed_link', true)):
			?>
				<div class="blog-featured-image">
					
					<?php
					$values = get_post_custom_values('pyre_video_embed_link');
					$pattern = "/height=\"[0-9]*\"/";
					$values = preg_replace($pattern, "height='354'", $values);
					$pattern = "/width=\"[0-9]*\"/";
					$values = preg_replace($pattern, "width='900'", $values);
					$shortcode_output = do_shortcode($values[0]);
					print $shortcode_output;										
					?>
				</div>
			<?php
				elseif(has_post_thumbnail()):
				
					$thumbnail_2 = wp_get_attachment_image_src ( get_post_thumbnail_id($post->ID),'portfolio-one');					
			?>
				<div class="blog-featured-image"><a href="<?php the_permalink(); ?>"><img src="<?php echo $thumbnail_2[0]; ?>" /></a></div>
			<?php
				endif;
			?>
			
			<?php endif; ?>
			
			
			
			<div class="blog-details">by <?php the_author(); ?> on <a href="#">Jan 29 2011</a> in <?php the_category(', '); ?>  with <a href="#comments"><?php echo get_comments_number() ?> comments</a></div>
			
			<?php the_content('',FALSE,''); ?>

			<?php if(has_more()) { ?>
				<p><a href="<?php the_permalink();?>" class="button"><?php echo of_get_option('blog_button', 'Read more &rsaquo;'); ?></a></p>
			<?php } ?>
			
			<hr>
			
			<p class="blog-tags">
				
				<?php the_tags(__( '<strong>Tags</strong>: ', 'progressionstudios' ), ', ', '<br />'); ?>
				
			</p><!-- close .portfolio-tags -->
			
			<div class="social-networking-portfolio">
				<?php if(of_get_option('googeplus_icon', 'yes') == 'yes'): ?>
				<div class="google-plus">
					<!-- Place this tag where you want the +1 button to render -->
					<g:plusone size="medium" href="<?php the_permalink(); ?>"></g:plusone>
					<!-- Place this render call where appropriate -->
					<script type="text/javascript">
					  (function() {
					    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
					    po.src = 'https://apis.google.com/js/plusone.js';
					    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
					  })();
					</script>
				</div>
				<?php endif; ?>
				
				<?php if(of_get_option('twitter_icon_button', 'yes') == 'yes'): ?>
				<div class="twitter-button"><a href="https://twitter.com/share" data-url="<?php the_permalink(); ?>" data-text="Check out this site" class="twitter-share-button" target="_blank">Share on Twitter</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
				<?php endif; ?>
				
				<?php if(of_get_option('facebook_icon_button', 'yes') == 'yes'): ?>
				<div><a name="fb_share" type="button_count"  share_url="<?php the_permalink(); ?>" target="_blank">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></div>
				<?php endif; ?>
				
				<?php if(of_get_option('facebook_like_button', 'yes') == 'yes'): ?>
				<div><iframe src="http://www.facebook.com/plugins/like.php?href=<?php the_permalink(); ?>&amp;layout=button_count&amp;show_faces=true&amp;width=90&amp;action=like&amp;colorscheme=light&amp;height=23" scrolling="no" allowtransparency="true" frameborder="0" style="border:none; overflow:hidden; width:85px; height:23px; background:transparent; margin-right:-15px;"></iframe></div>
				<?php endif; ?>
			</div><!-- close .social-networking-portfolio -->
									
			
			
			<div class="clearfix"></div>
			<hr>
			
		</div><!-- close .blog-post -->
		

		
		
		
	 <?php endwhile; else: ?>
	 	<p>Sorry, no posts matched your criteria.</p>
	 <?php endif; ?>


		
		
	
	</div><!-- close .page-content -->
	
	
	<?php if(of_get_option('blog_sidebar', 'yes') == 'yes'): ?>
	<?php get_sidebar(); ?>
	<?php endif; ?>
	
	
	<div class="clearfix"></div>
	
</div><!-- close .sidebar-container -->
	
	
</div><!-- close .content-container -->




<div class="content-container-base-pagination">						

	<div class="left-pagination"><?php 
		//get the current page number in $paged
		$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; 
		$totalPages = $wp_query->max_num_pages;
		if($totalPages>1):
	?>
		Page <?php echo $paged; ?> of <?php echo $totalPages; ?>
	<?php endif; ?>
	</div>
	<div class="right-pagination"></div>
	<div class="center-pagination"><?php kriesi_pagination($pages = '', $range = 2); ?> </div>
	<!--div class="center-pagination"><a href="#" class="selected">1</a><a href="#">2</a><a href="#">3</a><a href="#">Next &rsaquo;</a></div-->
	<div class="clearfix"></div>
	
</div><!-- close .content-container-base or .content-container-base-pagination -->


<?php get_footer(); ?>