Esempio n. 1
0
<?php

/**
 * The template for displaying Search Results pages
 */
get_header();
?>

<?php 
pp_page_header();
?>

<div class="primary slim content-area">
	<div class="wrapper">
	<?php 
if (have_posts()) {
    ?>

		<?php 
    // Start the Loop.
    while (have_posts()) {
        the_post();
        /*
         * Include the post format-specific template for the content. If you want to
         * use this in a child theme, then include a file called called content-___.php
         * (where ___ is the post format) and that will be used instead.
         */
        get_template_part('content', get_post_format());
    }
    // Previous/next post navigation.
    pp_paging_nav();
Esempio n. 2
0
<?php

/**
 * Template Name: Learn
 */
get_header();
$tutorials_total = pp_get_category_post_count('free-members') + pp_get_category_post_count('subscriber-only');
?>


<?php 
pp_page_header('Learn Plugin Development', '<h2>' . $tutorials_total . ' tutorials and <a href="' . get_post_type_archive_link('series') . '">' . pp_get_series_count() . ' series</a>, ready when you are.</h2>');
?>

<?php 
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
$args = array('posts_per_page' => 10, 'paged' => $paged, 'category_name' => 'tutorials');
$temp = $wp_query;
// assign original query to temp variable for later use
$wp_query = null;
$wp_query = new WP_Query($args);
if (have_posts()) {
    ?>
  <div class="columns-main-side columns">
    <div class="wrapper">
      <div class="primary col content-area">
      <?php 
    while ($wp_query->have_posts()) {
        $wp_query->the_post();
        ?>
Esempio n. 3
0
<?php

/**
 * The template for displaying post series
 */
get_header();
?>

<?php 
pp_page_header('Series');
?>

<section class="section columns columns-3 grid">
    <div class="wrapper">
        <?php 
if (have_posts()) {
    // Start the Loop.
    while (have_posts()) {
        the_post();
        ?>

          <article id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class(array('col', 'box'));
        ?>
> 
                <div class="flex-wrapper">
                    <?php 
        pp_post_thumbnail('pp-grid-thumbnail');
Esempio n. 4
0
<?php

/**
 * 404 page
 */
get_header();
pp_page_header('<h1>Oops</h1>', '<h2>You\'ve made quite the mess</h2>');
?>

<?php 
get_footer();
Esempio n. 5
0
<?php

/**
 * The template for displaying Add-ons
 */
get_header();
?>


<?php 
if (have_posts()) {
    ?>

<?php 
    pp_page_header('Products');
    ?>


<section class="section columns columns-3 grid product-grid">
	<div class="wrapper">

	<?php 
    while (have_posts()) {
        the_post();
        $coming_soon = pp_product_is_coming_soon(get_the_ID()) ? 'coming-soon' : '';
        ?>
		<article id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class(array('col', 'box', $coming_soon));