Changeset 7351
- Timestamp:
- 03/30/09 10:30:55 (18 months ago)
- Location:
- trunk/library/view
- Files:
-
- 2 modified
-
ownerView.php (modified) (2 diffs)
-
view.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/library/view/ownerView.php
r7294 r7351 790 790 + '&maxSize=<?php echo $maxSize;?>&sessionName=TSSESSION&sessionValue=<?php echo $_COOKIE[Session::getName()];?>" width="400" height="40" align="middle" wmode="transparent" quality="high" bgcolor="#ffffff" scale="noScale" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /><\/embed><\/object>'; 791 791 792 if (hasRightVersion && (isMoz || isIE )) {792 if (hasRightVersion && (isMoz || isIE || isMinSafari3)) { 793 793 if(<?php echo (isset($service['flashuploader']) && !$service['flashuploader']) ? 'false' : 'true';?>) { writeCode(uploaderStr,'uploaderNest'); } 794 794 } … … 866 866 <script type="text/javascript"> 867 867 //<![CDATA[ 868 if (!DetectFlashVer(8, 0, 0) || !(isIE || isMoz ) || <?php echo (isset($service['flashuploader']) && !$service['flashuploader']) ? 'true' : 'false';?>) {868 if (!DetectFlashVer(8, 0, 0) || !(isIE || isMoz || isMinSafari3) || <?php echo (isset($service['flashuploader']) && !$service['flashuploader']) ? 'true' : 'false';?>) { 869 869 var deleteButtonContainer = document.getElementById('fileUploadNest'); 870 870 deleteButtonContainer.innerHTML = '<input type="button" id="deleteBtn" class="input-button" value="<?php echo _t('삭제하기');?>" onclick="deleteAttachment();return false" />' + deleteButtonContainer.innerHTML; -
trunk/library/view/view.php
r7308 r7351 992 992 } 993 993 dress('rct_'.$prefix.'_rep', $itemsView, $noticeView); 994 // IE webslice support 995 $noticeView = addWebSlice($noticeView, 'recentNoticeWebslice', htmlspecialchars($blog['title'].' - '._t('최근 공지'))); 994 996 } 995 997 return $noticeView; … … 998 1000 function getRecentEntriesView($entries, $template) { 999 1001 global $blog, $service, $blogURL, $skinSetting, $contentContainer; 1000 ob_start();1002 $recentEntriesView = ''; 1001 1003 foreach ($entries as $entry) { 1002 1004 $view = "$template"; … … 1007 1009 dress('rctps_rep_time', fireEvent('ViewRecentPostDate', Timestamp::format2($entry['published']), $entry['published']), $view); 1008 1010 dress('rctps_rep_rp_cnt', "<span id=\"commentCountOnRecentEntries{$entry['id']}\">".($entry['comments'] > 0 ? "({$entry['comments']})" : '').'</span>', $view); 1009 print $view; 1010 } 1011 $view = ob_get_contents(); 1012 ob_end_clean(); 1013 1014 return $view; 1011 $recentEntriesView .= $view; 1012 } 1013 // IE webslice support 1014 $recentEntriesView = addWebSlice($recentEntriesView, 'recentEntriesWebslice', htmlspecialchars($blog['title'].' - '._t('최근 글'))); 1015 return $recentEntriesView; 1015 1016 } 1016 1017 1017 1018 function getRecentCommentsView($comments, $template) { 1018 1019 global $blog, $service, $blogURL, $skinSetting, $contentContainer; 1019 ob_start();1020 $recentCommentView = ''; 1020 1021 foreach ($comments as $comment) { 1021 1022 $view = "$template"; … … 1025 1026 dress('rctrp_rep_time', fireEvent('ViewRecentCommentDate', Timestamp::format2($comment['written']), $comment['written']), $view); 1026 1027 dress('rctrp_rep_name', htmlspecialchars(UTF8::lessenAsEm($comment['name'], $skinSetting['recentCommentLength'])), $view); 1027 print $view; 1028 } 1029 $view = ob_get_contents(); 1030 ob_end_clean(); 1031 1032 return $view; 1028 $recentCommentView .= $view; 1029 } 1030 // IE webslice support 1031 $recentCommentView = addWebSlice($recentCommentView, 'recentCommentWebslice', htmlspecialchars($blog['title'].' - '._t('최근 댓글'))); 1032 return $recentCommentView; 1033 1033 } 1034 1034 … … 1050 1050 } 1051 1051 1052 function addXfnAttrs( $url, $xfn, & $view ) 1053 { 1052 function addWebSlice($content, $id, $title) { 1053 return '<div class="hslice" id="'.$id.'">'.CRLF. 1054 '<h4 class="entry-title" style="hidden">'.$title.'</h4>'.CRLF. 1055 '<div class="entry-content">'.CRLF.$content.CRLF.'</div>'.CRLF. 1056 '</div>'.CRLF; 1057 } 1058 1059 function addXfnAttrs( $url, $xfn, & $view ) { 1054 1060 $view = str_replace( "href=\"$url\"", "href=\"$url\" rel=\"$xfn\"", $view); 1055 1061 $view = str_replace( "href='$url'", "href='$url' rel=\"$xfn\"", $view);
