File: /home/slyfwmm/incastiglionfiorentino/wp-content/themes/amplify/footer.php
<div id="footer_container">
<div class="footer">
<div class="box_30">
<ul class="footer_widgets">
<?php
/* When we call the dynamic_sidebar() function, it'll spit out
* the widgets for that widget area. If it instead returns false,
* then the sidebar simply doesn't exist, so we'll hard-code in
* some default sidebar stuff just in case.
*/
if ( ! dynamic_sidebar( 'first-footer-widget-area' ) ) : ?>
<li>
<h5 class="regcase">Ultimi Articoli</h5>
<ul class="thumblist mb12">
<li>
<!-- RECENT POSTS BEGIN -->
<?php
$exclude_cat = get_option('bb_exclude_cat');
$exclude_temp = str_replace(",", ",-", $exclude_cat);
$exclude_cats = "-" . $exclude_temp;
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query('cat=-1,-5,-6,-7,-9' . $exclude_cats . '&paged=' . $paged . '&showposts=9');
$count = 0;
while ($wp_query->have_posts()) : $wp_query->the_post();
?>
<a class="float_l" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php if(get_field('large_image_value')) { ?>
<img src="<?php echo get_field('large_image_value'); ?>" alt="<?php the_title(); ?>" />
<?php } ?>
</a>
<?php endwhile;
$wp_query = null; $wp_query = $temp; ?>
<!-- RECENT POSTS END -->
<div class="clearboth"></div>
</li>
</ul>
</li>
<?php endif; // end primary widget area ?>
</ul>
</div>
<div class="box_162">
<ul class="footer_widgets">
<?php
/* When we call the dynamic_sidebar() function, it'll spit out
* the widgets for that widget area. If it instead returns false,
* then the sidebar simply doesn't exist, so we'll hard-code in
* some default sidebar stuff just in case.
*/
if ( ! dynamic_sidebar( 'second-footer-widget-area' ) ) : ?>
<li>
<h5>Categories</h5>
<ul>
<li><a href="#" title="">About Us</a></li>
<li><a href="#" title="">Services</a></li>
<li><a href="#" title="">Portfolio</a></li>
<li><a href="#" title="">Blog</a></li>
</ul>
</li>
<?php endif; // end primary widget area ?>
</ul>
</div>
<div class="box_162">
<ul class="footer_widgets">
<?php
/* When we call the dynamic_sidebar() function, it'll spit out
* the widgets for that widget area. If it instead returns false,
* then the sidebar simply doesn't exist, so we'll hard-code in
* some default sidebar stuff just in case.
*/
if ( ! dynamic_sidebar( 'third-footer-widget-area' ) ) : ?>
<li>
<h5>Archives</h5>
<ul>
<li><a href="#" title="">About Us</a></li>
<li><a href="#" title="">Services</a></li>
<li><a href="#" title="">Portfolio</a></li>
<li><a href="#" title="">Blog</a></li>
</ul>
</li>
<?php endif; // end primary widget area ?>
</ul>
</div>
<div class="box_300">
<ul class="footer_widgets">
<?php
/* When we call the dynamic_sidebar() function, it'll spit out
* the widgets for that widget area. If it instead returns false,
* then the sidebar simply doesn't exist, so we'll hard-code in
* some default sidebar stuff just in case.
*/
if ( ! dynamic_sidebar( 'fourth-footer-widget-area' ) ) : ?>
<li>
<h5>Iscriviti alla Newsletter</h5>
<form id="theform" class="footer_form" method="post" action="<?php echo get_template_directory_uri(); ?>/sendmail.php">
<input type="hidden" name="lang" value="it" />
<input type="hidden" name="myemail" value="info@incastiglionfiorentino.com" />
<p class="name validated">
<input type="text" name="name" id="name" />
<label for="name">Nome</label>
</p>
<p class="email validated">
<input type="text" name="email" id="email" />
<label for="email">E-mail</label>
</p>
<p class="text validated">
<textarea name="message" id="message" rows="50" cols="100"></textarea>
</p>
<p class="submit">
<input type="submit" name="myformsubmit" value="Invia" />
</p>
<p id="error">* There were errors on the form, please re-check the fields.</p>
</form>
</li>
<?php endif; // end primary widget area ?>
</ul>
</div>
<div class="clear"></div>
</div><!-- end div.footer -->
</div><!-- end div#footer_container -->
<div class="copyright_container">
<div class="copyright">
<?php /* get theme color from options */
$themecolor = get_option('bb_color_scheme', 'chrome'); ?>
<div class="logo_fade"><img src="<?php $footer_logo_url = get_option('bb_footer_logo_url'); if($footer_logo_url != NULL) {echo $footer_logo_url;} else {echo get_template_directory_uri() . '/images/logo_fade_' . $themecolor . '.png';} ?>" alt="logo" /></div>
<!--Footer Text from Admin Options -->
<?php $footertext = get_option('bb_footer_text'); ?>
<p class="tiny"><?php if($footertext != NULL) {echo $footertext;} else {echo '';} ?></p>
<div class="social"><a class="fade" rel="nofollow" target="_blank" href="https://twitter.com/#!/InCFiorentino" title="twitter"><img src="<?php echo get_template_directory_uri(); ?>/images/twitter_32.png" alt="twitter" /></a><a class="fade" rel="nofollow" target="_blank" href="https://www.facebook.com/incastiglionfiorentino" title="facebook"><img src="<?php echo get_template_directory_uri(); ?>/images/facebook_32.png" alt="facebook" /></a><a class="fade" rel="nofollow" target="_blank" href="https://www.youtube.com" title="youtube"><img src="<?php echo get_template_directory_uri(); ?>/images/youtube_32.png" alt="youtube" /></a><a class="fade" href="mailto:info@incastiglionfiorentino.com" title="email"><img src="<?php echo get_template_directory_uri(); ?>/images/email_32.png" alt="email" /></a></div>
<!--Ad Spray Srl - Posizionamento nei Motori di Ricerca - INIZIO-->
<div id="ads_style" style="float:right; width:170px;" align="right">
<div style="float:left; padding-top:6px;" align="right">
</div>
<div style="float:right">
</div>
</div>
<!--Realizzazione Siti Web Arezzo Siena Perugia Firenze - FINE-->
<div class="clearboth"></div>
</div>
</div><!-- end div#copyright_container -->
<?php wp_footer(); ?>
</div><!-- end div#wrapper -->
<!-- ALL JQUERY SETTINGS AND INITILIZATION, Image Carousel, and Form Validation -->
<script src="<?php echo get_template_directory_uri(); ?>/js/settings.js" type="text/javascript"></script>
<!-- cufon ie fix -->
<script type="text/javascript">Cufon.now();</script>
<!-- Google Analytics from Admin Options -->
<?php /* get theme color from options */
$analytics = get_option('bb_analytics');
if($analytics != NULL) {echo $analytics;} else { ?>
<?php } ?>
</body>
</html>