本文整理汇总了PHP中image_tag_sf_image函数的典型用法代码示例。如果您正苦于以下问题:PHP image_tag_sf_image函数的具体用法?PHP image_tag_sf_image怎么用?PHP image_tag_sf_image使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了image_tag_sf_image函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: op_api_message
function op_api_message($messageList, $member, $useIsReadFlag = false)
{
$message = $messageList->getSendMessageData();
$body = preg_replace(array('/<op:.*?>/', '/<\\/op:.*?>/'), '', $message->getBody());
$body = preg_replace('/http.:\\/\\/maps\\.google\\.co[[:graph:]]*/', '', $body);
$body = op_auto_link_text($body);
$imagePath = null;
$imageTag = null;
$image = $message->getMessageFile();
if (0 < count($image)) {
$imageTag = image_tag_sf_image($image[0]->getFile(), array('size' => '76x76'));
$imagePath = sf_image_path($image[0]->getFile());
}
$data = array('id' => $message->getId(), 'member' => op_api_member($member), 'subject' => $message->getSubject(), 'body' => nl2br($body), 'summary' => op_truncate(op_decoration($body, true), 25, '...'), 'image_path' => $imagePath, 'image_tag' => $imageTag, 'created_at' => $message->getCreatedAt(), 'formatted_date' => get_formatted_date($message->getCreatedAt()));
if ($useIsReadFlag) {
$data['is_read'] = $messageList->isSelf() ? (bool) $messageList->getIsRead() : null;
}
return $data;
}
示例2: slot
<?php
slot('firstRow');
?>
<tr><th><?php
echo __('Photo');
?>
</th><td><?php
echo link_to(image_tag_sf_image($community->getImageFileName(), array('size' => '76x76')), '@community_home?id=' . $id);
?>
</td></tr>
<tr><th><?php
echo __('%community%', array('%community%' => $op_term['community']->titleize()));
?>
</th><td><?php
echo link_to($community->getName(), '@community_home?id=' . $id);
?>
</td></tr>
<?php
end_slot();
op_include_form('communityJoining', $form, array('title' => __('Join to "%1%"', array('%1%' => $community->getName())), 'body' => __('Do you really join to the following %community%?'), 'firstRow' => get_slot('firstRow')));
示例3: op_include_pager_navigation
<div class="dparts recentAlbumList"><div class="parts">
<div class="partsHeading"><h3><?php
echo $title;
?>
</h3></div>
<?php
echo op_include_pager_navigation($pager, 'album/listMember?page=%d&id=' . $member->getId());
?>
<?php
foreach ($pager->getResults() as $album) {
?>
<table>
<tr><td rowspan="4" class="photo">
<?php
echo link_to(image_tag_sf_image($album->getCoverImage(), array('size' => '120x120')), 'album_show', $album);
?>
<br />
<?php
echo link_to(__('Details'), 'album_show', $album);
?>
</td>
<th><?php
echo __('Title');
?>
</th>
<td colspan="2"><?php
echo $album->getTitle();
?>
</td>
</tr>
示例4: foreach
?>
</p>
</div>
<div class="body">
<?php
if (count($images = $communityTopic->getImages()) != 0) {
?>
<ul class="photo">
<?php
foreach ($images as $image) {
?>
<li><a href="<?php
echo sf_image_path($image->File);
?>
" target="_blank"><?php
echo image_tag_sf_image($image->File, array('size' => '120x120'));
?>
</a></li>
<?php
}
?>
</ul>
<?php
}
?>
<p class="text">
<?php
echo op_url_cmd(nl2br($communityTopic->getBody()));
?>
</p>
</div>
示例5: link_to
<p class="next"><?php
echo link_to(__('Next photo'), 'album_image_show', $albumImage->getNext($sf_user->getMemberId()));
?>
</p>
<?php
}
?>
</div>
<?php
}
?>
<table>
<tr>
<td colspan="2" class="photo"><?php
echo image_tag_sf_image($albumImage->getFile(), array('size' => '600x600'));
?>
</td>
</tr>
<tr>
<th><?php
echo __('Description');
?>
</th><td><?php
echo $albumImage->getDescription();
?>
</td>
</tr>
</table>
<?php
end_slot();
示例6: op_include_pager_navigation
<?php $pagerLink = '@obj_introfriend?id='.$id.'&page=%d' ?>
<?php echo op_include_pager_navigation($pager, $pagerLink); ?>
<?php
$list = array();
foreach ($pager->getResults() as $introFriend)
{
$member = $introFriend->getMember_2();
$img = link_to(image_tag_sf_image($member->getImageFilename(), array('size' => '76x76'))
. '<br />' . $member->getName(), 'member/' . $member->getId());
$list[$img] = '<p>' . nl2br($introFriend->getContent()) . '</p>';
if ($id == $sf_user->getMemberId() || $member->getId() == $sf_user->getMemberId())
{
$list[$img] .= '<ul><li>';
$options = array('from' => 'list');
if ($member->getId() == $sf_user->getMemberId())
{
$list[$img] .= link_to(__('Edit introductory essay'), 'obj_member_introfriend', $introFriend->getMember()).'</li><li>';
$options['target'] = 'my';
$options['sf_subject'] = $introFriend->getMember();
}
else
{
$options['target'] = 'friend';
$options['sf_subject'] = $introFriend->getMember_2();
}
$list[$img] .= link_to(__('Delete introductory essay'), 'obj_introfriend_delete', $options);
$list[$img] .= '</li></ul>';
}
示例7: slot
<?php
slot('firstRow');
?>
<tr><th><?php
echo __('Photo');
?>
</th><td><?php
echo op_link_to_member($member->getId(), '@obj_member_profile', array('link_target' => image_tag_sf_image($member->getImageFileName(), array('size' => '76x76'))));
?>
</td></tr>
<tr><th><?php
echo __('%nickname%', array('%nickname%' => $op_term['nickname']->titleize()));
?>
</th><td><?php
echo op_link_to_member($member->getId());
?>
</td></tr>
<?php
end_slot();
op_include_form('communityAdminRequest', $form, array('title' => __('Take over the administrator of "%1%"', array('%1%' => $community->getName())), 'firstRow' => get_slot('firstRow')));
示例8: op_image_tag_sf_image
/**
* Returns a image tag
*
* @param string $source
* @param array $options
*
* @return string An image tag.
* @see image_tag_sf_image
*/
function op_image_tag_sf_image($source, $options = array())
{
if (!isset($options['no_image'])) {
$options['no_image'] = op_image_path('no_image.gif');
}
return image_tag_sf_image($source, $options);
}
示例9: array
<?php
$imgParam = array('size' => '180x180', 'alt' => '');
?>
<h2><?php
echo __('Modify a banner image');
?>
</h2>
<form action="" method="post" enctype="multipart/form-data">
<table><tbody>
<tr>
<td style="text-align: center" colspan="2">
<?php
echo link_to(image_tag_sf_image($form->getObject()->getFile(), $imgParam), sf_image_path($form->getObject()->getFile()));
?>
</td>
</tr>
<?php
echo $form;
?>
<tr>
<td colspan="2"><input type="submit" value="<?php
echo __('Modify');
?>
" /></td>
</tr>
</tbody></table>
</form>
示例10: image_tag
?>
<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 image_tag('icon_crown.gif', array('alt' => 'admin'));
?>
</p>
<?php
}
echo link_to(image_tag_sf_image($options->list[$j]->getImageFileName(), array('size' => '76x76')), $options->link_to . $options->list[$j]->getId());
}
?>
</td>
<?php
}
?>
</tr>
<?php
}
if ($options->type === 'full' || $options->type === 'only_name') {
?>
<tr class="text">
<?php
for ($j = $i * $options->col - $options->col; $i * $options->col > $j; $j++) {
?>
示例11: op_api_topic_image
function op_api_topic_image($image)
{
if ($image) {
return array('filename' => sf_image_path($image->getFile()->getName()), 'imagetag' => image_tag_sf_image($image->getFile()->getName(), array('size' => '120x120')));
}
}
示例12: op_include_pager_total
?>
<center><?php
op_include_pager_total($pager);
?>
</center>
<hr color="<?php
echo $op_color["core_color_11"];
?>
" size="3">
<?php
foreach ($pager->getResults() as $image) {
?>
<center>
<?php
echo link_to(image_tag_sf_image($image->getFile(), array('size' => '120x120', 'width' => '80')), 'album_image_show', $image);
?>
</center>
<hr color="<?php
echo $op_color["core_color_11"];
?>
" size="3">
<?php
}
?>
<?php
op_include_pager_navigation($pager, '@album_show?page=%d&id=' . $album->id, array('is_total' => false));
?>
<?php
示例13: __
echo __('Recently Posted Albums');
?>
</h3></div>
<?php
echo op_include_pager_navigation($pager, 'album/list?page=%d');
?>
<div class="block">
<?php
foreach ($pager->getResults() as $album) {
?>
<div class="ditem"><div class="item"><table><tbody><tr>
<td rowspan="4" class="photo"><a href="<?php
echo url_for('album_show', $album);
?>
"><?php
echo image_tag_sf_image($album->getCoverImage(), array('size' => '76x76'));
?>
</a></td>
<th><?php
echo __('%Nickname%');
?>
</th><td><?php
echo $album->getMember()->getName();
?>
</td>
</tr><tr>
<th><?php
echo __('Title');
?>
</th><td><?php
echo op_album_get_title_and_count($album);
示例14: use_helper
<?php
use_helper('opDiary');
?>
<div class="parts memberImageBox">
<p class="photo"><?php
echo link_to(image_tag_sf_image($member->getImageFileName(), array('size' => '120x120')), 'member/profile?id=' . $member->id);
?>
</p>
<p class="text"><?php
echo $member->name;
?>
</p>
</div>
<div class="parts calendar">
<div class="partsHeading"><h3>
<?php
if ($_m = $calendar->prevMonth('array')) {
?>
<?php
echo link_to('<<', '@diary_list_member_year_month?id=' . $member->id . '&year=' . $_m['year'] . '&month=' . $_m['month']);
}
?>
<?php
$_m = $calendar->thisMonth('array');
echo op_format_date(sprintf('%04d-%02d-01', $_m['year'], $_m['month']), 'XCalendarMonth');
if ($_m = $calendar->nextMonth('array')) {
?>
<?php
示例15: use_helper
<?php
use_helper('sfImage');
?>
<div class="cell">
<dl>
<dt class="day"><?php
echo $image->getCreatedAt();
?>
</dt>
<dd class="upImage"><a href="<?php
echo sf_image_path($image->getName());
?>
"><?php
echo image_tag_sf_image($image->getName(), $options = array('size' => '120x120'));
?>
</a></dd>
<dd class="fileName"><?php
echo $image->getOriginalFilename();
?>
</dd>
<?php
if ($deleteBtn) {
?>
<dd class="delete">
[ <?php
echo link_to(__('削除する'), 'monitoring/deleteImage?id=' . $image->getId());
?>
]
</dd>
<?php