Example #1
0
<?php

op_include_box('noMembers', __('Nobody joins this event.'), array('title' => __('Event Members')));
?>

<?php 
use_helper('Javascript');
op_include_line('backLink', link_to_function(__('Back to previous page'), 'history.back()'));
Example #2
0
<?php

op_include_box('noFriend', __('You don\'t have any %friend%.', array('%friend%' => $op_term['friend']->pluralize())), array('title' => __('%friend% List', array('%friend%' => $op_term['friend']->titleize()))));
?>

<?php 
use_helper('Javascript');
op_include_line('backLink', link_to_function(__('Back to previous page'), 'history.back()'));
Example #3
0
<?php

op_include_box('noJoinCommunity', __('You don\'t have any joined %community%.', array('%community%' => $op_term['community']->pluralize())), array('title' => __('Joined %community%', array('%community%' => $op_term['community']->pluralize()->titleize()))));
?>

<?php 
use_helper('Javascript');
op_include_line('backLink', link_to_function(__('Back to previous page'), 'history.back()'));
Example #4
0
        $list[$key] = link_to(__($categoryCaptions[$key]), '@member_config?category=' . $key);
    }
}
op_include_parts('pageNav', 'pageNav', array('list' => $list, 'current' => $categoryName));
?>

<?php 
$list = array();
if (opConfig::get('enable_connection')) {
    $list[] = link_to(__('Connecting with External Application'), '@connection_list');
}
if (opConfig::get('enable_openid')) {
    $list[] = link_to(__('OpenID Configuration'), '@openid_list');
}
if ($list) {
    op_include_parts('pageNav', 'connection', array('list' => $list));
}
?>

<?php 
$list = array(link_to(__('Delete your %1% account', array('%1%' => $op_config['sns_name'])), '@member_delete'));
op_include_parts('pageNav', 'navForDelete', array('list' => $list));
end_slot();
?>

<?php 
if ($categoryName) {
    op_include_form($categoryName . 'Form', $form, array('title' => __($categoryCaptions[$categoryName]), 'url' => url_for('@member_config?category=' . $categoryName)));
} else {
    op_include_box('configInformation', __('Please select the item that wants to be set from the menu.'), array('title' => __('Change Settings')));
}
    unset($form['target']);
    unset($form['id']);
}
op_include_form('searchCommunityWiki', $form, $options);
?>

<?php 
if ($pager->getNbResults()) {
    ?>

<?php 
    $list = array();
    foreach ($pager->getResults() as $key => $topic) {
        $list[$key] = array();
        $list[$key][__('Name', array(), 'community_wiki_form')] = $topic->getName();
        $list[$key][__('%community% Name')] = $topic->getCommunity()->getName();
        $list[$key][__('Body', array(), 'community_wiki_form')] = $topic->getBody();
        $list[$key][__('Date Updated', array(), 'form_community')] = format_datetime($topic->getUpdatedAt(), 'f');
    }
    $options = array('title' => __('Search Results'), 'pager' => $pager, 'link_to_page' => 'communityWiki/search?page=%d', 'list' => $list, 'link_to_detail' => $link_to_detail);
    op_include_parts('searchResultList', 'searchResultCommunityWiki', $options);
} else {
    if ('topic' === $type) {
        $message = __('Your search queries did not match any community topics.');
    } else {
        if ('wiki' === $type) {
            $message = __('Your search queries did not match any community events.');
        }
    }
    op_include_box('searchCommunityWikiResult', $message, array('title' => __('Search Results')));
}
Example #6
0
<?php

$options = array('title' => __('Errors'));
op_include_box('mailError', __('Couldn\'t send E-mail. Please retry or contact to administrator.'), $options);
?>

<?php 
use_helper('Javascript');
op_include_line('backLink', link_to_function(__('Back to previous page'), 'history.back()'));
?>

