| Revision 11460,
593 bytes
checked in by inoue, 19 years ago
(diff) |
|
モバイル版EC-CUBE
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * ¿ôÃͤò¿ô»ú³¨Ê¸»ú¤ËÊÑ´¹¤¹¤ë¡£ |
|---|
| 4 | * |
|---|
| 5 | * ÆþÎϤ¬0¡Á9¤Ç¤Ï¤Ê¤¤¾ì¹ç¡¢¤Þ¤¿¤Ï¡¢·ÈÂÓüËö¤«¤é¤Î¥¢¥¯¥»¥¹¤Ç¤Ï¤Ê¤¤¾ì¹ç¤Ï¡¢ |
|---|
| 6 | * ÆþÎϤò [ ¤È ] ¤Ç°Ï¤ó¤Àʸ»úÎó¤òÊÖ¤¹¡£ |
|---|
| 7 | * |
|---|
| 8 | * @param string $value ÆþÎÏ |
|---|
| 9 | * @return string ½ÐÎÏ |
|---|
| 10 | */ |
|---|
| 11 | function smarty_modifier_numeric_emoji($value) { |
|---|
| 12 | // ¿ô»ú³¨Ê¸»ú (0¡Á9) ¤Î³¨Ê¸»úÈÖ¹æ |
|---|
| 13 | static $numeric_emoji_index = array('134', '125', '126', '127', '128', '129', '130', '131', '132', '133'); |
|---|
| 14 | |
|---|
| 15 | if (GC_MobileUserAgent::isMobile() && isset($numeric_emoji_index[$value])) { |
|---|
| 16 | return '[emoji:' . $numeric_emoji_index[$value] . ']'; |
|---|
| 17 | } else { |
|---|
| 18 | return '[' . $value . ']'; |
|---|
| 19 | } |
|---|
| 20 | } |
|---|
| 21 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.