Beispiel #1
0
<h1 class="site-title <?php 
echo fanton_list_mode() ? 'col-sm-6' : '';
?>
">
  <a href="<?php 
bloginfo('url');
?>
/" rel="home">
    <span class="site-title__text">
      <?php 
bloginfo('name');
?>
    </span>
    <span class="site-title__hover-text">
      <?php 
the_field('fanton_rollover', 'option');
?>
    </span>
  </a>
</h1>
Beispiel #2
0
?>
        </div>

        <?php 
if (is_single()) {
    $single_post = $post;
} else {
    $single_post = false;
}
$args = array('posts_per_page' => -1, 'post_type' => 'post');
$the_query = new WP_Query($args);
if ($the_query->have_posts()) {
    echo '<div class="navigation-list-wrapper">';
    while ($the_query->have_posts()) {
        $the_query->the_post();
        if (fanton_list_mode()) {
            include locate_template('partials/navigation_list.php');
        } else {
            include locate_template('partials/navigation_grid.php');
        }
    }
    echo '</div>';
}
wp_reset_postdata();
?>
      </nav>
    </div>
  </div>
</div>

<?php 
Beispiel #3
0
echo get_bloginfo('template_url');
?>
/images/favicon.png">
  <?php 
wp_head();
?>
</head>

<?php 
$body_classes = array();
is_single() ? array_push($body_classes, 'single-project-loaded') : '';
if (is_single()) {
    get_field('color_scheme') == 'dark' ? array_push($body_classes, 'color-scheme--dark') : array_push($body_classes, 'color-scheme--light');
}
is_page('information') ? array_push($body_classes, 'information-open') : '';
fanton_list_mode() ? array_push($body_classes, 'list-mode') : array_push($body_classes, 'grid-mode');
?>

<body class="<?php 
echo join(' ', $body_classes);
?>
">
  <!--[if lt IE 9]>
    <div class="chromeframe">
      <p>You are using an <strong>outdated</strong> browser.</p>
      <p>Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
    </div>
  <![endif]-->
  <div class="background-checker"></div>
  <div <?php 
body_class('wrapper container-fluid');
Beispiel #4
0
function fanton_grid_mode()
{
    return !fanton_list_mode();
}