Example #7
0
if ($pager->getNbResults()) {
    ?>
<div class="dparts recentList"><div class="parts">
<div class="partsHeading"><h3><?php 
    echo $title;
    ?>
</h3></div>
<?php 
    op_include_pager_navigation($pager, '@diary_comment_history?page=%d');
    foreach ($pager->getResults() as $diaryCommentUpdate) {
        $diary = $diaryCommentUpdate->Diary;
        ?>
<dl>
<dt><?php 
        echo op_format_date($diaryCommentUpdate->last_comment_time, 'XDateTimeJa');
        ?>
</dt>
<dd><?php 
        echo op_diary_link_to_show($diary, true, false);
        ?>
</dd>
</dl>
<?php 
    }
    op_include_pager_navigation($pager, '@diary_comment_history?page=%d');
    ?>
</div></div>
<?php 
} else {
    op_include_box('diaryList', __('There are no diaries.'), array('title' => $title));
}
Example #8
0
<?php 
    echo !isset($keyword) ? __('There are no diaries.') : __('Your search "%1%" did not match any diaries.', array('%1%' => $keyword));
    ?>

<?php 
}
?>

<?php 
slot('diarySearchForm');
?>
<form action="<?php 
echo url_for('@diary_search');
?>
">
<input type="text" name="keyword" value="<?php 
if (isset($keyword)) {
    echo $keyword;
}
?>
">
<input type="submit" value="<?php 
echo __('Search');
?>
">
</form>
<?php 
end_slot();
$options = array('title' => __('Diary Search'));
op_include_box('diarySearchForm', get_slot('diarySearchForm'), $options);
Example #9
0
<?php

$options = array('title' => __('Search %community%', array('%community%' => $op_term['community']->titleize()->pluralize())), 'url' => url_for('@community_search'), 'button' => __('Search'), 'moreInfo' => array(link_to(__('Create a new %community%'), '@community_edit')), 'method' => 'get');
op_include_form('searchCommunity', $filters, $options);
?>

<?php 
if ($pager->getNbResults()) {
    ?>

<?php 
    $list = array();
    foreach ($pager->getResults() as $key => $community) {
        $list[$key] = array();
        $list[$key][__('%community% Name', array('%community%' => $op_term['community']->titleize()))] = $community->getName();
        $list[$key][__('Count of Members')] = $community->countCommunityMembers();
        $list[$key][__('Description')] = $community->getConfig('description');
    }
    $options = array('title' => __('Search Results'), 'pager' => $pager, 'link_to_page' => '@community_search?page=%d', 'link_to_detail' => '@community_home?id=%d', 'list' => $list);
    op_include_parts('searchResultList', 'searchCommunityResult', $options);
} else {
    op_include_box('searchCommunityResult', __('Your search queries did not match any %community%.', array('%community%' => $op_term['community']->pluralize())), array('title' => __('Search Results')));
}
<?php

$options = array('title' => $isProfile ? __('Recent 4 coma manga list') : __('Recent My 4 coma manga list'), 'list' => $ccccMangaList, 'link_to' => 'ccccManga/index?id=', 'type' => 'full', 'row' => $row, 'col' => $col);
?>

<?php 
if (count($ccccMangaList)) {
    $options['moreInfo'] = array(link_to(__('More info'), 'ccccManga/listMember'));
} else {
    $options['moreInfo'] = array();
}
if (!$isProfile) {
    $options['moreInfo'][] = link_to(__('new'), 'ccccManga/edit');
}
?>

<?php 
if (count($ccccMangaList)) {
    op_include_parts('nineTable', 'mangaList_' . $gadget->getId(), $options);
} else {
    op_include_box('mangaList_' . $gadget->getId(), '', $options);
}
Example #11
0
">
<span id="count">
<span id="count_num">140</span>
<span id="count_plus" title="もう少し入力できます"></span>
</span>
<?php 
echo $form->renderHiddenFields();
echo $form['body'];
?>
<input type="submit" id="submit" value="送信" />
<?php 
echo $form['twitter'] . $form['twitter']->renderLabel();
?>
</form>

<ol id="timeline" class="activities">
<?php 
foreach ($activities as $activity) {
    include_partial('default/activityRecord', array('activity' => $activity));
}
?>
</ol>

</div>
<?php 
end_slot();
?>

<?php 
op_include_box('twitter_' . $gadget->id, get_slot('body'), array('title' => 'Twtter風ガジェット'));
Example #12
0
<br />
<?php 
    echo $form['body']->render(array('autocomplete' => 'off'));
    ?>
<input type="submit" id="submit" value="送信" />
</div>
</form>

<?php 
}
?>

<?php 
end_slot();
?>

