本文整理汇总了PHP中icon_tag函数的典型用法代码示例。如果您正苦于以下问题:PHP icon_tag函数的具体用法?PHP icon_tag怎么用?PHP icon_tag使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了icon_tag函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: file_link_to_add
function file_link_to_add($entity, $entity_id, $options = array())
{
// Convert options string to option array
if (is_string($options)) {
$options = _convert_string_option($options);
}
$label = 'Add file';
// CUSTOMIZE LABEL TEXT
if (isset($options['label'])) {
$label = $options['label'];
}
// ICON
if (isset($options['icon']) && $options['icon'] == 'true') {
use_helper('sfIcon');
$label = icon_tag('folder_add') . ' ' . $label;
}
$url = "files/create?entity={$entity}&entity_id={$entity_id}";
// swicth link to with or without modalBox
if (isset($options['modalbox']) && $options['modalbox'] == 'true') {
use_helper('ModalBox');
return m_link_to($label, $url);
} else {
return link_to($label, $url);
}
}
示例2: photo_link_to_add
function photo_link_to_add($entity, $entity_id, $options = array())
{
// Convert options string to option array
if (is_string($options)) {
$options = _convert_string_option($options);
}
$label = 'Add photo';
// CUSTOMIZE LABEL TEXT
if (isset($options['label'])) {
$label = $options['label'];
}
// ICON
if (isset($options['icon']) && $options['icon'] == 'true') {
use_helper('sfIcon');
$label = icon_tag('image_add') . ' ' . $label;
}
$url = "sfPhotoGallery/create?entity={$entity}&entity_id={$entity_id}";
$url = "@create_photo?entity={$entity}&entity_id={$entity_id}";
// swicth link to with or without modalBox
if (isset($options['modalbox']) && $options['modalbox'] == 'true') {
use_helper('ModalBox');
return m_link_to($label, $url, array('title' => 'upload photo'));
} else {
return link_to($label, $url);
}
}
示例3: use_helper
use_helper('sfIcon');
?>
<div id="result" style="height:15px;">
<?php
if (!$sf_request->hasErrors()) {
?>
<?php
echo icon_tag('accept');
?>
The position has been successfully saved
<?php
} else {
?>
<?php
echo icon_tag('remove');
?>
There are errors in the form, please correct them
<?php
}
?>
</div>
<?php
echo include_partial('project/edit_position_form', array('project' => $project, 'position' => $position));
?>
<?php
if (!$positionWasNew) {
?>
<?php
javascript_tag("\$('milestone_list').replace('<div id=\"milestone_list\">" . include_partial('project/milestone_list', array('position' => $position)) . "</div>)");
示例4: output_panel
$panel['class'] = 'panel-holder panel-size-1 float-right clear-both';
echo output_panel($panel);
include_component('messages', 'recentMessages');
?>
<div style="width:60%;">
<h2 style="border-bottom: 2px solid #D4D4D4;">News <?php
echo link_to(icon_tag('rss'), 'feeds/latest?feed=' . $profile->getUuid());
?>
</h2>
<?php
foreach ($sf_user->getProfile()->getHistory(8) as $event) {
?>
<div class="news-feed-entry">
<h3><?php
echo link_to_function(icon_tag('add') . ' ' . $event->getTitle(), visual_effect('toggle_blind', 'entry_' . $event->getUuid(), array('duration' => '0.25')));
?>
</h3>
<span><?php
echo __('By <strong>%user%</strong> of the %department% dept. on %time%', array('%user%' => $event->getSfGuardUser()->getProfile(), '%department%' => $event->getSfGuardUser()->getProfile()->getDepartment(), '%time%' => format_date($event->getCreatedAt('U'))));
?>
</span>
<div id="entry_<?php
echo $event->getUuid();
?>
" style="padding: 5px 0px;display:none;"><?php
echo $event->getText();
?>
</div>
</div>
<?php
示例5: foreach
<body>
<?php
require 'common_menu.php';
?>
<div id="mainwall">
<div align ="center">
<br><br><br>
<strong>プロフィール画像</strong>
<br><br>
<?php
foreach ($getprofile as $g) {
?>
<tr>
<td>
<?php
echo icon_tag($g['no']);
?>
</td>
</tr>
<br>
<?php
}
?>
<p>
<a href="user_collection.php?user_id=<?php
echo $user_id;
?>
"><img src="collection/tiles.png"></a>
</p>
示例6: icon_add_tag
function icon_add_tag($size = 'small')
{
return icon_tag('add', $size);
}
示例7: link_to
<?php
if ($counter == 3 || $counter == 1) {
$direction = -1 * $direction;
}
?>
<?php
$counter = $counter + 1 * $direction;
?>
<tr class="row-<?php
echo $counter % 3;
?>
">
<td><?php
echo link_to($application->getsfGuardUser()->getProfile()->getFullName(), 'user/show?user=' . $application->getsfGuardUser()->getProfile()->getUuid());
?>
</td>
<td><?php
echo format_date($application->getCreatedAt());
?>
</td>
<td><?php
echo link_to_remote(icon_tag('users') . ' View Application', array('url' => 'applications/applicationViewer?application=' . $application->getUuid(), 'update' => array('success' => 'details'), 'loading' => "Element.show('loader')", 'complete' => "Element.hide('loader');" . visual_effect('highlight', 'details')));
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
示例8: link_to_function
</li>
<?php
}
?>
</ul>
</li>
<li id="entry-3">
<?php
echo link_to_function('General', visual_effect('toggle_blind', 'subentry-3', array('duration' => '0.5')), array('class' => 'header'));
?>
<ul id="subentry-3" style="display: none">
<?php
foreach ($project->getTags() as $tag) {
?>
<li><?php
echo link_to_remote(icon_tag('comment_edit') . ' ' . short_string($tag->getTitle(), 30), array('url' => 'files/fileBrowser?type=positions&id=' . $tag->getUuid(), 'update' => array('success' => 'resources'), 'loading' => "Element.show('loader')", 'complete' => "Element.hide('loader');" . visual_effect('highlight', 'resources')));
?>
</li>
<?php
}
?>
</li>
</ul>
</div>
<div class="resource-manager-panel2" id="resources" style="height: 200px; width:65%;">
<table style="width:100%;">
<thead>
<tr>
<td>Files</td>
<td>Size</td>
示例9: foreach
<!-- エラー(検索欄空欄など)をはかれた時にユーザー一覧を表示する -->
<p align="center">
<?php
if ($error) {
echo "<br>ユーザー一覧";
foreach ($getusers as $g2) {
?>
</p>
<tr>
<div class="sen"></div>
<td>
<p><a href="find_new_name.php?user_id=<?php
echo $g2['no'];
?>
"><?php
echo icon_tag($g2['no']);
?>
</a>
<a href="find_new_name.php?user_id=<?php
echo $g2['no'];
?>
"><?php
echo $g2['name'];
?>
</a>
好きな靴:<?php
echo $g2['fv'];
?>
</p>
</td>
示例10: link_to
<?php
if ($message->getsfGuardUserRelatedBySenderId()->getId() == $sf_user->getId()) {
echo "You<br />";
} else {
echo link_to($message->getsfGuardUserRelatedBySenderId()->getProfile(), 'user/show?user=' . $message->getsfGuardUserRelatedBySenderId()->getProfile()->getUuid()) . '<br />';
}
?>
<?php
if ($message->getsfGuardUserRelatedByRecipientId()->getId() == $sf_user->getId()) {
echo "You <br />";
} else {
echo link_to($message->getsfGuardUserRelatedByRecipientId()->getProfile(), 'user/show?user=' . $message->getsfGuardUserRelatedByRecipientId()->getProfile()->getUuid()) . '<br />';
}
?>
<?php
echo $message->getSubject();
?>
<br />
<?php
echo span_button(icon_tag('mail_remove') . ' ' . ucwords(__('delete')), 'messages/delete?message=' . $message->getUUID());
?>
</li>
</ul>
<br />
<div class="msg-body"><?php
echo $message->getFormattedBody();
?>
</div>
</div>
<?php
}
示例11: nav_tabs
<?php
echo nav_tabs('features', $tab);
?>
<div style="border: 1px solid #72BE44;background-color: #D9E1FF;padding: 4px;margin-bottom: 10px;">
<p style="float:right;text-align:right;">
<?php
echo __('A %type% Suggested by %1% %2% ago', array('%1%' => link_to($feature->getsfGuardUser()->getProfile(), 'user/show?user=' . $feature->getsfGuardUser()->getProfile()->GetUuid()), '%2%' => distance_of_time_in_words($feature->getCreatedAt('U')), '%type%' => format_number_choice('[' . sfConfig::get('app_feature_type_bug') . ']Bug Report|[' . sfConfig::get('app_feature_type_feature') . ']Feature Request', array(), $feature->getType())));
?>
<a href="#comments"><?php
echo icon_tag('comment') . ' ' . $feature->getNbComments() . ' Comments';
?>
</a>
<?php
echo icon_tag('folder') . ' ' . get_nb_files('feature', $feature->getId()) . ' Files ';
?>
</p>
<p style="float:left;">
<h4><?php
echo $feature->getTitle();
?>
</h4>
<?php
echo nl2br($feature->getDescription());
?>
</p>
<hr class="clear" />
</div>
<div id='files-holder' style='padding:4px;width:48%;float:right;'>
示例12: ucfirst
</td>
<td colspan="5">
<p>
<?php
echo ucfirst($task->getPriorityInWords());
?>
Priority<br />
</p>
<p>
<?php
echo short_string(strip_tags($task->getDescription()), 320);
?>
</p>
<p>
<?php
echo icon_tag('comment') . ' ' . $task->getNbComments() . ' Comments ', icon_tag('folder') . ' ' . get_nb_files('Task', $task->getId()) . ' Files ';
if ($sf_user->isAuthenticated() && $project->hasPermission('create-task', $sf_user->getId())) {
echo icon_tag('note_edit') . ' ' . link_to('Edit Task', '@edit_project_task?project=' . $project->getSlug() . '&task=' . $task->getUuid()) . ' ' . icon_tag('note_remove') . ' ' . link_to('Delete Task', '@delete_project_task?project=' . $project->getSlug() . '&task=' . $task->getUuid(), 'post=true&confirm=Are you sure you want to delete the task "' . $task->getName() . '"?');
}
?>
</p>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
示例13: light_image
?>
<td>
<div style="padding: 3px; margin: 3px;" id="photo_<?php
echo $photo->getUuid();
?>
">
<?php
echo light_image('/' . sfConfig::get('sf_upload_dir_name') . '/thumbnails/medium/' . $photo->getRealName(), '/' . sfConfig::get('sf_upload_dir_name') . '/thumbnails/large/' . $photo->getRealName(), array());
?>
<br />
<?php
echo link_to(icon_tag('accept') . __(' Set as project picture'), 'project/setProfilePhoto?photo=' . $photo->getUuid() . '&project=' . $project->getUuid());
?>
<br />
<?php
echo link_to(icon_tag('remove') . ' ' . __('Delete'), 'project/removePhoto?photo=' . $photo->getUuid() . '&project=' . $project->getUuid());
?>
</div>
</td>
<?php
$counter++;
?>
<?php
if ($counter == 3) {
$counter = 0;
echo "</tr>";
}
?>
<?php
}
?>
示例14: icon_tag
?>
<?php
if ($sf_request->getMethod() == sfRequest::POST) {
?>
<?php
if ($sf_request->hasErrors()) {
?>
<?php
echo icon_tag('remove') . __(' Woops! Seems there were some errors!');
?>
<?php
} else {
?>
<?php
echo icon_tag('accept') . __(' Great, seems like we got everything!');
?>
<?php
}
}
?>
<?php
$es = $profile->getExternalServices();
?>
<?php
echo label_for('twitter_username', __('Twitter Username'), array('style' => 'display:block;')), input_tag('twitter_username', $es->getTwitterUsername());
if ($sf_request->hasError('twitter_username')) {
echo '<span class="form-error">' . $sf_request->getError('twitter_username') . '</span>';
}
示例15: ucfirst
</td>
<td colspan="5">
<p>
<?php
echo ucfirst($task->getPriorityInWords());
?>
Priority<br />
</p>
<p>
<?php
echo short_string(strip_tags($task->getDescription()), 320);
?>
</p>
<p>
<?php
echo icon_tag('comment') . ' ' . $task->getNbComments() . ' Comments ', icon_tag('folder') . ' ' . get_nb_files('Task', $task->getId()) . ' Files ';
if ($sf_user->isAuthenticated() && $project->hasPermission('create-task', $sf_user->getId())) {
echo icon_tag('note_edit') . ' ' . link_to('Edit Task', 'tasks/edit?task=' . $task->getUuid()) . ' ' . icon_tag('note_remove') . ' ' . link_to('Delete Task', 'tasks/delete?task=' . $task->getUuid(), 'post=true&confirm=Are you sure you want to delete the task "' . $task->getName() . '"?');
}
?>
</p>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>