kyotokoto

Since 2010

Around Everyday Life

Jun 15, 2008

2008.6.15

WordPressに絵文字を導入


WordPressに絵文字を追加した。
プラグインのWP Grinsを入れてスマイリーアイコンを使用可能にした上で、
TypePadにてクリエイティブ・コモンズ・ライセンスで公開されている絵文字たちを使わせていただきました。

面倒だったのがfunctions.phpの書き換え。
絵文字を分類しながら1459行目から下に絵文字を一つずつ登録していきました。
more以降に1459行目以下のコードを書いておきます。
良かったら使って下さい。
 

// デバイス系
‘:camera:’ => ‘camera.gif’,
‘:telephone:’ => ‘telephone.gif’,
‘:mobilephone:’ => ‘mobilephone.gif’,
‘:faxto:’ => ‘faxto.gif’,
‘:pc:’ => ‘pc.gif’,
‘:game:’ => ‘game.gif’,
‘:pocketbell:’ => ‘pocketbell.gif’,
// ジェスチャー、体の部位、人
‘:good:’ => ‘good.gif’,
‘:paper:’ => ‘paper.gif’,
‘:punch:’ => ‘punch.gif’,
‘:rock:’ => ‘rock.gif’,
‘:scissors:’ => ‘scissors.gif’,
‘:ear:’ => ‘ear.gif’,
‘:eye:’ => ‘eye.gif’,
‘:foot:’ => ‘foot.gif’,
‘:run:’ => ‘run.gif’,
‘:shadow:’ => ‘shadow.gif’,
‘:virgo:’ => ‘virgo.gif’,
// スポーツ
‘:baseball:’ => ‘baseball.gif’,
‘:basketball:’ => ‘basketball.gif’,
‘:golf:’ => ‘golf.gif’,
‘:soccer:’ => ‘soccer.gif’,
‘:ski:’ => ‘ski.gif’,
‘:tennis:’ => ‘tennis.gif’,
‘:snowboard:’ => ‘snowboard.gif’,
// 乗り物
‘:airplane:’ => ‘airplane.gif’,
‘:bicycle:’ => ‘bicycle.gif’,
‘:bullettrain:’ => ‘bullettrain.gif’,
‘:bus:’ => ‘bus.gif’,
‘:car:’ => ‘car.gif’,
‘:rvcar:’ => ‘rvcar.gif’,
‘:ship:’ => ‘ship.gif’,
‘:train:’ => ‘train.gif’,
‘:yacht:’ => ‘yacht.gif’,
‘:subway:’ => ‘subway.gif’,
// 感情、状態系
‘:annoy:’ => ‘annoy.gif’,
‘:heart:’ => ‘heart.gif’,
‘:heart02:’ => ‘heart02.gif’,
‘:heart03:’ => ‘heart03.gif’,
‘:heart04:’ => ‘heart04.gif’,
‘:dash:’ => ‘dash.gif’,
‘:note:’ => ‘note.gif’,
‘:notes:’ => ‘notes.gif’,
‘:shine:’ => ‘shine.gif’,
‘:sweat01:’ => ‘sweat01.gif’,
‘:sweat02:’ => ‘sweat02.gif’,
‘:sign01:’ => ‘sign01.gif’,
‘:sign02:’ => ‘sign02.gif’,
‘:sign03:’ => ‘sign03.gif’,
‘:sleepy:’ => ‘sleepy.gif’,
‘:flair:’ => ‘flair.gif’,
// キスマーク、たばこ
‘:kissmark:’ => ‘kissmark.gif’,
‘:nosmoking:’ => ‘nosmoking.gif’,
‘:smoking:’ => ‘smoking.gif’,
// 食事関係
‘:restaurant:’ => ‘restaurant.gif’,
‘:bar:’ => ‘bar.gif’,
‘:beer:’ => ‘beer.gif’,
‘:bottle:’ => ‘bottle.gif’,
‘:wine:’ => ‘wine.gif’,
‘:cafe:’ => ‘cafe.gif’,
‘:cake:’ => ‘cake.gif’,
‘:fastfood:’ => ‘fastfood.gif’,
‘:noodle:’ => ‘noodle.gif’,
‘:riceball:’ => ‘riceball.gif’,
‘:japanesetea:’ => ‘japanesetea.gif’,
‘:bread:’ => ‘bread.gif’,
// 天気、自然、月
‘:sun:’ => ‘sun.gif’,
‘:cloud:’ => ‘cloud.gif’,
‘:rain:’ => ‘rain.gif’,
‘:snow:’ => ‘snow.gif’,
‘:thunder:’ => ‘thunder.gif’,
‘:typhoon:’ => ‘typhoon.gif’,
‘:wave:’ => ‘wave.gif’,
‘:fullmoon:’ => ‘fullmoon.gif’,
‘:moon1:’ => ‘moon1.gif’,
‘:moon2:’ => ‘moon2.gif’,
‘:moon3:’ => ‘moon3.gif’,
‘:mist:’ => ‘mist.gif’,
// 時間
‘:night:’ => ‘night.gif’,
// 表情
‘:angry:’ => ‘angry.gif’,
‘:bearing:’ => ‘bearing.gif’,
‘:bleah:’ => ‘bleah.gif’,
‘:catface:’ => ‘catface.gif’,
‘:coldsweats01:’ => ‘coldsweats01.gif’,
‘:coldsweats02:’ => ‘coldsweats02.gif’,
‘:confident:’ => ‘confident.gif’,
‘:crying:’ => ‘crying.gif’,
‘:delicious:’ => ‘delicious.gif’,
‘:despair:’ => ‘despair.gif’,
‘:gawk:’ => ‘gawk.gif’,
‘:happy01:’ => ‘happy01.gif’,
‘:happy02:’ => ‘happy02.gif’,
‘:lovely:’ => ‘lovely.gif’,
‘:pout:’ => ‘pout.gif’,
‘:weep:’ => ‘weep.gif’,
‘:wobbly:’ => ‘wobbly.gif’,
‘:think:’ => ‘think.gif’,
// 動物
‘:aries:’ => ‘aries.gif’,
‘:cancer:’ => ‘cancer.gif’,
‘:capricornus:’ => ‘capricornus.gif’,
‘:cat:’ => ‘cat.gif’,
‘:chick:’ => ‘chick.gif’,
‘:dog:’ => ‘dog.gif’,
‘:horse:’ => ‘horse.gif’,
‘:pig:’ => ‘pig.gif’,
‘:leo:’ => ‘leo.gif’,
‘:pisces:’ => ‘pisces.gif’,
‘:penguin:’ => ‘penguin.gif’,
‘:fish:’ => ‘fish.gif’,
‘:scorpius:’ => ‘scorpius.gif’,
‘:snail:’ => ‘snail.gif’,
‘:taurus:’ => ‘taurus.gif’,
// 文房具、道具系
‘:pen:’ => ‘pen.gif’,
‘:pencil:’ => ‘pencil.gif’,
‘:book:’ => ‘book.gif’,
‘:memo:’ => ‘memo.gif’,
‘:clip:’ => ‘clip.gif’,
‘:hairsalon:’ => ‘hairsalon.gif’,
‘:search:’ => ‘search.gif’,
‘:art:’ => ‘art.gif’,
‘:wrench:’ => ‘wrench.gif’,
‘:cd:’ => ‘cd.gif’,
‘:karaoke:’ => ‘karaoke.gif’,
‘:movie:’ => ‘movie.gif’,
‘:music:’ => ‘music.gif’,
// フルーツ
‘:apple:’ => ‘apple.gif’,
‘:banana:’ => ‘banana.gif’,
‘:cherry:’ => ‘cherry.gif’,
// 葉、花
‘:bud:’ => ‘bud.gif’,
‘:clover:’ => ‘clover.gif’,
‘:club:’ => ‘club.gif’,
‘:maple:’ => ‘maple.gif’,
‘:tulip:’ => ‘tulip.gif’,
// 場所
‘:24hours:’ => ’24hours.gif’,
‘:bank:’ => ‘bank.gif’,
‘:atm:’ => ‘atm.gif’,
‘:building:’ => ‘building.gif’,
‘:event:’ => ‘event.gif’,
‘:hospital:’ => ‘hospital.gif’,
‘:hotel:’ => ‘hotel.gif’,
‘:house:’ => ‘house.gif’,
‘:school:’ => ‘school.gif’,
‘:postoffice:’ => ‘postoffice.gif’,
‘:toilet:’ => ‘toilet.gif’,
‘:gasstation:’ => ‘gasstation.gif’,
‘:carouselpony:’ => ‘carouselpony.gif’,
// マーク
‘:free:’ => ‘free.gif’,
‘:new:’ => ‘new.gif’,
‘:ng:’ => ‘ng.gif’,
‘:ok:’ => ‘ok.gif’,
‘:spa:’ => ‘spa.gif’,
‘:secret:’ => ‘secret.gif’,
‘:pass:’ => ‘pass.gif’,
‘:ban:’ => ‘ban.gif’,
‘:empty:’ => ‘empty.gif’,
‘:full:’ => ‘full.gif’,
‘:parking:’ => ‘parking.gif’,
‘:appli02:’ => ‘appli02.gif’,
‘:mobaq:’ => ‘mobaq.gif’,
‘:id:’ => ‘id.gif’,
‘:info01:’ => ‘info01.gif’,
‘:info02:’ => ‘info02.gif’,
‘:copyright:’ => ‘copyright.gif’,
‘:r-mark:’ => ‘r-mark.gif’,
‘:tm:’ => ‘tm.gif’,
‘:freedial:’ => ‘freedial.gif’,
‘:cute:’ => ‘cute.gif’,
‘:danger:’ => ‘danger.gif’,
‘:spade:’ => ‘spade.gif’,
‘:diamond:’ => ‘diamond.gif’,
‘:impact:’ => ‘impact.gif’,
‘:sign04:’ => ‘sign04.gif’,
‘:sign05:’ => ‘sign05.gif’,
‘:wheelchair:’ => ‘wheelchair.gif’,
// お金
‘:yen:’ => ‘yen.gif’,
‘:dollar:’ => ‘dollar.gif’,
‘:moneybag:’ => ‘moneybag.gif’,
// 矢印
‘:up:’ => ‘up.gif’,
‘:down:’ => ‘down.gif’,
‘:upwardleft:’ => ‘upwardleft.gif’,
‘:upwardright:’ => ‘upwardright.gif’,
‘:downwardleft:’ => ‘downwardleft.gif’,
‘:downwardright:’ => ‘downwardright.gif’,
‘:updown:’ => ‘updown.gif’,
‘:leftright:’ => ‘leftright.gif’,
‘:end:’ => ‘end.gif’,
‘:on:’ => ‘on.gif’,
‘:soon:’ => ‘soon.gif’,
‘:enter:’ => ‘enter.gif’,
‘:recycle:’ => ‘recycle.gif’,
// アクセサリー、小物
‘:ribbon:’ => ‘ribbon.gif’,
‘:boutique:’ => ‘boutique.gif’,
‘:bag:’ => ‘bag.gif’,
‘:crown:’ => ‘crown.gif’,
‘:drama:’ => ‘drama.gif’,
‘:ring:’ => ‘ring.gif’,
‘:rouge:’ => ‘rouge.gif’,
‘:watch:’ => ‘watch.gif’,
// ファッション、衣服
‘:denim:’ => ‘denim.gif’,
‘:t-shirt:’ => ‘t-shirt.gif’,
‘:shoe:’ => ‘shoe.gif’,
‘:sports:’ => ‘sports.gif’,
// インテリア
‘:chair:’ => ‘chair.gif’,
‘:clock:’ => ‘clock.gif’,
‘:key:’ => ‘key.gif’,
‘:tv:’ => ‘tv.gif’,
‘:door:’ => ‘door.gif’,
// 特別な日
‘:birthday:’ => ‘birthday.gif’,
‘:xmas:’ => ‘xmas.gif’,
‘:present:’ => ‘present.gif’,
// メール、電話
‘:loveletter:’ => ‘loveletter.gif’,
‘:mail:’ => ‘mail.gif’,
‘:mailto:’ => ‘mailto.gif’,
‘:phoneto:’ => ‘phoneto.gif’,
// その他 道具など
‘:bell:’ => ‘bell.gif’,
‘:bomb:’ => ‘bomb.gif’,
‘:signaler:’ => ‘signaler.gif’,
‘:ticket:’ => ‘ticket.gif’,
‘:sprinkle:’ => ‘sprinkle.gif’,
‘:slate:’ => ‘slate.gif’,
‘:sandclock:’ => ‘sandclock.gif’,
‘:flag:’ => ‘flag.gif’,
‘:fuji:’ => ‘fuji.gif’,
‘:gemini:’ => ‘gemini.gif’,
‘:libra:’ => ‘libra.gif’,
‘:motorsports:’ => ‘motorsports.gif’,
‘:pouch:’ => ‘pouch.gif’,
‘:sagittarius:’ => ‘sagittarius.gif’,
// 数字
‘:one:’ => ‘one.gif’,
‘:two:’ => ‘two.gif’,
‘:three:’ => ‘three.gif’,
‘:four:’ => ‘four.gif’,
‘:five:’ => ‘five.gif’,
‘:six:’ => ‘six.gif’,
‘:seven:’ => ‘seven.gif’,
‘:eight:’ => ‘eight.gif’,
‘:nine:’ => ‘nine.gif’,
‘:zero:’ => ‘zero.gif’,
‘:sharp:’ => ‘sharp.gif’,
// スマイリーアイコン、その他
‘:shock:’ => ‘shock.gif’,
‘:sad:’ => ‘sad.gif’,
‘:smile:’ => ‘smile.gif’,
‘:wink:’ => ‘wink.gif’,
 
