function loadPosition($position) { if (!function_exists('plgContentLoadPosition')) { require_once JPATH_SITE . DIRECTORY_SEPARATOR . 'plugins' . DIRECTORY_SEPARATOR . 'content' . DIRECTORY_SEPARATOR . 'loadmodule.php'; } echo plgContentLoadPosition($position); }
function plgContentProcessPositions(&$row, &$matches, $count, $regex, $style) { for ($i = 0; $i < $count; $i++) { $load = str_replace('loadposition', '', $matches[0][$i]); $load = str_replace('{', '', $load); $load = str_replace('}', '', $load); $load = trim($load); $modules = plgContentLoadPosition($load, $style); $row->text = str_replace($matches[0][$i], $modules, $row->text); } // removes tags without matching module positions $row->text = preg_replace($regex, '', $row->text); }
function _load($position, $style) { return plgContentLoadPosition($position, $style); }