Example:
~~~
echo Html::address(
'Twitter, Inc.',
['795 Folsom Ave, Suite 600', 'San Francisco, CA 94107'],
['Res' => '(123) 456-7890', 'Off'=> '(456) 789-0123'],
['Res' => 'first.last@example.com', 'Off' => 'last.first@example.com']
);
$address = Html::address(
'Twitter, Inc.',
['795 Folsom Ave, Suite 600', 'San Francisco, CA 94107'],
['Res' => '(123) 456-7890', 'Off'=> '(456) 789-0123'],
['Res' => 'first.last@example.com', 'Off' => 'last.first@example.com'],
Html::icon('phone'),
Html::icon('envelope')
);
echo Html::well($address, Html::SIZE_TINY);
~~~
public static address ( string $name, array $lines = [], array $phone = [], array $email = [], array $options = [], string $phoneLabel = '(P)', string $emailLabel = '(E)' ) : string | ||
$name | string | the addressee name. |
$lines | array | the lines of address information. |
$phone | array | the list of phone numbers - passed as $key => $value, where: - `$key`: _string_, is the phone type could be 'Res', 'Off', 'Cell', 'Fax'. - `$value`: _string_, is the phone number. |
array | the list of email addresses - passed as $key => $value, where: - `$key`: _string_, is the email type could be 'Res', 'Off'. - `$value`: _string_, is the email address. | |
$options | array | html options for the address. |
$phoneLabel | string | the prefix label for each phone - defaults to '(P)'. |
$emailLabel | string | the prefix label for each email - defaults to '(E)'. |
Résultat | string |