Easy Property Listings 3.5.17 Code Reference
  • Package
  • Class
  • Tree
  • Todo
  • Hook Reference

Packages

  • EPL
    • Admin
      • Actions
      • Classes
        • ContactsTable
        • EPL
          • Admin
            • Images
        • ReportsGraph
        • Welcome
      • Contacts
      • ContactsActions
      • ContactsFunctions
      • Elements
      • Functions
      • Help
      • HelpSingle
      • Menus
      • MenusAddons
      • MenusExtensions
      • MenusLicenses
      • Plugins
      • Reports
      • ReportsGraphing
      • User
    • Assets
      • ScriptsStyles
      • SVG
    • Classes
      • AuthorLoader
      • AuthorMeta
      • Contact
      • Cron
      • CustomPostType
      • Forms
      • License
      • ListingAdvanced
      • ListingElements
      • MetaboxesCustomFields
      • Pagination
      • PropertyMeta
      • RenderFields
      • RestAPI
      • Search
      • Session
      • Updater
    • Compatibility
      • Extensions
      • Functions
      • Shortcodes
    • Functions
      • Actions
      • ConditionalTags
      • ErrorTracking
      • Formatting
      • Front
      • Global
      • Install
      • Pagination
      • Settings
      • Templates
    • Hooks
      • EnergyCertificate
      • ExternalLinks
      • FloorPlan
      • Map
      • ReadMore
      • WebLink
    • Meta
      • InitCustomFields
      • Meta
    • PostTypes
      • Business
      • Commercial
      • CommercialLand
      • Contact
      • Functions
      • Land
      • Property
      • Rental
      • Rural
    • Shortcode
      • CommercialListingSearch
      • ContactForm
      • Listing
      • ListingAdvanced
      • ListingAuction
      • ListingCategory
      • ListingFeature
      • ListingLocation
      • ListingMetaDoc
      • ListingOpen
      • ListingResults
      • ListingSearch
      • Map
    • Taxonomy
      • BusinessCategories
      • ContactTag
      • Features
      • Location
    • Templates
      • Themes
        • iThemes
        • iThemesBuilder
    • Widget
      • Admin
        • Dashboard
      • Classes
        • Author
        • ContactCapture
        • Gallery
        • Listing
        • Search
      • Functions
  • None
  • WordPress
    • Session

Classes

  • EPL_Admin_Images
  • EPL_Advanced_Shortcode_Listing
  • EPL_Author
  • EPL_Author_Loader
  • EPL_Author_Meta
  • EPL_Contact
  • EPL_Contact_Reports_Table
  • EPL_CPT
  • EPL_Cron
  • EPL_FORM_BUILDER
  • EPL_Graph
  • EPL_License
  • EPL_Listing_Elements
  • EPL_METABOX
  • EPL_Pagination_Call
  • EPL_Property_Meta
  • EPL_Render_Fields
  • EPL_Rest_API
  • EPL_SEARCH
  • EPL_Search_Fields
  • EPL_Session
  • EPL_SL_Plugin_Updater
  • EPL_Welcome
  • EPL_Widget_Author
  • EPL_Widget_Contact_Capture
  • EPL_Widget_Property_Gallery
  • EPL_Widget_Property_Search
  • EPL_Widget_Recent_Property

Functions

  • EPL
  1   2   3   4   5   6   7   8   9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32  33  34  35  36  37  38  39  40  41  42  43  44  45  46  47  48  49  50  51  52  53  54  55  56  57  58  59  60  61  62  63  64  65  66  67  68  69  70  71  72  73  74  75  76  77  78  79  80  81  82  83  84  85  86  87  88  89  90  91  92  93  94  95  96  97  98  99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 
<?php
/**
 * The Template for displaying the author posts with the iThemes Builder Theme Framework
 *
 * @package EPL
 * @subpackage Templates/Themes/iThemesBuilder
 * @since 1.0
 * @since 3.5.0 removed builder_get_tax_term_title() & builder_get_author_link() method call
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/**
 * Render content
 *
 * @since  1.0 [<description>]
 */
