address() public static method

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); ~~~
See also: http://getbootstrap.com/css/#type-addresses
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.
$email 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)'.
return string
Beispiel #1
0
<?php

/* @var $this yii\web\View */
use kartik\helpers\Html;
$this->title = 'contact-ubudsatu.com';
?>


<div class="content">
			<div class="content">					
				
				 <div class="row">
					<div class="col-md-12">
						<h4 class="page-head-line">CONTACT</h4>			
						<?php 
echo Html::well(Html::address('DUTA BINTARO, Cluster Ubud Satu', ['Kelurahan Kunciran, Kecamatan Pinang', 'Tangerang.'], ['Tel ' => '(021) '], ['Fax ' => '(021) '], ['Website : ' => 'www.ubudsatu.com', 'Email' => '*****@*****.**']), Html::SIZE_TINY);
?>
		
				</div>
				 	
			</div>				
		</div>
</div>
Beispiel #2
0
						</div>
					</div>
				</div>
				 <div class="row">
					<div class="col-md-12">
						<h4 class="page-head-line">Perusahaan</h4>
						<?php 
echo $content;
?>
					</div>
				</div>
				 <div class="row">
					<div class="col-md-12">
						<h4 class="page-head-line">CONTACT</h4>					
						<?php 
echo Html::well(Html::address('Ruko De Mansion Blok C No.12', ['Jl. Jalur Sutera, Alam Sutera, Serpong', 'Tangerang Selatan.'], ['Tel ' => '(021) 3044-85-98/99'], ['Fax ' => '(021) 3044 85 97'], ['Website : ' => 'www.lukison.com', 'Email' => '*****@*****.**']), Html::SIZE_TINY);
?>
		
					</div>
				</div>				
			</div>				
		</div>
			
	</div>		
		<footer class="footer bg-black" style="height: 50px">
			<br>
				<?php 
echo $corp . date('Y');
?>
			</br>
		</footer>
Beispiel #3
0
echo Html::encode($this->title);
?>
</h1>
    <!-- Google Map -->
    <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3455.454059156738!2d-95.57263599999999!3d29.995115999999996!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8640d2629077027b%3A0x16725099b7fa483d!2sVintage+Park+Leasing+%26+Management!5e0!3m2!1sen!2sus!4v1403725703074" width="100%" height="300" frameborder="0" style="border:0"></iframe>
    <!---/map-->
    <!-- End Google Map -->
    <div class="container">		
	<div class="row contacts-page">
		<div class="col-md-12">
            <div class="row">
                <div class="col-md-4 col-sm-4">
                    <section><!-- Contacts -->
                        <h4 class="content-title">Contacts Details</h4>
		                   <?php 
echo Html::address('My Company, Inc.', ['<i class="fa fa-map-marker"></i> 795 Folsom Ave, Suite 600', 'San Francisco, CA 94107'], ['Res' => '<i class="fa fa-phone"></i> (123) 456-7890', 'Off' => '<i class="fa fa-phone"></i> (456) 789-0123'], ['Res' => '<i class="fa fa-envelope"></i> first.last@example.com', 'Off' => '<i class="fa fa-envelope"></i> last.first@example.com']);
?>
                       <!--  <ul class="list-unstyled margin-bottom-20">
                            <li><i class="fa fa-map-marker"></i> 110 Vintage Park Boulevard, Houston, TX 77070</li>
                            <li><i class="fa fa-envelope"></i> info@example.com</li>
                            <li><i class="fa fa-phone"></i> 1(281) 3x0 x52x</li>
                            <li><i class="fa fa-globe"></i> http://www.example.com</li>
                        </ul> -->
                    </section>
                </div>
                <div class="col-md-4 col-sm-4">
                    <section><!-- Business Hours -->
                        <h4 class="content-title">Business Hours</h4>
                        <ul class="list-unstyled">
                            <li><strong>Monday-Friday</strong>: 8am to 5pm</li>
                            <li><strong>Saturday</strong>: Closed</li>