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

Function Reference: geodir_action_main_content_open

Summary

Outputs the main content opening HTML elements.

Package

GeoDirectory

Parameters

$type
(string) (optional) Depreciated.

Default: None
$id
(string) (optional) The HTML element id.

Default: None
$class
(string) (optional) The HTML element class.

Default: None

Change Log

Since: 1.0.0

Source File

geodir_action_main_content_open() is located in geodirectory_template_actions.php [Line: 1954]

Source Code

function geodir_action_main_content_open($type = '', $id = '', $class = '')
{
    $tc = get_option('theme_compatibility_setting');
    if (!empty($tc['geodir_main_content_open_replace'])) {
        $text = $tc['geodir_main_content_open_replace'];
    } else {
        $text = '
'; } if (!empty($tc['geodir_main_content_open_id'])) { $id = $tc['geodir_main_content_open_id']; } if (!empty($tc['geodir_main_content_open_class'])) { $class = $tc['geodir_main_content_open_class']; } $text = str_replace(array("[id]", "[class]"), array($id, $class), $text); echo $text; }