function render_content() {
    if ( have_posts() ) :
        ?>
        <div class="loop">
            <div class="loop-header">
                <?php echo wp_kses_post( epl_property_author_box() ); ?>
                <h4 class="loop-title">
                    <?php
                        the_post();

                    if ( is_category() ) { // translators: Category Archive.
                        $title = sprintf( __( 'Archive for %s', 'easy-property-listings' ), single_cat_title( '', false ) );
                    } elseif ( is_tag() ) { // translators: Tag Archive.
                        $title = sprintf( __( 'Archive for %s', 'easy-property-listings' ), single_tag_title( '', false ) );
                    } elseif ( is_tax() ) { // translators: Tag Archive.
                        $term  = get_queried_object();
                        $title = sprintf( __( 'Archive for %s', 'easy-property-listings' ), $term->name );
                    } elseif ( function_exists( 'is_post_type_archive' ) && is_post_type_archive() && function_exists( 'post_type_archive_title' ) ) { // translators: Post Type Archive.
                        $title = post_type_archive_title( '', false );
                    } elseif ( is_author() ) { // translators: Author Archive.
                        $title = sprintf( __( 'Author Archive for %s', 'easy-property-listings' ), get_the_author() );
                    } elseif ( is_year() ) { // translators: Year-Specific Archive.
                        $title = sprintf( __( 'Archive for %s', 'easy-property-listings' ), get_the_time( 'Y' ) );
                    } elseif ( is_month() ) { // translators: Month-Specific Archive.
                        $title = sprintf( __( 'Archive for %s', 'easy-property-listings' ), get_the_time( 'F Y' ) );
                    } elseif ( is_day() ) { // translators: Day-Specific Archive.
                        $title = sprintf( __( 'Archive for %s', 'easy-property-listings' ), get_the_date() );
                    } elseif ( is_time() ) { // translators: Time-Specific Archive.
                        $title = __( 'Time Archive', 'easy-property-listings' );
                    } else { // translators: Default catchall just in case.
                        $title = __( 'Archive', 'easy-property-listings' );
                    }

                    if ( is_paged() ) {
                        // translators: title and page number.
                        printf( '%s &ndash; Page %d', esc_attr( $title ), esc_attr( get_query_var( 'paged' ) ) );
                    } else {
                        echo esc_attr( $title );
                    }
                        rewind_posts();
                    ?>
                </h4>
            </div>

            <div class="loop-content">
                <?php
                while ( have_posts() ) : // The Loop.
                    the_post();
                    ?>
                        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                            <!-- title, meta, and date info -->
                            <div class="entry-header clearfix">
                                <h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
                                <div class="entry-meta">
                                    <?php
                                    // translators: author link.
                                    printf( esc_html__( 'By %s', 'easy-property-listings' ), '<span class="meta-author">' . wp_kses_post( get_the_author_link() ) . '</span>' );
                                    // translators: comments count.
                                    do_action( 'builder_comments_popup_link', '<span class="meta-comments">&middot; ', '</span>', esc_html__( 'Comments %s', 'easy-property-listings' ), esc_html__( '(0)', 'easy-property-listings' ), esc_html__( '(1)', 'easy-property-listings' ), esc_html__( '(%)', 'easy-property-listings' ) );
                                    ?>
                                </div>

                                <div class="entry-meta date">
                                    <span class="weekday"><?php the_time( 'l' ); ?><span class="weekday-comma">,</span></span>
                                    <span class="month"><?php the_time( 'F' ); ?></span>
                                    <span class="day"><?php the_time( 'j' ); ?><span class="day-suffix"><?php the_time( 'S' ); ?></span><span class="day-comma">,</span></span>
                                    <span class="year"><?php the_time( 'Y' ); ?></span>
                                </div>
                            </div>

                            <!-- post content -->
                            <div class="entry-content clearfix">
                                <?php the_excerpt(); ?>
                            </div>

                            <!-- categories, tags and comments -->
                            <div class="entry-footer clearfix">
                                <?php
                                // translators: comments count.
                                do_action( 'builder_comments_popup_link', '<div class="entry-meta alignright"><span class="comments">', '</span></div>', esc_html__( 'Comments %s', 'easy-property-listings' ), esc_html__( '(0)', 'easy-property-listings' ), esc_html__( '(1)', 'easy-property-listings' ), esc_html__( '(%)', 'easy-property-listings' ) );
                                ?>
                                <div class="entry-meta alignleft">
                                    <div class="categories">
                                    <?php
                                    // translators: category list.
                                    printf( esc_html__( 'Categories : %s', 'easy-property-listings' ), wp_kses_post( get_the_category_list( ', ' ) ) );
                                    ?>
                                    </div>
                                    <?php the_tags( '<div class="tags">' . esc_html__( 'Tags : ', 'easy-property-listings' ), ', ', '</div>' ); ?>
                                </div>
                            </div>
                        </div>
                        <!-- end .post -->

                        <?php
                        comments_template(); // include comments template.
                    endwhile; // end of one post.
                ?>
            </div>

            <div class="loop-footer">
                <!-- Previous/Next page navigation -->
                <div class="loop-utility clearfix">
                    <div class="alignleft"><?php previous_posts_link( __( '&laquo; Previous Page', 'easy-property-listings' ) ); ?></div>
                    <div class="alignright"><?php next_posts_link( __( 'Next Page &raquo;', 'easy-property-listings' ) ); ?></div>
                </div>
            </div>
        </div>
        <?php
        else : // do not delete.
            do_action( 'builder_template_show_not_found' );
    endif; // do not delete.
}
add_action( 'builder_layout_engine_render_content', 'render_content' );
do_action( 'builder_layout_engine_render', basename( __FILE__ ) );
Easy Property Listings 3.5.17 Code Reference API documentation generated by ApiGen