mirror of
https://github.com/Mibew/emoji-plugin.git
synced 2025-02-24 01:04:35 +03:00
Fix assets urls on non *nix systems
This commit is contained in:
parent
5308b204e6
commit
de49bbff8d
@ -86,7 +86,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
|
|||||||
public function attachJSFiles(&$args)
|
public function attachJSFiles(&$args)
|
||||||
{
|
{
|
||||||
if ($this->isAppropriatePage($args['request'])) {
|
if ($this->isAppropriatePage($args['request'])) {
|
||||||
$base_path = $this->getFilesPath();
|
$base_path = str_replace(DIRECTORY_SEPARATOR, '/', $this->getFilesPath());
|
||||||
$args['js'][] = $base_path . '/vendor/es5-shim/es5-shim.js';
|
$args['js'][] = $base_path . '/vendor/es5-shim/es5-shim.js';
|
||||||
$args['js'][] = $base_path . '/vendor/emojify.js/emojify.js';
|
$args['js'][] = $base_path . '/vendor/emojify.js/emojify.js';
|
||||||
$args['js'][] = $base_path . '/js/plugin.js';
|
$args['js'][] = $base_path . '/js/plugin.js';
|
||||||
@ -101,7 +101,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
|
|||||||
public function attachCssFiles(&$args)
|
public function attachCssFiles(&$args)
|
||||||
{
|
{
|
||||||
if ($this->isAppropriatePage($args['request'])) {
|
if ($this->isAppropriatePage($args['request'])) {
|
||||||
$args['css'][] = $this->getFilesPath() . '/css/styles.css';
|
$args['css'][] = str_replace(DIRECTORY_SEPARATOR, '/', $this->getFilesPath()) . '/css/styles.css';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -116,7 +116,8 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
|
|||||||
|
|
||||||
if ($this->isAppropriatePage($request)) {
|
if ($this->isAppropriatePage($request)) {
|
||||||
$args['plugins']['MibewEmoji'] = array(
|
$args['plugins']['MibewEmoji'] = array(
|
||||||
'imagesDir' => ($request->getBasePath() . '/' . $this->getFilesPath()
|
'imagesDir' => ($request->getBasePath() . '/'
|
||||||
|
. str_replace(DIRECTORY_SEPARATOR, '/', $this->getFilesPath())
|
||||||
. '/vendor/emojify.js/images/emoji'),
|
. '/vendor/emojify.js/images/emoji'),
|
||||||
'ignoreEmoticons' => $this->config['ignore_emoticons'],
|
'ignoreEmoticons' => $this->config['ignore_emoticons'],
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user