mirror of
https://github.com/Mibew/open-street-map-plugin.git
synced 2025-01-22 09:50:29 +03:00
Fix assets urls on non *nix systems
This commit is contained in:
parent
9a4f5ef15b
commit
71e4b68200
14
Plugin.php
14
Plugin.php
@ -102,9 +102,10 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
|
|||||||
public function pageAddJsHandler(&$args)
|
public function pageAddJsHandler(&$args)
|
||||||
{
|
{
|
||||||
if ($args['request']->attributes->get('_route') == 'users') {
|
if ($args['request']->attributes->get('_route') == 'users') {
|
||||||
$args['js'][] = $this->getFilesPath() . '/vendor/jquery-colorbox/jquery.colorbox-min.js';
|
$filepath = str_replace(DIRECTORY_SEPARATOR, '/', $this->getFilesPath());
|
||||||
$args['js'][] = $this->getFilesPath() . '/vendor/leaflet/dist/leaflet.js';
|
$args['js'][] = $filepath . '/vendor/jquery-colorbox/jquery.colorbox-min.js';
|
||||||
$args['js'][] = $this->getFilesPath() . '/js/plugin.js';
|
$args['js'][] = $filepath . '/vendor/leaflet/dist/leaflet.js';
|
||||||
|
$args['js'][] = $filepath . '/js/plugin.js';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -116,9 +117,10 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
|
|||||||
public function pageAddCssHandler(&$args)
|
public function pageAddCssHandler(&$args)
|
||||||
{
|
{
|
||||||
if ($args['request']->attributes->get('_route') == 'users') {
|
if ($args['request']->attributes->get('_route') == 'users') {
|
||||||
$args['css'][] = $this->getFilesPath() . '/vendor/jquery-colorbox/example3/colorbox.css';
|
$filepath = str_replace(DIRECTORY_SEPARATOR, '/', $this->getFilesPath());
|
||||||
$args['css'][] = $this->getFilesPath() . '/vendor/leaflet/dist/leaflet.css';
|
$args['css'][] = $filepath . '/vendor/jquery-colorbox/example3/colorbox.css';
|
||||||
$args['css'][] = $this->getFilesPath() . '/css/styles.css';
|
$args['css'][] = $filepath . '/vendor/leaflet/dist/leaflet.css';
|
||||||
|
$args['css'][] = $filepath . '/css/styles.css';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user