• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP icon_tag函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中icon_tag函数的典型用法代码示例。如果您正苦于以下问题:PHP icon_tag函数的具体用法?PHP icon_tag怎么用?PHP icon_tag使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了icon_tag函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
    }
}
开发者ID:sgrove,项目名称:cothinker,代码行数:25,代码来源:sfFileGalleryHelper.php


示例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);
    }
}
开发者ID:sgrove,项目名称:cothinker,代码行数:26,代码来源:sfPhotoGalleryHelper.php


示例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>)");
开发者ID:sgrove,项目名称:cothinker,代码行数:30,代码来源:updatePositionSuccess.php


示例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 
开发者ID:sgrove,项目名称:cothinker,代码行数:31,代码来源:showPersonalSuccess.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>
开发者ID:takumi0705,项目名称:shoeconnect,代码行数:30,代码来源:t_userprofile.php


示例6: icon_add_tag

function icon_add_tag($size = 'small')
{
    return icon_tag('add', $size);
}
开发者ID:sgrove,项目名称:cothinker,代码行数:4,代码来源:sfIconHelper.php


示例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>
开发者ID:sgrove,项目名称:cothinker,代码行数:30,代码来源:applicationBrowserSuccess.php


示例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>
开发者ID:sgrove,项目名称:cothinker,代码行数:31,代码来源:resourcesSuccess.php


示例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>
    &nbsp;&nbsp;&nbsp;好きな靴:<?php 
        echo $g2['fv'];
        ?>
    </p>
    
    </td>
开发者ID:takumi0705,项目名称:shoeconnect,代码行数:31,代码来源:find_name.php


示例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 
}
开发者ID:sgrove,项目名称:cothinker,代码行数:31,代码来源:viewSuccess.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;'>
开发者ID:sgrove,项目名称:cothinker,代码行数:30,代码来源:showSuccess.php


示例12: ucfirst

      &nbsp;
    </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>
开发者ID:sgrove,项目名称:cothinker,代码行数:30,代码来源:showTasksSuccess.php


示例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 
}
?>
开发者ID:sgrove,项目名称:cothinker,代码行数:31,代码来源:editSuccess.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>';
}
开发者ID:sgrove,项目名称:cothinker,代码行数:31,代码来源:_editExternalServices.php


示例15: ucfirst

      &nbsp;
    </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>
开发者ID:sgrove,项目名称:cothinker,代码行数:30,代码来源:_project_progress.php


示例16: foreach

" <?php 
    echo !$selectedCategory || $selectedCategory->getId() != $category->getId() ? 'style="display: none;"' : '';
    ?>
>
		
			<div class="question_separator"><?php 
    echo sfConfig::get('app_sfFaqPlugin_question_separator', '<hr />');
    ?>
