public_html/wp-content/plugins/list-category-posts/include/lcp-catlistdisplayer.php
/**
   * This function should be overriden for template system.
   * @param post $single
   * @param HTML tag to display $tag
   * @return string
   */
This function should be overriden for template system.
@param post $single
@param HTML tag to display $tag
@return string
This function should be overriden for template system . @param post $single @param HTML tag to display $tag @return string
private function lcp_build_post($single, $tag){
    $class ='';
    $tag_css = '';
    if ( is_object($this->parent) && is_object($single) && $this->parent->ID == $single->ID ){
      $class = 'current';
    }
    if ( array_key_exists('tags_as_class', $this->params) && $this->params['tags_as_class'] == 'yes' ) {
      $post_tags = wp_get_post_Tags($single->ID);
      if ( !empty($post_tags) ){
        foreach ($post_tags as $post_tag) {
          $class .= " $post_tag->slug ";
        }
      }
    }
    if ( !empty($class) ){
      $tag_css = 'class="' . $class . '"';
    }
    $lcp_display_output = '<'. $tag . ' ' . $tag_css . '>';
    if ( empty($this->params['no_post_titles']) || !empty($this->params['no_post_titles']) && $this->params['no_post_titles'] !== 'yes' ) {
      $lcp_display_output .= $this->get_post_title($single);
    }
    $lcp_display_output .= $this->get_stuff_with_tags_and_classes('comments', $single);
    if (!empty($this->params['date_tag']) || !empty($this->params['date_class'])):
      $lcp_display_output .= $this->get_date($single,
                                             $this->params['date_tag'],
                                             $this->params['date_class']);
    else:
      $lcp_display_output .= $this->get_date($single);
    endif;
     Modified
    if (!empty($this->params['date_modified_tag']) || !empty($this->params['date_modified_class'])):
      $lcp_display_output .= $this->get_modified_date($single,
                                             $this->params['date_modified_tag'],
                                             $this->params['date_modified_class']);
    else:
      $lcp_display_output .= $this->get_modified_date($single);
    endif;
    $lcp_display_output .= $this->get_stuff_with_tags_and_classes('author', $single);
    if (!empty($this->params['display_id']) && $this->params['display_id'] == 'yes'){
        $lcp_display_output .= $single->ID;
    }
    $lcp_display_output .= $this->get_custom_fields($single);
    $lcp_display_output .= $this->get_thumbnail($single);
    $lcp_display_output .= $this->get_stuff_with_tags_and_classes('content', $single);
    if (!empty($this->params['excerpt_tag'])):
      if (!empty($this->params['excerpt_class'])):
        $lcp_display_output .= $this->get_excerpt($single,
                                     $this->params['excerpt_tag'],
                                     $this->params['excerpt_class']);
      else:
        $lcp_display_output .= $this->get_excerpt($single, $this->params['excerpt_tag']);
      endif;
    else:
      $lcp_display_output .= $this->get_excerpt($single);
    endif;
    $lcp_display_output .= $this->get_posts_morelink($single);
    $lcp_display_output .= '</' . $tag . '>';
    return $lcp_display_output;
  }
private function lcp_build_post ( $ single , $ tag ) { $ class = '' ; $ tag_css = '' ; if ( is_object ( $ this -> parent ) && is_object ( $ single ) && $ this -> parent -> ID == $ single -> ID ) { $ class = 'current' ; } if ( array_key_exists ( 'tags_as_class' , $ this -> params ) && $ this -> params [ 'tags_as_class' ] == 'yes' ) { $ post_tags = wp_get_post_Tags ( $ single -> ID ) ; if ( ! empty ( $ post_tags ) ) { foreach ( $ post_tags as $ post_tag ) { $ class .= " $ post_tag -> slug " ; } } } if ( ! empty ( $ class ) ) { $ tag_css = 'class="' . $ class . '"' ; } $ lcp_display_output = '<' . $ tag . ' ' . $ tag_css . '>' ; if ( empty ( $ this -> params [ 'no_post_titles' ] ) || ! empty ( $ this -> params [ 'no_post_titles' ] ) && $ this -> params [ 'no_post_titles' ] !== 'yes' ) { $ lcp_display_output .= $ this -> get_post_title ( $ single ) ; } $ lcp_display_output .= $ this -> get_stuff_with_tags_and_classes ( 'comments' , $ single ) ; if ( ! empty ( $ this -> params [ 'date_tag' ] ) || ! empty ( $ this -> params [ 'date_class' ] ) ) : $ lcp_display_output .= $ this -> get_date ( $ single , $ this -> params [ 'date_tag' ] , $ this -> params [ 'date_class' ] ) ; else : $ lcp_display_output .= $ this -> get_date ( $ single ) ; endif ; if ( ! empty ( $ this -> params [ 'date_modified_tag' ] ) || ! empty ( $ this -> params [ 'date_modified_class' ] ) ) : $ lcp_display_output .= $ this -> get_modified_date ( $ single , $ this -> params [ 'date_modified_tag' ] , $ this -> params [ 'date_modified_class' ] ) ; else : $ lcp_display_output .= $ this -> get_modified_date ( $ single ) ; endif ; $ lcp_display_output .= $ this -> get_stuff_with_tags_and_classes ( 'author' , $ single ) ; if ( ! empty ( $ this -> params [ 'display_id' ] ) && $ this -> params [ 'display_id' ] == 'yes' ) { $ lcp_display_output .= $ single -> ID ; } $ lcp_display_output .= $ this -> get_custom_fields ( $ single ) ; $ lcp_display_output .= $ this -> get_thumbnail ( $ single ) ; $ lcp_display_output .= $ this -> get_stuff_with_tags_and_classes ( 'content' , $ single ) ; if ( ! empty ( $ this -> params [ 'excerpt_tag' ] ) ) : if ( ! empty ( $ this -> params [ 'excerpt_class' ] ) ) : $ lcp_display_output .= $ this -> get_excerpt ( $ single , $ this -> params [ 'excerpt_tag' ] , $ this -> params [ 'excerpt_class' ] ) ; else : $ lcp_display_output .= $ this -> get_excerpt ( $ single , $ this -> params [ 'excerpt_tag' ] ) ; endif ; else : $ lcp_display_output .= $ this -> get_excerpt ( $ single ) ; endif ; $ lcp_display_output .= $ this -> get_posts_morelink ( $ single ) ; $ lcp_display_output .= '</' . $ tag . '>' ; return $ lcp_display_output ; }
This function should be overriden for template system.
This function should be overriden for template system .
// Comments count // Date // Date Modified // Author // Display ID // Custom field display