- Timestamp:
- 2012/01/23 04:49:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/smarty_extends/block.marquee.php
r21010 r21420 9 9 */ 10 10 function smarty_block_marquee($params, $content, &$smarty, &$repeat) { 11 12 13 14 11 // {/marquee}の場合のみ出力する。 12 if ($repeat || !isset($content)) { 13 return null; 14 } 15 15 16 17 16 // 末尾の改行などを取り除く。 17 $content = rtrim($content); 18 18 19 20 21 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 } 23 23 24 24 return "<marquee>\n$content\n</marquee>\n"; 25 25 } 26 ?>
Note: See TracChangeset
for help on using the changeset viewer.