Function Reference: geodir_action_listings_content

Summary

Builds and outputs the listings content via actions.

Package

GeoDirectory

Change Log

Since: 1.0.0

Actions

‘geodir_main_content_open’ [Line: 2035]

‘geodir_before_listing’ [Line: 2043]

‘geodir_listings_content_inside’ [Line: 2051]

‘geodir_after_listing’ [Line: 2058]

‘geodir_main_content_close’ [Line: 2066]

Filters

‘geodir_before_listing_wrapper_extra_class’ [Line: 2036]

Source File

geodir_action_listings_content() is located in geodirectory_template_actions.php [Line: 2024]

Source Code

function geodir_action_listings_content()
{
    /**
     * This is used to add HTML opening wrappers to the main content of most pages including listings, author, search, home etc.
     *
     * @since 1.0.0
     * @param string $type The page type. Values can be 'listings-page', 'author-page', 'search-page' or 'home-page'.
     * @param string $id The id for the div. Usually 'geodir-main-content'.
     * @param string $class The class for the div. Values can be 'listings-page', 'author-page', 'search-page' or 'home-page'.
     * @see 'geodir_main_content_close' Where the oposing closing tag is added.
     */
    do_action('geodir_main_content_open', 'listings-page', 'geodir-main-content', 'listings-page');
    $extra_class = apply_filters('geodir_before_listing_wrapper_extra_class', '', 'listings-page');
    echo '
'; /** * Called before the listings page content, inside the outer wrapper. Used on listings pages and search and author pages. * * @since 1.0.0 */ do_action('geodir_before_listing'); echo '
'; /** * This actions calls the listings list content. Used on listings pages and search and author pages. * * @since 1.0.0 */ do_action('geodir_listings_content_inside'); /** * Called after the listings content, inside the outer wrapper HTML. Used on listings pages and search and author pages. * * @since 1.0.0 */ do_action('geodir_after_listing'); /** * This is used to add HTML closing wrappers to the main content of most pages including listings, author, search, home etc. * * @since 1.0.0 * @see 'geodir_main_content_open' Where the oposing opening tag is added. */ do_action('geodir_main_content_close', 'listings-page'); }