<?php 
op_include_box('chatroom_body', get_slot('chatroom_body'), array('title' => $room->getTitle()));
?>

<?php 
echo javascript_tag('
op_chat.url = {
  post: "' . url_for('@chatroom_post?id=' . $room->id) . '",
  show: "' . url_for('@chatroom_show?id=' . $room->id) . '",
  heartbeat: "' . url_for('@chatroom_heartbeat?id=' . $room->id) . '"
};
');
?>

<?php

op_include_box('error', __('There is not %friend% you can introduce.', array('%friend%' => $op_term['friend'])), array('title' => __('Errors')));
?>

<?php 
use_helper('Javascript');
op_include_line('backLink', link_to_function(__('Back to previous page'), 'history.back()'));
<?php

use_helper('OpenSocial');
?>

<?php 
op_include_form('searchApplication', $searchForm, array('title' => __('Search Apps'), 'url' => url_for('@application_gallery'), 'method' => 'get', 'button' => __('Search')));
?>

<?php 
if (isset($pager) && $pager->getNbResults()) {
    slot('pager');
    op_include_pager_navigation($pager, '@application_gallery?page=%d', array('use_current_query_string' => true));
    end_slot();
    include_slot('pager');
    foreach ($pager->getResults() as $application) {
        op_include_application_information_box('item_' . $application->getId(), $application, null, false);
    }
    include_slot('pager');
} else {
    op_include_box('AppGalleryError', __('Your search queries did not match any Apps.'), array('title' => __('Search Results')));
}
Example #15
0
/**
 * @deprecated since 3.0beta4
 */
function include_box($id, $title = '', $body = '', $options = array())
{
    use_helper('Debug');
    log_message('include_box() is deprecated.', 'err');
    $options['title'] = $title;
    if (!empty($options['form'])) {
        if ($body) {
            $options['info'] = $body;
        }
        if (!isset($options['button'])) {
            $options['button'] = '変更';
        }
        if (!isset($options['url'])) {
            $request = sfContext::getInstance()->getRequest();
            $options['url'] = $request->getParameter('module') . '/' . $request->getParameter('action');
        } else {
            $options['url'] = url_for($options['url']);
        }
        op_include_form($id, $options['form'], $options);
    } else {
        op_include_box($id, $body, $options);
    }
}
Example #16
0
echo count($queue);
?>
</strong> 件</p>
</div>
<ol>
<?php 
foreach ($queue as $job) {
    ?>
<li>
<?php 
    echo $job->File->original_filename;
    ?>
 
(アップロード: <?php 
    echo op_format_date($job->File->created_at, 'f');
    ?>
)
</li>
<?php 
}
?>
</ol>
<?php 
end_slot();
?>

<?php 
op_include_box('import_queue', get_slot('queue'), array('title' => 'インポート待ちのファイル'));
?>

Example #17
0
<?php

op_include_box('error', __('You can not delete your account.'));
?>

<?php 
use_helper('Javascript');
op_include_line('backLink', link_to_function(__('Back to previous page'), 'history.back()'));
<li><input id="close_button" type="button" value="<?php 
    echo __('Close');
    ?>
" onclick="submit(false); false;" /></li>
</ul>
</div>
</div>
<?php 
} else {
    echo __('You don\'t have any %friend%.', array('%friend%' => $op_term['friend']->pluralize()));
}
end_slot();
?>

