advantage_template_intro

The Advantage advantage template intro function.

Description

advantage_template_intro(); 

Usage

  1. if ( !function_exists( 'advantage_template_intro' ) ) { 
  2. require_once '/inc/lib-content.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = advantage_template_intro(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/lib-content.php  
  1. function advantage_template_intro() { 
  2. global $post, $advantage_options; 
  3.  
  4. // $pagetitle = get_post_meta( $post->ID, '_advantage_title', true ); 
  5. $content = get_the_content(); 
  6. $content = apply_filters( 'the_content', $content ); 
  7. $content = str_replace( ']]>', ']]>', $content ); 
  8. if ( ! empty($content)) { 
  9. ?> 
  10. <article id="post-<?php the_ID(); ?>" class="template-intro clearfix <?php echo advantage_grid_full(); ?>"> 
  11. <?php 
  12. echo '<div class="entry-content clearfix">'; 
  13. echo $content; 
  14. echo '</div>';  
  15. ?> 
  16. </article> 
  17. <?php