Example #1
0
      <?php 
    }
    ?>
    <?php 
} else {
    ?>
    <header class="entry-header">
      <h2 class="entry-title">
        <a href="<?php 
    the_permalink();
    ?>
" title="<?php 
    echo esc_attr(sprintf(__('Permalink to: "%s"', '__x__'), the_title_attribute('echo=0')));
    ?>
"><?php 
    x_the_alternate_title();
    ?>
</a>
      </h2>
    </header>
    <?php 
}
?>
    <?php 
x_get_view('integrity', '_content');
?>
  </div>
  <?php 
x_google_authorship_meta();
?>
</article>
Example #2
0
      <div class="<?php 
x_main_content_class();
?>
" role="main">

        <?php 
if ($is_filterable_index) {
    ?>
          <?php 
    x_get_view('ethos', '_index');
    ?>
        <?php 
} else {
    ?>
          <?php 
    x_get_view('global', '_index');
    ?>
        <?php 
}
?>

      </div>

      <?php 
get_sidebar();
?>

    </div>
  </div>

<?php 
Example #3
0
<?php

// =============================================================================
// 404.PHP
// -----------------------------------------------------------------------------
// Handles errors when pages do not exist.
//
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack's index, first go to "views"
// inside the "framework" subdirectory. Once inside, find your Stack's folder
// and look for a file called "wp-404.php," where you'll be able to find the
// appropriate output.
// =============================================================================
?>

<?php 
x_get_view(x_get_stack(), 'wp', '404');
Example #4
0
// Standard post output for Integrity.
// =============================================================================
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
  <div class="entry-featured">
    <?php 
x_featured_image();
?>
  </div>
  <div class="entry-wrap">
    <?php 
x_get_view('integrity', '_content', 'post-header');
?>
    <?php 
x_get_view('integrity', '_content');
?>
  </div>
  <?php 
x_get_view('integrity', '_content', 'post-footer');
?>
  <?php 
x_google_authorship_meta();
?>
</article>
Example #5
0
<?php

// =============================================================================
// VIEWS/RENEW/WP-404.PHP
// -----------------------------------------------------------------------------
// Handles output for when a page does not exist.
// =============================================================================
?>

<?php 
get_header();
?>

  <div class="x-container max width offset">
    <div class="x-main full" role="main">
      <div class="entry-404">

        <?php 
x_get_view('global', '_content-404');
?>

      </div>
    </div>
  </div>

<?php 
get_footer();
Example #6
0
<?php

// =============================================================================
// TEMPLATE NAME: Layout - WOLFGANG
// -----------------------------------------------------------------------------
// Handles output of fullwidth pages.
//
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack's index, first go to "views"
// inside the "framework" subdirectory. Once inside, find your Stack's folder
// and look for a file called "template-layout-full-width.php," where you'll be
// able to find the appropriate output.
// =============================================================================
?>

<?php 
x_get_view(x_get_stack(), 'template', 'layout-wolfgang');
Example #7
0
// VIEWS/ETHOS/TEMPLATE-BLANK-7.PHP (Container | No Header, Footer)
// -----------------------------------------------------------------------------
// A blank page for creating unique layouts.
// =============================================================================
?>

<?php 
x_get_view('global', '_header');
?>

  <div id="top" class="site">
    <?php 
x_get_view('global', '_slider-revolution-above');
?>
    <?php 
x_get_view('global', '_slider-revolution-below');
?>
    <div class="x-container-fluid max width main">
      <div class="offset cf">
        <div class="x-main full" role="main">
          <article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
            <div class="entry-wrap entry-content">

              <?php 
while (have_posts()) {
Example #8
0
}
$wp_query = new WP_Query($args);
?>

  <?php 
if ($wp_query->have_posts()) {
    ?>
    <?php 
    while ($wp_query->have_posts()) {
        $wp_query->the_post();
        ?>
      <?php 
        if ($stack != 'ethos') {
            ?>
        <?php 
            x_get_view($stack, 'content', 'portfolio');
            ?>
      <?php 
        } else {
            ?>
        <?php 
            x_ethos_entry_cover('main-content');
            ?>
      <?php 
        }
        ?>
    <?php 
    }
    ?>
  <?php 
}
Example #9
0
// -----------------------------------------------------------------------------
// Header output for Icon.
// =============================================================================
?>

<?php 
x_get_view('global', '_header');
?>

  <?php 
x_get_view('global', '_slider-above');
?>

  <header class="<?php 
x_masthead_class();
?>
" role="banner">
    <?php 
x_get_view('global', '_topbar');
?>
    <?php 
x_get_view('global', '_navbar');
?>
    <?php 
x_get_view('icon', '_breadcrumbs');
?>
  </header>

  <?php 
x_get_view('global', '_slider-below');
Example #10
0
<?php

// =============================================================================
// WOOCOMMERCE.PHP
// -----------------------------------------------------------------------------
// Handles output of individual WooCommerce pages.
//
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack's pages, first go to "views"
// inside the "framework" subdirectory. Once inside, find your Stack's folder
// and look for a file called "woocommerce.php," where you'll be able to find
// the appropriate output.
// =============================================================================
?>

<?php 
x_get_view(x_get_stack(), 'woocommerce');
Example #11
0
<?php 
get_header();
?>

  <div class="x-container-fluid max width offset cf">
    <div class="<?php 
x_main_content_class();
?>
" role="main">

      <?php 
while (have_posts()) {
    the_post();
    ?>
        <?php 
    x_get_view('integrity', 'content', 'bbpress');
    ?>
      <?php 
}
?>

    </div>

    <?php 
get_sidebar();
?>

  </div>

<?php 
get_footer();
<?php 
get_header();
?>

  <div class="x-container max width offset">
    <div class="<?php 
x_main_content_class();
?>
" role="main">
<?php 
x_get_view('global', '_content', 'the-content');
?>

      <?php 
x_get_view('global', '_portfolio');
?>

    </div>

    <?php 
get_sidebar();
?>

  </div>

<?php 
get_footer();
?>

    ?>

  <?php 
    if (have_posts()) {
        ?>
    <?php 
        while (have_posts()) {
            the_post();
            ?>
      <?php 
            x_get_view($stack, 'content', get_post_format());
            ?>
    <?php 
        }
        ?>
  <?php 
    } else {
        ?>
    <?php 
        x_get_view('global', '_content-none');
        ?>
  <?php 
    }
    ?>

<?php 
}
?>

<?php 
pagenavi();
Example #14
0
<?php

// =============================================================================
// SIDEBAR.PHP
// -----------------------------------------------------------------------------
// Handles sidebar output for posts and pages.
//
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack's pages, first go to "views"
// inside the "framework" subdirectory. Once inside, find your Stack's folder
// and look for a file called "wp-sidebar.php," where you'll be able to find
// the appropriate output.
// =============================================================================
?>

<?php 
x_get_view(x_get_stack(), 'wp', 'sidebar');
Example #15
0
<?php

// =============================================================================
// FOOTER.PHP
// -----------------------------------------------------------------------------
// The site footer. Consists of the top footer area for widgets and the bottom
// footer area for secondary information. Includes wp_footer() hook as well.
//
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack's index, first go to "views"
// inside the "framework" subdirectory. Once inside, find your Stack's folder
// and look for a file called "wp-footer.php," where you'll be able to find the
// appropriate output.
// =============================================================================
?>

<?php 
x_get_view(x_get_stack(), 'wp', 'footer');
<?php

// =============================================================================
// TEMPLATE NAME: Blank - Container | Header, No Footer
// -----------------------------------------------------------------------------
// A blank page for creating unique layouts.
//
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack's index, first go to "views"
// inside the "framework" subdirectory. Once inside, find your Stack's folder
// and look for a file called "template-blank-2.php," where you'll be able to
// find the appropriate output.
// =============================================================================
?>

<?php 
x_get_view(x_get_stack(), 'template', 'blank-2');
Example #17
0
<?php 
get_header();
?>

  <div class="x-container max width offset">
    <div class="<?php 
x_main_content_class();
?>
" role="main">

      <?php 
while (have_posts()) {
    the_post();
    ?>
        <?php 
    x_get_view('global', '_content', 'bbpress');
    ?>
      <?php 
}
?>

    </div>

    <?php 
get_sidebar();
?>

  </div>

<?php 
get_footer();
Example #18
0
<?php

// =============================================================================
// SINGLE.PHP
// -----------------------------------------------------------------------------
// Handles output of individual posts.
//
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack's posts, first go to "views"
// inside the "framework" subdirectory. Once inside, find your Stack's folder
// and look for a file called "wp-single.php," where you'll be able to find the
// appropriate output.
// =============================================================================
?>

<?php 
x_get_view(x_get_stack(), 'wp', 'single');
Example #19
0
// -----------------------------------------------------------------------------
// Single portfolio post output for Integrity.
// =============================================================================
?>

<?php 
get_header();
?>
  
  <div class="x-container-fluid max width offset cf">
    <div class="x-main full" role="main">

      <?php 
while (have_posts()) {
    the_post();
    ?>
        <?php 
    x_get_view('integrity', 'content', 'portfolio');
    ?>
        <?php 
    x_get_view('global', '_comments-template');
    ?>
      <?php 
}
?>

    </div>
  </div>

<?php 
get_footer();
Example #20
0
<?php

// =============================================================================
// VIEWS/INTEGRITY/_CONTENT.PHP
// -----------------------------------------------------------------------------
// Display of the_excerpt() or the_content() for various entries.
// =============================================================================
$is_full_post_content_blog = is_home() && get_theme_mod('x_blog_enable_full_post_content') == 1;
?>

<?php 
if (is_singular() || $is_full_post_content_blog) {
    x_get_view('global', '_content', 'the-content');
} else {
    x_get_view('global', '_content', 'the-excerpt');
}
Example #21
0
if (has_post_thumbnail()) {
    ?>
    <div class="entry-featured">
      <?php 
    if (!is_page()) {
        ?>
        <?php 
        x_ethos_featured_index();
        ?>
      <?php 
    } else {
        ?>
        <?php 
        x_featured_image();
        ?>
      <?php 
    }
    ?>
    </div>
  <?php 
}
?>
  <div class="entry-wrap">
    <?php 
x_get_view('ethos', '_content');
?>
  </div>
  <?php 
x_google_authorship_meta();
?>
</article>
<?php

// =============================================================================
// TEMPLATE NAME: Layout - Sidebar Left, Content Right
// -----------------------------------------------------------------------------
// Handles output of sidebar left, content right pages.
//
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack's index, first go to "views"
// inside the "framework" subdirectory. Once inside, find your Stack's folder
// and look for a file called "template-layout-sidebar-content.php," where
// you'll be able to find the appropriate output.
// =============================================================================
?>

<?php 
x_get_view(x_get_stack(), 'template', 'layout-sidebar-content');
    <?php 
while (have_posts()) {
    the_post();
    ?>

      <article id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class();
    ?>
>
        <?php 
    x_get_view('global', '_content', 'the-content');
    ?>
      </article>

    <?php 
}
?>

  </div>

  <?php 
x_get_view('global', '_footer', 'scroll-top');
?>

<?php 
x_get_view('global', '_footer');
<?php

// =============================================================================
// SINGLE-X-PORTFOLIO.PHP
// -----------------------------------------------------------------------------
// Handles output of individual portfolio posts.
//
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack's posts, first go to "views"
// inside the "framework" subdirectory. Once inside, find your Stack's folder
// and look for a file called "wp-single-x-portfolio.php," where you'll be able
// to find the appropriate output.
// =============================================================================
?>

<?php 
x_get_view(x_get_stack(), 'wp', 'single-x-portfolio');
Example #25
0
<?php

// =============================================================================
// BBPRESS.PHP
// -----------------------------------------------------------------------------
// Handles output of bbPress pages.
//
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack's pages, first go to "views"
// inside the "framework" subdirectory. Once inside, find your Stack's folder
// and look for a file called "wp-bbpress.php," where you'll be able to find
// the appropriate output.
// =============================================================================
?>

<?php 
x_get_view(x_get_stack(), 'wp', 'bbpress');
Example #26
0
 function x_head_meta()
 {
     x_get_view('global', '_meta');
 }
Example #27
0
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
  <div class="entry-wrap">
    <?php 
x_get_view('renew', '_content', 'post-header');
?>
    <div class="entry-featured">
      <?php 
x_featured_image();
?>
    </div>
    <?php 
if (is_single()) {
    ?>
      <?php 
    x_get_view('global', '_content', 'the-content');
    ?>
      <?php 
    x_get_view('renew', '_content', 'post-footer');
    ?>
    <?php 
}
?>
  </div>
</article>
    the_post();
    ?>

      <article id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class();
    ?>
>
        <div class="entry-wrap">
          <div class="x-container max width">
            <?php 
    x_get_view('global', '_content', 'the-content');
    ?>
          </div>
        </div>
      </article>

    <?php 
}
?>

  </div>

  <?php 
x_get_view('icon', '_template-blank-sidebar');
?>

<?php 
get_footer();
the_ID();
?>
" <?php 
post_class();
?>
>
  <?php 
x_ethos_entry_top_navigation();
?>
  <div class="entry-featured">
    <?php 
x_portfolio_item_featured_content();
?>
  </div>
  <div class="entry-wrap cf">
    <?php 
x_get_view('global', '_content', 'the-content');
?>
    <div class="entry-extra">
      <?php 
x_portfolio_item_project_link();
?>
      <?php 
x_portfolio_item_tags();
?>
      <?php 
x_portfolio_item_social();
?>
    </div>
  </div>
</article>
Example #30
0
  </li>
</ul>

<div class="x-filterable-index">

  <?php 
foreach ($categories as $category) {
    static $j = 1;
    $selected = $j == 1 ? ' selected' : '';
    $accent = x_ethos_category_accent_color($category->term_id, '#333333');
    $wp_query = new WP_Query(array('post_type' => 'post', 'paged' => $paged, 'cat' => $category->term_id));
    echo '<div class="x-filterable-category-group' . $selected . '" data-category-id="' . $category->term_id . '">';
    if ($wp_query->have_posts()) {
        while ($wp_query->have_posts()) {
            $wp_query->the_post();
            x_get_view('ethos', 'content', get_post_format());
        }
    }
    echo '<a href="' . get_category_link($category->term_id) . '" class="x-btn-filterable x-btn">See All ' . $category->name . ' Posts</a>';
    echo '</div>';
    wp_reset_query();
    $j++;
}
?>

</div>

<script>

  jQuery('.x-index-filters').click(function(e) {
    e.preventDefault();