Hello,
Is there after 3 years of this open tread an answer which can be used. I see that Gavick Joomla templates are using this in the Module section.
For example a module title looks like:
"The key __Features__**We design and develop beautiful websites**"
The output of this is different styles of font use and there are tags used. If I check ../templates/html/moduls.php I find this string:
- Code: Select all
if($module->showtitle) {
if($params->get('module_link_switch')) {
echo '<h3 class="header"><a href="'. $params->get('module_link') .'">'.preg_replace('/\*\*(.*?)\*\*/i', '<small>${1}</small>', preg_replace('/__(.*?)__/i', '<strong>${1}</strong>', $module->title)).'</a></h3>';
} else {
echo '<h3 class="header">'.preg_replace('/\*\*(.*?)\*\*/i', '<small>${1}</small>', preg_replace('/__(.*?)__/i', '<strong>${1}</strong>', $module->title)).'</h3>';
}
}
How can I utilize this for a K2 item or for a normal article? I'm dying to know this!
Can somebody please point me in the right direction to use this in my K2 articles which you guys are always using in your templates.
I probably need to edit ../templates/
Thanks a ton in advance!
Coen