ここの情報は古いです。ご理解頂いた上でお取り扱いください。

source: OpenPNE3/branches/STABLE/3.0.x/apps/mobile_frontend/modules/community/templates/searchSuccess.php @ 11636

Last change on this file since 11636 was 11636, checked in by nagasawa, 11 years ago

#3880:added the communities search page to the mobile(3.0.x)

File size: 1.3 KB
Line 
1<?php op_mobile_page_title(__('Search Communities')) ?>
2
3<?php if ($isResult): ?>
4<?php if ($pager->getNbResults()): ?>
5<center>
6<?php op_include_pager_total($pager); ?>
7</center>
8<?php
9$list = array();
10foreach ($pager->getResults() as $community)
11{
12  $list[] = link_to(sprintf('%s(%d)', $community->getName(), $community->countCommunityMembers()), 'community/home?id='.$community->getId());
13}
14$option = array(
15  'border' => true,
16);
17op_include_list('communityList', $list, $option);
18?>
19<?php else: ?>
20<?php echo __('Your search queries did not match any communities.') ?>
21<?php endif ?>
22<?php endif ?>
23
24<?php
25$options = array(
26  'url'    => url_for('community/search'),
27  'button' => __('Search'),
28);
29if (!$isResult)
30{
31  $options['moreInfo'] = array(link_to(__('Create a new community'), 'community/edit'));
32}
33
34op_include_form('searchCommunity', $filters, $options);
35?>
36
37<?php if ($isResult): ?>
38
39<?php else: ?>
40<?php
41$list = array();
42foreach ($categorys as $category)
43{
44  $list[] = link_to(sprintf('%s', $category->getName()), 'community/search?community_category_id='.$category->getId());
45}
46$option = array(
47  'border' => true,
48  'title' => __('Categories')
49);
50op_include_list('searchCategory', $list, $option);
51?>
52<?php endif ?>
53
54<?php if ($isResult): ?>
55<hr color="#b3ceef">
56<?php echo link_to(__('Search communities top'), 'community/search'); ?>
57<?php endif ?>
Note: See TracBrowser for help on using the repository browser.