1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-23 06:33:22 +02:00

Hero now has a background image and an image/video field. Re-install and clear db cache.

This commit is contained in:
Cameron
2020-12-17 09:57:14 -08:00
parent b6dbb86c1d
commit 50af16ab45
8 changed files with 63 additions and 30 deletions

View File

@@ -48,11 +48,9 @@ class hero_shortcodes extends e_shortcode
$data = e107::getDb()->retrieve('hero','*',"hero_class IN(".USERCLASS_LIST.") ORDER BY hero_order",true);
$sc = e107::getScBatch('hero', true, 'hero');
$sc = e107::getScBatch('hero',true, 'hero');
$template = e107::getTemplate('hero','hero','menu');
$template = e107::getTemplate('hero','hero','default'); // todo use a table field to make layout dynamic.
$tp = e107::getParser();
@@ -96,16 +94,11 @@ class hero_shortcodes extends e_shortcode
$sc->count = $cnt;
$text .= $tp->parseTemplate($template['item'],true,$sc);
}
$text .= $tp->parseTemplate($template['end'],true,$sc);
}
$text .= $tp->parseTemplate($template['footer'], true, $sc);