Ignore:
Timestamp:
2012/01/23 04:49:37 (12 years ago)
Author:
Seasoft
Message:

#1613 (ソース整形・ソースコメントの改善)

  • Zend Framework PHP 標準コーディング規約への準拠を高めた
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/smarty_extends/block.marquee.php

    r21010 r21420  
    99 */ 
    1010function smarty_block_marquee($params, $content, &$smarty, &$repeat) { 
    11     // {/marquee}の場合のみ出力する。 
    12     if ($repeat || !isset($content)) { 
    13         return null; 
    14     } 
     11    // {/marquee}の場合のみ出力する。 
     12    if ($repeat || !isset($content)) { 
     13    return null; 
     14    } 
    1515 
    16     // 末尾の改行などを取り除く。 
    17     $content = rtrim($content); 
     16    // 末尾の改行などを取り除く。 
     17    $content = rtrim($content); 
    1818 
    19     // marqueeタグを使用しない場合 
    20     if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE && SC_MobileUserAgent::getCarrier() == 'docomo') { 
    21         return "<div>\n$content\n</div>\n"; 
    22     } 
     19    // marqueeタグを使用しない場合 
     20    if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE && SC_MobileUserAgent::getCarrier() == 'docomo') { 
     21    return "<div>\n$content\n</div>\n"; 
     22    } 
    2323 
    24     return "<marquee>\n$content\n</marquee>\n"; 
     24    return "<marquee>\n$content\n</marquee>\n"; 
    2525} 
    26 ?> 
Note: See TracChangeset for help on using the changeset viewer.