• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-plugins: Commit

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


Commit MetaInfo

Revision803ca03bea14ef5ba6379ebb0f43078c4a803105 (tree)
Time2006-10-08 14:21:26
Authorshizuki <shizuki@1ca2...>
Commitershizuki

Log Message

<%TagEX(tag)%> リンクつきで出力

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@433 1ca29b6e-896d-4ea0-84a5-967f57386b96

Change Summary

Incremental Difference

--- a/trunk/NP_TagEX/NP_TagEX.php
+++ b/trunk/NP_TagEX/NP_TagEX.php
@@ -74,16 +74,16 @@ 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');
77+ $this->createOption('editTagOrder', 'editform tag order', 'select', '1', 'amount(desc)|1|amount(asc)|2|tag\'s order|3|random|4');
7878 $this->createOption('and', 'template for \'and\'', 'textarea', '<span style="font-family:tahoma;font-size:smaller;"> <a href="<%andurl%>" title="narrow">&amp;</a>.');
7979 $this->createOption('or', 'template for \'or\'', 'textarea', '<a href="<%orurl%>" title="expand">or</a> </span>');
8080 $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>');
8181 $this->createOption('tagItemHeader', 'template for \'tagItemHeader\'', 'textarea', '');
8282 $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', ' , ');
8484 $this->createOption('tagItemFooter', 'template for \'tagItemFooter\'', 'textarea', '');
8585 $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');
8787 $this->createOption('colorfulhighlight', 'colorful highlight mode ?', 'yesno', 'no');
8888 $this->createOption('highlight', 'template for normal highlightmode', 'text', '<span class="highlight">\0</span>');
8989 //</mod by shizuki>*/
@@ -773,9 +773,15 @@ function resetOlder(old){
773773
774774 case 'tag':
775775 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);
777780 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);
779785 }
780786 echo '<h1> Tag for <u>"' . $reqANDp . $reqORp . '"</u></h1>';
781787 }
Show on old repository browser