Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将模块样式标记设置为聚光灯区域-joomla template T3V3 framwork_Joomla_Joomla2.5 - Fatal编程技术网

如何将模块样式标记设置为聚光灯区域-joomla template T3V3 framwork

如何将模块样式标记设置为聚光灯区域-joomla template T3V3 framwork,joomla,joomla2.5,Joomla,Joomla2.5,如何为聚光灯内的模块设置样式标记 聚光灯加载模块,如下所示 $this->spotlight ('spotlight-2', 'position-5, position-6, position-7, position-8') <jdoc:include type="modules" name="<?php $this->_p('position-5') ?>" style="rounded"/> $info = array('style'=>'r

如何为聚光灯内的模块设置样式标记

聚光灯加载模块,如下所示

$this->spotlight ('spotlight-2', 'position-5, position-6, position-7, position-8') 
<jdoc:include type="modules" name="<?php $this->_p('position-5') ?>"  style="rounded"/>
$info = array('style'=>'rounded');
  $this->spotlight ('spotlight-2', 'position-5, position-6, position-7, position-8',$info)  
我如何控制聚光灯内的模块具有圆形样式

如果模块不在聚光灯下,我们可以这样放置样式

$this->spotlight ('spotlight-2', 'position-5, position-6, position-7, position-8') 
<jdoc:include type="modules" name="<?php $this->_p('position-5') ?>"  style="rounded"/>
$info = array('style'=>'rounded');
  $this->spotlight ('spotlight-2', 'position-5, position-6, position-7, position-8',$info)  

有什么好主意吗?

为了让它发挥作用,我做了以下几点

我在plugins/system/at3v3/t3v3base/tpls/blocks中编辑了spotlight.php文件

由此

$style = 'JAxhtml';  
对此

$style = $vars['style'];  
然后在我的模板中调用spotlight函数,如下所示

$this->spotlight ('spotlight-2', 'position-5, position-6, position-7, position-8') 
<jdoc:include type="modules" name="<?php $this->_p('position-5') ?>"  style="rounded"/>
$info = array('style'=>'rounded');
  $this->spotlight ('spotlight-2', 'position-5, position-6, position-7, position-8',$info)  
容易解决

我希望在T3V3下一版本中看到此选项