<?php 
op_include_box('inviteListBox', get_slot('invite_list_body'), array('title' => __('The invitation to this app is sent')));
javascript_tag();
?>
var member_ids = [];
var changePage = function (page) {
  new Ajax.Request("<?php 
echo url_for('@application_invite_list?id=' . $memberApplication->getId());
?>
?page=" + page, {
    method: 'get',
    onCreate: function() {
      $('member_list').innerHTML = '<tr><td colspan="2"><?php 
echo __('Loading');
?>
</td></tr>';
    },
Example #19
0
<?php

op_include_box('vote_question_create_box', '選択肢つきの質問を作成することができます!', array('title' => '質問作成', 'moreInfo' => array(link_to('質問作成', '@vote_new'))));
?>


<?php 
if ($pager->getNbResults()) {
    ?>

<?php 
    slot('pager');
    op_include_pager_navigation($pager, '@vote_list?page=%d');
    end_slot();
    ?>

<div class="dparts recentList"><div class="parts">
<div class="partsHeading">
<h3>質問リスト</h3>
</div>
<?php 
    include_slot('pager');
    foreach ($pager->getResults() as $item) {
        ?>
<dl>
<dt><?php 
        echo op_format_date($item->getUpdatedAt(), 'f');
        ?>
</dt>
<dd><?php 
        echo link_to(sprintf("%s(%d)", $item->getTitle(), count($item->getVoteAnswers())), '@vote_show?id=' . $item->getId());
<?php

slot('_register_success_box');
?>
<p><?php 
echo __('Sent you an invitation for %1%.', array('%1%' => $op_config['sns_name']));
?>
</p>
<p><?php 
echo __('Begin your registration from a URL in the mail.');
?>
</p>
<?php 
end_slot();
op_include_box('requestSuccess', get_slot('_register_success_box'), array('title' => __('Register')));
Example #21
0
<tr>
<th><?php 
echo __('Description');
?>
</th><td><?php 
echo $albumImage->getDescription();
?>
</td>
</tr>
</table>
<?php 
end_slot();
?>

<?php 
echo op_include_box('albumImageDetailBox', get_slot('_album_detail_table'), array('title' => __('View this photo')));
?>

<div class="dparts albumImageLikeList"><div class="parts">
<div class="block likeUnlikeLine">
<?php 
if ($albumImageLike = $albumImage->isLiked($sf_user->getMemberId())) {
    echo link_to(__('Unlike'), 'album_image_like_delete', $albumImageLike);
} else {
    echo link_to(__('Like'), 'album_image_like_create', $albumImage);
}
?>
</div>
<div class="block likeListDetail">
<?php 
include_component('albumImageLike', 'list', array('albumImage' => $albumImage));
Example #22
0
", "<?php 
    echo url_for('member/updateActivity');
    ?>
");
</script>
<?php 
}
?>
<div class="box_list">
<ol id="<?php 
echo $id;
?>
_timeline" class="activities">
<?php 
foreach ($activities as $activity) {
    include_partial('default/activityRecord', array('activity' => $activity));
}
?>
</ol>
</div>
<?php 
end_slot();
?>

<?php 
$params = array('title' => isset($title) ? $title : __('%activity% of %my_friend%', array('%activity%' => $op_term['activity']->titleize(), '%my_friend%' => $op_term['my_friend']->titleize()->pluralize())), 'class' => 'activityBox homeRecentList');
if (isset($gadget)) {
    $params['moreInfo'] = array(link_to(__('More'), isset($moreUrl) ? $moreUrl : 'friend/showActivity'));
}
op_include_box($id, get_slot('activities'), $params);
Example #23
0
<?php

if ($memberList['number']) {
    $list = array();
    for ($i = 0; $i < $memberList['number']; $i++) {
        $member = $memberList['model'][$i];
        $list[$i][__('No%0%', array('%0%' => $memberList['rank'][$i]))] = __('%0% :%1% member', array('%0%' => link_to($member->getName(), '@obj_member_profile?id=' . $member->getId()), '%1%' => $memberList['count'][$i]));
        $selfintoroCaption = __('Self Introduction');
        if ($member->getProfile('op_preset_self_introduction')) {
            $list[$i][$selfintoroCaption] = op_truncate($member->getProfile('op_preset_self_introduction'), 36, '', 3);
        }
    }
    $options = array('id' => 'rankingResultList', 'title' => __('The No1 of the number of %friend% member is %0%', array('%friend%' => $op_term['friend']->pluralize(), '%0%' => $memberList['model'][0]->getName())), 'link_to_detail' => '@obj_member_profile?id=%d', 'model' => $memberList['model'], 'list' => $list, 'rank' => $memberList['rank']);
    include_partial('global/partsRankingResultList', array('options' => $options));
} else {
    op_include_box('friend_list', __('There is no member who has a %friend%'), array('title' => __('Member of number No1 of %friend%', array('%friend%' => $op_term['friend']->pluralize()))));
}
Example #24
0
<th><?php 
        echo __('Body');
        ?>
</th><td><?php 
        echo op_truncate(op_decoration($diary->body, true), 36, '', 3);
        ?>
</td>
</tr><tr class="operation">
<th><?php 
        echo __('Created at');
        ?>
</th><td><span class="text"><?php 
        echo op_format_date($diary->created_at, 'XDateTimeJa');
        ?>
</span> <span class="moreInfo"><?php 
        echo link_to(__('View this diary'), 'diary_show', $diary);
        ?>
</span></td>
</tr></tbody></table></div></div>
<?php 
    }
    ?>
</div>
<?php 
    echo op_include_pager_navigation($pager, $pagerLink);
    ?>
</div></div>
<?php 
} else {
    op_include_box('diaryList', !isset($keyword) ? __('There are no diaries.') : __('Your search "%1%" did not match any diaries.', array('%1%' => $keyword)), array('title' => $title));
}
Example #25
0
    foreach ($memberApplications as $memberApplication) {
        op_include_application_information_box('item_' . $memberApplication->getId(), $memberApplication->getApplication(), $memberApplication->getId(), $isOwner);
    }
    ?>
</div>
<?php 
} else {
    slot('no_app_alert');
    echo __("You haven't the app.");
    if ($isOwner) {
        ?>
 <?php 
        echo __("The Apps can be added from %0%.", array('%0%' => link_to(__('App Gallery'), '@application_gallery')));
    }
    end_slot();
    op_include_box('NoApp', get_slot('no_app_alert'));
}
?>

