-
Notifications
You must be signed in to change notification settings - Fork 2
/
header.ctp
38 lines (35 loc) · 1.18 KB
/
header.ctp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* ステータスの絞り込み
*
* @author Noriko Arai <arai@nii.ac.jp>
* @author Shohei Nakajima <nakajimashouhei@gmail.com>
* @link http://www.netcommons.org NetCommons Project
* @license http://www.netcommons.org/license.txt NetCommons License
* @copyright Copyright 2014, NetCommons Project
*/
$named = $this->Paginator->params['named'];
$named['page'] = '1';
$url = NetCommonsUrl::blockUrl($named);
?>
<header>
<?php if ($topicFrameSetting['unit_type'] === TopicFrameSetting::UNIT_TYPE_DAYS) : ?>
<?php echo $this->DisplayNumber->dropDownToggleDays(array(
'currentDays' => $topicFrameSetting['display_days'],
'url' => $url
)); ?>
<?php else : ?>
<?php echo $this->DisplayNumber->dropDownToggle(array(
'currentLimit' => $topicFrameSetting['display_number'],
'url' => $url
)); ?>
<?php endif; ?>
<?php if (Current::read('User.id')) : ?>
<?php echo $this->Topics->dropdownStatus(); ?>
<?php endif; ?>
<?php if ($topicFrameSetting['use_rss_feed']) : ?>
<a target="_blank" class="btn btn-info btn-xs" href="<?php echo $this->NetCommonsHtml->url(['action' => 'index.xml']); ?>">
<?php echo __d('topics', 'RSS2.0'); ?>
</a>
<?php endif; ?>
</header>