- Timestamp:
- 2007/07/20 15:58:59 (19 years ago)
- Location:
- branches/feature-module-update
- Files:
-
- 1 edited
- 2 copied
-
. (copied) (copied from branches/rel) (1 prop)
-
data (copied) (copied from branches/rel/data)
-
data/smarty_extends/block.marquee.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update
-
Property
svn:ignore
set to
.cache
.settings
.projectOptions
-
Property
svn:ignore
set to
-
branches/feature-module-update/data/smarty_extends/block.marquee.php
r12157 r15078 1 1 <?php 2 2 /** 3 * marquee ¥¿¥°¤Ç°Ï¤à¡£3 * marqueeタグで囲む。 4 4 * 5 * DoCoMo ¤Î·ÈÂÓüËö¤Î¾ì¹ç¤Ïmarquee¤ò»ÈÍѤ·¤Ê¤¤¡£5 * DoCoMoの携帯端末の場合はmarqueeを使用しない。 6 6 * 7 * @param string $value ÆþÎÏ8 * @return string ½ÐÎÏ7 * @param string $value 入力 8 * @return string 出力 9 9 */ 10 10 function smarty_block_marquee($params, $content, &$smarty, &$repeat) { 11 // {/marquee} ¤Î¾ì¹ç¤Î¤ß½ÐÎϤ¹¤ë¡£11 // {/marquee}の場合のみ出力する。 12 12 if ($repeat || !isset($content)) { 13 13 return null; 14 14 } 15 15 16 // ËöÈø¤Î²þ¹Ô¤Ê¤É¤ò¼è¤ê½ü¤¯¡£16 // 末尾の改行などを取り除く。 17 17 $content = rtrim($content); 18 18 19 // marquee ¥¿¥°¤ò»ÈÍѤ·¤Ê¤¤¾ì¹ç19 // marqueeタグを使用しない場合 20 20 if (defined('MOBILE_SITE') && GC_MobileUserAgent::getCarrier() == 'docomo') { 21 21 return "<div>\n$content\n</div>\n";
Note: See TracChangeset
for help on using the changeset viewer.
