コード例 #1
0
ファイル: homeSuccess.php プロジェクト: TadahiroKudo/OpenPNE3
    $subAdminCaption .= "<li>" . link_to($m->getName(), '@member_profile?id=' . $m->getId()) . "</li>\n";
}
if ($subAdminCaption) {
    $list[__('Sub Administrator')] = '<ul>' . $subAdminCaption . '</ul>';
}
$list[__('Count of Members')] = $community->countCommunityMembers();
foreach ($community->getConfigs() as $key => $config) {
    if ('%community% Description' === $key) {
        $list[__('%community% Description', array('%community%' => $op_term['community']->titleize()), 'form_community')] = op_url_cmd(nl2br($community->getConfig('description')));
    } else {
        $list[__($key, array(), 'form_community')] = $config;
    }
}
$list[__('Register policy', array(), 'form_community')] = __($community->getRawValue()->getRegisterPolicy());
$options = array('title' => __('%community%', array('%community%' => $op_term['community']->titleize())), 'list' => $list);
op_include_parts('listBox', 'communityHome', $options);
?>

<ul>
<?php 
if ($isEditCommunity) {
    ?>
<li><?php 
    echo link_to(__('Edit this %community%'), 'community/edit?id=' . $community->getId());
    ?>
</li>
<?php 
}
?>

<?php 
コード例 #2
0
    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')));
}
コード例 #3
0
<?php

$options = array('title' => __('Members that has "%0%"', array('%0%' => $application->getTitle())), 'list' => $pager->getResults(), 'link_to' => 'member/profile?id=', 'pager' => $pager, 'link_to_pager' => '@application_member?page=%d&id=' . $application->getId(), 'moreInfo' => array(link_to(__('App Information'), '@application_info?id=' . $application->getId())));
op_include_parts('photoTable', 'membersList', $options);
コード例 #4
0
<?php

op_include_parts('memberImagesBox', 'memberImagesBox', array('title' => __("%1%'s Photos", array('%1%' => $member->getName())), 'images' => $member->getMemberImage()));
コード例 #5
0
<?php

op_mobile_page_title($id === $sf_user->getMemberId() ? __('My Activities') : __('Activities of %0%', array('%0%' => $member->getName())));
if ($pager->getNbResults()) {
    ?>
<center>
<?php 
    op_include_pager_total($pager);
    ?>
</center>
<?php 
    include_partial('default/activityBox', array('title' => '', 'activities' => $pager->getResults()));
    op_include_pager_navigation($pager, 'member/showActivity?page=%d&id=' . $id);
} else {
    op_include_parts('box', 'ActivityBox', array('body' => __('There is no activity.')));
}
コード例 #6
0
<?php

$list = array();
foreach ($pager->getResults() as $key => $ccccManga) {
    $list[$key] = array();
    $list[$key][__('Manga Title')] = $ccccManga->getTitle();
    $list[$key][__('Description')] = $ccccManga->getDescription();
    $list[$key][__('Author')] = $ccccManga->getMember()->getName();
}
$options = array('title' => __('4 Coma Manga of %1%', array('%1%' => $member->getName())), 'pager' => $pager, 'link_to_page' => 'ccccManga/listMember?page=%d', 'link_to_detail' => 'ccccManga/index?id=%d', 'list' => $list);
op_include_parts('searchResultList', 'searchMangaResult', $options);
コード例 #7
0
ファイル: configSuccess.php プロジェクト: kawahara/OpenPNE3
        $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')));
}
コード例 #8
0
ファイル: editSuccess.php プロジェクト: nothan/opCCCCPlugin
<?php

$mode = $form->isNew() ? __('Add') : __('Edit');
op_include_form('mangaForm', $form, array('title' => '4コマ漫画の' . $mode, 'button' => $mode));
?>

