내용관리의 타이틀삭제

내용관리의 타이틀삭제

QA

내용관리의 타이틀삭제

본문

b3871f2d729cea6e030b88f188778184_1423457417.jpg 

 

head.php와 head_sub.php 에서 나올만한 소스를 다 삭제했는데도 나오네요.

다른 파일에서 삭제해야 하는게 있나요?

 

head.php 소스 입니다.

 

<?php 

include_once(G5_PATH.'/head.sub.php');
include_once(G5_LIB_PATH.'/latest.lib.php');
include_once(G5_LIB_PATH.'/outlogin.lib.php');
include_once(G5_LIB_PATH.'/poll.lib.php');
include_once(G5_LIB_PATH.'/visit.lib.php');
include_once(G5_LIB_PATH.'/connect.lib.php');
include_once(G5_LIB_PATH.'/popular.lib.php');

// 상단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오.
if ($config['cf_include_head']) {
    if (!@include_once($config['cf_include_head'])) {
        die('기본환경 설정에서 상단 파일 경로가 잘못 설정되어 있습니다.');
    }
    return; // 이 코드의 아래는 실행을 하지 않습니다.
}

if (G5_IS_MOBILE) {
    include_once(G5_MOBILE_PATH.'/head.php');
    return;
}
?>
<script type="text/javascript" src="<?=$g4[path]?>/js/jquery.cross-slide.js"></script>
<style>
#slideshow {
  width: 100%;
  height: 361px;
}
</style>
<style type="text/css">
<!--
body {
 background:url(<?=$g4['path']?>/images/main_bg.jpg);
 background-position:top center;
 background-repeat:repeat-x;
 margin-left: 0px;
 margin-top: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
}
-->
</style>
<!-- 상단 시작 { -->
<div id="hd">
    <h1 id="hd_h1"><?php echo $g5['title'] ?></h1>

    <div id="skip_to_container"><a href="#container">본문 바로가기</a></div>

    <?php
    if(defined('_INDEX_')) { // index에서만 실행
        include G5_BBS_PATH.'/newwin.inc.php'; // 팝업레이어
    }
    ?>

    <div id="hd_wrapper">
 
        <div id="gnbbox">
                   <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1024" height="85">
            <param name="movie" value="../images/topmenu.swf" />
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="6.0.65.0" />
            <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don't want users to see the prompt. -->
            <param name="expressinstall" value="Scripts/expressInstall.swf" />
            <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
            <!--[if !IE]>-->
            <object type="application/x-shockwave-flash" data="../images/topmenu.swf" width="1024" height="85">
              <!--<![endif]-->
              <param name="quality" value="high" />
              <param name="wmode" value="opaque" />
              <param name="swfversion" value="6.0.65.0" />
              <param name="expressinstall" value="Scripts/expressInstall.swf" />
              <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
              <div>
                <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
              </div>
              <!--[if !IE]>-->
            </object>
            <!--<![endif]-->
          </object>
        </div>       
    </div>   
   <div id="mimg">
  <div id="slideshow"></div>
   </div>   
</div>
<!-- } 상단 끝 -->