‘:mrgreen:’ => ‘icon_mrgreen.gif’,
‘:neutral:’ => ‘icon_neutral.gif’,
‘:twisted:’ => ‘icon_twisted.gif’,
 ‘:arrow:’ => ‘icon_arrow.gif’,
 ‘:shock:’ => ‘icon_eek.gif’,
 ‘:smile:’ => ‘icon_smile.gif’,
   ‘:???:’ => ‘icon_confused.gif’,
  ‘:cool:’ => ‘icon_cool.gif’,
  ‘:evil:’ => ‘icon_evil.gif’,
  ‘:grin:’ => ‘icon_biggrin.gif’,
  ‘:idea:’ => ‘icon_idea.gif’,
  ‘:oops:’ => ‘icon_redface.gif’,
  ‘:razz:’ => ‘icon_razz.gif’,
  ‘:roll:’ => ‘icon_rolleyes.gif’,
  ‘:wink:’ => ‘icon_wink.gif’,
   ‘:cry:’ => ‘icon_cry.gif’,
   ‘:eek:’ => ‘icon_surprised.gif’,
   ‘:lol:’ => ‘icon_lol.gif’,
   ‘:mad:’ => ‘icon_mad.gif’,
   ‘:sad:’ => ‘icon_sad.gif’,
     ‘8-)’ => ‘icon_cool.gif’,
     ‘8-O’ => ‘icon_eek.gif’,
     ‘:-(‘ => ‘icon_sad.gif’,
     ‘:-)’ => ‘icon_smile.gif’,
     ‘:-?’ => ‘icon_confused.gif’,
     ‘:-D’ => ‘icon_biggrin.gif’,
     ‘:-P’ => ‘icon_razz.gif’,
     ‘:-o’ => ‘icon_surprised.gif’,
     ‘:-x’ => ‘icon_mad.gif’,
     ‘:-|’ => ‘icon_neutral.gif’,
     ‘;-)’ => ‘icon_wink.gif’,
      ‘8)’ => ‘icon_cool.gif’,
      ‘8O’ => ‘icon_eek.gif’,
      ‘:(‘ => ‘icon_sad.gif’,
      ‘:)’ => ‘icon_smile.gif’,
      ‘:?’ => ‘icon_confused.gif’,
      ‘:D’ => ‘icon_biggrin.gif’,
      ‘:P’ => ‘icon_razz.gif’,
      ‘:o’ => ‘icon_surprised.gif’,
      ‘:x’ => ‘icon_mad.gif’,
      ‘:|’ => ‘icon_neutral.gif’,
      ‘;)’ => ‘icon_wink.gif’,
     ‘:!:’ => ‘icon_exclaim.gif’,
     ‘:?:’ => ‘icon_question.gif’,

 

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です


*


CAPTCHA



Category
Recent Entries
Tag Cloud

iPhone あじさい ぽんちょ ぽんちょ わんこ ハス ハト ベランダ モノクロ 下鴨神社 京都 京都御所 京都御苑 京都駅 埼玉 夕日 夕暮れ 奈良 子ども 宝ケ池公園 峰っち 建築 新婚旅行 新緑 東本願寺 梅雨 沖縄 河原 祇園祭 糺の森 紅葉 結婚式 花火 蓮華寺 賀茂川 金沢 高野川 鴨川

Thank you
for
visiting kyotokoto.
© 2010-2020 kyotokoto