helpers/Typo.php
public static function vCard($name, $address = '', $locality = '', $state = '', $zip = '', $email = '')
    {
        $items   = array();
        $items[] = \CHtml::tag('li', array('class' => 'fn'), $name);
        $items[] = \CHtml::tag('li', array('class' => 'street-address'), $address);
        $items[] = \CHtml::tag('li', array('class' => 'locality'), $locality);
        $sub     = array();
        $sub[]   = \CHtml::tag('span', array('class' => 'state'), $state);
        $sub[]   = \CHtml::tag('span', array('class' => 'zip'), $zip);
        $items[] = \CHtml::tag('li', array(), implode(", ", $sub));
        $items[] = \CHtml::tag('li', array('class' => 'email'), $email);

        return \CHtml::tag('ul', array('class' => 'vcard'), implode("\n", $items));
    }
public static function vCard($name, $address = '', $locality = '', $state = '', $zip = '', $email = '')
    {
        $items   = array();
        $items[] = \CHtml::tag('li', array('class' => 'fn'), $name);
        $items[] = \CHtml::tag('li', array('class' => 'street-address'), $address);
        $items[] = \CHtml::tag('li', array('class' => 'locality'), $locality);
        $sub     = array();
        $sub[]   = \CHtml::tag('span', array('class' => 'state'), $state);
        $sub[]   = \CHtml::tag('span', array('class' => 'zip'), $zip);
        $items[] = \CHtml::tag('li', array(), implode(", ", $sub));
        $items[] = \CHtml::tag('li', array('class' => 'email'), $email);

        return \CHtml::tag('ul', array('class' => 'vcard'), implode("\n", $items));
    }
public static function vCard ( $ name , $ address = '' , $ locality = '' , $ state = '' , $ zip = '' , $ email = '' ) { $ items = array ( ) ; $ items [ ] = \ CHtml :: tag ( 'li' , array ( 'class' => 'fn' ) , $ name ) ; $ items [ ] = \ CHtml :: tag ( 'li' , array ( 'class' => 'street-address' ) , $ address ) ; $ items [ ] = \ CHtml :: tag ( 'li' , array ( 'class' => 'locality' ) , $ locality ) ; $ sub = array ( ) ; $ sub [ ] = \ CHtml :: tag ( 'span' , array ( 'class' => 'state' ) , $ state ) ; $ sub [ ] = \ CHtml :: tag ( 'span' , array ( 'class' => 'zip' ) , $ zip ) ; $ items [ ] = \ CHtml :: tag ( 'li' , array ( ) , implode ( ", " , $ sub ) ) ; $ items [ ] = \ CHtml :: tag ( 'li' , array ( 'class' => 'email' ) , $ email ) ; return \ CHtml :: tag ( 'ul' , array ( 'class' => 'vcard' ) , implode ( "\n" , $ items ) ) ; }
Renders a handy microformat-friendly list for addresses
@param string $name
@param string $address
@param string $locality
@param string $state
@param string $zip
@param string $email
@return string the generated vcard
Renders a handy microformat - friendly list for addresses