forked from NerosTie/emojione
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from immanuelfodor/slim-v0.12.0-beta
Compatibility with Shaarli v0.12.0-beta
- Loading branch information
Showing
4 changed files
with
83 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,53 @@ | ||
# Shaarli Plugin Emojione | ||
|
||
Add colorful emojis to your Shaarli. | ||
|
||
# Installation | ||
``` | ||
## Installation | ||
|
||
```bash | ||
cd plugins | ||
git clone https://github.com/NerosTie/emojione | ||
git clone https://github.com/immanuelfodor/emojione.git | ||
``` | ||
|
||
Or download [the zip archive](https://github.com/NerosTie/emojione/archive/master.zip) and extract it in `plugins/emojione`. | ||
Or download the zip archive and extract it in `plugins/emojione`. | ||
|
||
Then activate the new plugin. | ||
|
||
# Options | ||
## Options | ||
|
||
ASCII Smiley is deactivated by default. | ||
http://git.emojione.com/demos/latest/ascii-smileys.html | ||
To activate it, edit `assets/js/emojione.js`: | ||
``` | ||
|
||
```javascript | ||
emojione.ascii = false; /* change to 'true' to have ASCII conversion */ | ||
``` | ||
SVG is the default format for emojis. | ||
If you prefer PNG, edit `assets/js/emojione.js`: | ||
``` | ||
|
||
SVG is the default format for emojis. If you prefer PNG, edit `assets/js/emojione.js`: | ||
|
||
```javascript | ||
emojione.imageType = 'svg'; /* change to 'png' to have emojis in PNG */ | ||
``` | ||
|
||
The autocomplete function is deactivated by default. | ||
The autocomplete function is activated by default. | ||
http://git.emojione.com/demos/latest/autocomplete.html | ||
To activate it, edit `emojione.php`: | ||
``` | ||
To deactivate it, edit `emojione.php`: | ||
|
||
```php | ||
/* | ||
* Uncomment the five lines below to use the autocomplete function. | ||
* If your theme use jquery, let the second line commented. | ||
* Comment the five lines below to disable the autocomplete function. | ||
* If your theme use jquery, you must comment the jquery.min.js line to avoid conflicts. | ||
*/ | ||
# if($data['_PAGE_'] === Router::$PAGE_EDITLINK){ | ||
# if (eo_strip_underscores($data['_PAGE_']) == eo_strip_underscores($router::$PAGE_EDITLINK)) { | ||
# $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/assets/js/jquery.min.js'; | ||
# $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/assets/js/textcomplete.min.js'; | ||
# $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/emojione/assets/js/autocomplete.js'; | ||
# } | ||
``` | ||
|
||
# Compatibility | ||
## Compatibility | ||
|
||
The plugin and the options are fully compatible with these themes: | ||
* Default | ||
* Material (https://github.com/kalvn/Shaarli-Material) | ||
* AlbinoMouse (https://github.com/alexisju/albinomouse-template) | ||
- Default | ||
- Material (https://github.com/kalvn/Shaarli-Material) | ||
- AlbinoMouse (https://github.com/alexisju/albinomouse-template) - Untested in this fork |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters