Changeset 5958
- Timestamp:
- 05/17/08 08:07:52 (6 months ago)
- Location:
- trunk
- Files:
-
- 4 modified
-
interface/owner/skin/sidebar/preview/index.php (modified) (1 diff)
-
lib/model/blog.notice.php (modified) (1 diff)
-
lib/piece/blog/end.php (modified) (1 diff)
-
lib/piece/blog/entries.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/interface/owner/skin/sidebar/preview/index.php
r5905 r5958 144 144 $itemView = $recentNoticeItem; 145 145 dress('notice_rep_title', htmlspecialchars(fireEvent('ViewNoticeTitle', UTF8::lessenAsEm($notice['title'], $skinSetting['recentNoticeLength']), $notice['id'])), $itemView); 146 dress('notice_rep_link', "$blogURL/notice/ {$notice['id']}", $itemView);146 dress('notice_rep_link', "$blogURL/notice/".($blog['useSloganOnPost'] ? URL::encode($notice['slogan'], $itemView) : $notice['id']), $itemView); 147 147 $itemsView .= $itemView; 148 148 } -
trunk/lib/model/blog.notice.php
r5285 r5958 25 25 global $database; 26 26 $visibility = doesHaveOwnership() ? '' : 'AND visibility = 2'; 27 return POD::queryAll("SELECT id, title, published FROM {$database['prefix']}Entries WHERE blogid = $blogid AND draft = 0 $visibility AND category = -2 ORDER BY published DESC");27 return POD::queryAll("SELECT id, title, slogan, published FROM {$database['prefix']}Entries WHERE blogid = $blogid AND draft = 0 $visibility AND category = -2 ORDER BY published DESC"); 28 28 } 29 29 ?> -
trunk/lib/piece/blog/end.php
r5922 r5958 63 63 $itemView = $skin->recentNoticeItem; 64 64 dress('notice_rep_title', htmlspecialchars(fireEvent('ViewNoticeTitle', UTF8::lessenAsEm($notice['title'], $skinSetting['recentNoticeLength']), $notice['id'])), $itemView); 65 dress('notice_rep_link', "$blogURL/notice/ {$notice['id']}", $itemView);65 dress('notice_rep_link', "$blogURL/notice/".($blog['useSloganOnPost'] ? URL::encode($notice['slogan'], $itemView) : $notice['id']), $itemView); 66 66 $itemsView .= $itemView; 67 67 } -
trunk/lib/piece/blog/entries.php
r5754 r5958 34 34 foreach ($entries as $entry) { 35 35 if ($suri['directive'] == '/notice') 36 $permalink = "$blogURL/notice/ {$entry['id']}";36 $permalink = "$blogURL/notice/" . ($blog['useSloganOnPost'] ? URL::encode($entry['slogan'], $service['useEncodedURL']) : $entry['id']); 37 37 else if ($suri['directive'] == '/page') 38 38 $permalink = "$blogURL/page/{$entry['id']}"; … … 56 56 dress('notice_rep_date', fireEvent('ViewNoticeDate', Timestamp::format5($entry['published']), $entry['published']), $entryView); 57 57 dress('notice_rep_title', htmlspecialchars(fireEvent('ViewNoticeTitle', $entry['title'], $entry['id'])), $entryView); 58 if ($suri['directive'] == '/notice') 59 dress('notice_rep_link', "$blogURL/notice/{$entry['id']}", $entryView); 60 else 61 dress('notice_rep_link', "$blogURL/page/{$entry['id']}", $entryView); 58 dress('notice_rep_link', $permalink, $entryView); 62 59 63 60 // 사용자가 작성한 본문은 lib/piece/blog/end.php의 removeAllTags() 다음에 처리하기 위한 조치.
