PHP Classes

File: app/config/emoticon.php

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   PHP Emoticon Parser   app/config/emoticon.php   Download  
File: app/config/emoticon.php
Role: Auxiliary script
Content type: text/plain
Description: Example script
Class: PHP Emoticon Parser
Replace emoticon text by HTML image tags
Author: By
Last change: Update of app/config/emoticon.php
Date: 4 months ago
Size: 3,063 bytes
 

Contents

Class file image Download
<?php
/**
 * @package pH7
 * @author SORIA Pierre-Henry
 * @email pierrehs@hotmail.com
 * @link http://github.com/pH-7
 * @copyright (c) 2012-2013, Pierre-Henry Soria. All Rights Reserved.
 * @license CC-BY - http://creativecommons.org/licenses/by/3.0/
 * @version $Id: emoticon.php 2013-02-04 pierrehs $
 */

namespace PH7;
defined('PH7') or exit('Restricted access');

/**
 * The emoticons are in ~/static/img/smile/
 */

return array(

/** smiley (image name without extension) | code | alt **/

   
'grin' => array( array(':-d', ':d', 'xd', '=d'), 'Grin'),
   
'lol' => array( array('^^', ':lol:'), 'LOL'),
   
'cheese' => array(':cheese:', 'Cheese'),
   
'smile' => array( array(':)', ':-)', ':]', '=)'), 'Smile'),
   
'wink' => array( array(';)', ';-)'), 'Wink'),
   
'smirk' => array(':smirk:', 'Smirk'),
   
'roll' => array(':rolling:', 'Rolleyes'),
   
'confused' => array(':-S', 'Confused'),
   
'surprise' => array(':wow:', 'Surprised'),
   
'bigsurprise' => array(':bug:', 'Big Surprise'),
   
'tongue_laugh' => array(':-P', 'Tongue Laugh'),
   
'tongue_rolleye' => array('%-P', 'Tongue Rolleye'),
   
'tongue_wink' => array(';-p', 'Tongue Wink'),
   
'rasberry' => array( array(':-p', ':p', '=p'), 'Rasberry'),
   
'blank' => array(':blank:', 'Blank Stare'),
   
'longface' => array(':long:', 'Long Face'),
   
'ohh' => array(':ohh:', 'Ohh'),
   
'grrr' => array(':grrr:', 'Grrr'),
   
'gulp' => array(':gulp:', 'Gulp'),
   
'ohoh' => array('8-/', 'Oh oh'),
   
'downer' => array(':down:', 'Downer'),
   
'embarrassed' => array(':red:', 'Red face'),
   
'sick' => array(':sick:', 'Sick'),
   
'shuteye' => array(':shut:', 'Shut eye'),
   
'hmm' => array(':-/', 'Hmmm'),
   
'mad' => array('>:(', 'Mad'),
   
'angry' => array('>:-(', 'Angry'),
   
'zip' => array(':zip:', 'Zipper'),
   
'kiss' => array( array(':-* :*', ':kiss:'), 'Kiss'),
   
'shock' => array(':ahhh:', 'Shock'),
   
'shade_smile' => array(':coolsmile:', 'Cool smile'),
   
'shade_smirk' => array(':coolsmirk:', 'Cool smirk'),
   
'shade_grin' => array(':coolgrin:', 'Cool grin'),
   
'shade_hmm' => array(':coolhmm:', 'Cool hmm'),
   
'shade_mad' => array(':coolmad:', 'Cool mad'),
   
'shade_cheese' => array(':coolcheese:', 'Cool cheese'),
   
'vampire' => array(':vampire:', 'Vampire'),
   
'snake' => array( array('°°', ':snake:'), 'Snake'),
   
'exclaim' => array(':exclaim:', 'Excaim'),
   
'vampire' => array(':vampire:', 'Vampire'),
   
'question' => array( array(':ask:', ':question:'), 'Question')

);
?>