HEX
Server: Apache
System: Linux webd003.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/slyfwmm/incastiglionfiorentino/wp-content/themes/amplify/blog.php
<?php
/**
 * Template Name: Blog
 *
 * Standard blog template, create a static page for your blog and select this as the template.
 *
 * The "Template Name:" bit above allows this to be selectable
 * from a dropdown menu on the edit page screen.
 */

get_header(); ?>

<div id="main_container">

<!-- IE7 float fix --><!--[if lt IE 7]><span class="iefix">.</span><![endif]-->

	<div class="main">
	
			<div class="entries_full">
			
				<div class="entry_full">
				
				<div class="box_twothirds mt30 pr60">

 <!-- BLOG POSTS BEGIN -->
<?php
$exclude_cat = get_option('bb_exclude_cat');
$exclude_temp = str_replace(",", ",-", $exclude_cat);
$exclude_cats = "-" . $exclude_temp;
$blog_posts = get_option('bb_blog_posts');
if($blog_posts == NULL) {$blog_posts = '5';}
  $temp = $wp_query;
  $wp_query= null;
  $wp_query = new WP_Query('cat=' . $exclude_cats . '&paged=' . $paged . '&showposts=' . $blog_posts);
  $count = 0;
  while ($wp_query->have_posts()) : $wp_query->the_post();
?>
 
 <!-- displays the blog posts -->
 <?php $count++; if($count > 3) { $count = 1; } ?>
 
<!-- begin individual post -->
 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
				<h3 class="<?php if($count > 1) echo "mt25 "; ?>mb12"><a href="<?php if(get_field('external_link_value') != NULL) {echo get_field('external_link_value');} else{the_permalink();} ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
				
				<?php if(get_field('large_image_value') != NULL || get_field('fullsize_value') != NULL)
				{ ?>
				<div class="mag_blog"><!-- magnifying glass div -->
		<a href="<?php if(get_field('external_link_value') {echo get_field('external_link_value');} else{the_permalink();} ?>" title="<?php the_title_attribute(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/scripts/timthumb.php?src=<?php if (get_field('large_image_value') != NULL) {echo get_field('large_image_value');} else if (get_field('fullsize_value') != NULL) {echo get_field('fullsize_value');} else {echo get_field('accordion_image_value');} ?>&amp;h=213&amp;w=600&amp;zc=1" alt="<?php the_title(); ?>" /></a>
			</div><!-- end magnifying glass div -->
			<?php } ?>
				<p class="meta"><span class="postdate"><?php the_time('F jS, Y') ?></span><span class="tags"><?php the_category(', '); ?></span><span class="comments"><a href="<?php the_permalink(); ?>#comments" title="comments"><?php comments_number('0 comments','1 comment','% comments'); ?></a></span></p>
				<?php global $more; $more = false; ?><?php the_content('<span>Continue Reading</span>'); ?><?php $more = true; ?>
				
				<div class="bar mt25 mb30"></div>

				<?php comments_template( '', true ); ?>
</div><!-- end individual post -->

<?php endwhile;
  if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
  else { ?>
<?php /* Display navigation to next/previous pages when applicable */ ?>
<?php if (  $wp_query->max_num_pages > 1 ) : ?>
				<?php next_posts_link( __( '&larr; Older posts', 'twentyten' ) ); ?>&nbsp;
				<?php previous_posts_link( __( 'Newer posts &rarr;', 'twentyten' ) ); ?>
<?php endif; ?>

<?php }
  $wp_query = null; $wp_query = $temp; ?>
 <!-- BLOG POSTS END -->

				</div>

<!-- Begin Sidebar -->
<?php include('sidebar.php'); ?>
<!-- end sidebar -->
							
				<div class="clear"></div>

				</div><!-- end div.entry -->
				
			</div><!-- end div.entries -->

	<div class="clear"></div>
		
	</div><!-- end div#main -->
	
	<div class="clear"></div>
	
</div><!-- end div#main_container-->

<?php get_footer(); ?>