当前位置: 首页>>代码示例>>PHP>>正文


PHP op_image_tag_sf_image函数代码示例

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


在下文中一共展示了op_image_tag_sf_image函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

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

示例2: include_partial

?>
">
<?php 
if (isset($op_layout['community'])) {
    include_partial('global/tosaka', array('community' => $op_layout['community']));
} else {
    include_partial('global/tosaka');
}
?>
<div id="face" class="row">
  <?php 
if (isset($op_layout['community'])) {
    ?>
  <div class="span2">
    <?php 
    echo op_image_tag_sf_image($op_layout['community']->getImageFileName(), array('size' => '48x48'));
    ?>
  </div>
  <div class="span8">
    <div class="row face-name"><?php 
    echo $op_layout['community']->getName();
    ?>
</div>
  </div>
  <div class="span2 center"><?php 
    echo link_to(op_image_tag('HomeIcon.png', array('height' => '48')), '@homepage');
    ?>
</div>
  <?php 
}
?>
开发者ID:te-koyama,项目名称:openpne,代码行数:31,代码来源:smtLayoutGroup.php

示例3: op_image_tag

            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 
            }
            ?>
</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:kawahara,项目名称:OpenPNE3,代码行数:31,代码来源:_partsNineTable.php

示例4: op_image_tag

<?php 
echo $options->consent_from;
echo op_image_tag($options->allow_image_filename);
echo $options->consent_to;
?>
</div>
<div id="whoami">
<p><strong><?php 
echo __('You are login to %1% as:', array('%1%' => $op_config['sns_name']));
?>
</strong></p>
<p class="photo">
<?php 
$imgParam = array('size' => '76x76', 'alt' => $sf_user->getMember()->getName());
if ($sf_user->getMember()) {
    echo op_image_tag_sf_image($sf_user->getMember()->getImageFileName(), $imgParam);
} else {
    echo op_image_tag('no_image.gif', $imgParam);
}
?>
</p>
<p class="text"><?php 
echo $sf_user->getMember()->getNameAndCount();
?>
</p>
</div>
<?php 
end_slot();
?>

<?php 
开发者ID:te-koyama,项目名称:openpne,代码行数:31,代码来源:_partsConsentForm.php

示例5: slot

<?php

