Nucleus CMS日本語版用プラグインのうち、日本語版開発者がサポートしているもの
Revision | 803ca03bea14ef5ba6379ebb0f43078c4a803105 (tree) |
---|---|
Time | 2006-10-08 14:21:26 |
Author | shizuki <shizuki@1ca2...> |
Commiter | shizuki |
<%TagEX(tag)%> リンクつきで出力
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@433 1ca29b6e-896d-4ea0-84a5-967f57386b96
@@ -74,16 +74,16 @@ 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 | + $this->createOption('editTagOrder', 'editform tag order', 'select', '1', 'amount(desc)|1|amount(asc)|2|tag\'s order|3|random|4'); | |
78 | 78 | $this->createOption('and', 'template for \'and\'', 'textarea', '<span style="font-family:tahoma;font-size:smaller;"> <a href="<%andurl%>" title="narrow">&</a>.'); |
79 | 79 | $this->createOption('or', 'template for \'or\'', 'textarea', '<a href="<%orurl%>" title="expand">or</a> </span>'); |
80 | 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>'); |
81 | 81 | $this->createOption('tagItemHeader', 'template for \'tagItemHeader\'', 'textarea', ''); |
82 | 82 | $this->createOption('tagItem', 'template for \'tagItem\'', 'textarea', '<%itemid%>:<%itemtitle%>'); |
83 | - $this->createOption('tagItemSeparator', 'template for \'tagItemSeparator\'', 'textarea', ' , '); | |
83 | + $this->createOption('tagItemSeparator', 'template for \'tagItemSeparator\'', 'text', ' , '); | |
84 | 84 | $this->createOption('tagItemFooter', 'template for \'tagItemFooter\'', 'textarea', ''); |
85 | 85 | $this->createOption('tagIndexSeparator', 'template for \'tagIndexSeparator\'', 'text', ' | '); |
86 | - $this->createOption('tagsonlycurrent', 'show tags only current items have', 'yesno', 'no'); | |
86 | + $this->createOption('tagsonlycurrent', 'show tags only current blog have', 'yesno', 'no'); | |
87 | 87 | $this->createOption('colorfulhighlight', 'colorful highlight mode ?', 'yesno', 'no'); |
88 | 88 | $this->createOption('highlight', 'template for normal highlightmode', 'text', '<span class="highlight">\0</span>'); |
89 | 89 | //</mod by shizuki>*/ |
@@ -773,9 +773,15 @@ function resetOlder(old){ | ||
773 | 773 | |
774 | 774 | case 'tag': |
775 | 775 | if ($requestTarray) { |
776 | - $reqANDp = @join('"+"', $reqAND); | |
776 | + foreach ($reqAND as $val) { | |
777 | + $reqAndLink[] = '<a href="' . $this->creatTagLink($val) . '" title="' . $val . '">' . $val . '</a>'; | |
778 | + } | |
779 | + $reqANDp = @join('" + "', $reqAndLink); | |
777 | 780 | if ($reqOR) { |
778 | - $reqORp = '"</u> or <u>"' . @join('"</u> or <u>"', $reqOR); | |
781 | + foreach ($reqOR as $val) { | |
782 | + $reqOrLink[] = '<a href="' . $this->creatTagLink($val) . '" title="' . $val . '">' . $val . '</a>'; | |
783 | + } | |
784 | + $reqORp = '"</u> or <u>"' . @join('"</u> or <u>"', $reqOrLink); | |
779 | 785 | } |
780 | 786 | echo '<h1> Tag for <u>"' . $reqANDp . $reqORp . '"</u></h1>'; |
781 | 787 | } |