This docs are for GeoDirectory V1 - If you are using GeoDirectory V2 please visit: The GeoDirectory V2 Documentation Website

Function Reference: geodir_action_wrapper_content_open

Summary

Outputs the opening HTML content wrapper div if the compatibility settings are present.

Package

GeoDirectory

Parameters

$type
(string) (optional) Page type.

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_content_open() is located in geodirectory_template_actions.php [Line: 453]

Source Code

function geodir_action_wrapper_content_open($type = '', $id = '', $class = '')
{
    if ($type == 'home-page' && $width = get_option('geodir_width_home_contant_section')) {
        $width_css = 'style="width:' . $width . '%;"';
    } elseif ($type == 'listings-page' && $width = get_option('geodir_width_listing_contant_section')) {
        $width_css = 'style="width:' . $width . '%;"';
    } elseif ($type == 'search-page' && $width = get_option('geodir_width_search_contant_section')) {
        $width_css = 'style="width:' . $width . '%;"';
    } elseif ($type == 'author-page' && $width = get_option('geodir_width_author_contant_section')) {
        $width_css = 'style="width:' . $width . '%;"';
    } else {
        $width_css = '';
    }

    $tc = get_option('theme_compatibility_setting');
    if (!empty($tc['geodir_wrapper_content_open_replace'])) {
        $text = $tc['geodir_wrapper_content_open_replace'];
    } else {
        $text = '
'; } if (!empty($tc['geodir_wrapper_content_open_id'])) { $id = $tc['geodir_wrapper_content_open_id']; } if (!empty($tc['geodir_wrapper_content_open_class'])) { $class = $tc['geodir_wrapper_content_open_class']; } $text = str_replace(array("[id]", "[class]", "[width_css]"), array($id, $class, $width_css), $text); echo $text; }