コード例 #1
0
ファイル: smtLayoutGroup.php プロジェクト: te-koyama/openpne
op_smt_include_stylesheets();
?>
<meta name="viewport" content="width=320px,user-scalable=no" />
<?php 
if (opConfig::get('enable_jsonapi') && opToolkit::isSecurePage()) {
    $jsonData = array('apiKey' => $sf_user->getMemberApiKey(), 'apiBase' => app_url_for('api', 'homepage'), 'baseUrl' => $sf_request->getRelativeUrlRoot() . '/');
    echo javascript_tag('
var openpne = ' . json_encode($jsonData) . ';
');
}
op_smt_use_javascript('jquery.min.js');
op_smt_use_javascript('jquery.tmpl.min.js');
op_smt_use_javascript('smt_main');
op_smt_use_javascript('smt_notify');
op_smt_use_javascript('smt_tosaka');
op_smt_use_javascript('smt_menu');
op_smt_include_javascripts();
?>
</head>
<body id="<?php 
printf('page_%s_%s', $this->getModuleName(), $this->getActionName());
?>
" class="<?php 
echo opToolkit::isSecurePage() ? 'secure_page' : 'insecure_page';
?>
">
<?php 
if (isset($op_layout['community'])) {
    include_partial('global/tosaka', array('community' => $op_layout['community']));
} else {
    include_partial('global/tosaka');
コード例 #2
0
?>
';
var MAXLENGTH = 140;
var fileMaxSize = '<?php 
echo opTimelinePluginUtil::getFileSizeMax();
?>
';
//]]>
</script>
<?php 
op_smt_use_stylesheet('/opTimelinePlugin/css/jquery.colorbox.css');
op_smt_use_stylesheet('/opTimelinePlugin/css/timeline-smartphone.css', 'last');
op_smt_use_javascript('/opTimelinePlugin/js/jquery.colorbox.js', 'last');
op_smt_use_javascript('/opTimelinePlugin/js/jquery.timeline.js', 'last');
op_smt_use_javascript('/opTimelinePlugin/js/jquery.timeago.js', 'last');
op_smt_use_javascript('/opTimelinePlugin/js/timeline-loader-smartphone.js', 'last');
?>

<script id="timelineTemplate" type="text/x-jquery-tmpl">
        <div class="timeline-post">
        {{if public_status != 'sns' }}
        <div class="only-border-top"></div>
        {{/if}}
          <a name="timeline-${id}"></a>
          <div class="timeline-post-member-image">
            <a href="${member.profile_url}"><img src="${member.profile_image}" alt="member-image" width="23" class="rad6" /></a>
          </div>
          <div class="timeline-post-content">
            <div class="timeline-member-name">
              <a href="${member.profile_url}">{{if member.screen_name}} ${member.screen_name} {{else}} ${member.name} {{/if}}</a>
              <a href="<?php 
コード例 #3
0
<?php

use_helper('opAsset');
op_smt_use_stylesheet('/opCommunityTopicPlugin/css/smt-topic.css', 'last');
op_smt_use_javascript('/opCommunityTopicPlugin/js/moment.min.js', 'last');
op_smt_use_javascript('/opCommunityTopicPlugin/js/lang/ja.js', 'last');
?>
<script id="eventEntry" type="text/x-jquery-tmpl">
<div class="row entry">
  <span class="span3">
    ${$item.calcTimeAgo()}
  </span>
  <span class="span9"><a href="<?php 
echo public_path('communityEvent');
?>
/${id}">${name}</a></span>
  <div class="span12">
    <div>
      <div class="event-comment-list" eventId="${id}"></div>
      {{if latest_comment}}
        {{html $item.truncateComment()}}
      {{else}}
        <span class="muted">(まだコメントはありません)</span>
      {{/if}}
    </div>
    <div class="clearfix"></div>
  </div>
</div>
</script>

<script id="eventComments" type="text/x-jquery-tmpl">
コード例 #4
0
<?php

use_helper('opAsset');
op_smt_use_javascript('/opDiaryPlugin/js/bootstrap-modal.js', 'last');
op_smt_use_javascript('/opDiaryPlugin/js/bootstrap-transition.js', 'last');
op_smt_use_stylesheet('/opDiaryPlugin/css/smt-diary.css', 'last');
?>
<script id="diaryEntry" type="text/x-jquery-tmpl">
  <div class="row">
    <div class="gadget_header span12">${$item.formatTitle()}</div>
  </div>
  <div class="row">
    {{if editable}}
    <h3 class="span9">${title}</h3>
    <div class="btn-group span3">
      <a href="<?php 
echo public_path('diary/edit');
?>
/${id}" class="btn"><i class="icon-pencil"></i></a>
      <a href="javascript:void(0)" class="btn" id="deleteEntry"><i class="icon-remove"></i></a>
    </div>
    {{else}}
    <h3 class="span12">${title}</h3>
    {{/if}}
  </div>
  <div class="row body">
    <div class="span12">{{html body}}</div>
  </div>
  <div class="row images">
    {{each images}}
      <div class="span4"><a href="${$value.filename}" target="_blank">{{html $value.imagetag}}</a></div>
コード例 #5
0
ファイル: smtListSuccess.php プロジェクト: te-koyama/openpne
<?php

use_helper('opAsset', 'Javascript');
op_smt_use_stylesheet('/opDiaryPlugin/css/smt-diary.css', 'last');
op_smt_use_javascript('/opDiaryPlugin/js/smt_diary_diary_list.js', 'last');
op_smt_use_javascript('/opDiaryPlugin/js/prototype.js', 'last');
$gadgetTitle = array('list_member' => __('Diaries of %1%', array('%1%' => $member->name)), 'list_friend' => __('Diaries of %my_friend%'), 'list' => __('Recently Posted Diaries of All'), 'list_mine' => __('My Diaries'));
echo javascript_tag('
  var target = "' . $target . '";
  var memberId = "' . $id . '";');
?>

<script id="diaryEntry" type="text/x-jquery-tmpl">
<div class="row entry">

  <div class="span3 member-information">
    <span class="image">
      <a href="${member.profile_url}"><img src="${member.profile_image}" class="rad10"></a>
    </span>
    <br />
    <span class="member-name">
      <a href="${member.profile_url}">${member.name}</a>
    </span>
  </div>

  <div class="span9 diary-information">
    <span class="title">${title}</span>
    <span class="ago">${$item.getCreatedAt()}</span>
    <div class="clearfix"></div>
    <span class="body">{{html body_short}}</span>
    <span class="view"><a href="<?php 
コード例 #6
0
<?php

use_helper('Javascript', 'opUtil', 'opAsset');
op_smt_use_javascript('/opDiaryPlugin/js/prototype.js', 'last');
op_smt_use_javascript('/opDiaryPlugin/js/smt_diary_gadget.js', 'last');
?>
<script type="text/javascript">
$(function(){
  var f = new DiaryGadget(
    "<?php 
echo $target;
?>
",
    "<?php 
echo $max;
?>
",
    "<?php 
echo $memberId;
?>
",
    "<?php 
echo __('There are no diaries.');
?>
"
  );
  f.view.loading.show();
  f.update();
});
</script>
コード例 #7
0
<?php

use_helper('opUtil', 'Javascript', 'opTimeline', 'opAsset');
?>

<?php 
op_smt_use_stylesheet('/opTimelinePlugin/css/jquery.colorbox.css');
op_smt_use_javascript('/opTimelinePlugin/js/jquery.colorbox.js', 'last');
?>

<div class="row">
<div class="gadget_header span12">最新のタイムライン</div>
</div>
<div class="row">
  <div class="span12">
  <?php 
if (isset($createdAt) && isset($body)) {
    ?>
  <?php 
    echo op_format_activity_time(strtotime($createdAt));
    ?>
 - <?php 
    echo op_timeline_plugin_screen_name($body);
    ?>
  <?php 
} else {
    ?>
  (タイムラインはまだありません。)
  <?php 
}
?>
コード例 #8
0
ファイル: _modal.php プロジェクト: te-koyama/openpne
<!-- for smartphone -->
<?php 
op_smt_use_javascript('/opCommunityTopicPlugin/js/bootstrap-modal.js', 'last');
?>
<script type="text/javascript">
function showModal(modal){
  var windowHeight = window.outerHeight > $(window).height() ? window.outerHeight : $(window).height();
  $('.modal-backdrop').css({'position': 'absolute','top': '0', 'height': windowHeight});

  var scrollY = window.scrollY;
  var viewHeight = window.innerHeight ? window.innerHeight : $(window).height();
  var modalTop = scrollY + ((viewHeight - modal.height()) / 2 );

  modal.css('top', modalTop);
}

$(document).on('click', '#deleteEntry', function(e){
  $('#deleteEntryModal').on('shown', function(e){
      showModal($(this));
      return this;
    })
    .modal('show');

  e.preventDefault();
  return false;
});

$(document).on('click', '.deleteComment',function(e){
  $('#deleteCommentModal')
    .attr('data-comment-id', $(this).attr('data-comment-id'))
    .on('shown', function(e)
コード例 #9
0
ファイル: smtPostSuccess.php プロジェクト: te-koyama/openpne
} else {
    $title = __('Post a diary');
    $diaryId = '';
    $diaryTitle = '';
    $diaryBody = '';
    $publicFlag = 1;
}
use_helper('opAsset', 'opDiary', 'Javascript', 'opSmtDiary');
op_smt_use_stylesheet('/opDiaryPlugin/css/smt-diary.css', 'last');
op_smt_use_javascript('jquery-ui.min.js', 'last');
op_smt_use_javascript('op_emoji.js', 'last');
op_smt_use_javascript('Selection.js', 'last');
op_smt_use_javascript('decoration.js', 'last');
op_smt_use_javascript('/opDiaryPlugin/js/smt_diary_functions.js', 'last');
op_smt_use_stylesheet('/opDiaryPlugin/css/lightbox.css', 'last');
op_smt_use_javascript('/opDiaryPlugin/js/lightbox.js', 'last');
?>

<script type="text/javascript">
$(function(){
  $("#diary_body").opEmoji();

  $("#post_diary").click(function()
  {
    toggleSubmitState(['input[name=submit]', '#loading']);
    postDiary( getParams('diary_post') );
  });
})
</script>

<div class="row">
コード例 #10
0
ファイル: _smtModal.php プロジェクト: te-koyama/openpne
<?php

op_smt_use_javascript('/opDiaryPlugin/js/bootstrap-modal.js', 'last');
?>

<script type="text/javascript">
function showModal(modal){
  var windowHeight = window.outerHeight > $(window).height() ? window.outerHeight : $(window).height();
  $('.modal-backdrop').css({'position': 'absolute','top': '0', 'height': windowHeight});

  var scrollY = window.scrollY;
  var viewHeight = window.innerHeight ? window.innerHeight : $(window).height();
  var modalTop = scrollY + ((viewHeight - modal.height()) / 2 );

  modal.css('top', modalTop);
}

$(document).on('click', '#deleteEntry', function(e){
  $('#deleteEntryModal')
    .on('shown', function(e)
    {
      showModal($(this));
      return this;
    })
    .modal('show');

  e.preventDefault();
  return false;
})

$(document).on('click', '.deleteComment',function(e){
コード例 #11
0
ファイル: smtListSuccess.php プロジェクト: te-koyama/openpne
<?php

use_helper('opAsset');
op_smt_use_stylesheet('/opMessagePlugin/css/smt-message.css', 'last');
op_smt_use_javascript('/opMessagePlugin/js/jquery.timeago.js', 'last');
op_smt_use_javascript('/opMessagePlugin/js/smt-message.js', 'last');
?>
<input type="hidden" value="<?php 
echo sfConfig::get('op_base_url');
?>
" name="baseUrl" id="baseUrl" />
<input type="hidden" value="0" name="messageKeyId" id="messageKeyId" />
<input type="hidden" value="" name="prevPage" id="prevPage" />
<input type="hidden" value="" name="nextPage" id="nextPage" />
<input type="hidden" value="" name="page" id="page" />
<input type="hidden" value="" name="memberIds" id="memberIds" />
<div class="row">
  <div class="gadget_header span12"><?php 
echo __('Read messages');
?>
</div>
</div>

<div id="message-wrapper-parent">
  <p id="no-message" style="display: none;"><?php 
echo __('There are no messages');
?>
</p>
  <div id="first-loading" class="center">
    <?php 
echo op_image_tag('ajax-loader.gif');
コード例 #12
0
ファイル: smtChainSuccess.php プロジェクト: te-koyama/openpne
<?php

use_helper('opAsset', 'Javascript', 'opMessage');
op_smt_use_stylesheet('/opMessagePlugin/css/smt-message.css', sfWebResponse::LAST);
op_smt_use_stylesheet('/opMessagePlugin/css/bootstrap-popover.css', sfWebResponse::LAST);
op_smt_use_javascript('/opMessagePlugin/js/jquery.timeago.js', sfWebResponse::LAST);
op_smt_use_javascript('/opMessagePlugin/js/smt-message.js', sfWebResponse::LAST);
op_smt_use_javascript('/opMessagePlugin/js/bootstrap.min.js', sfWebResponse::LAST);
?>
<input type="hidden" value="<?php 
echo $member->getId();
?>
" name="toMember" id="messageToMember" />
<input type="hidden" value="<?php 
echo sfConfig::get('op_base_url');
?>
" name="baseUrl" id="baseUrl" />
<div class="row">
  <div class="gadget_header span12"><?php 
echo __('Read messages');
?>
</div>
</div>

<div class="row">
  <div id="loading-more" class="center" style="display: none;">
    <?php 
echo op_image_tag('ajax-loader.gif');
?>
  </div>
  <div id="more" class="btn span12" style="display: none;"><?php 
コード例 #13
0
    $diaryBody = $diary->getBody();
    $publicFlag = $diary->getPublicFlag();
} else {
    $title = __('Post a diary');
    $diaryId = '';
    $diaryTitle = '';
    $diaryBody = '';
    $publicFlag = 1;
}
use_helper('opAsset', 'opDiary');
op_smt_use_stylesheet('/opDiaryPlugin/css/smt-diary.css', 'last');
op_smt_use_javascript('jquery-ui.min.js', 'last');
op_smt_use_javascript('/opDiaryPlugin/js/jquery.upload-1.0.2.min.js', 'last');
op_smt_use_javascript('op_emoji.js', 'last');
op_smt_use_javascript('Selection.js', 'last');
op_smt_use_javascript('decoration.js', 'last');
?>

<script id="successMessageTemplate" type="text/x-jquery-tmpl">
    投稿しました<br/>
    <a href="<?php 
echo public_path('diary');
?>
/${id}">日記を見る</a>
</script>

<script type="text/javascript">
function op_get_relative_uri_root()
{
  return "<?php 
echo $relativeUrlRoot;
コード例 #14
0
ファイル: smtShowSuccess.php プロジェクト: te-koyama/openpne
<?php

use_helper('opAsset');
op_smt_use_javascript('/opCommunityTopicPlugin/js/bootstrap-transition.js', 'last');
op_smt_use_stylesheet('/opCommunityTopicPlugin/css/smt-topic.css', 'last');
op_smt_use_javascript('/opCommunityTopicPlugin/js/moment.min.js', 'last');
op_smt_use_javascript('/opCommunityTopicPlugin/js/lang/ja.js', 'last');
op_smt_use_javascript('/opCommunityTopicPlugin/js/functions.js', 'last');
op_smt_use_javascript('/opCommunityTopicPlugin/js/smt_community_event_functions.js', 'last');
?>
<script id="eventEntry" type="text/x-jquery-tmpl">
  <!-- //event -->
  <div id="event">
    <div class="row">
      <div class="gadget_header span12"><?php 
echo __('Event');
?>
</div>
    </div>
    <div class="row">
      <h3 class="span12">${name}</h3>
    </div>
    <div class="row body">
      <div class="span12 body">{{html body}}</div>
    </div>
    <div class="row">
      <div class="span3">企画者</div><div class="span9"><a href="${member.profile_url}">${member.name}</a></div>
    </div>
    <div class="row">
      <div class="span3">開催日時</div><div class="span9">${$item.getJaDate( open_date )} ${open_date_comment}</div>
    </div>
コード例 #15
0
<?php

use_helper('Javascript', 'opUtil', 'opAsset');
op_smt_use_javascript('/opLikePlugin/js/memberList-smartphone.js', 'last');
?>
<div class="row">
  <div class="gadget_header span12"><a href="javascript:history.go(-1)"><i style="float: left;" class="icon-arrow-left icon-white"></i></a><?php 
echo __('Members liked');
?>
</div>
</div>
<div id="like-list-member"></div>

<script id="LikelistTemplate" type="text/x-jquery-tmpl">
  <div class="row" style="border: 1px solid #000000;">

    <span class="span2" style="border-right: 1px solid #000000;"><a href="${profile_url}"><img src="${profile_image}" width="48"></a></span>
    <span class="span10" style="padding-top: 15px;"><a href="${profile_url}">${name}</a></span>
  </div>
</script>

<span class="btn span11" id="more-see" data-max-id="">もっと見る</span>