本文整理汇总了PHP中HTML::mailto方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML::mailto方法的具体用法?PHP HTML::mailto怎么用?PHP HTML::mailto使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTML
的用法示例。
在下文中一共展示了HTML::mailto方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: emailLink
public function emailLink()
{
$preference = $this->getPreferenceValueByKeyName('SHOW_EMAIL');
if ($preference == 'yes') {
return \HTML::mailto($this->email, $this->email);
}
return null;
}
示例2: getDetails
public function getDetails()
{
$str = '';
if ($this->first_name || $this->last_name) {
$str .= '<b>' . $this->first_name . ' ' . $this->last_name . '</b><br/>';
}
if ($this->email) {
$str .= '<i class="fa fa-envelope" style="width: 20px"></i>' . HTML::mailto($this->email, $this->email) . '<br/>';
}
if ($this->phone) {
$str .= '<i class="glyphicon glyphicon-earphone" style="width: 20px"></i>' . $this->phone . '<br/>';
}
if ($str) {
$str = '<p>' . $str . '</p>';
}
return $str;
}
示例3: woody_at_wingsc
public function woody_at_wingsc()
{
return HTML::mailto('woody@wingsc.com');
}
示例4: count
$option_count = count($info['options']);
for ($i = 0; $i < $option_count; $i++) {
echo '<li>' . $info['options'][$i] . '</li>';
}
?>
</ul>
</dd>
<?php
}
if ($info['status'] == 'A') {
?>
<dt class="petfinderBioLabel">Contact</dt>
<?php
$name_contact = $info['contact_name'] != '' ? $info['contact_name'] : 'Contact us';
if ($info['contact_email'] != '') {
$contact_method = HTML::mailto($info['contact_email'] . '?subject=Petfinder: ' . $info['name'], $name_contact);
} else {
$contact_method = HTML::anchor('http://www.petfinder.com/petdetail/' . $info['id'], 'See contact details on Petfinder');
}
?>
<dd class="petfinderBioData"><?php
echo $contact_method;
?>
</dd>
<?php
}
?>
<dt class="petfinderBioLabel">Shelter Contact</dt>
<dd class="petfinderBioData">Address: <?php
echo $info['contact_address1'];
?>
示例5: team_at_kohanaframework
/**
* Email link for team@kohanaframework.org
*
* @return string
*/
public function team_at_kohanaframework()
{
return HTML::mailto('team@kohanaframework.org');
}
示例6: _parse_email_links
/**
* preg_replace callback to make links out of e-mail addresses.
*/
protected static function _parse_email_links($match)
{
/*
// The $i:th parenthesis in the regexp contains the URL.
$i = 0;
$match[$i] = HTML::entities($match[$i]);
$caption = Text::plain(Autolink::_url_trim($match[$i]));
$match[$i] = Text::plain($match[$i]);
return '<a href="mailto:' . $match[$i] . '">' . $caption . '</a>';
*/
return HTML::mailto($match[0]);
}
示例7: getJoinsData
public function getJoinsData()
{
$posts = DB::table('posts')->join('users', 'posts.user_id', '=', 'users.id')->select(['posts.id', 'posts.title', 'users.name', 'users.email', 'posts.created_at', 'posts.updated_at']);
return Datatables::of($posts)->editColumn('title', '{!! str_limit($title, 60) !!}')->editColumn('name', function ($model) {
return \HTML::mailto($model->email, $model->name);
})->make(true);
}
示例8: foreach
</thead>
<tbody>
<?php
foreach ($users as $user) {
?>
<tr class="item">
<td class="name">
<?php
echo $user->gravatar(20, NULL, array('class' => 'img-circle'));
?>
<?php
echo HTML::anchor(Route::get('backend')->uri(array('controller' => 'users', 'action' => 'profile', 'id' => $user->id)), $user->username);
?>
</td>
<td class="email hidden-xs"><?php
echo UI::label(HTML::mailto($user->email));
?>
</td>
<td class="roles hidden-xs">
<?php
$roles = explode(',', $user->roles);
?>
<?php
foreach ($roles as $role) {
?>
<?php
echo UI::label($role, 'default');
?>
<?php
}
?>
示例9: elseif
if ($i == 0) {
echo "";
} elseif ($i == 1) {
echo $service_name;
} else {
echo '<a href="#service-' . $q->id . '" data-toggle="collapse" data-target="#service-' . $q->id . '">Много сервисов (' . $i . ')</a>';
echo '<div id="service-' . $q->id . '" class="collapse">' . nl2br($service_name) . '</div>';
}
?>
</td>
<td><?php
echo $q->carbrand->name . ' ' . $q->model->name;
?>
</td>
<td><?php
echo $q->contact . ' / ' . HTML::mailto($q->email);
?>
</td>
<td><?php
echo MyDate::show($q->date, TRUE);
?>
</td>
<td><?php
echo HTML::activate_checker($q->id, $q->active, 'admin/service/qa');
?>
</td>
<td><?php
echo HTML::edit_button($q->id, 'admin/service/qa') . HTML::delete_button($q->id, 'admin/service/qa');
?>
</td>
</tr>
示例10: foreach
<tbody>
<?php
foreach ($users as $user) {
$active = $user->active();
?>
<tr>
<td><?php
echo date('Y-m-d', $user->created) . " " . date('H:i:s', $user->created);
?>
</td>
<td><?php
echo $user->username;
?>
</td>
<td><?php
echo HTML::mailto($user->email);
?>
</td>
<td><?php
echo $user->first_name;
?>
</td>
<td><?php
echo $user->last_name;
?>
</td>
<td class="text-center"><?php
echo Arr::path($statuses, array($user->status, $active));
?>
</td>
<td>
示例11: array
<div class="mail-info">
<?php
echo $from_user->gravatar(40, NULL, array('class' => 'avatar'));
?>
<div class="from">
<div class="name">
<span class="text-muted"><?php
echo __('From user:');
?>
</span>
<?php
echo HTML::anchor(Route::get('backend')->uri(array('controller' => 'users', 'action' => 'profile', 'id' => $message->from_user_id)), $message->author, array('class' => 'btn btn-outline btn-xs btn-rounded'));
?>
</div>
<div class="email"><?php
echo HTML::mailto($from_user->email);
?>
</div>
</div>
<div class="date"><?php
echo Date::format($message->created_on, 'j F Y H:i:s');
?>
</div>
</div>
<div class="mail-message-body" style="border-bottom: 5px solid whitesmoke;">
<?php
echo $message->text;
?>
</div>
示例12: array
<div align="center" >
<div align="left" class="ui-corner-all ui-tabs ui-widget ui-widget-content">
<?php
if (Session::has('uma_error')) {
?>
<div>
<strong>Error: </strong><?php
echo Session::get('uma_error');
?>
</div>
<?php
} else {
?>
<div>You have tried to login to this patient's personal electronic health record but you do not have sufficient priviledges to access it.<br>
There are several reasons for this.<br>
<ul>
<li>You were not given an invitation by this patient for access.</li>
<li>Your invitation has expired. If so, please contact <?php
echo HTML::mailto($email, 'the patient directly.', array('target' => '_blank'));
?>
</li>
<li>If you previously had access, your acesss has been revoked by the patient.</li>
</ul>
</div>
<?php
}
?>
</div>
</div>
</div>
示例13: array
<?php
return array('name_acronym' => 'J&B', 'name' => 'J&B Abstract Art Group', 'brouwer' => 'Juan L. Brouwer', 'brouwer_full' => 'Juan Leo Brouwer Pardo', 'jacas' => 'Oscar J. Jacas', 'jacas_full' => 'Oscar Javier Jacas Hernández', 'phone_numbers' => '(537) 8 322929 <br /> (537) 8 325264', 'address_heading' => 'Address', 'address' => 'Línea No 6 entre N y O. Piso 10, Apto 10A. Plaza. La Habana. Cuba.', 'header1' => '<span class="firstword">Who</span> We Are', 'comment1' => 'J&B Abstract Art Group continues motivated by the energy of this pictorial form. New artist generations explore new ways. The abstraction for us are revelations without end. Enjoy...', 'header2' => '<span class="firstword">Get</span> in Touch', 'comment2' => 'We would like to receive yours questions, opinions and comments. Thanks. If you are to interest some of our works you may <a href="' . URL::to_route('home.contact') . '">contact us</a>. We\'ll keep in touch.', 'header3' => '<span class="firstword">Oscar</span> J. Jacas', 'comment3' => 'I\'m a painter and artisan. Make Paper Marché. The technique is being used to develop environments. My designs and works have been used to decorate empty spaces of cafeteria, hotels, stand\'s and other inner spaces. You may <a href="' . URL::to_route('home.contact') . '">contact me</a>.', 'home' => 'Home', 'work' => 'Work', 'pricing' => 'Pricing', 'contact' => 'Contact', 'contact1' => 'Contact', 'about' => 'About', 'sign_in' => 'Sign In', 'motto' => '– Oscar J. Jacas & Juan L. Brouwer –', 'all' => 'All', 'series' => 'Series', 'tags' => 'Tags', 'dashboard' => 'Dashboard', 'about_long' => "<p>The J&B Abstract Art Group is the fruit of collaboration between two young Cuban artists: Juan Leo Brouwer Pardo and Oscar Javier Jacas Hernandez. From a friendship of more than 10 years emerge this project blended by the self admirations that feel these artists and their preference by Abstract Painting.</p>" . "<p>Juan L. Brouwer chooses this way since the time when he was a student at the Academy of San Alejandro where he had his first Exposition. The work he has been doing since then by experimentation using extra artistic resources and tools which visually send us to old textures and other constructive elements, the use of design in occasions combines with those showing a self aesthetics.</p>" . "<p>All these facts have encouraged Oscar Javier Jacas Hernández painter and artisan to wander in abstract painting some years ago. His work approach him to Action Painting for the use of expressive freedom in gestures.</p>", 'about_small' => 'We are a youg group of cuban painters specializing in the abstract world.', 'our' => 'Our', 'group' => 'Group', 'perks' => 'Perks', 'email_sent' => 'Message sent. Thanks for contacting us. We\'ll write back soon.', 'email_error' => 'There was a problem sending the email. It is our fault. Try again later.', 'events' => 'Events', 'event' => 'Event', 'manage_events' => 'Manage Events', 'search_events' => 'Search Events', 'new_event' => 'New Event', 'event_name' => 'Event Name', 'event_place' => 'Event Place', 'event_date' => 'Event Date', 'event_description' => 'Event Description', 'create_event' => 'Create Event', 'event_added' => 'Event Added.', 'edit_event' => 'Edit Event', 'event_save' => 'Save Event', 'event_updated' => 'Event Updated.', 'event_deleted' => 'Event Deleted.', 'brouwer_about' => "<p>This painter was born in Havana in 1973. Since early age he tends to plastic arts. He develops studies of Painting and Drawing. Graduated from the Academy of Fine Arts San Alejandro in 2001 and from the Technological Institute Pablo de la Torriente Brau specialty craftsmanship. He works professionally since 2001.</p>" . "<p>He has participated in many massive expositions and has 5 expositions of his own; he belongs to the Register of the Creator. In 2001 he performed his first personal exposition \"Beyond Identity\" in the gallery of the Center of development of Fine Arts on Luz and Oficios.st. In 2003 he performed \"From the possible\" at Salvador Allende's House. In 2004 he participated in the \"Event Jojazz\" with an exposition of paintings and photographs at the lobby of the theatre on 23 and 12 st.</p>" . "<p>His paintings and photographs are purely abstract. He has worked in more than 20 collective expositions. His works are part of private collections in Cuba, Canada, Mexico, Japan, Italy and U.S.A.</p>", 'jacas_about' => "<p>This painter and artisan was born in Havana in 1980. Since early age he tends to plastic arts winning contests of children's painting. He performs elementary studies in Painting and Ceramics at 11 years old. When finishing the secondary school he enters the Technological Institute Pablo de la Torriente Brau specialty Craftsmanship. In 1999 as part of his studies he performs works of imitation jewelry, engraving, miniature and marquetry in a Work Shop, being this the one he has chosen for his thesis \"Geometry for the box of cigars\", which was chosen among the best three works of the year, therefore it was shown at the International Fair (FIART) in 1999. He works professionally since then.</p>" . "<p>He has been linked to Artists participating in the design and development of works using different techniques which have been shown in national and international events. Since 2004 he works independently, he is a member of the Association of Artisans Artists of Cuba (ACAA) and also of the Register of the Creator.</p>" . "<h3>Expositions</h3>" . "<ul>" . "<li>FIART - 1999</li>" . "<li>Imago Gallery\t- 2002</li>" . "<li>Salvador Allende's House - 2003</li>" . "<li>Third Hall of Paper Marché \"Antonia Eiriz\" - 2004</li>" . "<li>Expocuba Journey of the African Culture - 2005</li>" . "<li>Fourth Hall of Paper Marché \"Antonia Eiriz\" - 2006</li>" . "<li>Exposition \"Guess of the ACAA\" - 2006</li>" . "<li>Casa de las FAR Gallery - 2006</li>" . "<li>Journey of the environment San Miguel del Padrón Gallery - 2006</li>" . "<li>Personal Exposition \"Identity and dreams\" - 2006</li>" . "<li>Fernando Boada Martin Gallery - 2008</li>" . "<li>Fifth Hall of Paper Marché \"Antonia Eiriz\" - 2008</li>" . "<li>Seventh Hall of Paper Marché \"Love and Fantasy\" - 2011</li>" . "<li>Exposition \"Looking Mexico from Cuba\" (Special Prize) - 2012</li>" . "<li>Exposition \"Connections\" Hotel Plaza Lobby - 2012</li>" . "</ul>" . "<p>He received awards at the Fourth National Hall of Paper Marché \"Antonia Eiriz\". Second award and award given by the Center of Development of Visual Arts and Special Prize for the Project Virgin.</p>" . "<p>He has made donations of his works to different Cuban organizations as the Work Shop \"Antonia Eiriz\", ACLIFIM, television programs and The Art Center for children \"José de la Luz y Caballero\". He donated paintings to The Office of the Historian of the City, to The State Council and Ministers. Paper Marché technique is being used to develop environments works of toys and kinetics besides a wide range of useful and decorative objects. His painting is abstract and it has a gesture character.</p>" . "<p>He performed environments in Belgium with the tour operator Montana at the 2007 Fair of Tourism. He designed sets of columns and capitals for The Aventoura Raisen Agency at the Fair of Tourism (ITB) Berlin 2008. Designs and works of his own have been used to decorate empty spaces of cafeterias, hotels, and other inner spaces. Some of his works are shown in private collections and institutions of different countries such as Cuba, Finland, Denmark, Switzerland, Germany, Holland, Belgium, England, Italy, Spain, USA, Argentina and Mexico.</p>", 'faq' => 'FAQ', 'faq_large' => 'Frequently Asked Questions', 'faq1' => 'Why J&B Abstrac Art Group?', 'faq1_answer' => 'It\'s because abstract art enthrall us and give meaning to our union. Jacas and Brouwer are our last names and the name under our work lives.', 'faq2' => 'Which painters has influenced us?', 'faq2_answer' => '<strong><a href="' . URL::to_route('home.contact') . '">Jacas</a>: </strong>On my case painters from the 50s and 70s. Painters of the height of Jackson Pollock of the so called "Beat Generation". Cuban painters also as Raúl Martínez with his phase Pop and Abstract, Carlos García, Glexys Novoa. Foreigns like Franz Kline, Gerard Richter, Tapies had also mark me on my conception and aesthetics of any given abstract work.<br /><br /><strong><a href="' . URL::to_route('home.contact') . '">Brouwer</a>: </strong> My influences extend across the 50s up until the 70s of the past century, and, among the prime painters, I have been influenced by Guido Llinas, Cabrera Moreno in his abstract stage and more recently from the 80s Carlos García de la Nuez. Foreign painters had also mark me in some way, they are Gerard Richter, Antoni Tapies, Brice Marden, Callum Innes, Barnett Newman, Cy Twombly and others from the abstract expressionism.', 'faq3' => 'Do you have paintings for sale?', 'faq3_answer' => 'You can become interested on some of our work and, for us to be able to inform and interact, you must use <a href="' . URL::to_route('home.contact') . '">our contacts</a> and employ Serie and (#) or Title of the painting you are interested in. We promise you that we will answer your requests as soon as possible.', 'faq4' => 'What projects do you have?', 'faq4_answer' => 'We are currently painting canvas of great format which we will include on a Dossier we are working on and that will soon be ready. We are planning the next Group exhibition on Havana. We also are counting with the collaboration of a canadian painter for us to participate on a collective display on Toronto in 2013.', 'lang' => 'Language', 'lang_en' => 'English', 'lang_sp' => 'Spanish', 'switch_lang' => 'Switch to Spanish (Cambiar a Español)', 'phones' => 'Phones', 'first_name' => 'First Name', 'email_address' => 'Email Address', 'last_name' => 'Last Name', 'subject' => 'Subject', 'message' => 'Message', 'send' => 'Send', 'work' => 'Work', 'painting_about' => 'About', 'no_paintings' => 'There are no paintings to show', 'view_gallery' => 'View Gallery', 'all' => 'All', 'search_results' => 'Search Results', 'navigation' => 'Navigation', 'links' => 'Usefull Links', 'mails' => 'Mails', 'group_mails' => HTML::mailto('brouwerart@cubarte.cult.cu', 'brouwerart@cubarte.cult.cu') . '<br />' . HTML::mailto('robertlour@infomed.sld.cu', 'robertlour@infomed.sld.cu'), 'who' => 'Who We Are', 'social' => 'Find us, connect & collaborate.', 'quote' => 'What would replace the object?<br />According to Vasily Kandinsky it had to be a spiritual thing.', 'quote_author' => 'Vasily Kandinsky – <strong>Pintor</strong>', 'author' => 'Designed and built with all the love in the world by ' . HTML::mailto('jvillasantegomez@gmail.com', 'Julio C. Villasante') . ' – Copyright © ' . date('Y'), 'photographer' => 'Luis Mario Gell – Photographer', 'note' => 'Best seen on Chrome4+, Firefox3.6+, Opera8+, IE9+', 'phones' => 'Phones', 'first_name' => 'First Name', 'email_address' => 'Email Address', 'last_name' => 'Last Name', 'subject' => 'Subject', 'message' => 'Message', 'send' => 'Send', 'work' => 'Work', 'painting_about' => 'About', 'no_paintings' => 'There are no paintings to show', 'view_gallery' => 'View Gallery', 'all' => 'All', 'search_results' => 'Search Results', 'navigation' => 'Navigation', 'links' => 'Usefull Links', 'mails' => 'Mails', 'who' => 'Who We Are', 'social' => 'Find us, connect & collaborate.', 'quote' => 'What would replace the object?<br />According to Vasily Kandinsky it had to be a spiritual thing.', 'log_in' => 'Sign In', 'logout' => 'Log Out', 'email' => 'Email Address', 'password' => 'Password', 'new_password' => 'New Password', 'new_password_confirm' => 'Confirm New Password', 'remember_me' => 'Remember Me', 'forgot_password' => 'Forgot Your Password?', 'reset_password' => 'Reset Your Password', 'reset_confirm_header' => 'You are reseting your password.', 'reset_confirm_link' => 'Be sure to confirm the reseting by visiting', 'reset_invalid_header' => 'Invalid Confirmation Key', 'reset_invalid_body' => 'Make sure to confirm your password reset by visiting the link we send you.', 'dashboard' => 'Dashboard', 'profile' => 'Profile', 'manage_users' => 'Manage Users', 'manage_paintings' => 'Manage Paintings', 'manage_slideshow' => 'Manage Slideshow', 'logout' => 'Log Out', 'username' => 'Username', 'full_name' => 'Full Name', 'email_footer' => 'Your email is for logging in and cannot be changed.', 'first_name' => 'First Name', 'last_name' => 'Last Name', 'save_profile' => 'Save Profile', 'profile_updated' => 'You have updated your profile', 'new_user' => 'New User', 'add_painting' => 'Add Painting', 'painting_name' => 'Name of the Painting', 'painting_dimensions' => 'Painting Dimensions', 'painting_type' => 'Painting Type (Tempera sobre Lienzo)', 'painting_painter' => 'Painter Name', 'painting_year' => 'Painting Creation Year (2012)', 'painting_comment' => 'Painting Comment', 'painting_tags' => 'Painting Tags', 'painting_tags_explanation' => 'Type some tags in the input field, separate them with comma (or tab).', 'edit_painting' => 'Edit Painting', 'painting_save' => 'Save Changes', 'select_option' => '--Select Your Option--', 'new_painting' => 'New Painting', 'painting' => 'Painting', 'change_password' => 'Change Password', 'change_password_header' => 'Change your Password', 'current_password' => 'Current Password', 'new_password' => 'New Password', 'new_password_confirm' => 'Confirm New Password', 'new_user' => 'New User', 'create_user' => 'Create User', 'img1' => 'Image 1', 'img2' => 'Image 2', 'img3' => 'Image 3', 'img4' => 'Image 4', 'img5' => 'Image 5', 'img6' => 'Image 6', 'select_image' => 'Select Image', 'change_image' => 'Change', 'remove_image' => 'Remove', 'search' => 'Search', 'search_users' => 'Search Users', 'search_paintings' => 'Search Paintings', 'remove' => 'Remove', 'edit' => 'Edit', 'save' => 'Save', 'error_header' => 'Oh Snap! There are errors in the form you send.', 'generic_error' => 'Something went wrong. It is our fault. We are sorry for that.', 'pass_changed' => 'You have changed your password.', 'user_added' => 'User Added susscesfully', 'remove_yourself' => 'You can\'t remove yourself.', 'user_deleted' => 'User deleted.', 'painting_added' => 'Painting Added.', 'painting_updated' => 'Painting Updated.', 'painting_deleted' => 'Painting Deleted.', 'slideshow_added' => 'Slideshow Painting Added.', 'slideshow_deleted' => 'Slideshow Painting Deleted.', 'upload_error' => 'There was an error uploading the image. Sorry for that.', 'invalid_login' => 'Invalid Login', 'resset_error' => 'There was in issue when resseting your password.', 'resset_ok' => 'You have resseted your password', '404_message1' => 'We need a map.', '404_message2' => 'I think we\'re lost.', '404_message3' => 'We took a wrong turn.', '404_h2' => 'Server Error: 404 (Not Found)', '404_h3' => 'What does this mean?', '404_p1' => 'We couldn\'t find the page you requested on our servers. We\'re really sorry about that. It\'s our fault, not yours. We\'ll work hard to get this page back online as soon as possible.', '404_p2' => 'Perhaps you would like to go to our ' . HTML::link('/', 'home page') . '?');
示例14: array
echo $days . ' ' . $this->plural($days, 'день', 'дня', 'дней');
?>
, </strong> с <strong><?php
echo Date::formatted_time($reg_date, 'd.m.Y');
?>
</strong>
</span>
</div>
<div class="right line" style="width:310px;">
<?php
if ($this->user->show_email) {
?>
<div class="unit size1of2">
<div class="meedlegray">E-mail:</div>
<?php
echo HTML::mailto($this->user->user_email);
?>
</div>
<?php
}
?>
<?php
if ($this->user->user_from or $this->user->user_birthday) {
?>
<?php
$date = $this->user->user_birthday;
$date = preg_replace('/[^-\\d\\.\\/]/', '', $date);
$data = array(Helper::escape($this->user->user_from), Date::formatted_time($date, 'd M Y'), __(Helper::get_horo($date)));
$data = array_filter($data);
$data = implode('; ', $data);
示例15: _auto_link_emails_callback
protected static function _auto_link_emails_callback($matches)
{
return HTML::mailto($matches[0]);
}