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

New shortcode added on News view page: {NEWS_AUTHOR_REALNAME}

Tagcloud menu can now be sorted via shortcode parms. eg. {MENU: path=tagcloud&order=tag,asc&limit=20}
Animate.css library loading example added to bootstrap5/theme.xml
This commit is contained in:
Cameron
2021-06-12 16:18:51 -07:00
parent f561c5920b
commit aa6e449aee
6 changed files with 47 additions and 7 deletions

View File

@@ -100,7 +100,7 @@ class e_media
$img_array = $fl->get_files($epath, $fmask,'',2);
if(!count($img_array))
if(empty($img_array))
{
e107::getMessage()->addDebug("Media-Import could not find any files in <b>".$epath."</b> with fmask: ".$fmask);
return $this;
@@ -119,11 +119,13 @@ class e_media
if(vartrue($options['min-width']) && ($f['img-width'] < $options['min-width']))
{
$mes->addDebug("Skipped: ".$f['fname']);
continue;
}
if(vartrue($options['min-size']) && ($f['fsize'] < $options['min-size']))
{
$mes->addDebug("Skipped: ".$f['fname']);
continue;
}
@@ -145,7 +147,7 @@ class e_media
'media_tags' => '',
'media_type' => $f['mime']
);
if(!$sql->select('core_media','media_url',"media_url = '".$fullpath."' LIMIT 1"))
{
@@ -159,11 +161,15 @@ class e_media
$mes->addError("Media not imported: ".$f['fname']);
}
}
else
{
$mes->addDebug("Skipped (already exists): ".$f['fname']);
}
}
// if($count)
if(!empty($count))
{
// $mes->addSuccess("Imported {$count} Media items.");
$mes->addDebug("Imported {$count} Media items.");
}
return $this;