<!-- 콘텐츠 시작 { -->
<div id="wrapper">

    <div id="container">
        <?php if ((!$bo_table || $w == 's' ) && !defined("_INDEX_")) { ?><?php } ?>

 

 

head_sub​.php 소스입니다.

 

<?php 

include_once(G5_PATH.'/head.sub.php');
include_once(G5_LIB_PATH.'/latest.lib.php');
include_once(G5_LIB_PATH.'/outlogin.lib.php');
include_once(G5_LIB_PATH.'/poll.lib.php');
include_once(G5_LIB_PATH.'/visit.lib.php');
include_once(G5_LIB_PATH.'/connect.lib.php');
include_once(G5_LIB_PATH.'/popular.lib.php');

// 상단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오.
if ($config['cf_include_head']) {
    if (!@include_once($config['cf_include_head'])) {
        die('기본환경 설정에서 상단 파일 경로가 잘못 설정되어 있습니다.');
    }
    return; // 이 코드의 아래는 실행을 하지 않습니다.
}

if (G5_IS_MOBILE) {
    include_once(G5_MOBILE_PATH.'/head.php');
    return;
}
?>
<script type="text/javascript" src="<?=$g4[path]?>/js/jquery.cross-slide.js"></script>
<style>
#slideshow2 {
  width: 100%;
  height: 210px;
}
</style>
<style type="text/css">
<!--
body {
 background:url(<?=$g4['path']?>/images/sub_bg.jpg);
 background-position:top center;
 background-repeat:repeat-x;
 margin-left: 0px;
 margin-top: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
}
-->
</style>
<!-- 상단 시작 { -->
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
<div id="hd">
    <h1 id="hd_h1"><?php echo $g5['title'] ?></h1>

    <div id="skip_to_container"><a href="#container">본문 바로가기</a></div>

    <?php
    if(defined('_INDEX_')) { // index에서만 실행
        include G5_BBS_PATH.'/newwin.inc.php'; // 팝업레이어
    }
    ?>

    <div id="hd_wrapper">
 
        <div id="gnbbox">
          <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1024" height="85">
            <param name="movie" value="../images/topmenu.swf" />
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="6.0.65.0" />
            <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
            <param name="expressinstall" value="Scripts/expressInstall.swf" />
            <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
            <!--[if !IE]>-->
            <object type="application/x-shockwave-flash" data="../images/topmenu.swf" width="1024" height="85">
              <!--<![endif]-->
              <param name="quality" value="high" />
              <param name="wmode" value="opaque" />
              <param name="swfversion" value="6.0.65.0" />
              <param name="expressinstall" value="Scripts/expressInstall.swf" />
              <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
              <div>
                <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
              </div>
              <!--[if !IE]>-->
            </object>
            <!--<![endif]-->
          </object>
      </div>       
    </div>   
   <div id="simg">
  <div id="slideshow2"></div>
   </div>   
</div>
<!-- } 상단 끝 -->

<!-- 콘텐츠 시작 { -->
<div id="wrapper">

    <div id="container">
        <?php if ((!$bo_table || $w == 's' ) && !defined("_INDEX_")) { ?><?php } ?>
<script type="text/javascript">
swfobject.registerObject("FlashID");
        </script>
​ 

 

이 질문에 댓글 쓰기 :

답변 3

일단 보면 head.sub.php파일과 head.php파일에서 동일한 내용이 많이 중복되고 있습니다.

head.sub.php파일에서 head.php만 들어가야 하는 부분들이 여기에도 그대로 많이 들어가 있네요.

 

컨텐츠 부분의 제목은 실제적으로 head.php파일에서 관할 하는데, 여기 소스는 두군데 모두 있네요.

소스만으로는 정확하게 알기 어렵지만 제목이 아마도 플래시도 들어가 있는 것 같은데요.

head.sub.php파일의 가장 하단에 있는


<?php if ((!$bo_table || $w == 's' ) && !defined("_INDEX_")) { ?><?php } ?>
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>

이 코드 부분을 지워보세요. 

위의 시공실적 이라는 부분을 지우려고, head.php 와 head_sub.php 파일 에서 찾는 방법은 매우 비효율적입니다. ( 찾는 방법을 잘 모르시면 어려우실겁니다. )

 

http://opentutorials.org/course/580/2866

위의 url은 생활코딩이라는 사이트인데요. 크롬개발자 도구의 element 편 유트브 강좌를 꼭 보세요.

 

위의 시공실적 이라는 해당 셀럭터를 찾아서

 

해당 셀렉터 { display:none }​   <<< 이렇게 css 처리하는 방법이 효율적입니다.

css 에서 
#container_title {font-size:1.333em;margin:0 auto;font-weight:bold;}
를visibility:hidden; 으로 바꾸시거나

head.php에서 제일하단에 

        <?php if (!defined("_INDEX_")) { ?><h2 id="container_title"><span title="<?php echo get_text($g5['title']); ?>"><?php echo get_head_title($g5['title']); ?></span></h2><?php } ?>

를 삭제 하시면 될지도.. 

답변을 작성하시기 전에 로그인 해주세요.
전체 0 | RSS
QA 내용 검색
  • 개별 목록 구성 제목 답변작성자조회작성일
  • 질문이 없습니다.

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT