14 include XOOPS_ROOT_PATH.
"/include/common.php";
15 include_once
RMCPATH.
'/loader.php';
16 XoopsLogger::getInstance()->activated =
false;
17 XoopsLogger::getInstance()->renderingEnabled =
false;
21 $db = XoopsDatabaseFactory::getDatabaseConnection();
22 $result =
$db->query(
"SELECT * FROM ".
$db->prefix(
"smiles").
" ORDER BY id");
26 'file'=>XOOPS_UPLOAD_URL.
'/'.$row[
'smile_url'],
27 'desc'=>$row[
'emotion'],
33 RMEvents::get()->run_event(
'rmcommon.load_emotions',$emotions,
'exmcode');
36 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
39 <meta http-equiv=
"Expires" content=
"Fri, Jan 01 1900 00:00:00 GMT">
40 <meta http-equiv=
"Pragma" content=
"no-cache">
41 <meta http-equiv=
"Cache-Control" content=
"no-cache">
42 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
43 <script type=
"text/javascript" src=
"editor-popups.js"></script>
44 <script type=
"text/javascript" src=
"<?php echo RMCURL; ?>/include/js/jquery.min.js"></script>
45 <link rel=
"stylesheet" type=
"text/css" href=
"<?php echo $eurl; ?>/plugins/emotions/css/emotions.css" />
46 <script type=
"text/javascript">
47 $(document).ready(
function(){
48 $(
"img").click(
function(){
49 exmPopup.insertText($(
this).attr(
"alt"));
50 exmPopup.closePopup();
56 <table width=
"100%" cellpadding=
"2" cellspacing=
"0">
59 <?php
foreach($emotions as $icon): ?>
65 <td><img src=
"<?php echo $icon['file']; ?>" title=
"<?php echo $icon['desc']; ?>" alt=
"<?php echo $icon['code']; ?>" /><br /><?php echo $icon[
'code']; ?></td>