gag*_*gag 4 joomla tooltip twitter-bootstrap
我想从我的Joomla 3网站上完全删除bootstrap,而不是在前端显示工具提示.我几乎尝试了所有内容,几乎阅读了关于该主题的每篇文章,但找不到正确的解决方案.
事实是,删除它并不是那么难,但我想永久删除它,以便没有更新可以撤消我的更改.
有没有办法完成这项任务?
仅从模板和模块中删除几行是不够的.我的解决方案是创建一个插件:
class plgSystemYourPlugin extends JPlugin
{
public function onBeforeCompileHead()
{
// Application Object
$app = JFactory::getApplication();
// Frontend
if( $app instanceof JApplicationSite )
{
$doc = JFactory::getDocument();
// Remove default bootstrap
unset($doc->_scripts[JURI::root(true).'/media/jui/js/bootstrap.min.js']);
}
}
}
Run Code Online (Sandbox Code Playgroud)
它适用于Joomla!3.2 - 3.6.
| 归档时间: |
|
| 查看次数: |
5634 次 |
| 最近记录: |