Ignore:
Timestamp:
2012/04/09 02:49:39 (12 years ago)
Author:
Seasoft
Message:

#1436 (CSS を改善)

  • 画面を特定した記述をできるように html 要素のクラスにページクラスを入れた。
Location:
branches/version-2_12-dev/data
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/Smarty/templates/default/site_frame.tpl

    r21539 r21716  
    2222 *}--> 
    2323 
    24 <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"> 
     24<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja" class="<!--{$tpl_page_class_name|h}-->"> 
    2525<head> 
    2626<meta http-equiv="Content-Type" content="text/html; charset=<!--{$smarty.const.CHAR_CODE}-->" /> 
  • branches/version-2_12-dev/data/Smarty/templates/sphone/site_frame.tpl

    r21613 r21716  
    2222 *}--> 
    2323 
    24 <html lang="ja"> 
     24<html lang="ja" class="<!--{$tpl_page_class_name|h}-->"> 
    2525    <head> 
    2626        <meta charset="UTF-8"> 
  • branches/version-2_12-dev/data/class/pages/LC_Page.php

    r21712 r21716  
    129129        // スーパーフックポイントを実行. 
    130130        $objPlugin->doAction('LC_Page_process', array($this)); 
     131 
     132        // ページクラス名をテンプレートに渡す 
     133        $arrBacktrace = debug_backtrace(); 
     134        if (strlen($this->tpl_page_class_name) === 0) { 
     135            $this->tpl_page_class_name = $arrBacktrace[1]['class']; 
     136            $this->tpl_page_class_name = preg_replace('/_Ex$/', '', $this->tpl_page_class_name); 
     137        } 
    131138 
    132139        $this->objDisplay->prepare($this); 
Note: See TracChangeset for help on using the changeset viewer.