Function Reference: geodir_action_sidebar_right_open
Summary
Outputs the opening HTML aside right sidebar wrapper if the compatibility settings are present.
Package
GeoDirectory
Parameters
- $type
- (string) (optional) Page type.
- Default: None
- $id
- (string) (optional) The element id.
- Default: None
- $class
- (string) (optional) The element class.
- Default: None
- $itemtype
- (string) (optional) The element itemtype.
- Default: None
Change Log
Since: 1.0.0
Source File
geodir_action_sidebar_right_open() is located in geodirectory_template_actions.php [Line: 573]
Source Code
function geodir_action_sidebar_right_open($type = '', $id = '', $class = '', $itemtype = '') { if ($type == 'home-page' && $width = get_option('geodir_width_home_right_section')) { $width_css = 'style="width:' . $width . '%;"'; } elseif ($type == 'listings-page' && $width = get_option('geodir_width_listing_right_section')) { $width_css = 'style="width:' . $width . '%;"'; } elseif ($type == 'search-page' && $width = get_option('geodir_width_search_right_section')) { $width_css = 'style="width:' . $width . '%;"'; } elseif ($type == 'author-page' && $width = get_option('geodir_width_author_right_section')) { $width_css = 'style="width:' . $width . '%;"'; } else { $width_css = ''; } $tc = get_option('theme_compatibility_setting'); if (!empty($tc['geodir_sidebar_right_open_replace'])) { $text = $tc['geodir_sidebar_right_open_replace']; } else { $text = '