<?php 
if (!$form->isNew()) {
    ?>

<?php 
    op_include_parts('buttonBox', 'deleteForm', array('body' => __('この4コマ漫画をします。協力して描かれた作品である場合、あらかじめ削除する旨を協力者に伝えてください。'), 'title' => __('4コマ漫画を削除する'), 'button' => __('Delete'), 'method' => 'get', 'url' => url_for('ccccManga/delete?id=' . $form->getObject()->getId())));
    ?>

<?php 
}
コード例 #9
0
<?php op_mobile_page_title(__('Do you really delete it?')) ?>
<?php op_include_parts('yesNo', 'delete_introfriend', array(
  'yes_form' => new BaseForm(),
  'yes_method' => 'post',
  'no_method' => 'get',
  'no_url' => $uri,
)) ?>
コード例 #10
0
<?php op_include_parts('ButtonBox', 'opAuthMailAddressPluginRegisterBox', array(
  'title'  => __('Registration with your e-mail address'),
  'body'   => __('You can go to the registration page by clicking the button below.'),
  'button' => __('Go to the registration page'),
  'url'    => url_for($sf_user->getRegisterInputAction()),
  'method' => 'get',
)) ?>
コード例 #11
0
    if ($profile->getProfile()->isPreset()) {
        $presetConfig = $profile->getProfile()->getPresetConfig();
        $caption = __($presetConfig['Caption']);
    }
    $profileValue = (string) $profile;
    if ('' === $profileValue) {
        continue;
    }
    if ('textarea' == $profile->getFormType()) {
        $profileValue = op_auto_link_text(nl2br($profileValue));
    }
    if ($profile->getProfile()->isPreset()) {
        if ('country_select' === $profile->getFormType()) {
            $profileValue = $culture->getCountry($profileValue);
        } elseif ('op_preset_birthday' === $profile->getName()) {
            $profileValue = op_format_date($profileValue, 'XShortDateJa');
        }
        $profileValue = __($profileValue);
    }
    if ($member->getId() == $sf_user->getMemberId()) {
        if ($profile->getPublicFlag() == ProfileTable::PUBLIC_FLAG_FRIEND) {
            $profileValue .= ' (' . __('Only Open to %my_friend%', array('%my_friend%' => $op_term['my_friend']->titleize()->pluralize())) . ')';
        } elseif ($profile->getPublicFlag() == ProfileTable::PUBLIC_FLAG_WEB && $profile->Profile->is_public_web) {
            $profileValue .= ' (' . __('All Users on the Web') . ')';
        }
    }
    $list[$caption] = $profileValue;
}
$options = array('title' => __('Profile'), 'list' => $list);
op_include_parts('listBox', 'profile', $options);
コード例 #12
0
ファイル: _layout.php プロジェクト: newZinc/OpenPNE3
}
include_component('default', 'localNav', $localNavOptions);
?>
</div><!-- localNav -->

<div id="Layout<?php 
echo $layout;
?>
" class="Layout">

<?php 
if ($sf_user->hasFlash('error')) {
    op_include_parts('alertBox', 'flashError', array('body' => __($sf_user->getFlash('error'), $sf_data->getRaw('sf_user')->getFlash('error_params', array()))));
}
if ($sf_user->hasFlash('notice')) {
    op_include_parts('alertBox', 'flashNotice', array('body' => __($sf_user->getFlash('notice'), $sf_data->getRaw('sf_user')->getFlash('notice_params', array()))));
}
?>

<?php 
if (has_slot('op_top')) {
    ?>
<div id="Top">
<?php 
    include_slot('op_top');
    ?>
</div><!-- Top -->
<?php 
}
?>
コード例 #13
0
<?php

op_include_parts('memberImagesBox', 'memberImageUploadBox', array('title' => __('Edit Photo'), 'images' => $sf_user->getMember()->getMemberImage(), 'form' => $form));
コード例 #14
0
<?php

slot('op_sidemenu');
include_partial('pluginInformationBar', array('package' => $release->Package));
end_slot();
?>

