예제 #1
0
파일: Img.php 프로젝트: te-koyama/openpne
 /**
  * 絵文字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
0
/**
 * 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
0
?>
</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
0
  </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
0
    <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
0
$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
0
<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
0
    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
0
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
0
<?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
0
<table>
<tr>
<th><?php 
echo op_image_tag('icon_alert.gif');
?>
</th>
<td><?php 
echo $options->getRaw('body');
?>
</td>
</tr>
</table>
예제 #12
0
<?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>
<?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
0
<?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
0
さんの<?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>

예제 #16
0
<?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 {
        echo op_image_tag('no_image.gif', array('size' => '180x180', 'alt' => ''));
    }
    ?>
</td>
<?php 
}
?>
</tr>
</table>
<?php 
if (isset($options['form'])) {
    ?>
<div class="block">
<?php 
    echo $options['form']->renderFormTag(url_for('member/configImage'));
    ?>
예제 #17
0
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 
$sf_data->getRaw('options')->body = get_slot('_head') . $options->getRaw('body');
?>
예제 #18
0
<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);
?>
</span>
예제 #19
0
$(function(){
  $('#file-menu').detach().insertAfter('.nav.pull-right:first').show();
  getUploadedFileList();
});
</script>

<div id="file-uploadmodal" class="modal" tabindex="-1" style="display: none">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal">&times;</button>
    <h3 id="file-uploadmodal-label">アップロード</h3>
  </div>
  <div class="modal-body" id="file-uploadmodal-body1">
    <p class="modal-message" id="file-uploadmodal-message">ファイルをアップロードします</p>
    ファイル: <input name="upfile" type="file" id="file-uploadmodal-upfile">
    <?php 
echo op_image_tag('ajax-loader.gif', array('class' => 'hide', 'id' => 'file-uploadsubmit-loading'));
?>
    <input type="hidden" name="isuploading" id="file-uploadmodal-isuploading" value="" />
  </div>
  <div class="modal-body hide" id="file-uploadmodal-body2">
    <p class="modal-message" id="file-uploadmodal-message">アップロードしました</p>
    <input type="input" id="file-upload-url" size="80" />
  </div>
  <div class="modal-footer">
    <button class="btn btn-primary" id="file-uploadsubmit">
      <span id="file-uploadsubmit-text">アップロード</span>
    </button>
  </div>
</div>

<script>