OSDN Git Service

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@796 1ca29b6e-896d...
authorshizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Tue, 3 Feb 2009 00:11:14 +0000 (00:11 +0000)
committershizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Tue, 3 Feb 2009 00:11:14 +0000 (00:11 +0000)
NP_SearchResultsEX/tags/extra/NP_ItemBname.php [new file with mode: 0644]
NP_SearchResultsEX/tags/extra/highlight.css [new file with mode: 0644]
NP_SearchResultsEX/tags/extra/template_sample.txt [new file with mode: 0644]

diff --git a/NP_SearchResultsEX/tags/extra/NP_ItemBname.php b/NP_SearchResultsEX/tags/extra/NP_ItemBname.php
new file mode 100644 (file)
index 0000000..7b702b6
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+
+class NP_ItemBname extends NucleusPlugin {
+
+       function getName() { return 'ItemBname'; }      
+       function getAuthor() { return ''; }
+       function getURL() { return '../../index.html'; }
+       function getVersion() { return '1.0'; }
+       function getDescription() { return 'Usage:&lt;%ItemBname%&gt; in template'; }
+
+       function doTemplateVar($item) {
+               global $CONF;
+               $thisblogid = getBlogIDFromItemID($item->itemid);
+               $thisblogname = getBlogNameFromID($thisblogid);
+               echo '<a href="'.createBlogIDLink($thisblogid).'">'.$thisblogname.'</a>';
+       }
+
+       function supportsFeature ($what)
+       {
+               switch ($what)
+               {
+                       case 'SqlTablePrefix':
+                               return 1;
+                       default:
+                               return 0;
+               }
+       }
+               
+}
+?>
diff --git a/NP_SearchResultsEX/tags/extra/highlight.css b/NP_SearchResultsEX/tags/extra/highlight.css
new file mode 100644 (file)
index 0000000..729c100
--- /dev/null
@@ -0,0 +1,88 @@
+.highlight_0 {
+  color: #000;
+  background-color: rgb(255, 255, 102);
+  line-height : 1.2em;
+  font-size : 1.1em;
+  font-style : italic;
+  font-weight : bold;
+}
+
+.highlight_1 {
+  color: #000;
+  background-color: rgb(160, 255, 255);
+  line-height : 1.2em;
+  font-size : 1.1em;
+  font-style : italic;
+  font-weight : bold;
+}
+
+.highlight_2 {
+  color: #000;
+  background-color: rgb(153, 255, 153);
+  line-height : 1.2em;
+  font-size : 1.1em;
+  font-style : italic;
+  font-weight : bold;
+}
+
+.highlight_3 {
+  color: #000;
+  background-color: rgb(255, 153, 153);
+  line-height : 1.2em;
+  font-size : 1.1em;
+  font-style : italic;
+  font-weight : bold;
+}
+.highlight_4 {
+  color: #000;
+  background-color: rgb(255, 102, 255);
+  line-height : 1.2em;
+  font-size : 1.1em;
+  font-style : italic;
+  font-weight : bold;
+}
+
+.highlight_5 {
+  color: #fff;
+  background-color: rgb(136, 0, 0);
+  line-height : 1.2em;
+  font-size : 1.1em;
+  font-style : italic;
+  font-weight : bold;
+}
+
+.highlight_6 {
+  color: #fff;
+  background-color: rgb(0, 170, 0);
+  line-height : 1.2em;
+  font-size : 1.1em;
+  font-style : italic;
+  font-weight : bold;
+}
+
+.highlight_7 {
+  color: #fff;
+  background-color: rgb(136, 104, 0);
+  line-height : 1.2em;
+  font-size : 1.1em;
+  font-style : italic;
+  font-weight : bold;
+}
+
+.highlight_8 {
+  color: #fff;
+  background-color: rgb(0, 70, 153);
+  line-height : 1.2em;
+  font-size : 1.1em;
+  font-style : italic;
+  font-weight : bold;
+}
+
+.highlight_9 {
+  color: #fff;
+  background-color: rgb(153, 0, 153);
+  line-height : 1.2em;
+  font-size : 1.1em;
+  font-style : italic;
+  font-weight : bold;
+}
diff --git a/NP_SearchResultsEX/tags/extra/template_sample.txt b/NP_SearchResultsEX/tags/extra/template_sample.txt
new file mode 100644 (file)
index 0000000..0f6a91b
--- /dev/null
@@ -0,0 +1,5 @@
+<h2 class="e_title"><a href="<%itemlink%>" title="<%title%> \82ð\93Ç\82Þ"><%syndicate_title(25)%></a></h2>
+<p class="e_body"><%SearchResultsEX(250,1)%></p>
+<div class="searchT"><%TagEX()%></div>
+<span class="pageURL"><a href="<%itemlink%>"><%itemlink%></a></span>
+<span class="opt">( [<%ItemBname%>] <%date%> <%time%> <%edit%> )</span>
\ No newline at end of file