From a3674a7bf01ea1f8b4cc0248d7ae1e8a52560a68 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 12 Nov 2017 10:38:02 -0800 Subject: [PATCH] Custom label option for progressbar(). Extra example code in _blank.php --- e107_handlers/form_handler.php | 7 +++++-- e107_plugins/_blank/_blank.php | 13 +++++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 3b13f75e2..66fc1f9e4 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -1907,11 +1907,14 @@ class e_form $label = $percVal; } - + if(!empty($options['label'])) + { + $label = $options['label']; + } $text = "
-
"; +
"; $text .= $label; $text .= "
"; diff --git a/e107_plugins/_blank/_blank.php b/e107_plugins/_blank/_blank.php index a5ae95368..1d686683e 100644 --- a/e107_plugins/_blank/_blank.php +++ b/e107_plugins/_blank/_blank.php @@ -37,20 +37,29 @@ class _blank_front $frm = e107::getForm(); // Form element class. $ns = e107::getRender(); // render in theme box. + + $text = ''; + + // $sc = e107::getScBatch('_blank',true, '_blank'); // $template = e107::getTemplate('_blank','_blank','default'); - $text = ''; + // $text = $tp->parseTemplate($template['start'],true, $sc); if($rows = $sql->retrieve('blank','*',false,'',true)) // combined select and fetch function - returns an array. { // print_a($rows); foreach($rows as $key=>$value) // loop throug { - // $sc->setVars($value); // if shortcodes are enabled. + + // $sc->setVars($value); // if shortcodes are enabled. + // $text .= $tp->parseTemplate($template['item'],true, $sc); + $text .= $tp->toHtml($value['blank_type'])."
"; } + // $text .= $tp->parseTemplate($template['end'],true, $sc); + $ns->tablerender("My Caption", $text); }