本文整理汇总了PHP中op_image_tag函数的典型用法代码示例。如果您正苦于以下问题:PHP op_image_tag函数的具体用法?PHP op_image_tag怎么用?PHP op_image_tag使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了op_image_tag函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_emoji4emoji_code_id
/**
* 絵文字IDを画像表示用タグにして返す
*
* @param string $emoji_code_id 絵文字ID
* @return string 画像表示用タグ
*/
function get_emoji4emoji_code_id($emoji_code_id)
{
$carrier_id = $emoji_code_id[0];
$emoji_code_id = str_replace(':', '', $emoji_code_id);
$emoji_id = substr($emoji_code_id, 1);
$emoji_name = $this->value_list[$carrier_id][$emoji_id];
sfContext::getInstance()->getConfiguration()->loadHelpers('Asset');
return op_image_tag('emoji/' . $carrier_id . '/' . $emoji_code_id . $this->emoji_image_extension, array('alt' => $emoji_name));
}
示例2: op_activity_image_tag
/**
* Returns an <img> tag for the activity image
*
* @param ActivityImage $activityImage
* @param mixed[] $options
* @return string
*/
function op_activity_image_tag($activityImage, $options = array())
{
use_helper('sfImage');
if ($activityImage->relatedExists('File')) {
return op_image_tag_sf_image($activityImage->File, $options);
} else {
return op_image_tag($activityImage->uri, $options);
}
}
示例3: op_image_tag
?>
</div>
<!-- POSTFORM TMPL -->
<div id="slot_tosaka">
<div class="row">
<div class="span12">
<div class="row">
<div class="span4"><?php
echo op_image_tag('LOGO.png', array('height' => '32', 'class' => 'menubutton'));
?>
</div>
<?php
if (opToolkit::isSecurePage()) {
?>
<div class="span4 center"><?php
echo op_image_tag('NOTIFY_CENTER.png', array('height' => '32', 'class' => 'ncbutton'));
?>
</div>
<div class="span3 offset1 center"><?php
echo op_image_tag('POST.png', array('height' => '32', 'class' => 'postbutton'));
?>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
示例4: function
</div>
</script>
<script type="text/javascript">
$(function(){
$.getJSON( openpne.apiBase + 'event/member_list.json?id=<?php
echo $communityEvent->getId();
?>
&apiKey=' + openpne.apiKey, function(json) {
$('#communityEventMemberJoinListTemplate').tmpl(json.data).appendTo('#communityEventMemberJoinList');
$('#communityEventMemberJoinList').show();
$('#communityEventMemberJoinListLoading').hide();
});
});
</script>
<hr class="toumei" />
<div class="row">
<div class="gadget_header span12"><?php
echo __('Event Members');
?>
</div>
</div>
<hr class="toumei" />
<div class="row hide" id="communityEventMemberJoinList">
</div>
<div class="row center" id="communityEventMemberJoinListLoading" style="margin-left: 0;">
<?php
echo op_image_tag('ajax-loader.gif');
?>
</div>
示例5: op_image_tag
<h3>投稿エラー</h3>
</div>
<div class="modal-body">
<p>本文が入力されていません</p>
</div>
</div>
</div>
<div class="row">
<div class="gadget_header span12">SNS全体のタイムライン</div>
</div>
<div class="timeline" style="margin-left: 0px;">
<div id="timeline-list" data-last-id="" data-loadmore-id="" style="margin-left: 0px;">
</div>
</div>
<div id="timeline-list-loader" class="row span12 center show" style="margin-top: 20px; margin-bottom: 20px;">
<?php
echo op_image_tag('ajax-loader.gif', array('alt' => 'Now Loading...'));
?>
</div>
<hr class="toumei">
<div class="row">
<button class="span12 btn small" id="gorgon-loadmore">もっと読む</button>
</div>
示例6: link_to
$screenName = $sf_user->getMember()->getConfig('op_screen_name');
?>
<?php
if ($screenName) {
?>
<a href="#">@<?php
echo $screenName;
?>
</a>
<?php
}
?>
</div>
</div>
<div class="span2 center"><?php
echo link_to(op_image_tag('HomeIcon.png', array('height' => '48')), '@homepage');
?>
</div>
</div>
<?php
if ($sf_user->hasFlash('error')) {
?>
<div id="global-error" class="row">
<div class="alert alert-error">
<?php
echo __($sf_user->getFlash('error'));
?>
</div>
</div>
<?php
示例7: min
<table>
<?php
$row = min($options->row, ceil(count($options->list) / $options->col));
for ($i = $j = 1; $row >= $i; $i++) {
if ($options->type === 'full' || $options->type === 'only_image') {
?>
<tr class="photo">
<?php
for ($j = $i * $options->col - $options->col; $i * $options->col > $j; $j++) {
?>
<td><?php
if (!empty($options->list[$j])) {
if (in_array($options->list[$j]->getId(), $options->getRaw('crownIds'))) {
?>
<p class="crown"><?php
echo op_image_tag('icon_crown.gif', array('alt' => 'admin'));
?>
</p>
<?php
}
if ($options->use_op_link_to_member) {
echo op_link_to_member($options->list[$j], array('link_target' => op_image_tag_sf_image($options->list[$j]->getImageFileName(), array('size' => '76x76'))));
} else {
echo link_to(op_image_tag_sf_image($options->list[$j]->getImageFileName(), array('size' => '76x76')), $options->link_to . $options->list[$j]->getId());
}
}
?>
</td>
<?php
}
?>
示例8: date
echo date(__('Y/m/d G:i'), strtotime($res['date']));
?>
</dt>
<dd>
<?php
if (isset($link_to_detail)) {
echo link_to($res['title'], sprintf($link_to_detail, $res['id']));
} else {
if (isset($res['link_to_external'])) {
echo '<a href="' . $res['link_to_external'] . '">' . $res['title'] . '</a>';
}
}
?>
(<?php
echo $res['name'];
?>
)
<?php
if ($res['image']) {
echo op_image_tag('icon_camera.gif', array('alt' => __('Those with a photograph')));
}
?>
</dd>
</dl>
<?php
}
?>
</div>
<?php
op_include_pager_navigation($pager, '@friend_list?page=%d&id=' . $sf_params->get('id'));
示例9: use_javascript
use_javascript('/opTimelinePlugin/js/jquery.timeago.js', 'last');
use_javascript('/opTimelinePlugin/js/timeline-loader.api.js', 'last');
use_javascript('/opTimelinePlugin/js/lightbox.js', 'last');
use_stylesheet('/opTimelinePlugin/css/lightbox.css', 'last');
use_stylesheet('/opTimelinePlugin/css/bootstrap.css', 'last');
use_stylesheet('/opTimelinePlugin/css/timeline.css', 'last');
?>
<?php
include_partial('timeline/timelineTemplate');
?>
<div class="partsHeading"><h3><?php
echo $activity->getMember()->getName();
?>
さんの<?php
echo $op_term['activity'];
?>
</h3></div>
<div class="timeline-large">
<div id="timeline-loading" style="text-align: center;"><?php
echo op_image_tag('ajax-loader.gif', array());
?>
</div>
<div id="timeline-list" data-last-id=""data-loadmore-id="">
</div>
</div>
示例10: url_for
<?php
$options->setDefault('single', true);
?>
<form action="<?php
echo url_for('@global_search');
?>
" method="get">
<ul>
<li><?php
echo op_image_tag('icon_search.gif', array('alt' => 'search'));
?>
</li>
<li>
<input type="hidden" value="action" name="search" />
<input type="text" class="input_text" size="30" value="" name="search_query" />
</li>
<li>
<select name="search_module">
<?php
include_customizes($id, 'itemFirst');
foreach ($options['items'] as $key => $value) {
?>
<option value="<?php
echo $key;
?>
"><?php
echo $value;
?>
</option>
示例11: op_image_tag
<table>
<tr>
<th><?php
echo op_image_tag('icon_alert.gif');
?>
</th>
<td><?php
echo $options->getRaw('body');
?>
</td>
</tr>
</table>
示例12: array
<?php
echo $form->renderFormTag(url_for(array('sf_route' => 'webhook_twitter')), array('method' => 'POST'));
?>
<?php
echo $form->renderGlobalErrors();
?>
<p>
<a href="<?php
echo url_for(array('sf_route' => 'webhook_twitter_signin'));
?>
">
<?php
echo op_image_tag('/opWebHookPlugin/images/sign-in-with-twitter-gray.png', array('alt' => 'Sign in with Twitter'));
?>
</a>
</p>
<table>
<?php
echo $form;
?>
<tr>
<td colspan="2">
<input type="submit" value="<?php
echo __('Send');
?>
"/>
</td>
示例13: use_helper
<?php
use_helper('Javascript');
foreach ($configs as $key => $config) {
?>
<a id="<?php
echo $id;
?>
_button_<?php
echo $key;
?>
" href="#" onclick="<?php
echo isset($onclick_actions[$key]) ? preg_replace('/%id%/', $id, $onclick_actions[$key]) : "op_mce_insert_tagname('" . $id . "', '" . str_replace("_", ":", $key) . "');";
?>
return false;">
<?php
echo op_image_tag($config['imageURL'], array('alt' => ''));
?>
</a>
<?php
}
echo javascript_tag('$(function(){ $("#' . $id . '").opEmoji(); });');
示例14: op_image_tag
<?php
if (!is_null($targetDay)) {
if ($targetDay === 0) {
?>
<div class="parts birthday">
<?php
if ($sf_request->hasParameter('id')) {
$img = 'birthday_f.gif';
} else {
$img = 'birthday_h.gif';
}
echo op_image_tag($img, array('alt' => 'Happy Birthday!'));
?>
</div>
<?php
} else {
if ($sf_request->hasParameter('id') && 0 < $targetDay && $targetDay <= 3) {
?>
<div class="parts birthday">
<?php
echo op_image_tag('birthday_f_2.gif');
?>
</div>
<?php
}
}
}
示例15: url_for
さんの<?php
echo $op_term['activity'];
} else {
echo $op_term['activity'];
}
?>
</div>
</div>
<div id="timeline-list" class="span12" data-post-baseurl="<?php
echo url_for('@homepage');
?>
" data-last-id="" data-loadmore-id="" style="margin-left: 0px;">
</div>
<div id="timeline-list-loader" class="row span12 center show" style="margin-top: 20px; margin-bottom: 20px;">
<?php
echo op_image_tag('ajax-loader.gif', array('absolute' => true));
?>
</div>
<div id="gorgon-submit" data-post-csrftoken="<?php
echo $token;
?>
" data-post-baseurl="<?php
echo url_for('@homepage');
?>
"></div>
<div class="row">
<button class="span12 btn small" id="gorgon-loadmore">もっと読む</button>
</div>