@@ 1219-1227 (lines=9) @@ | ||
1216 | return $value; |
|
1217 | } |
|
1218 | ||
1219 | function tep_get_tax_class_title($tax_class_id) { |
|
1220 | if ($tax_class_id == '0') { |
|
1221 | return OSCOM::getDef('text_none'); |
|
1222 | } else { |
|
1223 | $Qclass = Registry::get('Db')->get('tax_class', 'tax_class_title', ['tax_class_id' => (int)$tax_class_id]); |
|
1224 | ||
1225 | return $Qclass->value('tax_class_title'); |
|
1226 | } |
|
1227 | } |
|
1228 | ||
1229 | function tep_banner_image_extension() { |
|
1230 | if (function_exists('imagetypes')) { |
|
@@ 1315-1327 (lines=13) @@ | ||
1312 | } |
|
1313 | } |
|
1314 | ||
1315 | function tep_get_zone_class_title($zone_class_id) { |
|
1316 | if ($zone_class_id == '0') { |
|
1317 | return OSCOM::getDef('text_none'); |
|
1318 | } else { |
|
1319 | $Qclass = Registry::get('Db')->get('geo_zones', [ |
|
1320 | 'geo_zone_name' |
|
1321 | ], [ |
|
1322 | 'geo_zone_id' => (int)$zone_class_id |
|
1323 | ]); |
|
1324 | ||
1325 | return $Qclass->value('geo_zone_name'); |
|
1326 | } |
|
1327 | } |
|
1328 | ||
1329 | function tep_cfg_pull_down_zone_classes($zone_class_id, $key = '') { |
|
1330 | $name = !empty($key) ? 'configuration[' . $key . ']' : 'configuration_value'; |