slot('firstRow');
?>
<tr><th><?php 
echo __('Photo');
?>
</th><td><?php 
echo op_link_to_member($member, array('link_target' => op_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);
?>
</td></tr>
<?php 
end_slot();
op_include_form('communitySubAdminRequest', $form, array('title' => __('Request the sub-administrator of "%1%"', array('%1%' => $community->getName())), 'firstRow' => get_slot('firstRow')));
开发者ID:te-koyama,项目名称:openpne,代码行数:21,代码来源:subAdminRequestInput.php

示例6: array

<?php

$options->setDefault('single', true);
$options->setDefault('name_method', 'getNameAndCount');
?>

<div class="sortHandle">
<p class="photo">
<?php 
$imgParam = array('size' => '180x180', 'alt' => $options->object->getName());
$nameMethod = $options->name_method;
if ($options->object) {
    echo op_image_tag_sf_image($options->object->getImageFileName(), $imgParam);
} else {
    echo op_image_tag('no_image.gif', $imgParam);
}
?>
</p>
<p class="text"><?php 
echo $options->object->{$nameMethod}();
?>
</p>
</div>
开发者ID:te-koyama,项目名称:openpne,代码行数:23,代码来源:_partsMemberImageBox.php

示例7: link_to

<li class="activity">
<div class="box_memberImage">
<p><?php 
echo link_to(op_image_tag_sf_image($activity->getMember()->getImageFileName(), array('alt' => sprintf('[%s]', $activity->getMember()), 'size' => '48x48')), '@obj_member_profile?id=' . $activity->getMemberId());
?>
</p>
</div>
<div class="box_body">
<p>
<span class="content">
<?php 
if ($activity->getImages()->count()) {
    $images = $activity->getImages();
    for ($i = 0; $i < $images->count() && $i < 3; $i++) {
        if ($images[$i]->getFileId()) {
            echo op_image_tag_sf_image($images[$i]->getFile(), array('size' => '48x48'));
        } else {
            echo op_image_tag($images[$i]->getUri(), array('width' => 48, 'height' => 48));
        }
    }
    ?>
<br />
<?php 
}
?>
<strong class="name"><?php 
echo op_link_to_member($activity->getMember());
?>
</strong>
<span class="bodyText"><?php 
echo op_activity_body_filter($activity);
开发者ID:kawahara,项目名称:OpenPNE3,代码行数:31,代码来源:_activityRecord.php

示例8: op_image_tag_sf_image

<table>
<tr>
<?php 
for ($i = 0; $i < 3; $i++) {
    ?>
<td>
<?php 
    if (isset($options['images'][$i])) {
        $image = $options['images'][$i];
        echo op_image_tag_sf_image($image->getFile(), array('size' => '180x180'));
        ?>
<br />
<?php 
        if (isset($options['form'])) {
            ?>
[
<?php 
            echo link_to(__('Delete'), 'member/deleteImage?member_image_id=' . $image->getId());
            ?>
 |
<?php 
            if ($image->getIsPrimary()) {
                echo __('Main Photo');
            } else {
                echo link_to(__('Main Photo'), 'member/changeMainImage?member_image_id=' . $image->getId());
            }
            ?>
]
<?php 
        }
    } else {
开发者ID:shotaatago,项目名称:OpenPNE3,代码行数:31,代码来源:_partsMemberImagesBox.php

示例9: use_helper

<?php

use_helper('opActivity');
?>

<li class="activity">
<div class="box_memberImage">
<p><?php 
echo link_to(op_image_tag_sf_image($activity->getMember()->getImageFileName(), array('alt' => sprintf('[%s]', $activity->getMember()), 'size' => '48x48')), '@obj_member_profile?id=' . $activity->getMemberId());
?>
</p>
</div>
<div class="box_body">
<p>
<span class="content">
<?php 
if ($activity->getImages()->count()) {
    $images = $activity->getImages();
    for ($i = 0; $i < $images->count() && $i < 3; $i++) {
        echo op_activity_image_tag($images[$i], array('size' => '48x48'));
    }
    ?>
<br />
<?php 
}
?>
<strong class="name"><?php 
echo op_link_to_member($activity->getMember());
?>
</strong>
<span class="bodyText"><?php 
开发者ID:te-koyama,项目名称:openpne,代码行数:31,代码来源:_activityRecord.php

示例10: link_to

 kakiage_mine<?php 
    }
    ?>
">
<?php 
    if ($item->isMine()) {
        ?>
<div class="editLink"><?php 
        echo link_to(__('Edit'), '@kakiage_edit_date?' . strftime('year=%Y&month=%m&day=%d', strtotime($date)));
        ?>
</div>
<?php 
    }
    ?>
<div class="kakiage_member_image"><p><?php 
    echo op_image_tag_sf_image($item['Member']->getImageFileName(), array('alt' => sprintf('[%s]', $item['Member']), 'size' => '36x36'));
    ?>
</p></div>
<div class="kakiage_member"><?php 
    echo op_link_to_member($item['Member']);
    ?>
</div>
<div class="kakiage_updated_at">(<?php 
    echo __('Updated at');
    ?>
: <?php 
    echo op_format_date($item['updated_at'], 'XDateTimeJa');
    ?>
)</div>
<div class="kakiage_body"><?php 
    echo op_url_cmd(op_decoration(nl2br($item['body'])));
开发者ID:balibali,项目名称:opKakiagePlugin,代码行数:31,代码来源:indexSuccess.php

示例11: array

    $customizeOption = array('id' => $item->getId());
    $getImageFilename = $options->image_filename_method;
    ?>

<tr>
<?php 
    if ($options->show_images) {
        include_customizes('id_photo', 'before', $customizeOption);
        ?>
<td class="photo">
<?php 
        if ($options->use_op_link_to_member) {
            echo op_link_to_member($item, array('link_target' => op_image_tag_sf_image($item->{$getImageFilename}(), array('size' => '76x76'))), '@' . $options->item_url);
            echo op_link_to_member($item, array('link_target' => (string) $item), '@' . $options->item_url);
        } else {
            echo link_to(op_image_tag_sf_image($item->{$getImageFilename}(), array('size' => '76x76')), $options->item_url, $item);
            ?>
<br />
<?php 
            echo link_to((string) $item, $options->item_url, $item);
        }
        ?>
</td>
<?php 
        include_customizes('id_photo', 'after', $customizeOption);
    }
    ?>

<?php 
    include_customizes('id_friend', 'before', $customizeOption);
    foreach ($options->getRaw('menus') as $menu) {
开发者ID:balibali,项目名称:OpenPNE3,代码行数:31,代码来源:_partsManageList.php

示例12: __

<div class="row">
  <div class="gadget_header span12"><?php 
echo __('Add %my_friend%', array('%my_friend%' => $op_term['my_friend']->pluralize()));
?>
</div>
</div>

<div class="row">
  <div class="span4"><?php 
echo link_to(op_image_tag_sf_image($member->getImageFileName(), array('size' => '48x48')), '@member_profile?id=' . $id);
?>
</div>
  <div class="span8"><?php 
echo link_to($member->getName(), '@member_profile?id=' . $id);
?>
</div>
  <div class="span12">
    <?php 
echo form_tag($sf_request->getCurrentUri());
?>
    <?php 
foreach ($form as $field) {
    ?>
    <?php 
    if (!$field->isHidden()) {
        ?>
      <div class="control-group<?php 
        echo $field->hasError() ? ' error' : '';
        ?>
">
        <label class="control-label"><?php 
开发者ID:newZinc,项目名称:OpenPNE3,代码行数:31,代码来源:smtLinkInput.php

示例13: include_customizes

echo $op_color["core_color_4"];
?>
">
<tr><td colspan="2" align="center">
<?php 
include_customizes('menu', 'top');
?>
<hr color="<?php 
echo $op_color["core_color_11"];
?>
" size="3">
</td></tr>

<tr><td align="center" width="50%" valign="top">
<?php 
echo op_image_tag_sf_image($member->getImageFileName(), array('size' => '120x120', 'format' => 'jpg'));
if ($relation->isSelf()) {
    ?>
<br><?php 
    echo link_to(__('Edit Photo'), 'member/configImage');
} elseif ($member->getImageFileName()) {
    ?>
<br><?php 
    echo link_to(__('Show Photo'), 'friend/showImage?id=' . $member->getId());
}
?>
</td>
<td valign="top">
<?php 
$list = array();
if ($member->getAge(true)) {
开发者ID:balibali,项目名称:OpenPNE3,代码行数:31,代码来源:profileSuccess.php

示例14: getComments

    $('#deleteCommentModal').attr('data-comment-id', '').modal('hide');
  });

  $('#loadmore').click(function() {
    getComments( getParams('diary_comment_search') );
  });

})

</script>

<div id="face" class="row">
  <div class="span2">
    <?php 
echo link_to(op_image_tag_sf_image($member->getImageFileName(), array('size' => '48x48')), '@diary_list_member?id=' . $member->id);
?>
  </div>
  <div class="span8">
    <div class="row face-name"><?php 
echo __('Diary of %1%', array('%1%' => $member->name));
?>
</div>
  </div>
</div>

<div class="row">
  <div id="show"></div>
</div>
<div class="row">
  <div id="loading" class="center">
开发者ID:te-koyama,项目名称:openpne,代码行数:30,代码来源:smtShowSuccess.php

示例15: printf

?>
</head>
<body id="<?php 
printf('page_%s_%s', $this->getModuleName(), $this->getActionName());
?>
" class="<?php 
echo opToolkit::isSecurePage() ? 'secure_page' : 'insecure_page';
?>
">
<?php 
include_partial('global/tosaka');
?>
<div id="face" class="row">
  <div class="span2">
    <?php 
echo op_image_tag_sf_image($sf_user->getMember()->getImageFileName(), array('size' => '48x48'));
?>
  </div>
  <div class="span8">
    <div class="row face-name"><?php 
echo $sf_user->getMember()->getName();
?>
</div>
    <div class="row screen-name">
      <?php 
$screenName = $sf_user->getMember()->getConfig('op_screen_name');
?>
      <?php 
if ($screenName) {
    ?>
      <a href="#">@<?php 
开发者ID:newZinc,项目名称:OpenPNE3,代码行数:31,代码来源:smtLayoutHome.php


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