Function Reference: geodir_action_wrapper_open
Summary
Outputs the opening HTML wrapper div if the compatibility settings are present.
Package
GeoDirectory
Parameters
- $type
- (string) (optional) Depreciated.
- Default: None
- $id
- (string) (optional) The div id.
- Default: None
- $class
- (string) (optional) The div class.
- Default: None
Change Log
Since: 1.0.0
Source File
geodir_action_wrapper_open() is located in geodirectory_template_actions.php [Line: 399]
Source Code
function geodir_action_wrapper_open($type = '', $id = '', $class = '') { $tc = get_option('theme_compatibility_setting'); if (!empty($tc['geodir_wrapper_open_replace'])) { $text = $tc['geodir_wrapper_open_replace']; } else { $text = ''; } if (!empty($tc['geodir_wrapper_open_id'])) { $id = $tc['geodir_wrapper_open_id']; } if (!empty($tc['geodir_wrapper_open_class'])) { $class = $tc['geodir_wrapper_open_class']; } $text = str_replace(array("[id]", "[class]"), array($id, $class), $text); echo $text; }