Nucleus CMS日本語版用プラグインのうち、日本語版開発者がサポートしているもの
Revision | 0e302c48362f81c925968e573ac89ecc917d9dfa (tree) |
---|---|
Time | 2006-10-06 15:39:52 |
Author | shizuki <shizuki@1ca2...> |
Commiter | shizuki |
tag order selectabke on edit and add item form
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@426 1ca29b6e-896d-4ea0-84a5-967f57386b96
@@ -74,6 +74,7 @@ class NP_TagEX extends NucleusPlugin | ||
74 | 74 | { |
75 | 75 | $this->createOption('flg_erase', 'Erase data on uninstall.', 'yesno', 'no'); |
76 | 76 | // <editable template mod by shizuki> |
77 | + $this->createOption('editTagOrder', 'editform tag order', 'select', '1', '1|amount(desc)|2|amount(asc)|3|tag\'s order|4|random'); | |
77 | 78 | $this->createOption('and', 'template for \'and\'', 'textarea', '<span style="font-family:tahoma;font-size:smaller;"> <a href="<%andurl%>" title="narrow">&</a>.'); |
78 | 79 | $this->createOption('or', 'template for \'or\'', 'textarea', '<a href="<%orurl%>" title="expand">or</a> </span>'); |
79 | 80 | $this->createOption('tagIndex', 'template for \'tagIndex\'', 'textarea', '<%and%><%or%><span style="font-size:<%fontlevel%>em" title="<%tagamount%> post(s)! <%tagitems%>"><a href="<%taglinkurl%>"><%tag%></a></span>'); |
@@ -284,9 +285,9 @@ function resetOlder(old){ | ||
284 | 285 | <?php |
285 | 286 | echo '<div style="height: 200px;overflow: auto;">' . "\n"; |
286 | 287 | if ($this->getOption('tagsonlycurrent') == no) { |
287 | - $existTags = $this->scanExistTags(0,99999999,1); | |
288 | + $existTags = $this->scanExistTags(0, 99999999, intavl($this->getOption('editTagOrder'))); | |
288 | 289 | } else { |
289 | - $existTags = $this->scanExistTags(1,99999999,1, $blogid); | |
290 | + $existTags = $this->scanExistTags(1, 99999999, intavl($this->getOption('editTagOrder')), $blogid); | |
290 | 291 | } |
291 | 292 | if($existTags){ |
292 | 293 | $existTags = array_keys($existTags); |