Guest User

Page Template

a guest
Nov 28th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.96 KB | None | 0 0
  1. <?php
  2.     /*
  3.     Template Name: Test Page
  4.     */
  5.     if ( !defined('ABSPATH') ){ die(); }
  6.    
  7.     global $avia_config, $post_loop_count;
  8.  
  9.     $post_loop_count= 1;
  10.     $post_class     = "post-entry-".avia_get_the_id();
  11.  
  12.     get_header();
  13.  
  14.     if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title();
  15.    
  16.     do_action( 'ava_after_main_title' );
  17.     ?>
  18.         <main class='template-page content  <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content','post_type'=>'page'));?>>
  19.  
  20.         <?php
  21.             if (have_posts()) :
  22.  
  23.                 while (have_posts()) : the_post();
  24.                     the_content(__('Read more','avia_framework').'<span class="more-link-arrow"></span>');
  25.  
  26.                     do_action('ava_after_content', get_the_ID(), 'page');
  27.                 $post_loop_count++;
  28.                 endwhile;
  29.             endif;
  30.         ?>
  31.         </main>
  32.  
  33. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment