diff --git a/administrator/components/com_j2store/helpers/j2html.php b/administrator/components/com_j2store/helpers/j2html.php index 771e7c7b..09b3030b 100755 --- a/administrator/components/com_j2store/helpers/j2html.php +++ b/administrator/components/com_j2store/helpers/j2html.php @@ -66,9 +66,9 @@ public static function price($name, $value = null, $options = array()) // return price input $html = ''; - $html .= '
'; + $html .= '
'; if (!empty($symbol)) { - $html .= '' . $symbol . ''; + $html .= '' . $symbol . ''; } $html .= ''; $html .= '
'; @@ -87,9 +87,9 @@ public static function price_with_data($prefix, $primary_key, $name, $value, $op $value = str_replace(str_split('\\/:*?"<>|+-'),'',$value); // return price input $html = ''; - $html .= '
'; + $html .= '
'; if (!empty($symbol)) { - $html .= '' . $symbol . ''; + $html .= '' . $symbol . ''; } $html .= ''; $html .= '
'; @@ -213,22 +213,10 @@ public static function radioBooleanList($name, $value = '', $options = []) $html = ''; $id = $options['id'] ?? $name; - // Display label if hide_label is not set or empty - if (empty($options['hide_label'])) { - $html .= '
'; - $labelText = $options['label_text'] ?? Text::_('JGLOBAL_YES'); - $html .= self::label($labelText, $options); - } - // Use HTMLHelper to generate the boolean list with localized labels for yes/no $attribs = []; $html .= HTMLHelper::_('select.booleanlist', $name, $attribs, $value, Text::_('JYES'), Text::_('JNO'), $id); - // Close the control group div if label is displayed - if (empty($options['hide_label'])) { - $html .= '
'; - } - return $html; } @@ -663,7 +651,7 @@ public static function country($name, $value, $options) $country_id = isset($options['id']) && $options['id'] ? $options['id'] : 'country_id'; $zone_id = isset($options['zone_id']) && $options['zone_id'] ? $options['zone_id'] : 'zone_id'; $zone_value = isset($options['zone_value']) && $options['zone_value'] ? $options['zone_value'] : ''; - $attr = array("onchange" => "changeZone('$country_id',this.value,'$zone_id',$zone_value)", 'id' => $country_id); + $attr = array("onchange" => "changeZone('$country_id',this.value,'$zone_id',$zone_value)", 'id' => $country_id, 'class' => 'form-select'); return self::select()->clearState() ->idTag($country_id) ->type('genericlist') @@ -684,7 +672,7 @@ public static function country($name, $value, $options) public static function zone($name, $value, $options) { $zone_id = isset($options['id']) && $options['id'] ? $options['id'] : 'zone_id'; - $attr = array('id' => $zone_id); + $attr = array('id' => $zone_id, 'class' => 'form-select'); return self::select()->clearState() ->idTag($zone_id) ->type('genericlist') @@ -709,13 +697,13 @@ public static function queueKey($name, $value,$options) $queue_key = $config->get ( 'queue_key','' ); $url = 'index.php?option=com_j2store&view=configuration&task=regenerateQueuekey'; if(empty( $queue_key )){ - $queue_string = JFactory::getConfig ()->get ( 'sitename','' ).time (); + $queue_string = Factory::getApplication()->getConfig()->get ( 'sitename','' ).time (); $queue_key = md5 ( $queue_string ); $config->saveOne ( 'queue_key', $queue_key ); } $html = ''; - $html .= '
'.$queue_key.'   '.Text::_ ( 'J2STORE_STORE_REGENERATE' ).' + $html .= '
'.$queue_key.''.Text::_ ( 'J2STORE_STORE_REGENERATE' ).'