[ Index ]

PHP Cross Reference of PageLines Framework

title

Body

[close]

/includes/ -> class.posts.php (source)

   1  <?php
   2  /**
   3   * PageLines Posts Handling
   4   *
   5   * @package     PageLines Framework
   6   * @subpackage  Posts
   7   * @since       2.0.b2
   8   */
   9  class PageLinesPosts {
  10  
  11      var $tabs = array();
  12  
  13      /** PHP5 constructor */
  14  	function __construct( PageLinesPostLoop $section ) {
  15  
  16          global $pagelines_layout;
  17          global $post;
  18          global $wp_query;
  19          global $ex_length;
  20          global $ex_tags;
  21          
  22          $this->section = $section;
  23  
  24          $this->count = 1;  // Used to get the number of the post as we loop through them.
  25          $this->clipcount = 2; // The number of clips in a row
  26  
  27          $this->post_count = $wp_query->post_count;  // Used to prevent markup issues when there aren't an even # of posts.
  28          $this->paged = intval(get_query_var('paged')); // Control output if on a paginated page
  29  
  30          $this->thumb_space = get_option('thumbnail_size_w') + 33; // Space for thumb with padding
  31  
  32          
  33          $cr_link = $this->section->opt('continue_reading_text');
  34          $ex_length = $this->section->opt('excerpt_len');
  35          $ex_tags = $this->section->opt('excerpt_tags');
  36      
  37          $this->continue_reading = ($cr_link) ? $cr_link : __('Read More &raquo;', 'pagelines');
  38  
  39          add_filter('pagelines_post_metabar', 'do_shortcode', 20);
  40  
  41  
  42      }
  43  
  44  
  45      /**
  46       * Load Loop
  47       *
  48       * Loads the content using WP's standard output functions, if no posts exists the framework's 404 page is loaded instead.
  49       *
  50       * @uses    get_article
  51       * @uses    posts_404
  52       *
  53       * @since   2.0.0
  54       */
  55  	function load_loop(){
  56  
  57          if( have_posts() )
  58              while ( have_posts() ) : the_post();  $this->get_article(); endwhile;
  59          else
  60              $this->posts_404();
  61  
  62      }
  63  
  64  
  65      /**
  66       * Get Article
  67       *
  68       * Builds the post being displayed by the load_loop function adding clip formatting as required as well as relevant post classes
  69       *
  70       * @uses    pagelines_show_clip
  71       * @uses    post_header
  72       * @uses    post_entry
  73       *
  74       * @internal uses filter 'pagelines_get_article_post_classes'
  75       * @internal uses filter 'pageliens_get_article_output'
  76       */
  77  	function get_article(){
  78          global $wp_query;
  79          global $post;
  80  
  81          /* clip handling */
  82          $clip = ( $this->pagelines_show_clip( $this->count, $this->paged ) ) ? true : false;
  83  
  84          $meta_mode = $this->section->opt('pl_meta_mode');
  85  
  86          $format = ( $clip ) ? 'clip' : 'feature';
  87          $clip_row_start = ( $this->clipcount % 2 == 0 ) ? true : false;
  88          $clip_right = ( ( $this->clipcount+1 ) % 2 == 0 ) ? true : false;
  89          $clip_row_end = ( $clip_right || $this->count == $this->post_count ) ? true : false;
  90  
  91          $post_type_class = ( $clip ) ? ( $clip_right ? 'clip clip-right' : 'clip' ) : 'fpost';
  92          
  93          $meta_mode_class = ( isset($meta_mode) && $meta_mode != '') ? 'meta-mode-'.$meta_mode : '';
  94  
  95          $pagelines_post_classes = apply_filters( 'pagelines_get_article_post_classes', sprintf( '%s post-number-%s', $post_type_class, $this->count ) );
  96  
  97          $post_classes = join( ' ', get_post_class( $pagelines_post_classes ) );
  98  
  99          $wrap_type = ($clip) ? 'clip_box' : 'article-wrap';
 100          
 101          $wrap_start = (($clip && $clip_row_start) || !$clip ) ? sprintf('<div class="%s %s fix">', $wrap_type, $meta_mode_class) : '';
 102           
 103          $wrap_end = ( ($clip && $clip_row_end) || !$clip ) ? sprintf( '</div>' ) : '';
 104  
 105          $author_tag = (!$clip && $meta_mode == 'author') ? $this->get_author_tag() : '';
 106  
 107  
 108          $post_args = array(
 109              'header'        => $this->post_header( $format ),
 110              'entry'            => $this->post_entry(),
 111              'classes'        => $post_classes,
 112              'pad-class'        => ( $clip ) ? 'hentry-pad blocks' : 'hentry-pad',
 113              'wrap-start'    => $wrap_start,
 114              'wrap-end'        => $wrap_end,
 115              'format'        => $format,
 116              'count'            => $this->count
 117          );
 118  
 119          $post_args['markup-start'] = sprintf(
 120              '%s<article class="%s" id="post-%s">%s<div class="wrp"><div class="%s">',
 121              $post_args['wrap-start'],
 122              
 123              $post_args['classes'],
 124              $post->ID,
 125              $author_tag,
 126              $post_args['pad-class']
 127              
 128          );
 129  
 130          $post_args['markup-end'] = sprintf(
 131              '</div></div></article>%s',
 132              $post_args['wrap-end']
 133          );
 134  
 135          $original = join(array(
 136                  $post_args['markup-start'],
 137                  $post_args['header'],
 138                  $post_args['entry'],
 139                  $post_args['markup-end']
 140              ));
 141  
 142          echo apply_filters( 'pagelines_get_article_output', $original, $post, $post_args );
 143  
 144          // Count the clips
 145          if( $clip )
 146              $this->clipcount++;
 147  
 148          // Count the posts
 149          $this->count++;
 150       }
 151      
 152  	function get_author_tag(){
 153          global $post;
 154          $author_email = get_the_author_meta('email', $post->post_author);
 155          $author_name = get_the_author();
 156          $default_avatar = PL_IMAGES . '/avatar_default.gif';
 157          $author_desc = custom_trim_excerpt( get_the_author_meta('description', $post->post_author), 10);
 158          ob_start();
 159          ?>
 160          <div class="author-tag">
 161              <div class="tmb"><?php echo get_avatar( $author_email, '120'); ?></div>
 162              <p>[post_author_posts_link]</p>
 163              <hr/>
 164              <p><strong>Published</strong><br/> [post_date][post_edit]</p>
 165               
 166              <p class="hidden-sm hidden-phone">In [post_categories]</p>
 167              <hr/>
 168              <p class="tag-comments hidden-sm hidden-phone"><i class="icon-comment"></i> [post_comments zero="Add Comment" one="1" more="%"]</p>
 169          </div>
 170          <?php
 171          
 172          return do_shortcode( ob_get_clean() );
 173          
 174      }
 175  
 176  
 177      /**
 178       * Post Entry
 179       *
 180       * @uses    pagelines_show_content
 181       * @internal uses filter 'pagelines_post_entry'
 182       *
 183       * @return  mixed|string|void
 184       */
 185  	function post_entry(){
 186  
 187          $id = get_the_ID();
 188  
 189          if( $this->pagelines_show_content( $id ) ){
 190  
 191              $excerpt_mode = ($this->section->opt( 'excerpt_mode_full' )) ? $this->section->opt( 'excerpt_mode_full' ) : 'top';
 192  
 193  
 194              if( ( $excerpt_mode == 'left-excerpt' || $excerpt_mode == 'right-excerpt' ) && is_single() && $this->pagelines_show_thumb( $id ) )
 195                  $thumb = $this->post_thumbnail_markup( $excerpt_mode );
 196              else
 197                  $thumb = '';
 198  
 199              $post_entry = sprintf( '<div class="entry_wrap fix"><div class="entry_content">%s%s</div></div>', $thumb, $this->post_content() );
 200  
 201              return apply_filters( 'pagelines_post_entry', $post_entry );
 202  
 203          } else
 204              return '';
 205      }
 206  
 207  
 208      /**
 209       * Post Content
 210       *
 211       * Captures the post content wrapped in 'pageslines_loop_*_post_content' hooks and returns it
 212       *
 213       * @uses    pageslines_register_hook
 214       * @uses    pledit
 215       *
 216       * @return  string - the content
 217       */
 218  	function post_content(){
 219  
 220          ob_start();
 221  
 222              pagelines_register_hook( 'pagelines_loop_before_post_content', 'theloop' ); // Hook
 223  
 224          //    global  $post;
 225  
 226              $content = get_the_content( $this->continue_reading );
 227  
 228              $content .= pledit( get_the_ID() );
 229  
 230              echo apply_filters( 'the_content', $content );
 231  
 232              if( is_single() || is_page() ){
 233  
 234                  $pgn = array(
 235                      'before'             => __( "<div class='pagination'><span class='desc'>pages:</span><ul>", 'pagelines' ),
 236                      'after'             => '</ul></div>',
 237                      'link_before'        => '<span class="pg">',
 238                      'link_after'        => '</span>'
 239                  );
 240  
 241                  wp_link_pages( $pgn );
 242              }
 243  
 244              if ( is_single() && get_the_tags() )
 245                  printf(
 246                      '<div class="p tags">%s&nbsp;</div>',
 247                      get_the_tag_list(
 248                          __( "<span class='note'>Tagged with &rarr;</span> ", 'pagelines' ),
 249                          ' &bull; ',
 250                          ''
 251                      )
 252                  );
 253  
 254              pagelines_register_hook( 'pagelines_loop_after_post_content', 'theloop' ); // Hook
 255  
 256          $the_content = ob_get_clean();
 257  
 258          return $the_content;
 259  
 260      }
 261  
 262  
 263      /**
 264       * Post Header
 265       *
 266       * Creates the post header information adding classes as required for clipped format and thumbnails images as required
 267       *
 268       */
 269  	function post_header( $format = '' ){
 270  
 271          
 272          if( $this->show_post_header() ){
 273  
 274  
 275              global $post;
 276  
 277              $id = get_the_ID();
 278  
 279              $excerpt_mode = ( $format == 'clip' ) ? $this->section->opt( 'excerpt_mode_clip' ) : $this->section->opt( 'excerpt_mode_full' );
 280              
 281              $excerpt_mode = ( $excerpt_mode ) ? $excerpt_mode : 'top';
 282              
 283              $thumb = ( $this->pagelines_show_thumb( $id ) ) ? $this->post_thumbnail_markup( $excerpt_mode, $format ) : '';
 284  
 285              $excerpt_thumb = ( $thumb && ( $excerpt_mode == 'left-excerpt' || $excerpt_mode == 'right-excerpt' ) ) ? '' : $thumb;
 286  
 287              $excerpt = ( $this->pagelines_show_excerpt( $id ) ) ? $this->post_excerpt_markup( $excerpt_mode, $excerpt_thumb ) : '';
 288              
 289              $classes = 'post-meta fix ';
 290              $classes .= ( ! $this->pagelines_show_thumb( $id ) ) ? 'post-nothumb ' : '';
 291              $classes .= ( ! $this->pagelines_show_content( $id ) ) ? 'post-nocontent ' : '';
 292  
 293              $title = sprintf( '<section class="bd post-title-section fix"><div class="post-title fix">%s</div>%s</section>', $this->pagelines_get_post_title( $format ), $this->pagelines_get_post_metabar( $format ) );
 294  
 295              if( ( $excerpt_mode == 'left-excerpt' || $excerpt_mode == 'right-excerpt' ) && ! is_single() )
 296                  $post_header = sprintf( '<section class="%s"><section class="bd post-header fix" >%s %s%s</section></section>', $classes, $title, $thumb, $excerpt );
 297              elseif( $excerpt_mode == 'top' )
 298                  $post_header = sprintf( '<section class="%s">%s<section class="bd post-header fix" >%s %s</section></section>',$classes, $thumb, $title, $excerpt );
 299              elseif( $excerpt_mode == 'left' )
 300                  $post_header = sprintf( '<section class="%s media">%s<section class="bd post-header fix" >%s %s</section></section>', $classes, $thumb, $title, $excerpt );
 301              else
 302                  $post_header = sprintf( '<section class="%s">%s<section class="bd post-header fix" >%s %s</section></section>',$classes, '', $title, $excerpt );
 303  
 304              return apply_filters( 'pagelines_post_header', $post_header, $format );
 305  
 306          } else
 307              return '';
 308  
 309      }
 310  
 311  
 312  
 313      /**
 314       * Determines if the post title area should be shown
 315       *
 316       * @since 2.0.0
 317       *
 318       * @return bool True if the title area should be shown
 319       */
 320  	function show_post_header( ) {
 321  
 322          if( !is_page() || (is_page() && $this->section->opt('pagetitles')) )
 323              return true;
 324          else
 325              return false;
 326  
 327      }
 328  
 329      /**
 330       * Get post excerpt and markup
 331       *
 332       * @since 2.0.0
 333       *
 334       * @return string the excerpt markup
 335       */
 336  	function post_excerpt_markup( $mode = '', $thumbnail = '' ) {
 337  
 338          ob_start();
 339  
 340          pagelines_register_hook( 'pagelines_loop_before_excerpt', 'theloop' ); // Hook
 341  
 342          if($mode == 'left-excerpt' || $mode == 'right-excerpt')
 343              printf( '<aside class="post-excerpt">%s %s</aside>', $thumbnail, get_the_excerpt() );
 344          else
 345              printf( '<aside class="post-excerpt">%s</aside>', get_the_excerpt() );
 346  
 347  
 348          if(pagelines_is_posts_page() && !$this->pagelines_show_content( get_the_ID() )) // 'Continue Reading' link
 349              echo $this->get_continue_reading_link( get_the_ID() );
 350  
 351          pagelines_register_hook( 'pagelines_loop_after_excerpt', 'theloop' ); // Hook
 352  
 353          $pagelines_excerpt = ob_get_clean();
 354  
 355          return apply_filters('pagelines_excerpt', $pagelines_excerpt);
 356  
 357      }
 358  
 359  
 360      /**
 361       * Post Thumbnail Markup
 362       *
 363       * Get post thumbnail and markup
 364       *
 365       * @since   2.0.0
 366       *
 367       * @param   string $mode - right, left, or top
 368       * @param   string $format - ...
 369       * @param   string $frame - not used
 370       *
 371       * @return  string - the thumbnail markup
 372       *
 373       * @version 2.2 - fixed image size when thumbnail is displayed on top of excerpt
 374       * @todo review if top displayed image should be centered above post, or remain left aligned
 375       */
 376  	function post_thumbnail_markup( $mode = '', $format = '', $frame = '' ) {
 377  
 378          $thumb_width = get_option( 'thumbnail_size_w' );
 379  
 380          $classes = 'post-thumb img fix';
 381  
 382          $percent_width  = ( $mode == 'top' ) ? 100 : 25;
 383  
 384          $style = ( 'top' == $mode ) ? 'width: 100%' : sprintf( 'width: %s%%; max-width: %spx', apply_filters( 'pagelines_thumb_width', $percent_width ), $thumb_width );
 385  
 386          if ( $mode == 'left-excerpt' )
 387              $classes .= ' alignleft';
 388          elseif ( $mode == 'right-excerpt' )
 389              $classes .= ' alignright';
 390          /** By default image will left align, explicitly adding this class for 'top' == $mode is not needed at this time.
 391           * elseif ( $mode == 'top' ) $classes .= ' left';
 392           */
 393  
 394          global $post;
 395  
 396          $img = ( $mode == 'top' ) ? get_the_post_thumbnail( null, 'landscape-thumb' ) : get_the_post_thumbnail( null, 'thumbnail' );
 397  
 398          $the_image = sprintf( '<span class="c_img">%s</span>', $img );
 399  
 400          $thumb_link = sprintf( '<a class="%s" href="%s" rel="bookmark" title="%s %s" style="%s">%s</a>', $classes, get_permalink( $post ), __( 'Link To', 'pagelines' ), the_title_attribute( array( 'echo' => false ) ), $style, $the_image );
 401  
 402          $output = ( 'top' == $mode ) ? sprintf( '<div class="full_img fix">%s</div>', $thumb_link ) : $thumb_link;
 403  
 404          return apply_filters( 'pagelines_thumb_markup', $output, $mode, $format );
 405  
 406      }
 407  
 408      /**
 409       * Adds the metabar or byline under the post title
 410       *
 411       * @since 1.1.0
 412       */
 413  	function pagelines_get_post_metabar( $format = '' ) {
 414  
 415          $metabar = '';
 416          $before = '<em>';
 417          $after = '</em>';
 418          if ( is_page() )
 419              return; // don't do post-info on pages
 420  
 421          if( $format == 'clip'){
 422  
 423              $metabar = ( $this->section->opt( 'metabar_clip' ) )
 424                  ? $before . $this->section->opt( 'metabar_clip' ) . $after
 425                  : sprintf( '%s%s [post_date] %s [post_author_posts_link] [post_edit]%s', $before, __('On','pagelines'), __('By','pagelines'), $after );
 426  
 427          } elseif( 'author' !== $this->section->opt('pl_meta_mode') ) {
 428              $metabar = ( $this->section->opt( 'metabar_standard' ) )
 429                  ? $before . $this->section->opt( 'metabar_standard' ) . $after
 430                  : sprintf( '%s%s [post_author_posts_link] %s [post_date] &middot; [post_comments] &middot; %s [post_categories] [post_edit]%s', $before, __('By','pagelines'), __('On','pagelines'), __('In','pagelines'), $after);
 431  
 432          }
 433  
 434          return sprintf( '<div class="metabar"><div class="metabar-pad">%s</div></div>', apply_filters('pagelines_post_metabar', $metabar, $format) );
 435  
 436      }
 437  
 438      /**
 439       * PageLines Get Post Title
 440       *
 441       * Gets the post title for all posts
 442       *
 443       * @package     PageLines Framework
 444       * @subpackage  Functions Library
 445       * @since       1.1.0
 446       *
 447       * @param       string $format
 448       *
 449       * @uses        pagelines_option( 'pagetitles' )
 450       * @uses        get_the_title - default WordPress post title text
 451       *
 452       * @internal    adds filter 'pagelines_post_title_text'
 453       * @internal    adds filter 'pagelines_post_title_output'
 454       *
 455       * @return      string - (new) Post $title
 456       */
 457  	function pagelines_get_post_title( $format = '' ){
 458  
 459          global $post;
 460          global $pagelines_ID;
 461  
 462          /** Check if page and show page title option is set to true */
 463          if( is_page() && $this->section->opt('pagetitles') && ! has_filter( "pagelines_no_page_title_{$pagelines_ID}" ) ) {
 464      
 465      
 466              $title = sprintf( '<h1 class="entry-title pagetitle">%s</h1>', apply_filters( 'pagelines_post_title_text', get_the_title() ) );
 467              
 468          } elseif(!is_page()) {
 469  
 470              if ( is_singular() )
 471                  $title = sprintf( '<h1 class="entry-title">%s</h1>', apply_filters( 'pagelines_post_title_text', get_the_title() ) );
 472              elseif( $format == 'clip')
 473                  $title = sprintf( '<h4 class="entry-title"><a href="%s" title="%s" rel="bookmark">%s</a></h4>', get_permalink( $post ), the_title_attribute('echo=0'), apply_filters( 'pagelines_post_title_text', get_the_title() ) );
 474              else
 475                  $title = sprintf( '<h2 class="entry-title"><a href="%s" title="%s" rel="bookmark">%s</a></h2>', get_permalink( $post ), the_title_attribute('echo=0'), apply_filters( 'pagelines_post_title_text', get_the_title() ) );
 476  
 477          } else {$title = '';}
 478  
 479  
 480          return apply_filters('pagelines_post_title_output', $title) . "\n";
 481  
 482      }
 483  
 484  
 485  
 486      /**
 487       *
 488       *  Gets the continue reading link after excerpts
 489       *
 490       *  @package PageLines DMS
 491       *  @subpackage Functions Library
 492       *  @since 1.3.0
 493       *
 494       */
 495  	function get_continue_reading_link($post_id){
 496  
 497          $link = sprintf(
 498              '<a class="continue_reading_link" href="%s" title="%s %s">%s</a>',
 499              get_permalink(),
 500              __("View", 'pagelines'),
 501              the_title_attribute(array('echo'=> 0)),
 502              $this->continue_reading
 503          );
 504  
 505          return apply_filters('continue_reading_link', $link);
 506      }
 507  
 508  
 509      /**
 510      *
 511      * @TODO document
 512      *
 513      */
 514  	function pagelines_show_thumb($post = null, $location = null){
 515  
 516           if( function_exists('the_post_thumbnail') && has_post_thumbnail($post) ){
 517  
 518              if( pl_has_editor() ){
 519  
 520                  if( is_page() )
 521                      return false;
 522  
 523                  if($this->section->opt('hide_thumb'))
 524                      return false;
 525                  else
 526                      return true;
 527                      
 528              } else{
 529  
 530                  if( $location == 'clip' && ploption('thumb_clip') ) return true;
 531  
 532                  if( !isset($location) ){
 533  
 534                      if( pl_has_editor() ){
 535                          if($this->section->opt('hide_thumb'))
 536                              return false;
 537                          else
 538                              return true;
 539                      } else{
 540  
 541                          // Thumb Page
 542                          if( is_single() && ploption('thumb_single') ) return true;
 543  
 544                          // Blog Page
 545                          elseif( is_home() && ploption('thumb_blog') ) return true;
 546  
 547                          // Search Page
 548                          elseif( is_search() && ploption('thumb_search') ) return true;
 549  
 550                          // Category Page
 551                          elseif( is_category() && ! is_date() && ploption('thumb_category') ) return true;
 552  
 553                          // Archive Page
 554                          elseif( ! is_category() && is_archive() && ploption('thumb_archive') ) return true;
 555  
 556                          else return false;
 557  
 558                      }
 559  
 560  
 561                  } else
 562                      return false;
 563  
 564  
 565              }
 566  
 567          } else
 568              return false;
 569  
 570      }
 571  
 572  
 573      /**
 574      *
 575      * @TODO document
 576      *
 577      */
 578  	function pagelines_show_excerpt( $post = null ){
 579  
 580              if( is_page() || is_single() )
 581                  return false;
 582                  
 583          
 584  
 585              if( pl_has_editor() ){
 586  
 587                  if( $this->section->opt('hide_excerpt')){
 588                      return false;
 589                  } else
 590                      return true;
 591  
 592              } else {
 593  
 594                  // Thumb Page
 595                  if( is_single() && ploption('excerpt_single') )
 596                      return true;
 597  
 598                  // Blog Page
 599                  elseif( is_home() && ploption('excerpt_blog') )
 600                      return true;
 601  
 602                  // Search Page
 603                  elseif( is_search() && ploption('excerpt_search') )
 604                      return true;
 605  
 606                  // Category Page
 607                  elseif( is_category() && ! is_date() && ploption('excerpt_category') )
 608                      return true;
 609  
 610                  // Archive Page
 611                  elseif( ! is_category() && is_archive() && ploption('excerpt_archive') )
 612                      return true;
 613  
 614                  else
 615                      return false;
 616  
 617              }
 618      }
 619  
 620  
 621      /**
 622      *
 623      * @TODO document
 624      *
 625      */
 626  	function pagelines_show_content($post = null){
 627              // For Hook Parsing
 628              if( is_admin() )
 629                  return true;
 630  
 631              // show on single post pages only
 632              if( is_page() || is_single() )
 633                  return true;
 634  
 635              elseif(pl_has_editor() && $this->section->opt('show_content'))
 636                  return true;
 637  
 638              // Blog Page
 639              elseif( is_home() && ploption('content_blog') )
 640                  return true;
 641  
 642              // Search Page
 643              elseif( is_search() && ploption('content_search') )
 644                  return true;
 645  
 646              // Category Page
 647              elseif( is_category() && ploption('content_category') )
 648                  return true;
 649  
 650              // Archive Page
 651              elseif( ! is_category() && is_archive() && ploption('content_archive') )
 652                  return true;
 653  
 654              else
 655                  return false;
 656  
 657      }
 658  
 659      /*
 660          Show clip or full width post
 661      */
 662  	function pagelines_show_clip($count, $paged){
 663  
 664          if(!VPRO)
 665              return false;
 666  
 667          $archives = apply_filters( 'pagelines_full_width_archives', false );
 668  
 669          if( ( is_home() || $archives ) && $this->section->opt('blog_layout_mode') == 'magazine' && $count <= $this->section->opt('full_column_posts') && $paged == 0)
 670              return false;
 671  
 672          elseif($this->section->opt('blog_layout_mode') != 'magazine')
 673              return false;
 674  
 675          elseif(is_page() || is_single())
 676              return false;
 677  
 678          else
 679              return true;
 680      }
 681  
 682  
 683  
 684      /**
 685      *
 686      * @TODO document
 687      *
 688      */
 689  	function posts_404(){
 690  
 691          $head = ( is_search() ) ? sprintf(__('No results for &quot;%s&quot;', 'pagelines'), get_search_query()) : __('Nothing Found', 'pagelines');
 692  
 693          $subhead = ( is_search() ) ? __('Try another search?', 'pagelines') : __("Sorry, what you are looking for isn't here.", 'pagelines');
 694  
 695          $the_text = sprintf('<h2 class="center">%s</h2><p class="subhead center">%s</p>', $head, $subhead);
 696  
 697              printf( '<section class="billboard">%s <div class="center fix">%s</div></section>', apply_filters('pagelines_posts_404', $the_text), pagelines_search_form( false ));
 698  
 699      }
 700  
 701  
 702  }
 703  /* ------- END OF CLASS -------- */


Generated: Fri Aug 30 18:26:24 2013 Cross-referenced by PHPXref 0.7.1