mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 09:34:54 +02:00
Initial commit to integrate Library Manager into core.
This commit is contained in:
@@ -1638,6 +1638,44 @@ class e107
|
|||||||
return self::getSingleton('eMessage', true);
|
return self::getSingleton('eMessage', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieve Library Manager singleton object
|
||||||
|
*
|
||||||
|
* @return e_library_manager
|
||||||
|
*/
|
||||||
|
public static function getLibrary()
|
||||||
|
{
|
||||||
|
static $included = false;
|
||||||
|
if(!$included)
|
||||||
|
{
|
||||||
|
e107_require_once(e_HANDLER . 'library_manager.php');
|
||||||
|
$included = true;
|
||||||
|
}
|
||||||
|
return e_library_manager::getInstance();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Library Common Public Function.
|
||||||
|
*
|
||||||
|
* @param string $action detect|load
|
||||||
|
* @param string $library
|
||||||
|
*/
|
||||||
|
public static function library($action, $library)
|
||||||
|
{
|
||||||
|
$libraryHandler = e107::getLibrary();
|
||||||
|
|
||||||
|
switch ($action)
|
||||||
|
{
|
||||||
|
case 'detect':
|
||||||
|
$libraryHandler->libraryDetect($library);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'load':
|
||||||
|
$libraryHandler->libraryLoad($library);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve JS Manager singleton object
|
* Retrieve JS Manager singleton object
|
||||||
*
|
*
|
||||||
|
1158
e107_handlers/library_manager.php
Normal file
1158
e107_handlers/library_manager.php
Normal file
File diff suppressed because it is too large
Load Diff
@@ -60,7 +60,8 @@ class e107plugin
|
|||||||
'e_related',
|
'e_related',
|
||||||
'e_rss',
|
'e_rss',
|
||||||
'e_upload',
|
'e_upload',
|
||||||
'e_user'
|
'e_user',
|
||||||
|
'e_library', // For third-party libraries are defined by plugins/themes.
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
18
e107_languages/English/lan_library_manager.php
Normal file
18
e107_languages/English/lan_library_manager.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Language definitions for Library Manager.
|
||||||
|
*/
|
||||||
|
|
||||||
|
define('LAN_LIBRARY_MANAGER_01', 'The "[x]" library, which the "[y]" library depends on, is not installed.');
|
||||||
|
define('LAN_LIBRARY_MANAGER_02', 'The version "[x]" of the "[y]" library is not compatible with the "[z]" library.');
|
||||||
|
define('LAN_LIBRARY_MANAGER_03', 'The "[x]" library could not be found.');
|
||||||
|
define('LAN_LIBRARY_MANAGER_04', 'The version of the "[x]" library could not be detected.');
|
||||||
|
define('LAN_LIBRARY_MANAGER_05', 'The installed version "[x]" of the "[y]" library is not supported.');
|
||||||
|
define('LAN_LIBRARY_MANAGER_06', 'The "[x]" variant of the "[y]" library could not be found.');
|
||||||
|
define('LAN_LIBRARY_MANAGER_07', 'missing dependency');
|
||||||
|
define('LAN_LIBRARY_MANAGER_08', 'incompatible dependency');
|
||||||
|
define('LAN_LIBRARY_MANAGER_09', 'not found');
|
||||||
|
define('LAN_LIBRARY_MANAGER_10', 'not detected');
|
||||||
|
define('LAN_LIBRARY_MANAGER_11', 'not supported');
|
Reference in New Issue
Block a user