<?php 
if ($isOwner) {
    echo sortable_element('order', array('url' => '@application_sort', 'tag' => 'div', 'only' => 'sortable', 'with' => 'Sortable.serialize("order")+"&' . urlencode($form->getCSRFFieldName()) . '=' . urlencode($form->getCSRFToken()) . '"'));
    ?>
<div class="moreInfo">
<ul class="moreInfo">
<li>
<?php 
    echo link_to(__('App Gallery'), '@application_gallery');
    if ($isOwner) {
        if ($isInstallApp) {
            ?>
Example #26
0
<?php

$options = array('title' => __('Errors'));
op_include_box('loginError', __('Failed in login.'), $options);
?>

<?php 
use_helper('Javascript');
op_include_line('backLink', link_to_function(__('Back to previous page'), 'history.back()'));
</tr>
<tr>
<th><?php 
        echo __('Public flag');
        ?>
</th>
<td colspan="2"><?php 
        echo $album->getPublicFlagLabel();
        ?>
</td>
</tr>
<tr>
<th><?php 
        echo __('Created at');
        ?>
</th>
<td colspan="2"><?php 
        echo $album->getCreatedAt();
        ?>
</td>
</tr>
</table>
<?php 
    }
    echo op_include_pager_navigation($pager, 'album/listMember?page=%d&id=' . $member->getId());
    ?>
</div></div>
<?php 
} else {
    op_include_box('albumList', __('There are no albums'), array('title' => $title));
}
Example #28
0
<?php

$options = array();
if ($gadget->getConfig('title')) {
    $options['title'] = $gadget->getConfig('title');
}
op_include_box('freeArea', $sf_data->getRaw('gadget')->getConfig('value'), $options);
Example #29
0
            }
            ?>
</td>
</tr>
<?php 
        }
        ?>
<tr class="operation">
<td colspan="3"><span class="moreInfo">

<input type="submit" name="accept" value="<?php 
        echo __('Accept');
        ?>
" class="input_submit" />
<input type="submit" value="<?php 
        echo __('Reject');
        ?>
" class="input_submit" />
</span></td>
</tr>
</table></div></div>
</form>
<?php 
    }
    ?>

</div></div>
<?php 
} else {
    op_include_box('searchMemberResult', __('You don\'t have any pending requests'), array('title' => __($config[$category])));
}
Example #30
0
<?php

slot('_link_list');
?>
<ul>
<?php 
for ($i = 1; $i <= 10; $i++) {
    if ($gadget->getConfig('text' . $i) && $gadget->getConfig('url' . $i)) {
        ?>
  <li><?php 
        echo content_tag('a', $gadget->getConfig('text' . $i), array('href' => $gadget->getConfig('url' . $i)));
        ?>
</li>
<?php 
    }
}
?>
</ul>
<?php 
end_slot();
?>

<?php 
echo op_include_box('linkBox' . $i, get_slot('_link_list'), array('title' => $gadget->getConfig('title') ? $gadget->getConfig('title') : __('リンク集')));