Function Reference: geodir_action_article_open

Summary

Outputs the opening HTML article wrapper if the compatibility settings are present.

Package

GeoDirectory

Parameters

$type
(string) (optional) Depreciated.

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

1.5.4 Removed itemscope itemtype=”[itemtype]” as now added

Source File

geodir_action_article_open() is located in geodirectory_template_actions.php [Line: 519]

Source Code

function geodir_action_article_open($type = '', $id = '', $class = '', $itemtype = '')
{
    $class = implode(" ", $class);
    $tc = get_option('theme_compatibility_setting');
    if (!empty($tc['geodir_article_open_replace'])) {
        $text = $tc['geodir_article_open_replace'];
    } else {
        $text = '
'; } if (!empty($tc['geodir_article_open_id'])) { $id = $tc['geodir_article_open_id']; } if (!empty($tc['geodir_article_open_class'])) { $class = $tc['geodir_article_open_class']; } $text = str_replace(array("[id]", "[class]", "[itemtype]"), array($id, $class, $itemtype), $text); echo $text; }