From eda84204fbe210f4d88296954a33fa5e310194d2 Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 12 Jan 2010 02:37:17 +0000 Subject: Added phpdoc header to index.php Added RSS support to search. Nifty. git-svn-id: http://code.elgg.org/elgg/trunk@3800 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/search/views/rss/search/entity.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 mod/search/views/rss/search/entity.php (limited to 'mod/search/views/rss/search/entity.php') diff --git a/mod/search/views/rss/search/entity.php b/mod/search/views/rss/search/entity.php new file mode 100644 index 000000000..8c3609fe5 --- /dev/null +++ b/mod/search/views/rss/search/entity.php @@ -0,0 +1,32 @@ +, The MITRE Corporation + * @link http://elgg.org/ + */ + +$title = $vars['entity']->title; +if (empty($title)) { + $title = substr($vars['entity']->description, 0, 32); + if (strlen($vars['entity']->description) > 32) { + $title .= " ..."; + } +} + +?> + + +getURL()); ?> +time_created) ?> +getURL()); ?> +<![CDATA[<?php echo $title; ?>]]> +summary; + if (!empty($summary)) echo wpautop($summary); + echo (autop($vars['entity']->description)); +?>]]> + -- cgit v1.2.3