Exemplo n.º 1
0
        ?>
  </div>
  <?php 
        if (my_wp_is_mobile()) {
            echo '<div class="row collapse mobile-share-wrap">';
            echo '<div class="mobile-share columns small-4">Share:</div>';
            echo '<div class="columns small-8">';
            $blog_template = get_bloginfo('template_directory') . "/addthis.php";
            include TEMPLATEPATH . '/addthis.php';
            echo '</div>';
            echo '</div>';
        }
    }
}
?>
</div>
<?php 
if (!my_wp_is_mobile()) {
    ?>
  <div class="columns large-4 medium-4 small-12 floated-sidebar">
    <?php 
    get_sidebar();
    ?>
  </div>
<?php 
}
?>


<?php 
get_footer();
Exemplo n.º 2
0
<?php

/*Template Name: Blog Page*/
include 'inc/header.php';
include 'inc/nav-bar.php';
?>

<!--Home Page start -->
	<div class="page-wrapper home-page">
		
		<?php 
$image = get_field('header_image', 14);
if (my_wp_is_mobile()) {
    $image = $image['sizes']['hero-small'];
} else {
    $image = $image['sizes']['large'];
}
?>
		<section class="hero-image" style="background-image:url('<?php 
echo $image;
?>
');">
			<h1 class="hidden">Blog</h1>
		</section>
		
		<?php 
$tagstrip = get_field('tag_strip', 14);
?>
		<section class="hh-fw">
			<div class="gen-table text">
				<div class="gen-cell">