Advertisement
cipher87

Singe Job Listing (WP JOB MANAGER)

Sep 12th, 2017
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.04 KB | None | 0 0
  1. <?php
  2.     if ( !defined('ABSPATH') ){ die(); }
  3.    
  4.     global $avia_config;
  5.  
  6.     /*
  7.      * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
  8.      */
  9.      get_header();
  10.  
  11.     $title  = __('Blog - Latest News', 'avia_framework'); //default blog title
  12.     $t_link = home_url('/');
  13.     $t_sub = "";
  14.  
  15.     if(avia_get_option('frontpage') && $new = avia_get_option('blogpage'))
  16.     {
  17.         $title  = get_the_title($new); //if the blog is attached to a page use this title
  18.         $t_link = get_permalink($new);
  19.         $t_sub =  avia_post_meta($new, 'subtitle');
  20.     }
  21.  
  22.     if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(array('heading'=>'strong', 'title' => $title, 'link' => $t_link, 'subtitle' => $t_sub));
  23.    
  24.     do_action( 'ava_after_main_title' );
  25.  
  26. ?>
  27.  
  28.         <div class='container_wrap container_wrap_first main_color sidebar_right'>
  29.  
  30.             <div class='container template-blog template-single-blog '>
  31.  
  32.                 <main class='content units av-content-small <?php echo avia_blog_class_string(); ?>' <?php avia_markup_helper(array('context' => 'content','post_type'=>'post'));?>>
  33.  
  34.                     <?php
  35.                     /* Run the loop to output the posts.
  36.                     * If you want to overload this in a child theme then include a file
  37.                     * called loop-index.php and that will be used instead.
  38.                     *
  39.                     */
  40.  
  41.                         get_template_part( 'includes/loop', 'index' );
  42.                        
  43.                         //show related posts based on tags if there are any
  44.                         get_template_part( 'includes/related-posts');
  45.  
  46.                         //wordpress function that loads the comments template "comments.php"
  47.                         comments_template();
  48.  
  49.                     ?>
  50.  
  51.                 <!--end content-->
  52.                 </main>
  53.  
  54.                 <?php
  55.                 $avia_config['currently_viewing'] = "blog";
  56.                 //get the sidebar
  57.                 get_sidebar();
  58.  
  59.  
  60.                 ?>
  61.  
  62.  
  63.             </div><!--end container-->
  64.  
  65.         </div><!-- close default .container_wrap element -->
  66.  
  67.  
  68. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement