public static function medias(array $items, $tag = 'div')
    {
        if (!empty($items)) {
            $output = '';
            foreach ($items as $itemOptions) {
                if (isset($itemOptions['visible']) && $itemOptions['visible'] === false) {
                    continue;
                }
                // todo: consider removing the support for htmlOptions.
                $options = TbArray::popValue('htmlOptions', $itemOptions, array());
                if (!empty($options)) {
                    $itemOptions = TbArray::merge($options, $itemOptions);
                }
                $image = TbArray::popValue('image', $itemOptions);
                $heading = TbArray::popValue('heading', $itemOptions, '');
                $content = TbArray::popValue('content', $itemOptions, '');
                TbArray::defaultValue('tag', $tag, $itemOptions);
                $output .= self::media($image, $heading, $content, $itemOptions);
            }
            return $output;
        }
        return '';
    }
public static function medias(array $items, $tag = 'div')
    {
        if (!empty($items)) {
            $output = '';
            foreach ($items as $itemOptions) {
                if (isset($itemOptions['visible']) && $itemOptions['visible'] === false) {
                    continue;
                }
                // todo: consider removing the support for htmlOptions.
                $options = TbArray::popValue('htmlOptions', $itemOptions, array());
                if (!empty($options)) {
                    $itemOptions = TbArray::merge($options, $itemOptions);
                }
                $image = TbArray::popValue('image', $itemOptions);
                $heading = TbArray::popValue('heading', $itemOptions, '');
                $content = TbArray::popValue('content', $itemOptions, '');
                TbArray::defaultValue('tag', $tag, $itemOptions);
                $output .= self::media($image, $heading, $content, $itemOptions);
            }
            return $output;
        }
        return '';
    }
public static function medias ( array $ items , $ tag = 'div' ) { if ( ! empty ( $ items ) ) { $ output = '' ; foreach ( $ items as $ itemOptions ) { if ( isset ( $ itemOptions [ 'visible' ] ) && $ itemOptions [ 'visible' ] === false ) { continue ; } // todo: consider removing the support for htmlOptions. $ options = TbArray :: popValue ( 'htmlOptions' , $ itemOptions , array ( ) ) ; if ( ! empty ( $ options ) ) { $ itemOptions = TbArray :: merge ( $ options , $ itemOptions ) ; } $ image = TbArray :: popValue ( 'image' , $ itemOptions ) ; $ heading = TbArray :: popValue ( 'heading' , $ itemOptions , '' ) ; $ content = TbArray :: popValue ( 'content' , $ itemOptions , '' ) ; TbArray :: defaultValue ( 'tag' , $ tag , $ itemOptions ) ; $ output .= self :: media ( $ image , $ heading , $ content , $ itemOptions ) ; } return $ output ; } return '' ; }
Generates multiple media objects.
@param array $items item configurations.
@param string $tag the item tag name.
@return string generated objects.
Generates multiple media objects .