From: Chuck Hagenbuch Date: Thu, 4 Dec 2008 16:56:55 +0000 (-0500) Subject: store the block I was working on here also X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4747b51acb3590313722d94d454301f593cb9b22;p=horde.git store the block I was working on here also --- diff --git a/framework/Service_Scribd/lib/Horde/Block/Scribd.php b/framework/Service_Scribd/lib/Horde/Block/Scribd.php new file mode 100644 index 000000000..3ac6679ac --- /dev/null +++ b/framework/Service_Scribd/lib/Horde/Block/Scribd.php @@ -0,0 +1,60 @@ +_list(); + if (is_array($this->_docs)) { + $html = ''; + $count = 0; + foreach ($this->_feed as $entry) { + if ($count++ > $this->_params['limit']) { + break; + } + $html .= '_params['details'])) { + $html .= ' title="' . htmlspecialchars(strip_tags($entry->description())) . '"'; + } + $html .= '>' . htmlspecialchars($entry->title) . ''; + if (!empty($this->_params['details'])) { + $html .= '
' . htmlspecialchars(strip_tags($entry->description())). "
\n"; + } + $html .= '
'; + } + return $html; + } elseif (is_string($docs)) { + return $docs; + } else { + return ''; + } + } + + function _list() + { + } + +}