You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
gs-emojis/EmojisPlugin.php

40 lines
1.2 KiB

<?php
if (!defined('GNUSOCIAL')) {
exit(1);
}
class EmojisPlugin extends Plugin {
const VERSION = '0.0.1';
function onEndShowScripts($action) {
$action->script($this->path('node_modules/emojionearea/dist/emojionearea.min.js'));
$action->element('script', array('src' => $this->path('js/gs-emojis.js')));
}
function onEndShowStyles($action) {
$action->cssLink($this->path('node_modules/emojionearea/dist/emojionearea.min.css'));
$action->cssLink($this->path('css/emojis.css'));
}
/**
* Plugin version data
*
* @param array &$versions array of version data
*
* @return value
*/
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Emojis',
'version' => self::VERSION,
'author' => 'Chimo',
'homepage' => 'https://github.com/chimo/gs-emojis',
'description' =>
// TRANS: Plugin description.
_m('Add emojis to your GNU social notices via emoji-picker or :shortnames:'));
return true;
}
}