<?php use_helper('opDiary'); ?> <?php $list = array(); foreach ($diaryList as $diary) { $list[] = sprintf('[%s] %s', op_format_date($diary->created_at, 'XShortDate'), link_to(op_diary_get_title_and_count($diary, false, 28), 'diary_show', $diary)); } $moreInfo = array(); if (count($diaryList)) { $moreInfo[] = link_to(__('More'), 'diary_list_mine'); } $moreInfo[] = link_to(__('Post a diary'), 'diary_new'); $options = array('title' => __('My Diaries'), 'border' => true, 'moreInfo' => $moreInfo); op_include_list('myDiaryList', $list, $options);
<?php $acl = opCommunityTopicAclBuilder::buildCollection($community, array($sf_user->getMember())); ?> <?php if ($acl->isAllowed($sf_user->getMemberId(), null, 'view')) { use_helper('Date'); $list = array(); foreach ($communityEvents as $communityEvent) { $list[] = sprintf("[%s] %s", op_format_date($communityEvent->getUpdatedAt(), 'XShortDate'), link_to(sprintf("%s(%d)", op_truncate($communityEvent->getName(), 28), $communityEvent->getCommunityEventComment()->count()), '@communityEvent_show?id=' . $communityEvent->getId())); } $moreInfo = array(); if (count($communityEvents)) { $moreInfo[] = link_to(__('More'), '@communityEvent_list_community?id=' . $community->getId()); } if ($acl->isAllowed($sf_user->getMemberId(), null, 'add')) { $moreInfo[] = link_to(__('Create a new event'), '@communityEvent_new?id=' . $community->getId()); } $option = array('title' => __('Recently Posted This %Community% Events'), 'border' => true, 'moreInfo' => $moreInfo); op_include_list('communityEvent', $list, $option); }
echo $form->renderHiddenFields(); ?> <input type="submit" name="accept" value="<?php echo __('Accept'); ?> " class="input_submit" /> <input type="submit" value="<?php echo __('Reject'); ?> " class="input_submit" /> </form> <?php end_slot(); $list_html[] = get_slot('_list_html'); } op_include_list('confirmList', $list_html, array('border' => true)); ?> <?php } else { echo __('You don\'t have any pending requests', array('title' => __($config[$category]))); } ?> <hr color="<?php echo $op_color['core_color_11']; ?> "> <?php foreach ($config as $k => $v) {
?> <?php $options = array('url' => url_for('community/search'), 'button' => __('Search'), 'method' => 'get', 'align' => 'center'); if (!$isResult) { $options['moreInfo'] = array(link_to(__('Create a new %community%'), '@community_edit')); } op_include_form('searchCommunity', $filters, $options); ?> <?php if ($isResult) { ?> <?php } else { $list = array(); foreach ($categorys as $category) { $list[] = link_to(sprintf('%s', $category->getName()), 'community/search', array('query_string' => 'community[community_category_id]=' . $category->getId())); } $option = array('border' => true, 'title' => __('Categories')); op_include_list('searchCategory', $list, $option); } ?> <?php if ($isResult) { slot('op_mobile_footer_menu'); echo link_to(__('Back'), 'community/search'); end_slot(); }
$list = array(); $checkedIds = array(); foreach ($pager->getResults() as $member) { if (in_array($member->getId(), $sf_data->getRaw('installedFriends'))) { $string = __('%0% is already using', array('%0%' => $member->getName())); } else { $checked = false; if (in_array($member->id, $ids->getRawValue())) { $checked = true; $checkedIds[] = $member->id; } $string = '<input type="checkbox" name="ids[]" value="' . $member->id . '"' . ($checked ? ' checked' : '') . '>' . $member->getName(); } $list[] = $string; } op_include_list('memberList', $list); echo $form->renderHiddenFields(); if ($sf_params->has('callback')) { ?> <input type="hidden" name="callback" value="<?php echo $sf_params->get('callback'); ?> "> <?php } ?> <input type="hidden" name="nowpage" value="<?php echo $nowpage; ?> "> <?php
<?php op_mobile_page_title(__('My Apps')); ?> <?php if ($pager->getNbResults()) { ?> <center> <?php op_include_pager_total($pager); ?> </center> <?php $list = array(); foreach ($pager->getResults() as $memberApplication) { $list[] = link_to($memberApplication->getApplication()->getTitle(), '@application_render?id=' . $memberApplication->getApplicationId()); } op_include_list('memberApplicationList', $list, array('border' => true)); op_include_pager_navigation($pager, '@my_application_list?page=%d', array('is_total' => false)); } else { echo __("You haven't the app."); echo __("The Apps can be added from %0%.", array('%0%' => link_to(__('App Gallery'), '@application_gallery'))); } ?> <?php slot('op_mobile_footer_menu'); echo link_to(__('App Gallery'), '@application_gallery'); end_slot();
<?php use_helper('Date'); $list = array(); $getCommunityComment = 'event' === $type ? 'getCommunityEventComment' : 'getCommunityTopicComment'; foreach ($pager->getResults() as $communityTopic) { $list[] = sprintf("%s<br>%s(%s)", op_format_date($communityTopic->getUpdatedAt(), 'XDateTime'), link_to(sprintf("%s(%d)", op_truncate($communityTopic->getName(), 28), $communityTopic->{$getCommunityComment}()->count()), sprintf($link_to_detail, $communityTopic->getId()), $communityTopic), op_truncate($communityTopic->getCommunity()->getName(), 17)); } op_include_list('communityTopic', $list, array('border' => true));
<?php op_mobile_page_title(__('%Friend% list')); ?> <center> <?php op_include_pager_total($pager); ?> </center> <?php $list = array(); foreach ($pager->getResults() as $member) { $list[] = op_link_to_member($member->getId(), '@obj_member_profil', array('link_target' => sprintf('%s(%d)', $member->getName(), $member->countFriends()))); } $option = array('border' => true); op_include_list('friendList', $list, $option); ?> <?php op_include_pager_navigation($pager, 'friend/list?page=%d&id=' . $id, array('is_total' => false)); ?> <br> <?php if ($relation->isSelf()) { slot('op_mobile_footer_menu'); echo link_to(__('Manage %friend%'), 'friend/manage'); end_slot(); }
<?php echo pager_total($pager); ?> </center> <?php $list = array(); foreach ($pager->getResults() as $topic) { $list_str = op_format_date($topic->getUpdatedAt(), 'XDateTime'); if ($topic->isEditable($sf_user->getMemberId())) { $list_str .= sprintf(' [%s]', link_to(__('Edit'), '@communityTopic_edit?id=' . $topic->getId())); } $list_str .= '<br>' . link_to(sprintf("%s(%d)", op_truncate($topic->getName(), 28), $topic->getCommunityTopicComment()->count()), '@communityTopic_show?id=' . $topic->getId()); $list[] = $list_str; } $options = array('border' => true); op_include_list('communityTopicList', $list, $options); ?> <?php if ($pager->haveToPaginate()) { op_include_pager_navigation($pager, 'communityTopic/listCommunity?id=' . $community->getId() . '&page=%d', array('is_total' => false)); } ?> <?php } else { ?> <?php echo __('There are no topics.'); ?>
<?php $acl = opCommunityTopicAclBuilder::buildCollection($community, array($sf_user->getMember())); ?> <?php if ($acl->isAllowed($sf_user->getMemberId(), null, 'view')) { use_helper('Date'); $list = array(); foreach ($communityTopics as $communityTopic) { $list[] = sprintf("[%s] %s", op_format_date($communityTopic->getUpdatedAt(), 'XShortDate'), link_to(sprintf("%s(%d)", op_truncate($communityTopic->getName(), 28), $communityTopic->getCommunityTopicComment()->count()), '@communityTopic_show?id=' . $communityTopic->getId())); } $moreInfo = array(); if (count($communityTopics)) { $moreInfo[] = link_to(__('More'), '@communityTopic_list_community?id=' . $community->getId()); } if ($acl->isAllowed($sf_user->getMemberId(), null, 'add')) { $moreInfo[] = link_to(__('Create a new topic'), '@communityTopic_new?id=' . $community->getId()); } $option = array('title' => __('Recently Posted This Community Topics'), 'border' => true, 'moreInfo' => $moreInfo); op_include_list('communityTopic', $list, $option); }
<?php $list = array(link_to(__('Edit profile'), '@member_editProfile')); op_include_list('profileEdit', $list, array('title' => __('Edit profile'))); ?> <?php $list = array(); foreach ($categories as $key => $value) { if (count($value)) { $list[] = link_to(__($categoryCaptions[$key]), 'member/config?category=' . $key); } } $list[] = link_to(__('Setting easy login'), 'member/configUID'); $list[] = link_to(__('Delete your %1% account', array('%1%' => $op_config['sns_name'])), 'member/delete'); op_include_list('configEdit', $list, array('title' => __('Settings'))); ?> <?php if ($mobileBottomGadgets) { foreach ($mobileBottomGadgets as $gadget) { if ($gadget->isEnabled()) { include_component($gadget->getComponentModule(), $gadget->getComponentAction(), array('gadget' => $gadget)); } } } ?> <?php slot('op_mobile_footer_menu'); ?>
?> <center> <?php echo pager_total($pager); ?> </center> <?php $list = array(); foreach ($pager->getResults() as $obj) { if ($obj->getForeignObject()) { $list[] = op_format_date($obj->getForeignDate()) . link_to($obj->getForeignTitle(), $obj->getForeignUrl()) . $obj->getForeignObject()->getMember()->getName(); } } $options = array(); $options['border'] = false; op_include_list("tagSearchResult", $list, $options); ?> <?php op_include_pager_navigation($pager, "tag/search?tag=" . mb_convert_encoding($tag, "SJIS", "UTF-8") . "&page=%s"); } else { op_include_box('searchTagResult', __('No contents matches.')); } ?> <hr color="<?php echo $op_color['core_color_11']; ?> " /> <?php
<?php if ($commentPager->getNbResults()) { ?> <hr color="<?php echo $op_color['core_color_11']; ?> "> <center> <?php echo __('Comments', array(), 'form_community'); ?> <br> <?php op_include_pager_total($commentPager); ?> </center> <?php foreach ($commentPager->getResults() as $comment) { $list[] = get_partial('communityTopicComment/comment', array('comment' => $comment)); } op_include_list('commentList', $list, array('border' => true)); if ($commentPager->haveToPaginate()) { op_include_pager_navigation($commentPager, '@communityTopic_show?id=' . $communityTopic->getId() . '&page=%d'); } }
<?php use_helper('opDiary'); ?> <?php if (count($diaryList)) { $list = array(); foreach ($diaryList as $diary) { $list[] = sprintf("[%s] %s<br>%s", op_format_date($diary->created_at, 'XShortDate'), $diary->Member->name, link_to(op_diary_get_title_and_count($diary, false, 28), 'diary_show', $diary)); } $moreInfo = array(); $moreInfo[] = link_to(__('More'), 'diary/listFriend'); $options = array('title' => __('Recently Posted Diaries of %my_friend%', array('%my_friend%' => $op_term['my_friend']->pluralize()->titleize())), 'border' => true, 'moreInfo' => $moreInfo); op_include_list('friendDiaryList', $list, $options); }
<?php op_mobile_page_title(__('Ranking'), __('Participation number No1 %community%')); if ($ranking['number']) { echo '<center>' . __('It is a ranking of a lot of %community% of the participant that are.', array('%community%' => $op_term['community']->pluralize())) . '</center>'; $list = array(); for ($i = 0; $i < $ranking['number']; $i++) { $community = $ranking['model'][$i]; $list[] = __('No%0%', array('%0%' => $ranking['rank'][$i])) . '<br>' . link_to($community->getName(), 'community/home?id=' . $community->getId()) . ' ' . __(':%0% member', array('%0%' => $ranking['count'][$i])); } $options = array('border' => true); op_include_list('rankingList', $list, $options); } else { echo '<center>' . __('No %community%') . '</center>'; }
foreach ($pager->getResults() as $member) { $communityMember = Doctrine::getTable('communityMember')->retrieveByMemberIdAndCommunityId($member->getId(), $community->getId()); $list_str = op_link_to_member($member); $operation = array(); if (!($communityMember->hasPosition(array('admin', 'sub_admin')) || $communityMember->getMemberId() === $sf_user->getMemberId())) { $operation[] = link_to(__('Drop this member'), 'community/dropMember?id=' . $community->getId() . '&member_id=' . $member->getId()); } if ($isAdmin) { if (!$communityMember->hasPosition(array('admin', 'admin_confirm', 'sub_admin'))) { if ($communityMember->hasPosition('sub_admin_confirm')) { $operation[] = __("You are requesting this %community%'s sub-administrator to this member now."); } else { $operation[] = link_to(__("Request this %community%'s sub-administrator to this member"), 'community/subAdminRequest?id=' . $community->getId() . '&member_id=' . $member->getId()); } } elseif ($communityMember->hasPosition('sub_admin')) { $operation[] = link_to(__("Demotion from this %community%'s sub-administrator"), 'community/removeSubAdmin?id=' . $community->getId() . '&member_id=' . $member->getId()); } if (!$communityMember->hasPosition('admin')) { $operation[] = link_to(__("Take over this %community%'s administrator to this member"), 'community/changeAdminRequest?id=' . $community->getId() . '&member_id=' . $member->getId()); } elseif ($communityMember->hasPosition('admin_confirm')) { $operation[] = __("You are taking over this %community%'s administrator to this member now."); } } $list[] = $list_str . (count($operation) ? '<br><br>' . implode('<br>', $operation) : ''); } $option = array('border' => true); op_include_list('memberList', $list, $option); ?> <?php op_include_pager_navigation($pager, '@community_memberManage?page=%d&id=' . $id, array('is_total' => false));
?> </td></tr> </table> <br> <?php $list = array(); foreach ($members as $member) { $list[] = link_to($member->getName(), '@member_profile?id=' . $member->getId()); } $option = array('title' => __('%Community% Members'), 'border' => true, 'moreInfo' => array(link_to(__('More'), 'community/memberList?id=' . $community->getId()))); if ($isAdmin || $isSubAdmin) { $option['moreInfo'][] = link_to(__('Manage member'), 'community/memberManage?id=' . $community->getId()); } op_include_list('communityMember', $list, $option); ?> <?php slot('op_mobile_footer'); ?> <table width="100%"> <tbody><tr><td align="center" bgcolor="<?php echo $op_color["core_color_2"]; ?> "> <font color="<?php echo $op_color["core_color_18"]; ?> "><a href="<?php echo url_for('member/home');
<?php use_helper('opDiary'); ?> <?php if (count($diaryList)) { $list = array(); foreach ($diaryList as $diary) { $list[] = sprintf('[%s] %s', op_format_date($diary->created_at, 'XShortDate'), link_to(op_diary_get_title_and_count($diary, false, 28), 'diary_show', $diary)); } $moreInfo = array(); $moreInfo[] = link_to(__('More'), '@diary_list_member?id=' . $memberId); $options = array('title' => __('Recently Posted Diaries'), 'border' => true, 'moreInfo' => $moreInfo); op_include_list('memberDiaryList', $list, $options); }
<?php use_helper('opDiary'); ?> <?php if (count($list)) { $result = array(); foreach ($list as $diaryCommentUpdate) { $diary = $diaryCommentUpdate->Diary; $result[] = sprintf("[%s] %s<br>%s", op_format_date($diaryCommentUpdate->last_comment_time, 'XShortDate'), $diary->Member->name, link_to(op_diary_get_title_and_count($diary, false, 28), 'diary_show', $diary)); } $moreInfo = array(); $moreInfo[] = link_to(__('More'), '@diary_comment_history'); $options = array('title' => __('Diary Comment History'), 'border' => true, 'moreInfo' => $moreInfo); op_include_list('diaryCommentHistory', $result, $options); }
<?php $list = array(); foreach ($communities as $community) { $list[] = link_to($community->getName(), 'community/home?id=' . $community->getId()); } $option = array('title' => __('%Community% list with this member'), 'border' => true, 'moreInfo' => array(link_to(__('More'), 'community/joinlist?id=' . $member->getId()))); op_include_list('communityList', $list, $option);
?> </font> <?php } ?> <form action="<?php echo url_for('@' . $messageType . 'List'); ?> " method="post"> <?php echo $form->renderHiddenFields(); $_list = array(); foreach ($pager->getResults() as $message) { $_list[] = $form['message_ids[' . $message->getId() . ']']->render() . get_partial($messageType . 'ListRecord', array('message' => $message)); } op_include_list('messageList', $_list, array()); if ('dust' == $messageType) { ?> <input type="submit" name="restore" value="<?php echo __('Restore'); ?> "><br> <?php } ?> <input type="submit" value="<?php echo __('Delete'); ?> "> </form> <center><?php