Show
Ignore:
Timestamp:
05/05/08 06:54:59 (8 months ago)
Author:
inureyes
Message:

#897

  • openid를 별도의 메뉴로 두지 않고 각 부분에 맞게 나누어 융화시킴.
  • TODO : 오픈아이디 목록을 소통쪽으로 이동
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/interface/owner/setting/blog/index.php

    r5866 r5873  
    113113                                        request.onSuccess = function() { 
    114114                                            PM.showMessage("<?php echo _t('저장되었습니다');?>", "center", "bottom"); 
    115 alert(newDefaultDomain); 
    116 alert(newSecondaryDomain); 
    117 alert(secondaryDomain); 
     115//alert(newDefaultDomain); 
     116//alert(newSecondaryDomain); 
     117//alert(secondaryDomain); 
    118118                                            if(newDefaultDomain == 0) { 
    119119                                                alert("<?php echo _t('변경된 1차 블로그 주소로 이동합니다');?>"); 
     
    332332                                        } 
    333333                                        request.send(); 
     334                                    } 
     335                                    try { 
     336                                        var oonly = document.getElementById( 'openidonlycomment' ); 
     337                                        oonly = oonly.checked ? "1" : "0"; 
     338                                        var ologo = document.getElementById( 'openidlogodisplay' ); 
     339                                        ologo = ologo.checked ? "1" : "0"; 
     340                                        var request = new HTTPRequest("POST", "<?php echo $blogURL;?>/owner/setting/openid/change"); 
     341                                        request.onSuccess = function() { 
     342                                            PM.showMessage("<?php echo _t('저장되었습니다.');?>", "center", "bottom"); 
     343                                        } 
     344                                        request.onError = function() { 
     345                                            PM.showErrorMessage("<?php echo _t('저장하지 못했습니다.');?>","center", "bottom"); 
     346                                        } 
     347                                        request.send("openidonlycomment="+oonly+"&openidlogodisplay="+ologo); 
     348                                    } catch(e) { 
    334349                                    } 
    335350                                } 
     
    690705?>                                       
    691706                                        <dl id="guestbook-authority-line" class="line"> 
    692                                             <dt><label for="allowCommentGuestbook"><?php echo _t('방명록 사용 권한');?></label></dt> 
     707                                            <dt><label for="allowCommentGuestbook"><?php echo _t('방명록에 대한 답글 권한');?></label></dt> 
    693708                                            <dd> 
    694709                                                <!--input type="checkbox" id="allowWriteGuestbook" class="checkbox" value=""<?php echo $blog['allowWriteOnGuestbook'] == '1' ? ' checked="checked"' : "";?> /><label for="allowWriteGuestbook"><?php echo _t('손님이 글쓰기 허용');?></label--> 
    695                                                 <input type="checkbox" id="allowCommentGuestbook" class="checkbox" value=""<?php echo $blog['allowWriteDblCommentOnGuestbook'] == '1' ? ' checked="checked"' : "";?> /><label for="allowCommentGuestbook"><?php echo _t('손님이 댓글을 쓰는 것을 허용합니다.');?></label> 
    696 <?php 
    697 if( isActivePlugin( 'CL_OpenID' ) ) { 
    698 ?> 
    699                                                 (<a href="<?php echo $blogURL?>/owner/setting/openid"><?php echo _t('오픈아이디 로그인 사용자에게만 댓글을 허용하도록 설정하러 가기')?></a>) 
    700 <?php 
     710                                                <input type="checkbox" id="allowCommentGuestbook" class="checkbox" value=""<?php echo $blog['allowWriteDblCommentOnGuestbook'] == '1' ? ' checked="checked"' : "";?> /><label for="allowCommentGuestbook"><?php echo _t('방명록에 남긴 글에 대하여 손님이 답글을 쓰는 것을 허용합니다.');?></label> 
     711                                            </dd> 
     712                                        </dl> 
     713<?php 
     714$openidonlycomment = setting::getBlogSettingGlobal( "AddCommentMode", "" ); 
     715if( $openidonlycomment == 'openid' ) { 
     716    $openidonlycomment = "checked='checked'"; 
    701717} else { 
    702                                                 echo "<samp>("; 
    703                                                 echo _t('댓글을 오픈아이디 사용자에게만 허용할 수 있습니다.'); 
    704 ?> 
    705                                                 <a class="button" href="<?php echo $blogURL?>/owner/plugin"><?php echo _t('오픈아이디 플러그인 설정 바로가기'); ?></a>)</samp> 
    706 <?php 
    707 } 
    708 ?> 
    709                                             </dd> 
    710                                         </dl> 
     718    $openidonlycomment = ""; 
     719} 
     720 
     721$openidlogodisplay = setting::getBlogSettingGlobal( "OpenIDLogoDisplay", 0 ); 
     722if( $openidlogodisplay ) { 
     723    $openidlogodisplay = "checked='checked'"; 
     724} else { 
     725    $openidlogodisplay = ""; 
     726} 
     727?> 
     728                                        <dl id="comment-authority-line" class="line"> 
     729                                            <dt><label for="allowCommentGuestbook"><?php echo _t('방명록 및 댓글 쓰기 권한');?></label></dt>                                       
     730                                            <dd> 
     731                                                <input id="openidonlycomment" type="checkbox" name="openidonlycomment" <?php echo $openidonlycomment?> /> 
     732                                                <label for="openidonlycomment"><?php echo _t('오픈아이디로 로그인을 해야만 댓글 및 방명록을 쓸 수 있습니다.').' '._t('필명을 사칭하는 경우를 방지할 수 있습니다.'); ?></label> 
     733                                                <br /> 
     734                                                <input id="openidlogodisplay" type="checkbox" name="openidlogodisplay" <?php echo $openidlogodisplay?> /> 
     735                                                <label for="openidlogodisplay"><?php echo _t('오픈아이디로 로그인하여 쓴 댓글/방명록에 오픈아이디 아이콘을 표시합니다.') ?></label> 
     736                                            </dd> 
     737                                        </dl>                                        
     738                                         
    711739                                        <dl id="blog-iphone-ui-line" class="line"> 
    712740                                            <dt><span class="label"><?php echo _t('모바일 인터페이스');?></span></dt> 
     
    718746                                </div> 
    719747                                <div class="button-box"> 
    720                                     <input type="submit" class="save-button input-button" value="<?php echo _t('저장하기');?>" onclick="setRSS(); return false;" /> 
     748                                    <input type="submit" class="save-button input-button wide-button" value="<?php echo _t('저장하기');?>" onclick="setRSS(); return false;" /> 
    721749                                </div> 
    722750                            </form> 
     
    780808                                    </fieldset> 
    781809                                    <div class="button-box"> 
    782                                         <input type="submit" class="save-button input-button" value="<?php echo _t('저장하기');?>" onclick="setLocale(); return false;" /> 
     810                                        <input type="submit" class="save-button input-button wide-button" value="<?php echo _t('저장하기');?>" onclick="setLocale(); return false;" /> 
    783811                                    </div> 
    784812                                </div>