productTypes = $options['productTypes']; $this->urlBase = isset($options['urlBase']) ? $options['urlBase'] : ''; } public function setUrlBase($base) { $this->urlBase = $base; } public function render($bEcho = true) { $str = ''; $str.= "
".ucwords($metKey)." | "; } if (isset(App::Get()->settings['browser_pt_hidden_search_met'])) { foreach (App::Get()->settings['browser_pt_hidden_search_met'] as $metKey) { $str .= "{$metKey} | "; } } $str .= "|||
---|---|---|---|---|
urlBase}/products/{$ptKey}\">{$ptMetadata[$metKey][0]}"; if(count($ptMetadata[$metKey]) == 2){ $str .= " ({$ptMetadata[$metKey][1]})"; } $str .= " | "; } else { if (count($ptMetadata[$metKey]) > 1) { $str .= "" . implode(", ", $ptMetadata[$metKey]) . " | "; } else { $str .= "{$ptMetadata[$metKey][0]} | "; } } } if (isset(App::Get()->settings['browser_pt_hidden_search_met'])) { foreach (App::Get()->settings['browser_pt_hidden_search_met'] as $metKey) { if (count($ptMetadata[$metKey]) > 1) { $str .= "" . implode(", ", $ptMetadata[$metKey]) . " | "; } else { $str .= "{$ptMetadata[$metKey][0]} | "; } } } $str .= "