ktaistyle のmy-hacksについて
-
Ktai Style を愛用させて頂いております。
今回my-hacks.phpに携帯の絵文字に関する記述を書いたのですが、
ブログが一部のみの表示となってしまいました。<?php
function ks_other_pict($converted, $number, $alt, $charset) {
$image = ”;
if (preg_match(‘/^d(\d+)$/’, $number, $n)) {
$image = ‘<img src=”‘ . ks_theme_url() . “imode/{$n[1]}.gif” . ‘” alt=”‘ . $alt . ‘” />’;
} elseif (preg_match(‘/^(\d+)$/’, $number, $n)) {
$image = ‘<img src=”‘ . ks_theme_url() . “ezweb/{$n[1]}.gif” . ‘” alt=”‘ . $alt . ‘” />’;
} elseif (preg_match(‘/^se([0-5])([\da-f]+)$/’, $number, $n)) {
$offset = array(0, 90, 180, 270, 347, 423);
$num = $offset[$n[1]] + hexdec($n[2]);
$image = ‘<img src=”‘ . ks_theme_url() . “softbank/$num.png” . ‘” alt=”‘ . $alt . ‘” />’;
} elseif (preg_match(‘/^wf([01][\da-f]+)$/’, $number, $n)) {
$image = ‘<img src=”‘ . ks_theme_url() . “willcom/{$n[1]}.png” . ‘” alt=”‘ . $alt . ‘” />’;
} elseif (preg_match(‘/^e(\d+)$/’, $number, $n)) {
$image = ‘<img src=”‘ . ks_theme_url() . “emobile/{$n[1]}.png” . ‘” alt=”‘ . $alt . ‘” />’;
} else {
$image = is_null($alt) ? $converted : $alt;
}
return $image;
}
add_filter(‘convert_pict_other/ktai_style.php’, ‘ks_other_pict’, 10, 4);
?>どのようにしたら解決できるのでしょうか。ご教示頂けますと助かります。
よろしくお願い致します。
- トピック「ktaistyle のmy-hacksについて」には新たに返信することはできません。