1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Dropzone LAN added. Catch theme shortcode when set in sitelinks but missing and add a debug message.

This commit is contained in:
Cameron
2018-08-24 16:04:12 -07:00
parent 4ab4220093
commit 3d031895ca
3 changed files with 13 additions and 0 deletions

View File

@@ -1519,6 +1519,8 @@ class e_form
$('#".$name_id."_prev').dropzone({ $('#".$name_id."_prev').dropzone({
url: '".e_JS."plupload/upload.php?for=".$cat."', url: '".e_JS."plupload/upload.php?for=".$cat."',
createImageThumbnails: false, createImageThumbnails: false,
uploadMultiple :true,
dictDefaultMessage: \"".defset('LAN_UI_DROPZONE_DROP_FILES', "Drop files here to upload")."\",
maxFilesize: ".(int) ini_get('upload_max_filesize').", maxFilesize: ".(int) ini_get('upload_max_filesize').",
success: function (file, response) { success: function (file, response) {

View File

@@ -1775,6 +1775,9 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
{ {
return '<div class="dropdown-menu">'.$text.'</div>'; // @todo use template? return '<div class="dropdown-menu">'.$text.'</div>'; // @todo use template?
} }
e107::getDebug()->log("Theme shortcode (".$method.") could not be found for use in sitelink");
return array();
} }
if(strpos($method,"(")) if(strpos($method,"("))
@@ -1783,6 +1786,12 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
$parm = rtrim($prm,")"); $parm = rtrim($prm,")");
} }
if(!file_exists(e_PLUGIN.$path."/e_sitelink.php"))
{
}
if(include_once(e_PLUGIN.$path."/e_sitelink.php")) if(include_once(e_PLUGIN.$path."/e_sitelink.php"))
{ {
$class = $path."_sitelink"; $class = $path."_sitelink";

View File

@@ -562,3 +562,5 @@ define("LAN_UI_FILTER_IS_EMPTY", "Is Empty");
define("LAN_RECALCULATE_COMMENT_COUNT", "Recalculate comment count"); define("LAN_RECALCULATE_COMMENT_COUNT", "Recalculate comment count");
define("LAN_SUCC_RECALCULATE_COMMENT_COUNT", "Comment count successfully recalculated!"); define("LAN_SUCC_RECALCULATE_COMMENT_COUNT", "Comment count successfully recalculated!");
define("LAN_NO_RESULTS_FOUND", "No Results Found."); define("LAN_NO_RESULTS_FOUND", "No Results Found.");
define("LAN_UI_DROPZONE_DROP_FILES", "Drop files here to upload");