Changeset 7351

Show
Ignore:
Timestamp:
03/30/09 10:30:55 (18 months ago)
Author:
inureyes
Message:

refs #1231

  • 기초적인 웹슬라이스 기능 지원
Location:
trunk/library/view
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/library/view/ownerView.php

    r7294 r7351  
    790790                                                            + '&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>'; 
    791791                                                             
    792                                                         if (hasRightVersion && (isMoz || isIE)) { 
     792                                                        if (hasRightVersion && (isMoz || isIE || isMinSafari3)) { 
    793793                                                            if(<?php echo (isset($service['flashuploader']) && !$service['flashuploader']) ? 'false' : 'true';?>) { writeCode(uploaderStr,'uploaderNest'); } 
    794794                                                        } 
     
    866866                                        <script type="text/javascript"> 
    867867                                        //<![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';?>) { 
    869869                                            var deleteButtonContainer = document.getElementById('fileUploadNest'); 
    870870                                            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  
    992992        } 
    993993        dress('rct_'.$prefix.'_rep', $itemsView, $noticeView); 
     994        // IE webslice support 
     995        $noticeView = addWebSlice($noticeView, 'recentNoticeWebslice', htmlspecialchars($blog['title'].' - '._t('최근 공지')));  
    994996    } 
    995997    return $noticeView; 
     
    9981000function getRecentEntriesView($entries, $template) { 
    9991001    global $blog, $service, $blogURL, $skinSetting, $contentContainer; 
    1000     ob_start(); 
     1002    $recentEntriesView = ''; 
    10011003    foreach ($entries as $entry) { 
    10021004        $view = "$template"; 
     
    10071009        dress('rctps_rep_time', fireEvent('ViewRecentPostDate', Timestamp::format2($entry['published']), $entry['published']), $view); 
    10081010        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; 
    10151016} 
    10161017 
    10171018function getRecentCommentsView($comments, $template) { 
    10181019    global $blog, $service, $blogURL, $skinSetting, $contentContainer; 
    1019     ob_start(); 
     1020    $recentCommentView = ''; 
    10201021    foreach ($comments as $comment) { 
    10211022        $view = "$template"; 
     
    10251026        dress('rctrp_rep_time', fireEvent('ViewRecentCommentDate', Timestamp::format2($comment['written']), $comment['written']), $view); 
    10261027        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; 
    10331033} 
    10341034 
     
    10501050} 
    10511051 
    1052 function addXfnAttrs( $url, $xfn, & $view ) 
    1053 { 
     1052function 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 
     1059function addXfnAttrs( $url, $xfn, & $view ) { 
    10541060    $view = str_replace( "href=\"$url\"", "href=\"$url\" rel=\"$xfn\"", $view); 
    10551061    $view = str_replace( "href='$url'", "href='$url' rel=\"$xfn\"", $view);