<?php 
use_helper('opPluginChannelServerPlugin');
$channelOption = '';
if (opPluginChannelServerToolkit::getConfig('channel_name') !== opPluginManager::OPENPNE_PLUGIN_CHANNEL) {
    $channelOption = ' --channel=' . opPluginChannelServerToolkit::getConfig('channel_name');
}
op_include_parts('listBox', 'releaseInfoList', array('title' => __('Detail of this release'), 'list' => array(__('Plugin') => $release->Package->name, __('Version') => $release->version, __('Stability') => __($release->stability), __('Release Note') => PEAR::isError($info->getRawValue()) ? '' : nl2br($info['notes']), __('Installation') => __('Install the plugin:') . '<br />
      <code>$ ./symfony opPlugin:install ' . $release->Package->name . ' -r ' . $release->version . $channelOption . '</code><br />
      <br />' . __('Migrate your model and database:') . '<br />
      <code>$ ./symfony openpne:migrate --target=' . $release->Package->name . '</code><br />
      ', __('Download') => link_to(get_plugin_download_url($release->Package->name, $release->version, 'tgz'), get_plugin_download_url($release->Package->name, $release->version, 'tgz')))));
if ($release->isAllowed($sf_user->getRawValue()->getMember(), 'delete')) {
    op_include_form('removeRelease', $form, array('title' => __('Do you want to delete this release?'), 'button' => __('Delete'), 'url' => url_for('@release_delete?id=' . $release->id)));
}
コード例 #15
0
<?php

op_include_parts('yesNo', 'deleteConfirmForm', array('title' => __('Do you delete this %community%?'), 'yes_form' => '<input type="hidden" name="is_delete">', 'button' => __('Delete')));
コード例 #16
0
ファイル: _informationBox.php プロジェクト: te-koyama/openpne
<?php

op_include_parts('informationBox', 'information_' . $gadget->getId(), array('body' => $gadget->getRawValue()->getConfig('value')));
コード例 #17
0
ファイル: opPartsHelper.php プロジェクト: te-koyama/openpne
/**
 * @deprecated since 3.0beta4
 */
function include_list_box($id, $list, $options = array())
{
    use_helper('Debug');
    log_message('include_list_box() is deprecated.', 'err');
    $options['list'] = $list;
    op_include_parts('listBox', $id, $options);
}
コード例 #18
0
<?php

op_include_parts('yesNo', 'removeSubAdminConfirmForm', array('body' => __("Do you demote %0% from this %community%'s sub-administrator?", array('%0%' => $member->getName())), 'yes_form' => new BaseForm(), 'no_url' => url_for('@community_memberManage?id=' . $community->getId()), 'no_method' => 'get'));
コード例 #19
0
<?php

if ($pager->getNbResults() || isset($form)) {
    slot('pager');
    if ($pager->getNbResults()) {
        op_include_pager_navigation($pager, 'member/showAllMemberActivity?page=%d&id=' . $id);
    }
    end_slot();
    include_slot('pager');
    $params = array('title' => __("SNS Member's %activity%", array('%activity%' => $op_term['activity']->titleize()->pluralize())), 'activities' => $pager->getResults());
    if (isset($form)) {
        $params['form'] = $form;
    }
    include_partial('default/activityBox', $params);
    include_slot('pager');
} else {
    op_include_parts('box', 'ActivityBox', array('body' => __('There is no %activity%.'), 'title' => $title));
}
コード例 #20
0
ファイル: _friendListBox.php プロジェクト: kawahara/OpenPNE3
<?php

$options = array('title' => __('%friend% List', array('%friend%' => $op_term['friend']->titleize())), 'list' => $friends, 'link_to' => '@obj_member_profile?id=', 'use_op_link_to_member' => true, 'moreInfo' => array(link_to(sprintf('%s(%d)', __('Show all'), $member->countFriends()), 'friend/list?id=' . $member->getId())), 'type' => $sf_data->getRaw('gadget')->getConfig('type'), 'row' => $row, 'col' => $col);
if ($member->getId() == $sf_user->getMember()->getId()) {
    $options['moreInfo'][] = link_to(__('%my_friend% Setting', array('%my_friend%' => $op_term['my_friend']->titleize()->pluralize())), '@friend_manage');
}
op_include_parts('nineTable', 'frendList_' . $gadget->getId(), $options);
コード例 #21
0
ファイル: editSuccess.php プロジェクト: te-koyama/openpne
<?php

$options = array();
$options['title'] = __('Edit the topic');
$options['url'] = url_for('communityTopic_update', $communityTopic);
$options['isMultipart'] = true;
op_include_form('formCommunityTopic', $form, $options);
?>

<?php 
op_include_parts('buttonBox', 'toDelete', array('title' => __('Delete the topic and comments'), 'button' => __('Delete'), 'url' => url_for('communityTopic_delete_confirm', $communityTopic), 'method' => 'get'));
コード例 #22
0
ファイル: _partsForm.php プロジェクト: te-koyama/openpne
    ?>
</div>
<?php 
}
?>

<?php 
slot('form_global_error');
foreach ($forms as $form) {
    if ($form->hasGlobalErrors()) {
        echo $form->renderGlobalErrors();
    }
}
end_slot();
if (get_slot('form_global_error')) {
    op_include_parts('alertBox', 'FormGlobalError', array('body' => get_slot('form_global_error')));
}
?>

<?php 
$hasRequiredField = false;
?>

<?php 
slot('form_table');
?>
<table>
<?php 
include_customizes($id, 'firstRow');
echo $options->getRaw('firstRow');
?>
コード例 #23
0
ファイル: dropMemberInput.php プロジェクト: te-koyama/openpne
<?php

op_mobile_page_title($community->getName(), __('Manage member'));
?>

<?php 
op_include_parts('yesNo', 'dropMemberConfirmForm', array('body' => __('Do you drop %0% from this %community%?', array('%0%' => $member->getName())), 'yes_form' => new sfForm(), 'no_url' => url_for('@community_memberManage?id=' . $community->getId()), 'no_method' => 'get', 'align' => 'center'));
コード例 #24
0
<?php

op_include_parts('pointBox', 'pointBox_' . $gadget->id, array('point' => $point));
コード例 #25
0
ファイル: deleteSuccess.php プロジェクト: te-koyama/openpne
<?php

op_mobile_page_title(__('Delete this %community%'), $community->getName());
$form = new BaseForm();
op_include_parts('yesNo', 'deleteConfirmForm', array('body' => __('Do you delete this %community%?'), 'yes_form' => '<input type="hidden" name="is_delete">' . '<input type="hidden" name="' . $form->getCSRFFieldName() . '" value="' . $form->getCSRFToken() . '">', 'button' => __('Delete')));
コード例 #26
0
<?php

use_helper('Date');
?>

<?php 
$list = array('Name' => $communityEvent->getName(), 'Open date' => op_format_date($communityEvent->getOpenDate(), 'D'), 'Area' => $communityEvent->getArea(), 'Body' => nl2br($communityEvent->getBody()), 'Application deadline' => op_format_date($communityEvent->getApplicationDeadline(), 'D'), 'Capacity' => $communityEvent->getCapacity(), 'Count of Member' => $communityEvent->getCommunityEventMember()->count());
if ($list['Count of Member']) {
    $list['Count of Member'] .= '(' . link_to(__('See Member List'), '@communityEvent_memberList?id=' . $communityEvent->getId()) . ')';
}
$i18nlist = array();
foreach ($list as $key => $value) {
    $i18nlist[__($key, array(), 'community_event_form')] = $value;
}
$options = array('title' => '[' . $community->getName() . '] ' . __('Event'), 'list' => $i18nlist);
op_include_parts('listBox', 'communityEvent', $options);
?>


<?php 
if ($communityEvent->isEditable($sf_user->getMemberId())) {
    ?>
<div class="operation">
<form action="<?php 
    echo url_for('@communityEvent_edit?id=' . $communityEvent->getId());
    ?>
" method="get">
<ul class="moreInfo button">
<li><input class="input_submit" type="submit" value="<?php 
    echo __('Edit');
    ?>
コード例 #27
0
<?php

$options = array('title' => __('Event Members'), 'list' => $pager->getResults(), 'link_to' => 'member/profile?id=', 'pager' => $pager, 'link_to_pager' => '@communityEvent_memberList?page=%d&id=' . $communityEvent->getId());
op_include_parts('photoTable', 'communityEventMembersList', $options);
コード例 #28
0
<?php

use_helper('Date');
$acl = opCommunityTopicAclBuilder::buildCollection($community, array($sf_user->getMember()));
?>

<?php 
if ($acl->isAllowed($sf_user->getMemberId(), null, 'add')) {
    op_include_parts('buttonBox', 'communityTopicList', array('title' => __('Create a new topic'), 'button' => __('Create'), 'url' => url_for('communityTopic_new', $community), 'method' => 'get'));
}
?>

<?php 
if ($pager->getNbResults()) {
    ?>
<div class="dparts recentList"><div class="parts">
<div class="partsHeading">
<h3><?php 
    echo __('List of topics');
    ?>
</h3>
</div>

<?php 
    ob_start();
    op_include_pager_navigation($pager, '@communityTopic_list_community?page=%d&id=' . $community->getId());
    $pager_navi = ob_get_contents();
    ob_end_flush();
    ?>

<?php 
コード例 #29
0
ファイル: listSuccess.php プロジェクト: te-koyama/openpne
<?php

slot('op_sidemenu');
$categoryList = array();
foreach ($config as $k => $v) {
    $categoryList[$k] = link_to(__($v), '@confirmation_list?category=' . $k);
}
op_include_parts('pageNav', 'pageNav', array('list' => $categoryList, 'current' => $category));
end_slot();
?>

<?php 
if (count($list)) {
    ?>
<div class="dparts searchResultList"><div class="parts">
<div class="partsHeading"><h3><?php 
    echo __($config[$category]);
    ?>
</h3></div>
<p><?php 
    echo __('You have the following pending requests. Select "Accept" or "Reject".');
    ?>
</p>
<?php 
    foreach ($list as $item) {
        echo $form->renderFormTag(url_for('@confirmation_decision?id=' . $item['id'] . '&category=' . $category));
        echo $form->renderHiddenFields();
        ?>
<div class="ditem"><div class="item"><table style="background-color: #fff;"><tr>
<td class="photo" rowspan="<?php 
        echo count($item['list']) + 1;
コード例 #30
0
<?php

$options = array('title' => __('Developing Plugin List'), 'list' => $plugins, 'crownIds' => $sf_data->getRaw('crownIds'), 'link_to' => '@package_home_id?id=', 'moreInfo' => array(link_to(__('Show all'), '@package_listMember?id=' . $member->id)), 'row' => $row, 'col' => $col);
op_include_parts('nineTable', 'pluginList_' . $gadget->getId(), $options);