Function Reference: geodir_action_details_sidebar

Summary

Outputs the details page sidebar content including all HTML wrappers.

Package

GeoDirectory

Change Log

Since: 1.0.0

Actions

‘geodir_sidebar_left_open’ [Line: 904]

‘geodir_detail_sidebar_inside’ [Line: 914]

‘geodir_sidebar_left_close’ [Line: 924]

Source File

geodir_action_details_sidebar() is located in geodirectory_template_actions.php [Line: 889]

Source Code

function geodir_action_details_sidebar()
{
    // this adds the opening html tags to the primary div, this required the closing tag below :: ($type='',$id='',$class='',$itemtype='')
    if (get_option('geodir_detail_sidebar_left_section')) {
        /**
         * Called before the details page left sidebar is opened.
         *
         * This is used to add opening wrapper HTML to the details page left sidebar.
         *
         * @since 1.0.0
         * @param string $type The current page type. Values can be 'details-page', 'listings-page', 'author-page', 'search-page' or 'home-page'.
         * @param string $id Usually the ID of the sidebar wrapper. Values can be 'geodir-sidebar' or 'geodir-sidebar-left'.
         * @param string $class The class of the sidebar wrapper. 'geodir-sidebar-left geodir-details-sidebar-left'.
         * @param string $itemtype HTML itemtype 'http://schema.org/WPSideBar'.
         */
        do_action('geodir_sidebar_left_open', 'details-page', 'geodir-sidebar', 'geodir-sidebar-left geodir-details-sidebar-left', 'https://schema.org/WPSideBar');
        ?>