• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-plugins: Commit

Nucleus CMS日本語版用プラグインのうち、日本語版開発者がサポートしているもの


Commit MetaInfo

Revision0e302c48362f81c925968e573ac89ecc917d9dfa (tree)
Time2006-10-06 15:39:52
Authorshizuki <shizuki@1ca2...>
Commitershizuki

Log Message

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

Change Summary

Incremental Difference

--- a/trunk/NP_TagEX/NP_TagEX.php
+++ b/trunk/NP_TagEX/NP_TagEX.php
@@ -74,6 +74,7 @@ class NP_TagEX extends NucleusPlugin
7474 {
7575 $this->createOption('flg_erase', 'Erase data on uninstall.', 'yesno', 'no');
7676 // <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');
7778 $this->createOption('and', 'template for \'and\'', 'textarea', '<span style="font-family:tahoma;font-size:smaller;"> <a href="<%andurl%>" title="narrow">&amp;</a>.');
7879 $this->createOption('or', 'template for \'or\'', 'textarea', '<a href="<%orurl%>" title="expand">or</a> </span>');
7980 $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){
284285 <?php
285286 echo '<div style="height: 200px;overflow: auto;">' . "\n";
286287 if ($this->getOption('tagsonlycurrent') == no) {
287- $existTags = $this->scanExistTags(0,99999999,1);
288+ $existTags = $this->scanExistTags(0, 99999999, intavl($this->getOption('editTagOrder')));
288289 } else {
289- $existTags = $this->scanExistTags(1,99999999,1, $blogid);
290+ $existTags = $this->scanExistTags(1, 99999999, intavl($this->getOption('editTagOrder')), $blogid);
290291 }
291292 if($existTags){
292293 $existTags = array_keys($existTags);
Show on old repository browser