$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
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'))); }
<?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);
<?php op_include_parts('memberImagesBox', 'memberImagesBox', array('title' => __("%1%'s Photos", array('%1%' => $member->getName())), 'images' => $member->getMemberImage()));
<?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.'))); }
<?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);
$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'))); }
<?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 }
<?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, )) ?>
<?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', )) ?>
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);
} 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 } ?>
<?php op_include_parts('memberImagesBox', 'memberImageUploadBox', array('title' => __('Edit Photo'), 'images' => $sf_user->getMember()->getMemberImage(), 'form' => $form));
<?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))); }
<?php op_include_parts('yesNo', 'deleteConfirmForm', array('title' => __('Do you delete this %community%?'), 'yes_form' => '<input type="hidden" name="is_delete">', 'button' => __('Delete')));
<?php op_include_parts('informationBox', 'information_' . $gadget->getId(), array('body' => $gadget->getRawValue()->getConfig('value')));
/** * @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); }
<?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'));
<?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)); }
<?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);
<?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'));
?> </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'); ?>
<?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'));
<?php op_include_parts('pointBox', 'pointBox_' . $gadget->id, array('point' => $point));
<?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')));
<?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'); ?>
<?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);
<?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
<?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;
<?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);