From 4747b51acb3590313722d94d454301f593cb9b22 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Thu, 4 Dec 2008 11:56:55 -0500 Subject: [PATCH] store the block I was working on here also --- .../Service_Scribd/lib/Horde/Block/Scribd.php | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 framework/Service_Scribd/lib/Horde/Block/Scribd.php 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() + { + } + +} -- 2.11.0