default.php20180412
8.21 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<?php
/**
* @package Joomla.Site
* @subpackage mod_articles_category
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
$catid = JRequest::getInt('catid');
//echo $catid;
?>
<ul class="category-module<?php echo $moduleclass_sfx; ?>">
<?php if ($grouped) : ?>
<?php foreach ($list as $group_name => $group) : ?>
<li>
<div class="mod-articles-category-group"><?php echo $group_name; ?></div>
<ul>
<?php foreach ($group as $item) : ?>
<li>a
<?php if ($params->get('link_titles') == 1) : ?>
<a class="mod-articles-category-title <?php echo $item->active; ?>" href="<?php echo $item->link; ?>">
<?php echo $item->title; ?>
</a>
<?php else : ?>
<?php echo $item->title; ?>
<?php endif; ?>
<?php if ($item->displayHits) : ?>
<span class="mod-articles-category-hits">
(<?php echo $item->displayHits; ?>)
</span>
<?php endif; ?>
<?php if ($params->get('show_author')) : ?>
<span class="mod-articles-category-writtenby">
<?php echo $item->displayAuthorName; ?>
</span>
<?php endif; ?>
<?php if ($item->displayCategoryTitle) : ?>
<span class="mod-articles-category-category">
(<?php echo $item->displayCategoryTitle; ?>)
</span>
<?php endif; ?>
<?php if ($item->displayDate) : ?>
<span class="mod-articles-category-date"><?php echo $item->displayDate; ?></span>
<?php endif; ?>
<?php if ($params->get('show_introtext')) : ?>
<p class="mod-articles-category-introtext">
<?php echo $item->displayIntrotext; ?>
</p>
<?php endif; ?>
<?php if ($params->get('show_readmore')) : ?>
<p class="mod-articles-category-readmore">
<a class="mod-articles-category-title <?php echo $item->active; ?>" href="<?php echo $item->link; ?>">
<?php if ($item->params->get('access-view') == false) : ?>
<?php echo JText::_('MOD_ARTICLES_CATEGORY_REGISTER_TO_READ_MORE'); ?>
<?php elseif ($readmore = $item->alternative_readmore) : ?>
<?php echo $readmore; ?>
<?php echo JHtml::_('string.truncate', $item->title, $params->get('readmore_limit')); ?>
<?php if ($params->get('show_readmore_title', 0) != 0) : ?>
<?php echo JHtml::_('string.truncate', $this->item->title, $params->get('readmore_limit')); ?>
<?php endif; ?>
<?php elseif ($params->get('show_readmore_title', 0) == 0) : ?>
<?php echo JText::sprintf('MOD_ARTICLES_CATEGORY_READ_MORE_TITLE'); ?>
<?php else : ?>
<?php echo JText::_('MOD_ARTICLES_CATEGORY_READ_MORE'); ?>
<?php echo JHtml::_('string.truncate', $item->title, $params->get('readmore_limit')); ?>
<?php endif; ?>
</a>
</p>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
</li>
<?php endforeach; ?>
<?php else : ?>
<?php foreach ($list as $item) : ?>
<li>
<?php if ($item->displayDate) : ?>
<span class="mod-articles-category-date">
<?php echo $item->displayDate; ?>
</span>
<?php endif; ?>
<?php if(JRequest::getInt('Itemid') == 101){ //TOPのみ?>
<?php if($moduleclass_sfx == 'info02'){?>
<span class="mod-articles-category-category cat10"><a href="/info-record.html">競技成績</a></span>
<?php }?>
<?php if($moduleclass_sfx == 'info03'){?>
<span class="mod-articles-category-category cat2"><a href="/info-exam.html">入試情報</a></span>
<?php }?>
<?php if($moduleclass_sfx == 'info04'){?>
<span class="mod-articles-category-category cat11"><a href="/info-news.html">お知らせ</a></span>
<?php }?>
<?php if($moduleclass_sfx == 'info05'){?>
<span class="mod-articles-category-category cat9"><a href="/info-topix.html">トピックス</a></span>
<?php }?>
<?php if($moduleclass_sfx == 'info01'){?>
<?php if($item->tags->itemTags[0]->tag_id == 10 || $item->tags->itemTags[1]->tag_id == 10 || $item->tags->itemTags[2]->tag_id == 10 || $item->tags->itemTags[3]->tag_id == 10 || $item->tags->itemTags[4]->tag_id == 10 || $item->tags->itemTags[5]->tag_id == 10 || $item->tags->itemTags[6]->tag_id == 10 || $item->tags->itemTags[7]->tag_id == 10 || $item->tags->itemTags[8]->tag_id == 10){ echo '<span class="mod-articles-category-category cat10"><a href="/info-record.html">競技成績</a></span>';} else {?>
<?php if($item->tags->itemTags[0]->tag_id == 2 || $item->tags->itemTags[1]->tag_id == 2 || $item->tags->itemTags[2]->tag_id == 2 || $item->tags->itemTags[3]->tag_id == 2 || $item->tags->itemTags[4]->tag_id == 2 || $item->tags->itemTags[5]->tag_id == 2 || $item->tags->itemTags[6]->tag_id == 2 || $item->tags->itemTags[7]->tag_id == 2 || $item->tags->itemTags[8]->tag_id == 2){ echo '<span class="mod-articles-category-category cat2"><a href="/info-exam.html">入試情報</a></span>';} else {?>
<?php if($item->tags->itemTags[0]->tag_id == 11 || $item->tags->itemTags[1]->tag_id == 11 || $item->tags->itemTags[2]->tag_id == 11 || $item->tags->itemTags[3]->tag_id == 11 || $item->tags->itemTags[4]->tag_id == 11 || $item->tags->itemTags[5]->tag_id == 11 || $item->tags->itemTags[6]->tag_id == 11 || $item->tags->itemTags[7]->tag_id == 11 || $item->tags->itemTags[8]->tag_id == 11){ echo '<span class="mod-articles-category-category cat11"><a href="/info-news.html">お知らせ</a></span>';} else {?>
<?php if($item->tags->itemTags[0]->tag_id == 9 || $item->tags->itemTags[1]->tag_id == 9 || $item->tags->itemTags[2]->tag_id == 9 || $item->tags->itemTags[3]->tag_id == 9 || $item->tags->itemTags[4]->tag_id == 9 || $item->tags->itemTags[5]->tag_id == 9 || $item->tags->itemTags[6]->tag_id == 9 || $item->tags->itemTags[7]->tag_id == 9 || $item->tags->itemTags[8]->tag_id == 9){ echo '<span class="mod-articles-category-category cat9"><a href="/info-topix.html">トピックス</a></span>';}}}}?>
<?php
}
} else { //TOP以外?>
<?php if ($item->displayCategoryTitle) : ?>
<span class="mod-articles-category-category cat<?php echo $item->catid; ?>">
<?php echo $item->displayCategoryTitle; ?>
</span>
<?php endif;
} //閉じる?>
<?php if ($params->get('link_titles') == 1) : ?>
<a class="mod-articles-category-title <?php echo $item->active; ?>" href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a>
<?php else : ?>
<?php echo $item->title; ?>
<?php endif; ?>
<?php if ($item->displayHits) : ?>
<span class="mod-articles-category-hits">
(<?php echo $item->displayHits; ?>)
</span>
<?php endif; ?>
<?php if ($params->get('show_author')) : ?>
<span class="mod-articles-category-writtenby">
<?php echo $item->displayAuthorName; ?>
</span>
<?php endif; ?>
<?php if ($params->get('show_introtext')) : ?>
<p class="mod-articles-category-introtext">
<?php echo $item->displayIntrotext; ?>
</p>
<?php endif; ?>
<?php if ($params->get('show_readmore')) : ?>
<p class="mod-articles-category-readmore">
<a class="mod-articles-category-title <?php echo $item->active; ?>" href="<?php echo $item->link; ?>">
<?php if ($item->params->get('access-view') == false) : ?>
<?php echo JText::_('MOD_ARTICLES_CATEGORY_REGISTER_TO_READ_MORE'); ?>
<?php elseif ($readmore = $item->alternative_readmore) : ?>
<?php echo $readmore; ?>
<?php echo JHtml::_('string.truncate', $item->title, $params->get('readmore_limit')); ?>
<?php elseif ($params->get('show_readmore_title', 0) == 0) : ?>
<?php echo JText::sprintf('MOD_ARTICLES_CATEGORY_READ_MORE_TITLE'); ?>
<?php else : ?>
<?php echo JText::_('MOD_ARTICLES_CATEGORY_READ_MORE'); ?>
<?php echo JHtml::_('string.truncate', $item->title, $params->get('readmore_limit')); ?>
<?php endif; ?>
</a>
</p>
<?php endif; ?>
</li>
<?php endforeach; ?>
<?php endif; ?>
</ul>