本文整理汇总了PHP中op_include_box函数的典型用法代码示例。如果您正苦于以下问题:PHP op_include_box函数的具体用法?PHP op_include_box怎么用?PHP op_include_box使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了op_include_box函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: op_include_box
<?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()'));
示例2: op_include_box
<?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()'));
示例3: op_include_box
<?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()'));
示例4: link_to
$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')));
}
示例5: unset
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')));
}
示例6: array
<?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()'));
?>
示例7: op_include_pager_navigation
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));
}
示例8: __
<?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);
示例9: array
<?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')));
}
示例10: array
<?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);
}
示例11: foreach
">
<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風ガジェット'));
示例12: end_slot
<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) . '"
};
');
?>
示例13: op_include_box
<?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()'));
示例14: use_helper
<?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')));
}
示例15: include_box
/**
* @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);
}
}