</div>

			<?php 
    foreach ($category->getsfFaqFaqs() as $key_faq => $faq) {
        ?>
				<div class="question">
					<?php 
        echo icon_tag('help');
        ?>
 <?php 
        echo link_to_function($faq->getQuestion(), "show_hide_element('div_answer_category_" . $category->getId() . '_' . $key_faq . "')");
        ?>
				</div>

				<div id="div_answer_category_<?php 
        echo $category->getId() . '_' . $key_faq;
        ?>
" class="answer" <?php 
        echo sfConfig::get('app_sfFaqPlugin_first_question_by_default', false) && $key_faq == 0 || $selectedFaq && $selectedFaq->getId() == $faq->getId() ? '' : 'style="display: none"';
        ?>
>
					<?php 
        echo nl2br($faq->getAnswer());
开发者ID:sgrove,项目名称:cothinker,代码行数:31,代码来源:indexJsSuccess.php


示例17: icon_tag

echo $name;
?>
    <br><br>
    <a id="css_button" href="myprofile.php">確認する</a>
    <br><br>
    </div>
    <br>
    <div align = "center">
    <c style="color:#6495ED"><br>マイページ</c>
    </div>
    <div id ="mainwall">
    <div align="center">
    <br>
    <div id ="profile_content2" align="center">
    <a href="myprofile.php"><?php 
echo icon_tag($no);
?>
</a>
    <br>
    <a href="myprofile.php"><?php 
echo $name;
?>
</a>
    <br><br>
    </div>
    <div class="tree_menu">
    <a id="toukou_button" href="javascript:;" onclick="simple_tree(this);" title="新たに投稿する">
    新たに投稿する。</a><br><br>
    <div class="tree">
    <form action="upmemo.php" method="post" enctype="multipart/form-data">
    <br>
开发者ID:takumi0705,项目名称:shoeconnect,代码行数:31,代码来源:main.php


示例18: use_helper

<?php

use_helper('Date', 'sfIcon');
?>
<div class="sf_comment" id="sf_comment_<?php 
echo $comment['Id'];
?>
">
  <p class="sf_comment_info">
      <?php 
echo icon_tag('comment') . ' ';
?>
      <?php 
if (!is_null($comment['AuthorId'])) {
    ?>
        <?php 
    $user_config = sfConfig::get('app_sfPropelActAsCommentableBehaviorPlugin_user');
    $class = $user_config['class'];
    $toString = $user_config['toString'];
    $peer = sprintf('%sPeer', $class);
    $author = call_user_func(array($peer, 'retrieveByPk'), $comment['AuthorId']);
    echo __('Posted by %1%', array('%1%' => '<span class="sf_comment_author">' . link_to($author->getProfile()->getFullName(), 'user/show?user=' . $author->getProfile()->getUuid()) . '</span>'));
} else {
    echo $comment['AuthorName'];
}
?>
,
    <?php 
echo __('%1% ago', array('%1%' => distance_of_time_in_words(strtotime($comment['CreatedAt']))));
?>
  </p>
开发者ID:sgrove,项目名称:cothinker,代码行数:31,代码来源:_commentView.php


示例19: 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') . '/photos/' . $photo->getRealName(), array());
    ?>
<br />
                  <?php 
    echo link_to(icon_tag('accept') . __(' Set as profile'), 'user/setProfilePhoto?photo=' . $photo->getUuid());
    ?>
<br />
                  <?php 
    echo link_to(icon_tag('remove') . ' ' . __('Delete'), 'user/removePhoto?photo=' . $photo->getUuid());
    ?>
                  </div>
                </td>
                <?php 
    $counter++;
    ?>
                <?php 
    if ($counter == 3) {
        $counter = 0;
        echo "</tr>";
    }
    ?>
              <?php 
}
?>
开发者ID:sgrove,项目名称:cothinker,代码行数:31,代码来源:_profile_edit.php


示例20: use_helper

<?php

use_helper('Global', 'Date', 'I18N', 'Number', 'sfFileGallery', 'Object', 'Javascript', 'sfIcon');
?>

<?php 
echo nav_tabs('project', $tab, $project);
?>

<?php 
echo link_to(icon_tag('add') . ' Add a new position', '@edit_project_position?project=' . $project->getSlug());
$counter = 0;
foreach ($project->getPositions() as $position) {
    ?>
  <?php 
    /*
    <div class="project-position">
          <a id="position_<?php echo $position->getUuid() ?>" /></a>
            <?php echo image_tag($position->getThumbnail(), array('class' => 'primary')) ?>
            <div style="">
                  <h1><?php echo $position->getTitle() ?></h1>
                  <p>
                    <?php echo $position->getDescription() ?><br />
                    <?php echo $position->getQualifications() ?>
                  </p>
                  <p>Filled by: <?php if ($position->isFilled()) { echo link_to($position->getUser()->getProfile(), 'user/show?user='.$position->getUser()->getProfile()->getUuid()); } elseif (!$position->isFilled() && $sf_user->isAuthenticated() && !$position->isApplicant($sf_user->getId())) { echo 'Available ('.link_to('Apply', 'project/applyForm?position='.$position->getUuid()).')'; } elseif (!$position->isFilled() && $sf_user->isAuthenticated() && $position->isApplicant($sf_user->getId())) { echo 'Available (Application Received)'; }?></p>
                 <?php if($sf_user->isAuthenticated() && $project->hasPermission('handle-applications', $sf_user->getId()) && !$position->isFilled()): ?>
                  <p><?php echo link_to(__('Remove Positions'), 'project/removePosition?position='.$position->getUuid().'&slug='.$project->getSlug()) ?></p>
                 <?php endif; ?>
            </div>
    </div>
开发者ID:sgrove,项目名称:cothinker,代码行数:31,代码来源:showTeamSuccess.php



注:本文中的icon_tag函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP icon_url函数代码示例发布时间:2022-05-15
下一篇:
PHP iconHTML函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap