config = $config; } public function render(){ $wrapperAttributes = [ 'class' => 'fluent-cart-search-bar-app-wrapper', 'data-link-with-shop-app' => esc_attr(Arr::get($this->config, 'link_with_shop_app', false)), 'data-fluent-cart-search-bar-app-wrapper' => '', 'data-url-mode' => esc_attr(Arr::get($this->config, 'url_mode', '')), 'data-show-thumbnail' => esc_attr(Arr::get($this->config, 'show_thumbnail', true) ? 'true' : 'false'), ]; ?>
role="search">
config, 'category_mode', '')){ $this->renderCategory(); } ?> renderInput(); ?>
renderSearchResult(); ?>
config, 'url_mode', '') == 'new-tab') ? 'target="_blank"' : ''; $showThumbnail = Arr::get($this->config, 'show_thumbnail', true); foreach ($products as $product) { $productTitle = Arr::get($product, 'post_title', ''); $productUrl = Arr::get($product, 'guid', ''); $thumbnail = $showThumbnail ? Arr::get($product, 'thumbnail', '') : ''; $minPrice = Arr::get($product, 'detail.formatted_min_price', ''); $maxPrice = Arr::get($product, 'detail.formatted_max_price', ''); $aria_label = sprintf( /* translators: 1: Product title */ esc_attr__('View product: %1$s', 'fluent-cart'), esc_html($productTitle) ); ?>
  • aria-label="" >
    <?php echo esc_attr($productTitle); ?>
    -