Function Reference: geodir_action_sidebar_left_open
Summary
Outputs the listings page left sidebar opening HTML wrapper if enabled.
Description
Can be enabled disabled from GD>Design>Listings page.
Package
GeoDirectory
Parameters
- $type
- (string) (optional) The page type.
- Default: None
- $id
- (int) (optional) The id for the HTML element.
- Default: None
- $class
- (string) (optional) The class for the HTML element.
- Default: None
- $itemtype
- (string) (required) Optional The itemtype property of the HTML element.
- Default: None
Change Log
Since: 1.0.0
Source File
geodir_action_sidebar_left_open() is located in geodirectory_template_actions.php [Line: 1799]
Source Code
function geodir_action_sidebar_left_open($type = '', $id = '', $class = '', $itemtype = '') { if ($type == 'home-page' && $width = get_option('geodir_width_home_left_section')) { $width_css = 'style="width:' . $width . '%;"'; } elseif ($type == 'listings-page' && $width = get_option('geodir_width_listing_left_section')) { $width_css = 'style="width:' . $width . '%;"'; } elseif ($type == 'search-page' && $width = get_option('geodir_width_search_left_section')) { $width_css = 'style="width:' . $width . '%;"'; } elseif ($type == 'author-page' && $width = get_option('geodir_width_author_left_section')) { $width_css = 'style="width:' . $width . '%;"'; } else { $width_css = ''; } $tc = get_option('theme_compatibility_setting'); if (!empty($tc['geodir_sidebar_left_open_replace'])) { $text = $tc['geodir_sidebar_left_open_replace']; } else { $text = '