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

PHP image_tag_sf_image函数代码示例

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

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



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


示例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')));
开发者ID:phenom,项目名称:OpenPNE3,代码行数:21,代码来源:joinInput.php


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


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


示例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();
开发者ID:balibali,项目名称:opAlbumPlugin,代码行数:31,代码来源:showSuccess.php


示例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>';
  }
开发者ID:nise-nabe,项目名称:opIntroFriendPlugin,代码行数:31,代码来源:listSuccess.php


示例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')));
开发者ID:nagata,项目名称:OpenPNE3,代码行数:21,代码来源:changeAdminRequestInput.php


示例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);
}
开发者ID:shotaatago,项目名称:OpenPNE3,代码行数:16,代码来源:opUtilHelper.php


示例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>
开发者ID:te-koyama,项目名称:openpne,代码行数:29,代码来源:bannereditSuccess.php


示例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++) {
                ?>
开发者ID:Kazuhiro-Murota,项目名称:OpenPNE3,代码行数:31,代码来源:_partsNineTable.php


示例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')));
    }
}
开发者ID:te-koyama,项目名称:openpne,代码行数:6,代码来源:opCommunityTopicHelper.php


示例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 
开发者ID:kawahara,项目名称:opAlbumPlugin,代码行数:31,代码来源:showSuccess.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);
开发者ID:balibali,项目名称:opAlbumPlugin,代码行数:31,代码来源:listSuccess.php


示例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('&lt;&lt;', '@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 
开发者ID:kawahara,项目名称:opDiaryPlugin,代码行数:31,代码来源:_sidemenu.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 
开发者ID:phenom,项目名称:OpenPNE3,代码行数:31,代码来源:_imageInfo.php


示例16: op_banner

function op_banner($name)
{
    $banner = Doctrine::getTable('Banner')->findByName($name);
    if (!$banner) {
        return false;
    }
    if ($banner->getIsUseHtml()) {
        return $banner->getHtml();
    }
    $bannerImage = $banner->getRandomImage();
    if (!$bannerImage) {
        return false;
    }
    $imgHtml = image_tag_sf_image($bannerImage->getFile(), array('alt' => $bannerImage->getName()));
    if ($bannerImage->getUrl() != '') {
        return link_to($imgHtml, $bannerImage->getUrl(), array('target' => '_blank'));
    }
    return $imgHtml;
}
开发者ID:phenom,项目名称:OpenPNE3,代码行数:19,代码来源:opUtilHelper.php


示例17: use_helper

<?php

use_helper('Date', 'opCommunityTopic');
?>

<?php 
$body = '';
$images = $communityEvent->getImages();
if (count($images)) {
    $body .= '<ul class="photo">';
    foreach ($images as $image) {
        $body .= '<li><a href="' . sf_image_path($image->File) . '" target="_blank">' . image_tag_sf_image($image->File, array('size' => '120x120')) . '</a></li>';
    }
    $body .= '</ul>';
}
$body .= nl2br($communityEvent->getBody());
$list = array('Writer' => op_community_topic_link_to_member($communityEvent->getMember()), 'Name' => $communityEvent->getName(), 'Open date' => op_format_date($communityEvent->getOpenDate(), 'D') . ($communityEvent->getOpenDate() ? ' ' . $communityEvent->getOpenDateComment() : ''), 'Area' => op_url_cmd($communityEvent->getArea()), 'Body' => op_url_cmd($body), 'Application deadline' => op_format_date($communityEvent->getApplicationDeadline(), 'D'), 'Capacity' => $communityEvent->getCapacity(), 'Count of Member' => $communityEvent->getCommunityEventMember()->count());
if ($list['Count of Member']) {
    $list['Count of Member'] .= '(' . link_to(__('See Member List'), '@communityEvent_memberList?id=' . $communityEvent->getId()) . ')';
}
$i18nlist = array();
foreach ($list as $key => $value) {
    $i18nlist[__($key, array(), 'community_event_form')] = $value;
}
$options = array('title' => '[' . $community->getName() . '] ' . __('Event'), 'list' => $i18nlist);
op_include_parts('listBox', 'communityEvent', $options);
?>


<?php 
if ($communityEvent->isEditable($sf_user->getMemberId())) {
开发者ID:te-koyama,项目名称:openpne,代码行数:31,代码来源:showSuccess.php


示例18: count

<div class="item">
<?php 
        }
    }
    ?>

<table>
<tbody>

<tr>
<td rowspan="<?php 
    echo count($list[$key]) + 1;
    ?>
" class="photo">
<?php 
    echo link_to(image_tag_sf_image($model->getImageFilename(), array('size' => $options['rank'][$key] == 1 ? '120x120' : '76x76')), sprintf($options['link_to_detail'], $model->getId()));
    ?>
</td>

<?php 
    $firstItem = true;
    foreach ($list[$key] as $caption => $item) {
        echo $firstItem ? '' : '<tr>';
        ?>
<th><?php 
        echo $caption;
        ?>
</th>
<td <?php 
        echo $firstItem ? 'class="name"' : '';
        ?>
开发者ID:kawahara,项目名称:opRankingPlugin,代码行数:31,代码来源:_partsRankingResultList.php


示例19: op_include_pager_navigation

    echo $title;
    ?>
</h3></div>
<?php 
    echo op_include_pager_navigation($pager, $pagerLink);
    ?>
<div class="block">
<?php 
    foreach ($pager->getResults() as $diary) {
        ?>
<div class="ditem"><div class="item"><table><tbody><tr>
<td rowspan="4" class="photo"><a href="<?php 
        echo url_for('diary_show', $diary);
        ?>
"><?php 
        echo image_tag_sf_image($diary->Member->getImageFilename(), array('size' => '76x76'));
        ?>
</a></td>
<th><?php 
        echo __('%Nickname%');
        ?>
</th><td><?php 
        echo $diary->Member->name;
        ?>
</td>
</tr><tr>
<th><?php 
        echo __('Title');
        ?>
</th><td><?php 
        echo op_diary_get_title_and_count($diary);
开发者ID:kawahara,项目名称:opDiaryPlugin,代码行数:31,代码来源:listSuccess.php


示例20: __

</th>
<th><?php 
echo __('Application Name');
?>
</th>
<th><?php 
echo __('Operation');
?>
</th>
</tr>
<?php 
foreach ($consumers as $consumer) {
    ?>
<tr>
<td><?php 
    echo image_tag_sf_image((string) $consumer->getImage(), array('size' => '76x76'));
    ?>
</td>
<td><?php 
    echo link_to($consumer->name, 'connection_show', $consumer);
    ?>
</td>
<td>
<ul>
<?php 
    if ($consumer->getOAuthAdminAccessToken()) {
        ?>
<li><?php 
        echo link_to(__('Remove Admin Token'), 'connection/removeToken?id=' . $consumer->id);
        ?>
</li>
开发者ID:te-koyama,项目名称:openpne,代码行数:31,代码来源:listSuccess.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP image_type_to_extension函数代码示例发布时间:2022-05-15
下一篇:
PHP image_tag函数代码示例发布时间: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