|
@@ 879-887 (lines=9) @@
|
| 876 |
|
|
| 877 |
|
switch ($type) { |
| 878 |
|
case Core::CLASS_PLUGIN: |
| 879 |
|
case Core::CLASS_PLUGIN + Core::BLOCK_PLUGIN: |
| 880 |
|
if (class_exists('Plugin' . $plugin) !== false) { |
| 881 |
|
$output .= "if (class_exists('" . "Plugin" . $plugin . "')===false)". |
| 882 |
|
"\n\t\$this->getLoader()->loadPlugin('Plugin$plugin');\n"; |
| 883 |
|
} else { |
| 884 |
|
$output .= "if (class_exists('" . Core::NAMESPACE_PLUGINS_BLOCKS . "Plugin" . $plugin . "')===false)". |
| 885 |
|
"\n\t\$this->getLoader()->loadPlugin('Plugin$plugin');\n"; |
| 886 |
|
} |
| 887 |
|
break; |
| 888 |
|
case Core::CLASS_PLUGIN + Core::FUNC_PLUGIN: |
| 889 |
|
if (class_exists('Plugin' . $plugin) !== false) { |
| 890 |
|
$output .= "if (class_exists('" . "Plugin" . $plugin . "')===false)". |
|
@@ 888-896 (lines=9) @@
|
| 885 |
|
"\n\t\$this->getLoader()->loadPlugin('Plugin$plugin');\n"; |
| 886 |
|
} |
| 887 |
|
break; |
| 888 |
|
case Core::CLASS_PLUGIN + Core::FUNC_PLUGIN: |
| 889 |
|
if (class_exists('Plugin' . $plugin) !== false) { |
| 890 |
|
$output .= "if (class_exists('" . "Plugin" . $plugin . "')===false)". |
| 891 |
|
"\n\t\$this->getLoader()->loadPlugin('Plugin$plugin');\n"; |
| 892 |
|
} else { |
| 893 |
|
$output .= "if (class_exists('" . Core::NAMESPACE_PLUGINS_FUNCTIONS . "Plugin" . $plugin . "')===false)". |
| 894 |
|
"\n\t\$this->getLoader()->loadPlugin('Plugin$plugin');\n"; |
| 895 |
|
} |
| 896 |
|
break; |
| 897 |
|
case Core::FUNC_PLUGIN: |
| 898 |
|
if (function_exists('Plugin' . $plugin) !== false) { |
| 899 |
|
$output .= "if (function_exists('" . "Plugin" . $plugin . "')===false)". |
|
@@ 897-905 (lines=9) @@
|
| 894 |
|
"\n\t\$this->getLoader()->loadPlugin('Plugin$plugin');\n"; |
| 895 |
|
} |
| 896 |
|
break; |
| 897 |
|
case Core::FUNC_PLUGIN: |
| 898 |
|
if (function_exists('Plugin' . $plugin) !== false) { |
| 899 |
|
$output .= "if (function_exists('" . "Plugin" . $plugin . "')===false)". |
| 900 |
|
"\n\t\$this->getLoader()->loadPlugin('Plugin$plugin');\n"; |
| 901 |
|
} else { |
| 902 |
|
$output .= "if (function_exists('" . Core::NAMESPACE_PLUGINS_FUNCTIONS . "Plugin" . $plugin . "')===false)". |
| 903 |
|
"\n\t\$this->getLoader()->loadPlugin('Plugin$plugin');\n"; |
| 904 |
|
} |
| 905 |
|
break; |
| 906 |
|
case Core::SMARTY_MODIFIER: |
| 907 |
|
$output .= "if (function_exists('smarty_modifier_$plugin')===false)". |
| 908 |
|
"\n\t\$this->getLoader()->loadPlugin('$plugin');\n"; |