Example #1
0
    public function getContact()
    {
        $html = '';
        // CHtml::tag('strong', array(), 'Kontakt');
        $info = $this->infoFields;
        foreach ($info as $k => $v) {
            $value = '';
            $value = $this->{$k};
            if ($value) {
                if ($k == 'name') {
                    $value = $this->getTeamLink() . $value;
                }
                if ($k == 'web') {
                    $value = CHtml::link(str_replace(['http://', 'https://'], '', $value), $value, array('target' => '_blank'));
                }
                if ($k == 'email') {
                    $value = CHtml::mailto($value, $value . '?subject=Kontakt%20vom%20Balance&body=Hallo%20' . str_replace('
					', '%20', $this->name) . ',', array('target' => '_blank'));
                }
            }
            $info[$k] = array($v, $value);
        }
        foreach ($info as $k => $v) {
            if (!$v[1]) {
                continue;
            }
            if ($v[0]) {
                $html .= $v[0] . ': ';
            }
            $html .= $v[1];
            $html .= CHtml::tag('br');
        }
        return $html;
    }
Example #2
0
 public static function formatInfo($info)
 {
     //[{name}{mail@abc.com}][name]
     if (preg_match_all('{(\\[([^\\]]+)\\])}', $info, $matches)) {
         $info = array();
         foreach ($matches[2] as $value) {
             if (preg_match('{\\{([^\\}]+)\\}\\{([^\\}]+)\\}}', $value, $match)) {
                 $info[] = CHtml::mailto(Html::fontAwesome('envelope', 'a') . $match[1], $match[2]);
             } else {
                 $info[] = $value;
             }
         }
         return implode(Yii::t('common', ', '), $info);
     } else {
         return $info;
     }
 }
Example #3
0
<div class="content-wrapper col-lg-12">
  <div class="alert alert-danger">
    <?php 
echo Yii::t('common', 'Your account was suspended. Please contact the {administrator} if you have any question.', array('{administrator}' => CHtml::mailto(Yii::t('common', 'administrator'), Yii::app()->params->adminEmail)));
?>
  </div>
</div>
Example #4
0
 /**
  * Formats the value as a mailto link.
  * @param mixed $value the value to be formatted
  * @return string the formatted result
  */
 public function formatEmail($value)
 {
     return CHtml::mailto($value);
 }
Example #5
0
</td>
        <td><b><?php 
echo CHtml::mailto(CHtml::encode($model->emailAddress));
?>
</b></td>
    </tr>
    <tr class='full-profile-details-row' <?php 
echo !$isMyProfile || $fullProfileInfo ? '' : 'style="display:none;"';
?>
>
        <td class="label"><?php 
echo $attributeLabels['googleId'];
?>
</td>
        <td><b><?php 
echo CHtml::mailto(CHtml::encode($model->googleId));
?>
</b></td>
    </tr>
    <tr class='full-profile-details-row' <?php 
echo !$isMyProfile || $fullProfileInfo ? '' : 'style="display:none;"';
?>
>
        <td class="label"><?php 
echo Yii::t('profile', 'Signature');
?>
</td>
        <td><div style="height:50px;width:0px;float:left;"></div><?php 
echo $model->getSignature(true);
?>
</td>
Example #6
0
?>
" class="collapse out">
    <br/>
    <?php 
echo $module->description;
?>
<br/><br/>
    <table class="table">
        <tr>
            <td>
                <?php 
echo Yii::t('YupeModule.yupe', 'Author');
?>
:
                <?php 
echo CHtml::mailto($module->author, $module->authorEmail);
?>
            </td>
        </tr>
        <tr>
            <td>
                <?php 
echo Yii::t('YupeModule.yupe', 'Web-site');
?>
:
                <?php 
echo CHtml::link($module->url, $module->url, ['target' => '_blank']);
?>
            </td>
        </tr>
    </table>
Example #7
0
 /**
  * Override to allow htmlOptions to be passed
  * (non-PHPdoc)
  * @see CFormatter::formatEmail()
  */
 public function formatEmail($value, $email = '', $htmlOptions = array())
 {
     return CHtml::mailto($value, $email, $htmlOptions);
 }
<div id="container">
  <div id="header">
    <h1><?php 
echo CHtml::link(CHtml::encode(Yii::app()->params['title']), Yii::app()->homeUrl);
?>
</h1>
  </div><!-- header -->
  <div id="content">
    <h2>Page Not Found</h2>
    <p>
    The page you are looking for cannot be found. Please make sure you entered a correct URL.
    </p>
    <p>
    If you think this is a server error, please contact
    <?php 
echo CHtml::mailto(Yii::app()->params['adminEmail']);
?>
.
    </p>
    <p>
    <?php 
echo CHtml::link('Return to homepage', Yii::app()->homeUrl);
?>
    </p>
  </div><!-- content -->

  <br class="clearfloat" />

  <div id="footer">
    <p><?php 
echo Yii::app()->params['copyrightInfo'];
Example #9
0
 public function getSignature($html = false)
 {
     $adminRule = Yii::app()->settings->emailUseSignature;
     $userRule = $this->emailUseSignature;
     $signature = '';
     switch ($adminRule) {
         case 'admin':
             $signature = Yii::app()->settings->emailSignature;
             break;
         case 'user':
             switch ($userRule) {
                 case 'user':
                     $signature = $signature = $this->emailSignature;
                     break;
                 case 'admin':
                     Yii::app()->settings->emailSignature;
                     break;
                 case 'group':
                     $signature == '';
                     break;
                 default:
                     $signature == '';
             }
             break;
         case 'group':
             $signature == '';
             break;
         default:
             $signature == '';
     }
     $signature = preg_replace(array('/\\{first\\}/', '/\\{last\\}/', '/\\{phone\\}/', '/\\{group\\}/', '/\\{email\\}/'), array($this->user->firstName, $this->user->lastName, $this->officePhone, '', $html ? CHtml::mailto($this->emailAddress) : $this->emailAddress), $signature);
     if ($html) {
         $signature = Formatter::convertLineBreaks($signature);
     }
     return $signature;
 }
Example #10
0
else
  echo 'Телефон: ';
foreach($phones as $k=>$phon){
	$det_tel = ($detect->isMobile()) ? 'tel:' : 'callto:';
	$phone = CHtml::link('<span itemprop="telephone">'.$phon->phone.'</span>',$det_tel.$phon->clear_phone); 	
    echo $phone.' <span class="org_phone_description">'.$phon->description.'</span><br>';

}
?>
 </p>
<?php 
}


if($model->email){ 
	echo CHtml::tag('p', array('class'=>'org_email'), CHtml::mailto($model->email, $model->email,array('itemprop'=>"email")));
} 
if($model->orgsHttp || $model->vkontakte || $model->facebook  || $model->twitter || $model->instagram || $model->youtube){ ?>

<?php
if($model->orgsHttp){

 echo '<p class="org_site">';
  $site = '';
  foreach ($model->orgsHttp as $key => $st) {
  		$linktext = $st->description?$st->description:Orgs::parseUrlShow($st->site);
  		$sitelink = CHtml::link($linktext, $st->site, array('loc'=>Yii::app()->createAbsoluteUrl('/redirect.php'),'target'=>'_blank','rel'=>'nofollow'));
   		$site .= CHtml::tag('span', array(), $st->description?$sitelink:$sitelink.' <span class="org_phone_description">Официальный сайт</span>').'<br>';
  }
  if($site){
    $site = rtrim($site, '<br>');
Example #11
0
<div class="listitem">
	<div class="avatar">
		<?php 
$this->widget('application.extensions.VGGravatarWidget.VGGravatarWidget', array('email' => CHtml::encode($data->Users->user_email), 'hashed' => false, 'default' => 'http://' . $_SERVER['SERVER_NAME'] . Yii::app()->request->baseUrl . '/images/bg-avatar.png', 'size' => 60, 'redirect' => Yii::app()->createUrl('clients/view', array('id' => $data->client_id)), 'rating' => 'PG', 'htmlOptions' => array('class' => 'borderCaption', 'alt' => 'Gravatar Icon')));
?>
	</div>
	<div class="people-detail">
		<h5><?php 
echo CHtml::encode($data->Users->user_name) . " " . CHtml::encode($data->Users->user_lastname);
?>
</h5>
		<?php 
echo CHtml::mailto(CHtml::encode($data->Users->user_email), CHtml::encode($data->Users->user_email));
?>
<br />
		<?php 
echo CHtml::encode($data->getAttributeLabel('Users.user_active')) . ": ";
?>
		<?php 
echo $data->Users->user_active == 1 ? Yii::t('site', 'yes') : Yii::t('site', 'no');
?>
<br />
		<div style="width:100%; text-align:right;"><?php 
echo CHtml::link(Yii::t('clients', 'ViewDetails'), array('view', 'id' => $data->client_id));
?>
</div>
	</div>
</div>
Example #12
0
		<?php 
for ($i = 0; $i < count($model->categorias); $i++) {
    if ($i < 3) {
        $categorias[] = $model->categorias[$i]->t('nome');
    }
}
?>
		<h5><i><?php 
echo implode(', ', $categorias);
?>
</i></h5>
		<?php 
if (!Yii::app()->user->isGuest) {
    ?>
			<h6><i><?php 
    echo CHtml::mailto($model->email, $model->email, array('target' => '_blank'));
    ?>
</i></h6>
		<?php 
}
?>
		<?php 
if ($model->lattes != null) {
    ?>
			<h6><i><a href="<?php 
    echo $model->lattes;
    ?>
" target="_blank"><?php 
    echo Yii::t('Pessoa', 'lattes');
    ?>
</a></i></h6>
Example #13
0
 public function getSignature($html = false)
 {
     $adminRule = Yii::app()->params->admin->emailUseSignature;
     $userRule = $this->emailUseSignature;
     $userModel = CActiveRecord::model('User')->findByPk($this->id);
     $signature = '';
     switch ($adminRule) {
         case 'admin':
             $signature = Yii::app()->params->admin->emailSignature;
             break;
         case 'user':
             switch ($userRule) {
                 case 'user':
                     $signature = $signature = $this->emailSignature;
                     break;
                 case 'admin':
                     Yii::app()->params->admin->emailSignature;
                     break;
                 case 'group':
                     $signature == '';
                     break;
                 default:
                     $signature == '';
             }
             break;
         case 'group':
             $signature == '';
             break;
         default:
             $signature == '';
     }
     $signature = preg_replace(array('/\\{first\\}/', '/\\{last\\}/', '/\\{phone\\}/', '/\\{group\\}/', '/\\{email\\}/'), array($userModel->firstName, $userModel->lastName, $this->officePhone, '', $html ? CHtml::mailto($this->emailAddress) : $this->emailAddress), $signature);
     if ($html) {
         $signature = x2base::convertLineBreaks($signature);
     }
     // $signature = '<span style="color:grey;">' . x2base::convertLineBreaks($signature) . '</span>';
     return $signature;
 }
Example #14
0
<div class="col-lg-8 col-lg-offset-2 col-xs-12">
  <div class="panel panel-theme">
    <div class="panel-heading">
        <h3 class="panel-title"><?php 
echo Yii::t('common', 'Activate Account');
?>
</h3>
    </div>
    <div class="panel-body">
      <?php 
$form = $this->beginWidget('ActiveForm', array('id' => 'forget-password-form', 'htmlOptions' => array('role' => 'form')));
?>
        <?php 
echo Html::formGroup($model, 'email', array(), $form->labelEx($model, 'email'), Html::activeTextField($model, 'email', array('readonly' => true)), Yii::t('common', 'If you have got problems in activating your account, please contact the administrator via {email}.', array('{email}' => CHtml::mailto(Html::fontAwesome('envelope', 'a') . Yii::app()->params->adminEmail, Yii::app()->params->adminEmail))));
?>
        <?php 
echo Html::formGroup($model, 'verifyCode', array(), $form->labelEx($model, 'verifyCode'), Html::activeTextField($model, 'verifyCode'), $this->widget('CCaptcha', array('clickableImage' => true, 'showRefreshButton' => false), true), $form->error($model, 'verifyCode', array('class' => 'text-danger')));
?>
        <button type="submit" class="btn btn-theme"><?php 
echo Yii::t('common', 'Submit');
?>
</button>
      <?php 
$this->endWidget();
?>
    </div>
  </div>
</div>
Example #15
0
<?php

$siteName = Yii::app()->getModule('yupe')->siteName;
?>
<html>

<head>
    <title>Новый пользователь на сайте "<?php 
echo CHtml::encode($siteName);
?>
"</title>
</head>

<body>
    <p>Информация о пользователе:</p>
    <?php 
$this->widget('zii.widgets.CDetailView', array('data' => $user, 'attributes' => array('profile.fio', array('name' => 'email', 'type' => 'raw', 'value' => CHtml::mailto($user->email)), array('name' => 'profile.gender', 'value' => $user->profile->getGender()), array('name' => 'profile.organization', 'value' => $user->profile->organization), array('name' => 'profile.post', 'value' => $user->profile->post), array('name' => 'registration_date', 'value' => date("d.m.Y H:i:s"))), 'itemTemplate' => "<p><b>{label}:</b> {value}</p>\n", 'tagName' => null));
?>

    <p>&nbsp;</p>
    <?php 
$this->widget("application.modules.contentblock.widgets.ContentBlockWidget", array("code" => "admin_sign", "silent" => true));
?>
</body>

</html>
Example #16
0
if ($user->country_id == 1) {
    ?>
  <?php 
    echo Html::formGroup($model, 'province_id', array('id' => 'province'), $form->labelEx($model, 'province_id'), $form->dropDownList($model, 'province_id', Region::getProvinces(), array('class' => 'form-control', 'prompt' => '')), $form->error($model, 'province_id', array('class' => 'text-danger')));
    ?>
  <?php 
    echo Html::formGroup($model, 'city_id', array('id' => 'city'), $form->labelEx($model, 'city_id'), $form->dropDownList($model, 'city_id', isset($allCities[$model->province_id]) ? $allCities[$model->province_id] : array(), array('class' => 'form-control')), $form->error($model, 'city_id', array('class' => 'text-danger')));
    ?>
  <?php 
}
?>
  <?php 
echo Html::formGroup($model, 'mobile', array(), $form->labelEx($model, 'mobile'), Html::activeTextField($model, 'mobile'), $form->error($model, 'mobile', array('class' => 'text-danger')));
?>
  <p class="text-info"><?php 
echo Yii::t('common', 'Please contact the adminstrator via {email} for changing the other personal information.', array('{email}' => CHtml::mailto(Html::fontAwesome('envelope', 'a') . Yii::app()->params->adminEmail, Yii::app()->params->adminEmail)));
?>
</p>
  <button type="submit" class="btn btn-theme btn-lg"><?php 
echo Yii::t('common', 'Submit');
?>
</button>
  <?php 
$this->endWidget();
?>
</div>
<?php 
Yii::app()->clientScript->registerCssFile('/f/plugins/bootstrap-datepicker/css/datepicker.css');
Yii::app()->clientScript->registerScriptFile('/f/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js');
Yii::app()->clientScript->registerScriptFile('/f/js/pinyin.min.js');
$allCities = json_encode($allCities);
Example #17
0
?>
            
            <?php 
if ($data->type_id == Feedback::TYPE_REVIEW) {
    ?>
            &nbsp;|
                 <?php 
    echo '<i class="icon-time"></i> ' . Yii::app()->getDateFormatter()->format('dd.MM.yyyy', $data->date);
    ?>
            <?php 
}
?>
            
            |             
            <?php 
echo '<i class="icon-user"></i> ' . $data->name . ' &laquo;' . CHtml::mailto($data->email) . '&raquo; ' . ' | ' . $data->phone;
?>
        </div>
        <div class="text-item">
            <?php 
echo nl2br($data->getText(300));
?>
        </div>   
        <p><b><?php 
echo Yii::t('FeedbackModule.feedback', 'Item order number');
?>
:</b> <?php 
echo $data->sort;
?>
</p>
    </div>
Example #18
0
		<td id="phone" onclick="showField(this,true);">
			<div class="detail-field"><?php echo $model->phone; ?></div>
			<div class="detail-form">
				<?php
				echo $form->textField($model, 'phone', array(
					'size'=>30,
					'maxlength'=>20,
					'tabindex'=>3,
					'style'=>'width:135px;'
				)); ?>
			</div>
		</td>
		<?php 
			$str=substr(Yii::app()->request->getServerName(),4);
		?>
		<td class="label"><label><?php echo $model->email!=""?CHtml::mailto($attributeLabels['email'],$model->email."?cc=dropbox@".$str):$attributeLabels['email']; ?></label></td>
		<td id="email" colspan="3" onclick="showField(this,true);">
			<div class="detail-field"><?php echo $model->email; ?></div>
			<div class="detail-form">
				<?php
				echo $form->textField($model, 'email', array(
					'size'=>15,
					'maxlength'=>100,
					'tabindex'=>4,
					'style'=>'width:225px;'
				)); ?>
			</div>
		</td>
	</tr>
	<tr>
		<td class="label"><?php echo (empty($model->phone2))? "<b>".$attributeLabels['phone2']."</b>" : CHtml::link($attributeLabels['phone2'],'callto:+'.preg_replace('[^0-9]', '',$model->phone2)); ?></td>
Example #19
0
if (!empty($model->country)) {
    echo ' ' . $model->country;
}
?>
<br />
			</div>
		</div>
		<div class="row">
			<div class="cell span-6">
				<?php 
$str = Yii::app()->request->getServerName();
if (substr($str, 0, 4) == 'www.') {
    $str = substr($str, 4);
}
if (!empty($model->email)) {
    echo CHtml::mailto($model->email, $model->email . "?cc=dropbox@" . $str);
}
?>
			</div>
			<div class="cell">
				<?php 
if (!empty($model->website)) {
    echo CHtml::link(preg_replace('/^(http)s?:\\/\\//i', '', $model->website), cleanupUrl($model->website));
}
?>
			</div>
		</div>
		<div class="row" style="margin-bottom:-1px;">
			<div class="cell">
				<?php 
$this->widget('CStarRating', array('model' => $model, 'attribute' => 'rating', 'readOnly' => true, 'minRating' => 1, 'maxRating' => 5, 'starCount' => 5, 'cssFile' => Yii::app()->theme->getBaseUrl() . '/css/rating/jquery.rating.css'));
										</td>
									</tr>
									<tr>
										<td valign="top" style="padding:15px 15px 15px 15px;border: 1px solid #dddddd;width:254px;">
											<table border="0" cellpadding="0" cellspacing="0" >
												<tr>
													<td style="color:#777777;font-family: 'Lucida Grande', 'Lucida Sans', Verdana, sans-serif; font-size:12px;line-height:1.5em;">
														<?php 
if ($cart->billaddress) {
    ?>
															<?php 
    echo $cart->billaddress->first_name . ' ' . $cart->billaddress->last_name;
    ?>
<br/>
															<?php 
    echo CHtml::mailto($cart->customer->email, $cart->customer->email, array('target' => '_blank', 'style' => 'color: #3287cc;text-decoration: none;'));
    ?>
<br/>
															<?php 
    echo $cart->billaddress->address1;
    ?>
<br/>
															<?php 
    echo $cart->billaddress->address2;
    ?>
<br>
															<?php 
    echo $cart->billaddress->city . ', ' . $cart->billaddress->state . ', ' . $cart->billaddress->postal . ', ' . $cart->billaddress->country;
    ?>
<br/>
															<?php 
Example #21
0
             break;
         case '0':
             echo Yii::t('app', 'Private');
             break;
         case '2':
             echo Yii::t('app', 'User\'s Groups');
             break;
         default:
             echo '&nbsp;';
     }
 } elseif ($field->type == 'email') {
     if (empty($model->{$fieldName})) {
         echo '&nbsp;';
     } else {
         $mailtoLabel = isset($model->name) ? '"' . $model->name . '" <' . $model->{$fieldName} . '>' : $model->{$fieldName};
         echo CHtml::mailto($model->{$fieldName}, $mailtoLabel);
     }
 } elseif ($field->type == 'url') {
     if (empty($model->{$fieldName})) {
         $text = '&nbsp;';
     } elseif (!empty($field->linkType)) {
         switch ($field->linkType) {
             case 'skype':
                 $text = '<a href="callto:' . $model->{$fieldName} . '">' . $model->{$fieldName} . '</a>';
                 break;
             case 'googleplus':
                 $text = '<a href="http://plus.google.com/' . $model->{$fieldName} . '">' . $model->{$fieldName} . '</a>';
                 break;
             case 'twitter':
                 $text = '<a href="http://www.twitter.com/#!/' . $model->{$fieldName} . '">' . $model->{$fieldName} . '</a>';
                 break;
Example #22
0
 public function getEmailLink()
 {
     return CHtml::mailto($this->email, $this->email);
 }
</div>

<fieldset>
<legend>
		<?php 
echo Yii::t('view', 'account_info_lb');
?>
 
		<?php 
echo Yii::app()->user->id == $model->user_id ? CHtml::link('<i class="icon-edit"></i>', array('/account/profile/editAccount')) : '';
?>

</legend>
	<?php 
$this->widget('bootstrap.widgets.TbDetailView', array('type' => array('bordered', 'condensed'), 'data' => $model->user, 'attributes' => array('profile_image' => array('label' => $model->user->getAttributeLabel('profile_image'), 'type' => 'raw', 'value' => CHtml::image($model->user->getProfileImageUrl()), 'visible' => $model->user->profile_image != ''), 'username' => array('name' => 'username', 'visible' => Yii::app()->user->id == $model->user->user_id), 'userGroup.user_group_name' => array('name' => 'userGroup.user_group_name', 'visible' => Yii::app()->user->id == $model->user->user_id), 'name' => array('label' => 'Contact', 'value' => $model->user->first_name . ' ' . $model->user->last_name), 'email' => array('label' => $model->user->getAttributeLabel('email'), 'type' => 'raw', 'value' => CHtml::mailto($model->user->email, $model->user->email)))));
?>
	

</fieldset>

<fieldset>
	<legend>
		<?php 
echo Yii::t('view', 'employer_info_lb');
?>
 
		<?php 
echo Yii::app()->user->id == $model->user_id ? CHtml::link('<i class="icon-edit"></i>', array('/account/profile/editProfile'), array('title' => 'Edit Profile')) : '';
?>
Example #24
0
?>
</td>
		</tr>
		
		<tr class="dark">
			<td>Link enviar parametros AJAX<div id="escribir"></div></td>
			<td><?php 
echo CHtml::ajaxLink("Parametros AJAX", $this->createUrl("usuarios/index", array("idget" => "je je soy geT")), array("update" => "#escribir"));
?>
</td>
		</tr>
		
		<tr class="dark">
			<td>Link para corros</td>
			<td><?php 
echo CHtml::mailto("Enviame a mi correo aqui", "*****@*****.**");
?>
</td>
		</tr>
		
		<tr class="dark">
			<td>CHtml::encode()</td>
			<td><?php 
echo CHtml::encode("<a href='www.google.com'>hola como estas</a>");
?>
</td>
		</tr>
		
		<tr class="dark">
			<td>CHtml::tag()</td>
			<td><?php 
Example #25
0
 /**
  * @dataProvider providerMailto
  *
  * @param string $text
  * @param string $email
  * @param array $htmlOptions
  * @param string $assertion
  */
 public function testMailto($text, $email, $htmlOptions, $assertion)
 {
     $this->assertEquals($assertion, CHtml::mailto($text, $email, $htmlOptions));
 }
Example #26
0
		<td class="label"><?php 
echo $attributeLabels['cellPhone'];
?>
</td>
		<td><b><?php 
echo CHtml::encode($model->cellPhone);
?>
</b></td>
	</tr>
	<tr>
		<td class="label"><?php 
echo $attributeLabels['emailAddress'];
?>
</td>
		<td><b><?php 
echo CHtml::mailto($model->emailAddress);
?>
</b></td>
	</tr>
	<tr>
		<td class="label"><?php 
echo Yii::t('profile', 'Signature');
?>
</td>
		<td><div style="height:50px;width:0px;float:left;"></div><?php 
echo $model->getSignature(true);
?>
</td>
		<td><?php 
if ($model->username == Yii::app()->user->getName()) {
    echo CHtml::form('uploadPhoto/' . $model->id, 'post', array('enctype' => 'multipart/form-data'));
    <p><?php 
echo Yii::t('FeedbackModule.feedback', 'Id:');
?>
 <?php 
echo $model->id;
?>
</p>
    <p><?php 
echo Yii::t('FeedbackModule.feedback', 'Author:');
?>
 <?php 
echo $model->name;
?>
 - <?php 
echo CHtml::mailto($model->email);
?>
</p>
    <p><?php 
echo Yii::t('FeedbackModule.feedback', 'Phone:');
?>
 <?php 
echo $model->phone;
?>
</p>
    <p><?php 
echo Yii::t('FeedbackModule.feedback', 'Text:');
?>
</p>
    <p>
        <?php 
Example #28
0
    ?>
		<dt><?php 
    echo Yii::t('Competition', 'Delegates');
    ?>
</dt>
		<dd>
			<?php 
    foreach ($competition->delegate as $key => $delegate) {
        ?>
			<?php 
        if ($key > 0) {
            echo Yii::t('common', ', ');
        }
        ?>
			<?php 
        echo CHtml::mailto(Html::fontAwesome('envelope', 'a') . $delegate->user->getAttributeValue('name', true), $delegate->user->email);
        ?>
			<?php 
    }
    ?>
		</dd>
		<?php 
} elseif ($competition->isOld() && $competition->old->getAttributeValue('delegate')) {
    ?>
		<dt><?php 
    echo Yii::t('Competition', 'Delegates');
    ?>
</dt>
		<dd>
			<?php 
    echo OldCompetition::formatInfo($competition->old->getAttributeValue('delegate'));
Example #29
0
 protected function renderEmail($field, $makeLinks, $textOnly, $encode)
 {
     $fieldName = $field->fieldName;
     if (empty($this->owner->{$fieldName})) {
         return '';
     } else {
         $mailtoLabel = isset($this->owner->name) && !is_numeric($this->owner->name) ? '"' . $this->owner->name . '" <' . $this->owner->{$fieldName} . '>' : $this->owner->{$fieldName};
         return $makeLinks ? CHtml::mailto(CHtml::encode($this->owner->{$fieldName}), $mailtoLabel) : $this->render($this->owner->{$fieldName}, $encode);
     }
 }
Example #30
0
}
?>
                
        <?php 
if (!empty($data->email)) {
    ?>
        <div class="field">
            <div class="field_name">
                <b><?php 
    echo CHtml::encode($data->getAttributeLabel('email'));
    ?>
:</b>
            </div>
            <div class="field_value">
                <?php 
    echo CHtml::mailto($data->email);
    ?>
                            </div>
        </div>

        <?php 
}
?>
                
        <?php 
if (!empty($data->direccion)) {
    ?>
        <div class="field">
            <div class="field_name">
                <b><?php 
    echo CHtml::encode($data->getAttributeLabel('direccion'));