- Timestamp:
- 06/21/09 09:02:57 (9 months ago)
- Location:
- trunk/library
- Files:
-
- 4 modified
-
model/blog.feed.php (modified) (2 diffs)
-
model/blog.response.remote.php (modified) (1 diff)
-
model/common.plugin.php (modified) (1 diff)
-
view/view.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/library/model/blog.feed.php
r7643 r7648 102 102 $entryURL = $defaultURL . '/' . ($blog['useSloganOnPost'] ? 'entry/' . rawurlencode($row['slogan']) : $row['id']); 103 103 104 $content = getEntryContentView($row['blogid'], $row['id'], $row['content'], $row['contentFormatter'], true, 'Post', true, 'rss');104 $content = getEntryContentView($row['blogid'], $row['id'], $row['content'], $row['contentFormatter'], true, 'Post', true, true); 105 105 $content = preg_replace('/<a href=("|\')(#[^\1]+)\1/i', '<a href=$1' . htmlspecialchars($entryURL) . '$2$1', $content); 106 106 if (!$blog['publishWholeOnRSS']) { … … 110 110 $item = array( 111 111 'id' => $row['id'], 112 'title' => RSSMessage(fireEvent('ViewPostTitle', $row['title'], $row['id'] , 'rss')),112 'title' => RSSMessage(fireEvent('ViewPostTitle', $row['title'], $row['id'])), 113 113 'link' => $entryURL, 114 114 'categories' => array(), 'description' => RSSMessage($content), -
trunk/library/model/blog.response.remote.php
r7643 r7648 339 339 return false; 340 340 $link = "$defaultURL/$entryId"; 341 $title = fireEvent('ViewPostTitle', $entry['title'], $entry['id'] , 'trackback');342 $entry['content'] = getEntryContentView($blogid, $entryId, $entry['content'], $entry['contentFormatter'], getKeywordNames($blogid) , 'Post', false, 'trackback');341 $title = fireEvent('ViewPostTitle', $entry['title'], $entry['id']); 342 $entry['content'] = getEntryContentView($blogid, $entryId, $entry['content'], $entry['contentFormatter'], getKeywordNames($blogid)); 343 343 $excerpt = str_tag_on(UTF8::lessen(removeAllTags(stripHTML($entry['content'])), 255)); 344 344 $blogTitle = $blog['title']; -
trunk/library/model/common.plugin.php
r7643 r7648 310 310 $pluginURL = "{$service['path']}/plugins/{$mapping['plugin']}"; 311 311 $pluginPath = ROOT . "/plugins/{$mapping['plugin']}"; 312 if ($condition === true) 313 $target = call_user_func($mapping['listener'], $target, $mother); 314 else 315 $target = call_user_func($mapping['listener'], $target, $mother, $condition); 312 $target = call_user_func($mapping['listener'], $target, $mother); 316 313 } 317 314 } -
trunk/library/view/view.php
r7645 r7648 1141 1141 } 1142 1142 1143 function getEntryContentView($blogid, $id, $content, $formatter, $keywords = array(), $type = 'Post', $useAbsolutePath = false, $ commonMode = true) {1143 function getEntryContentView($blogid, $id, $content, $formatter, $keywords = array(), $type = 'Post', $useAbsolutePath = false, $bRssMode = false) { 1144 1144 global $hostURL, $service; 1145 1145 requireModel('blog.attachment'); 1146 1146 requireModel('blog.keyword'); 1147 1147 $content = fireEvent('Format' . $type . 'Content', $content, $id); 1148 $func = ($ commonMode !== true ? 'summarizeContent' : 'formatContent');1148 $func = ($bRssMode ? 'summarizeContent' : 'formatContent'); 1149 1149 $view = $func($blogid, $id, $content, $formatter, $keywords, $useAbsolutePath); 1150 1150 if (defined('__TEXTCUBE_MOBILE__')) … … 1154 1154 1155 1155 if (!empty($keywords) && is_array($keywords)) $view = bindKeywords($keywords, $view); 1156 $view = fireEvent('View' . $type . 'Content', $view, $id , $commonMode);1156 $view = fireEvent('View' . $type . 'Content', $view, $id); 1157 1157 1158 1158 // image resampling
