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

#1436 (CSS を改善)

  • 画面を特定した記述をできるように html 要素のクラスにページクラスを入れた。
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.