Changeset 2626
- Timestamp:
- 11/30/06 04:37:05 (2 years ago)
- Files:
-
- 1 modified
-
branches/1.1-beta/lib/view/view.php (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1-beta/lib/view/view.php
r2579 r2626 24 24 25 25 function dress($tag, $value, & $contents) { 26 if ( eregi("\[##_{$tag}_##\]", $contents, $temp)) {26 if (preg_match("@\\[##_{$tag}_##\\]@iU", $contents)) { 27 27 $contents = str_replace("[##_{$tag}_##]", $value, $contents); 28 28 return true; … … 357 357 } 358 358 359 function getTrackbacksView($entryId, &$skin) {359 function getTrackbacksView($entryId, $skin) { 360 360 global $suri, $defaultURL, $skinSetting, $blogURL, $service; 361 361 $trackbacksContainer = $skin->trackbackContainer; … … 392 392 } 393 393 394 function getCommentView($entryId, &$skin) {395 global $database, $blogURL, $service, $owner, $suri, $paging , $blog;394 function getCommentView($entryId, $skin) { 395 global $database, $blogURL, $service, $owner, $suri, $paging; 396 396 //if ($entryId <= 0) 397 397 // return getGuestCommentView($entryId, $skin); … … 402 402 $prefix1 = 'rp'; 403 403 $isComment = true; 404 $SubItem = 'commentSubItem';405 404 } else { 406 405 $prefix1 = 'guest'; 407 406 $isComment = false; 408 $SubItem = 'guestSubItem';409 407 } 410 408 $commentView = ($isComment ? $skin->comment : $skin->guest); … … 559 557 } 560 558 561 function getGuestCommentView($entryId, &$skin) {559 function getGuestCommentView($entryId, $skin) { 562 560 global $blogURL, $owner, $suri, $paging, $blog, $skinSetting; 563 561 $authorized = doesHaveOwnership(); … … 565 563 $prefix1 = 'rp'; 566 564 $isComment = true; 567 $SubItem = 'commentSubItem';568 565 } else { 569 566 $prefix1 = 'guest'; 570 567 $isComment = false; 571 $SubItem = 'guestSubItem';572 568 } 573 569 $commentView = "<form method=\"post\" action=\"$blogURL/comment/add/$entryId\" onsubmit=\"return false\" style=\"margin: 0\">" . ($isComment ? $skin->comment : $skin->guest) . '</form>'; … … 981 977 } 982 978 983 function getArchivesView($archives, &$template) {979 function getArchivesView($archives, $template) { 984 980 global $blogURL; 985 981 ob_start(); … … 1098 1094 } 1099 1095 1100 function getRecentEntriesView($entries, &$template) {1096 function getRecentEntriesView($entries, $template) { 1101 1097 global $blogURL, $skinSetting; 1102 1098 ob_start(); … … 1113 1109 } 1114 1110 1115 function getRecentCommentsView($comments, &$template) {1111 function getRecentCommentsView($comments, $template) { 1116 1112 global $blogURL, $skinSetting; 1117 1113 ob_start(); … … 1129 1125 } 1130 1126 1131 function getRecentTrackbacksView($trackbacks, &$template) {1127 function getRecentTrackbacksView($trackbacks, $template) { 1132 1128 global $blogURL, $skinSetting; 1133 1129 ob_start(); … … 1145 1141 } 1146 1142 1147 function getLinksView($links, &$template) {1143 function getLinksView($links, $template) { 1148 1144 global $blogURL, $skinSetting; 1149 1145 ob_start(); … … 1159 1155 } 1160 1156 1161 function getRandomTagsView($tags, &$template) {1157 function getRandomTagsView($tags, $template) { 1162 1158 global $blogURL; 1163 1159 ob_start(); … … 1283 1279 $attributes = explode('|', substr($view, $start + 4, $end - $start - 4)); 1284 1280 $prefix = ''; 1285 $postfix = '';1286 1281 $buf = ''; 1287 1282 if ($attributes[0] == 'Gallery') { … … 1830 1825 <div id="entryHead"> 1831 1826 <div class="title"><a href="<?php echo htmlspecialchars($entry['permalink']);?>" onclick="window.open(this.href); return false;"><?php echo htmlspecialchars($entry['entry_title']);?></a></div> 1832 <div class="writing-info"><span class="by">by </span><span class="name"><?php echo htmlspecialchars($entry['author'] ? eregi_replace("^\ ((.+)\)$", "\\1", $entry['author']) : $entry['blog_title']);?></span><span class="divider"> : </span><span class="date"><?php echo date('Y-m-d H:i:s', $entry['written']);?></span></div>1827 <div class="writing-info"><span class="by">by </span><span class="name"><?php echo htmlspecialchars($entry['author'] ? eregi_replace("^\\((.+)\\)$", "\\1", $entry['author']) : $entry['blog_title']);?></span><span class="divider"> : </span><span class="date"><?php echo date('Y-m-d H:i:s', $entry['written']);?></span></div> 1833 1828 <div class="open"><a id="entryPermalink" href="<?php echo htmlspecialchars($entry['permalink']);?>" onclick="window.open(this.href); return false;" title="<?php echo _t('이 포스트를 새 창으로 엽니다.');?>"><span class="text"><?php echo _t('새 창으로');?></span></a></div> 1834 1829 </div>
