[+] Classes : Media::getJqueryPluginPath() - added new parameter $folder
This commit is contained in:
1 parent
b92c1accb6
commit
9ad9d0781e
1 file changed
+4
-2
+4
-2
@@ -303,10 +303,12 @@ class MediaCore
|
|||||||
* @param mixed $name
|
* @param mixed $name
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public static function getJqueryPluginPath($name)
|
public static function getJqueryPluginPath($name, $folder = null)
|
||||||
{
|
{
|
||||||
$plugin_path = array('js' => array(), 'css' => array());
|
$plugin_path = array('js' => array(), 'css' => array());
|
||||||
$folder = _PS_JS_DIR_.'jquery/plugins/';
|
if (is_null($folder))
|
||||||
|
$folder = _PS_JS_DIR_.'jquery/plugins/'; //set default folder
|
||||||
|
|
||||||
$file = 'jquery.'.$name.'.js';
|
$file = 'jquery.'.$name.'.js';
|
||||||
$url_data = parse_url($folder);
|
$url_data = parse_url($folder);
|
||||||
$file_uri = _PS_ROOT_DIR_.Tools::str_replace_once(__PS_BASE_URI__, DIRECTORY_SEPARATOR, $url_data['path']);
|
$file_uri = _PS_ROOT_DIR_.Tools::str_replace_once(__PS_BASE_URI__, DIRECTORY_SEPARATOR, $url_data['path']);
|
||||||
|
|||||||
Reference in new issue
Block a user