code/libraries/joomlatools/component/koowa/template/filter/module.php
public function _renderModules($modules, $attribs = array())
    {
        $html  = '';
        $count = 1;
        foreach($modules as $module)
        {
            //Set the chrome styles
            if(isset($attribs['style'])) {
                $module->chrome  = explode(' ', $attribs['style']);
            }

            //Set the module attributes
            if($count == 1) {
                $attribs['rel']['first'] = 'first';
            }

            if($count == count($modules)) {
                $attribs['rel']['last'] = 'last';
            }

            if(!isset($module->attribs)) {
                $module->attribs = $attribs;
            } else {
                $module->attribs = array_merge($module->attribs, $attribs);
            }

            //Render the module
            $content = ComKoowaModuleHelper::renderModule($module, $attribs);

            //Prepend or append the module
            if(isset($module->attribs['prepend']) && $module->attribs['prepend']) {
                $html = $content.$html;
            } else {
                $html = $html.$content;
            }

            $count++;
        }

        return $html;
    }
public function _renderModules($modules, $attribs = array())
    {
        $html  = '';
        $count = 1;
        foreach($modules as $module)
        {
            //Set the chrome styles
            if(isset($attribs['style'])) {
                $module->chrome  = explode(' ', $attribs['style']);
            }

            //Set the module attributes
            if($count == 1) {
                $attribs['rel']['first'] = 'first';
            }

            if($count == count($modules)) {
                $attribs['rel']['last'] = 'last';
            }

            if(!isset($module->attribs)) {
                $module->attribs = $attribs;
            } else {
                $module->attribs = array_merge($module->attribs, $attribs);
            }

            //Render the module
            $content = ComKoowaModuleHelper::renderModule($module, $attribs);

            //Prepend or append the module
            if(isset($module->attribs['prepend']) && $module->attribs['prepend']) {
                $html = $content.$html;
            } else {
                $html = $html.$content;
            }

            $count++;
        }

        return $html;
    }
public function _renderModules ( $ modules , $ attribs = array ( ) ) { $ html = '' ; $ count = 1 ; foreach ( $ modules as $ module ) { //Set the chrome styles if ( isset ( $ attribs [ 'style' ] ) ) { $ module -> chrome = explode ( ' ' , $ attribs [ 'style' ] ) ; } //Set the module attributes if ( $ count == 1 ) { $ attribs [ 'rel' ] [ 'first' ] = 'first' ; } if ( $ count == count ( $ modules ) ) { $ attribs [ 'rel' ] [ 'last' ] = 'last' ; } if ( ! isset ( $ module -> attribs ) ) { $ module -> attribs = $ attribs ; } else { $ module -> attribs = array_merge ( $ module -> attribs , $ attribs ) ; } //Render the module $ content = ComKoowaModuleHelper :: renderModule ( $ module , $ attribs ) ; //Prepend or append the module if ( isset ( $ module -> attribs [ 'prepend' ] ) && $ module -> attribs [ 'prepend' ] ) { $ html = $ content . $ html ; } else { $ html = $ html . $ content ; } $ count ++ ; } return $ html ; }
Render the modules

@param object $modules   The module object
@param array  $attribs   Module attributes
@return string  The rendered modules
Render the modules