CMS솔루션마켓, 이온디 - 워드프레스, 라이믹스, 카페24, 그누보드, 엑셀

블로그

#CSS 불러오는 코드 변경

else..if.. 문법에서 XE 신문법 cond 사용

종전

<!--// 레이아웃과 연동될 css 파일 import --><!--%import("css/default.css")-->

<!--@if($layout_info->colorset == "white")--><!--%import("css/white.css")-->

<!--@elseif($layout_info->colorset == "blue")--><!--%import("css/blue.css")-->

<!--@elseif($layout_info->colorset == "greenview")--><!--%import("css/greenview.css")-->

<!--@elseif($layout_info->colorset == "black")--><!--%import("css/black.css")-->

<!--@elseif($layout_info->colorset == "gray")--><!--%import("css/gray.css")-->

<!--@elseif($layout_info->colorset == "navy")--><!--%import("css/navy.css")-->

<!--@elseif($layout_info->colorset == "calmative")--><!--%import("css/calmative.css")-->

<!--@elseif($layout_info->colorset == "monochrome")--><!--%import("css/monochrome.css")-->

<!--@elseif($layout_info->colorset == "neutral")--><!--%import("css/neutral.css")-->

<!--@elseif($layout_info->colorset == "columnist")--><!--%import("css/columnist.css")-->

<!--@elseif($layout_info->colorset == "textile")--><!--%import("css/textile.css")-->

<!--@elseif($layout_info->colorset == "kraft")--><!--%import("css/kraft.css")-->

<!--@else--><!--%import("css/default.css")--><!--@end-->


변경

<load target="css/default.css" />

<load target="css/white.css" cond="$layout_info->colorset =='white'" />

<load target="css/green.css" cond="$layout_info->colorset =='green'" />

<load target="css/blue.css" cond="$layout_info->colorset =='blue'" />

<load target="css/greenview.css" cond="$layout_info->colorset =='greenview'" />

<load target="css/black.css" cond="$layout_info->colorset =='black'" />

<load target="css/gray.css" cond="$layout_info->colorset =='gray'" />

<load target="css/navy.css" cond="$layout_info->colorset =='navy'" />

<load target="css/calmative.css" cond="$layout_info->colorset =='calmative'" />

<load target="css/monochrome.css" cond="$layout_info->colorset =='monochrome'" />

<load target="css/neutral.css" cond="$layout_info->colorset =='neutral'" />

<load target="css/columnist.css" cond="$layout_info->colorset =='columnist'" />

<load target="css/textile.css" cond="$layout_info->colorset =='textile'" />

<load target="css/kraft.css" cond="$layout_info->colorset =='kraft'" />

#푸터 HTML5 태그 사용
변경
<footer id="footer">
<nav id="siteNav">
<ul>
<li style="float:right;padding:0;margin:0;font:10px tahoma;" class="powered">Powered by <a href="http://eond.com" target="_blank">Eond</a></li>
<!--@foreach($site_menu->list as $key => $val)--><!--@if($val['link'])-->
<!--@if($val['selected'])-->
{@ $menu_1st = $val }
<!--@end-->
<li <!--@if($val['selected'])-->class="on"<!--@end-->><a href="{$val['href']}" <!--@if($val['open_window']=='Y')-->onclick="window.open(this.href);return false;"<!--@end-->>{$val['link']}</a></li>
<!--@end-->
<!--@else--><div class="copyright">Copyright ⓒ <a href="http://eond.com" target="_blank"><b>eond.</b></a> All Rights Reserved.</div>
<!--@end-->
</ul>
</nav></footer>

#ID의 Class화
#footer -> .footer
#gnb -> .gnb

#클래스명 변경
container -> wrap
content -> container
main -> content