at path:
ROOT
/
wp-content
/
themes
/
understrap-child
/
search.php
run:
R
W
Run
css
DIR
2026-02-09 12:38:27
R
W
Run
fonts
DIR
2026-02-09 12:38:28
R
W
Run
img
DIR
2026-02-09 12:38:28
R
W
Run
js
DIR
2026-02-09 12:38:28
R
W
Run
libs
DIR
2026-02-09 12:38:27
R
W
Run
page-templates
DIR
2026-02-09 12:38:28
R
W
Run
sass
DIR
2026-02-09 12:38:28
R
W
Run
src
DIR
2026-02-09 12:38:27
R
W
Run
ultimate-member
DIR
2026-02-09 12:38:27
R
W
Run
woocommerce
DIR
2026-02-09 12:38:28
R
W
Run
404.php
1.17 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
README.md
2.46 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
composer.json
337 By
2026-02-09 12:38:28
R
W
Run
Delete
Rename
footer.php
8.72 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
functions.php
28.06 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
gulpconfig.json
472 By
2026-02-09 12:38:28
R
W
Run
Delete
Rename
gulpfile.js
7.96 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
header.php
14.47 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
index.php
30 By
2026-02-09 12:38:28
R
W
Run
Delete
Rename
package-lock.json
289.08 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
package.json
1.35 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-30-anos.php
7.66 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-account.php
2.73 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-aguarde.php
3.65 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-area-do-distribuidor.php
6.41 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-area-do-farmaceutico.php
6.39 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-blog.php
13.31 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-carrinho.php
7.93 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-conheca-nossa-fabrica.php
2.49 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-contato.php
1.94 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
page-fale-conosco.php
2.56 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-finalizar-compra.php
6.57 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-home.php
18.4 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-login.php
4.29 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-minha-conta.php
11.62 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-modal.php
21.52 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-nossa-trajetoria.php
6.47 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-password-reset.php
1.09 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
page-produtos.php
12.45 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-sac-farmacovigilancia.php
2.9 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-sac-nutrivigilancia.php
2.9 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-sobre-a-lapon.php
5.93 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
page-trabalhe-conosco.php
3.25 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
page-user.php
6.37 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
positions.json
4.88 MB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
product-pdv.json
15.59 MB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
produtos-farmacias.json
12.34 MB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
search.php
11.5 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
single-product.php
15.92 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
single.php
11.61 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
style.css
5.81 KB
2026-02-09 12:38:28
R
W
Run
Delete
Rename
wp-maintenance-mode-OLD.php
3.64 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
error_log
up
📄
search.php
Save
<style> .image-container { position: relative; } .opac { position: absolute; width: 100%; height: 100%; top: 0; left: 0; background: rgba(0,0,0,0.4); } #banner-section.linha .banner-content h2 { width: fit-content; margin: auto; } #produtos-section { padding: 60px 15px 80px; } #produtos-section h3 { font-size: 20px; font-weight: bold; color: #525252; } .product a:hover { text-decoration: none; color: #525252; } .product a{ color: #525252; } .product { margin: 25px 0; } .product img { height: 200px; object-fit: cover; } .product .out-of-stock { box-sizing: border-box; position: absolute; display: block; background-color: #E6E6E6; border-radius: 2px; height: 30px; width: 150px; text-align: center; padding: 10px 5px; font-size: 14px; color: #525252; top: 140px; opacity: 1; } .noticias .product span { color: #8D8D8D; font-size: 15px; margin-top: 12px; display: block; font-weight: 300; } .noticias .product h4 { color: #525252; font-size: 15px; font-weight: bold; margin-top: 10px; margin-bottom: 20px; } .produtos .product-data { box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; } .produtos .product-title { font-size: 15px; font-weight: bold; margin-bottom: 5px; } .produtos .product-description { height: 60px; font-size: 12px; font-weight: 300; margin-bottom: 10px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; /* number of lines to show */ line-clamp: 3; -webkit-box-orient: vertical; } .produtos .product-price { font-size: 12px; color: #525252; font-weight: 300; text-decoration: line-through; margin: 0; min-height: 20px; opacity: 0.5; } .in_drugstore { font-size: 12px; color: #525252; font-weight: 300; margin: 0; opacity: 0.5; } .produtos .product-price_off { color: #525252; font-weight: 300; } .product .categoria { font-size: 13px; color: #525252; background: #99D9FF7B; border-radius: 1px; padding: 4px; width: fit-content; } .tags-noticia { display: none; } .load-more { margin: 30px auto; } .btn-loading { opacity: 0.7; pointer-events: none; } .row .not-found { margin-left: 30px; } .product .add_to_cart_button, .product .search_drugstore { margin-top: 10px; color: #0078BF; font-size: 12px; padding: 10px 45px 7px 10px; transition: all 0.3s; } .product .add_to_cart_button:hover, .product .search_drugstore:hover { color: #0056b3; } .product .add_to_cart_button.loading { pointer-events: none; opacity: 0.5; padding-right: 10px; left: 0; transform: none; } .product .add_to_cart_button.loading:before, .product .add_to_cart_button.loading:after{ background: none; } .product .added_to_cart { display: block; margin-top: 10px; text-transform: uppercase; color: #ffffff !important; font-size: 10px; background: #0078BF; padding: 10px 7px 6px 7px; width: fit-content; border-radius: 4px; } @media(max-width: 767px){ #produtos-section .tags { padding-left: 15px; order: -1; } .tags .tag{ height: 22px; } .product .out-of-stock { top: 110px; width: 135px; font-size: 12px; } .product .add_to_cart_button, .product .search_drugstore { text-align: center; } } @media(min-width: 768px){ .filtro-mode { display: none; } } </style> <?php $search = get_search_query(); ?> <?php get_header(); ?> <section id="banner-section" class="linha"> <div class="image-container"> <img src="/wp-content/uploads/2020/11/Lapon_Banner-principal-BLOG.jpg" class="banner-desktop"/> <img src="/wp-content/uploads/2020/11/Lapon_Banner-mobile-Blog-1.jpg" class="banner-mobile"> <div class="opac"></div> <div class="banner-content"> <h2> BUSCA </h2> </div> </div> </section> <section id="produtos-section" class="container"> <p class="search-description">Exibindo resultados para: <b><?php echo $search; ?></b> </p> <div class="row"> <div class="col-12 noticias"> <h3> Notícias </h3> <div class="row" id="row-news"> <?php $args = array( 'post_type' => 'post', 'posts_per_page' => 12, 'paged' => 1, 's' => $search, ); $the_query = new WP_Query($args); $nop = $the_query->max_num_pages; if ($nop <= 1) { ?> <style> .noticias .load-more { visibility: hidden; } </style> <?php } if ($the_query->have_posts()) : while ($the_query->have_posts()) : $the_query->the_post();?> <?php ?> <div class="product col-12 col-md-4"> <a href="<?php echo get_the_permalink(); ?>"> <?php echo the_post_thumbnail(); ?> <span><?php echo get_the_date(); ?></span> <h4><?php echo the_title(); ?></h4> <div class="categoria"> <?php echo get_the_category()[0]->name; ?> </div> <div class="tags-noticia"> <?php $tags = get_the_tags(); foreach($tags as $tag){ ?> <span><?php echo $tag->name; ?></span> <?php } ?> </div> </a> </div> <?php endwhile; else: echo '<p class="not-found">Não foi encontrado nenhuma notícia para: <b>' . $search . '</b>.</p>'; endif; wp_reset_postdata(); ?> <div class="total-pages" data-maxpages="<?php echo $nop; ?>" data-search="<?php echo $search; ?>"></div> </div> <button class="default-btn-down load-more"> VER MAIS </button> </div> <div class="col-12 produtos"> <h3> Produtos </h3> <div class="row" id="row-products"> <?php $args = array( 'post_type' => 'product', 'posts_per_page' => 12, 'paged' => 1, 's' => $search, ); $the_query = new WP_Query($args); $nop = $the_query->max_num_pages; if ($nop <= 1) { ?> <style> .produtos .load-more { visibility: hidden; } </style> <?php } if ($the_query->have_posts()) : while ($the_query->have_posts()) : $the_query->the_post();?> <?php $product = wc_get_product(get_the_id()); $product_name = $product->get_name(); $product_price = number_format(floatval($product->get_regular_price()), 2,",","."); $product_price_off = number_format(floatval($product->get_sale_price()), 2,",","."); $product_image = $product->get_image(); $product_url = $product->get_permalink(); $product_description = $product->get_short_description(); $terms = get_the_terms( $product->get_id(), 'product_cat' ); $product_marca = $terms[0]->name; $line = get_post_meta( $product->get_id(), 'linha', true ); $tags = wp_get_post_terms( $product->get_id(), 'product_tag'); if(!($line == 'Linha Personalité' || $line == 'Linha Vida') && $product->is_in_stock()){ ?> <div class="product col-6 col-md-3"> <a href="<?php echo $product_url; ?>"> <div class="product-image-container"> <?php echo $product_image; ?> </div> <div class="product-data"> <div> <h4 class="product-title"> <?php echo $product_name; ?> </h4> <p class="product-description"> <?php echo $product_description; ?> </p> </div> <div> <?php if(floatval($product_price_off) > 0) { ?> <p class="product-price">R$<?php echo $product_price; ?></p> <span class="product-price_off">R$<?php echo $product_price_off; ?></span> <?php } else { ?> <p class="product-price"></p> <span class="product-price_off">R$<?php echo $product_price; ?></span> <?php } ?> </div> </div> </a> <a href="<?php echo $product->add_to_cart_url() ?>" value="<?php echo esc_attr( $product->get_id() ); ?>" class="ajax_add_to_cart add_to_cart_button default-btn" data-product_id="<?php echo get_the_ID(); ?>" data-product_sku="<?php echo esc_attr($sku) ?>" aria-label="Adicionar “<?php the_title_attribute() ?>” ao carrinho"> ADICIONAR AO CARRINHO </a> </div> <?php } else { ?> <div class="product col-6 col-md-3"> <a href="<?php echo $product_url; ?>"> <div class="product-image-container"> <?php echo $product_image; ?> </div> <div class="product-data"> <div> <h4 class="product-title"> <?php echo $product_name; ?> </h4> <p class="product-description"> <?php echo $product_description; ?> </p> </div> </div> </a> <a href="/encontre-uma-farmacia?cat=<?php echo $tags[0]->name; ?>" class="search_drugstore default-btn" style="border: none;"> ENCONTRE UMA FARMÁCIA </a> </div> <?php } endwhile; else: echo '<p class="not-found">Não foi encontrado nenhum produto para: <b>' . $search . '</b>.</p>'; endif; wp_reset_postdata(); ?> <div class="total-pages" data-maxpages="<?php echo $nop; ?>" data-search="<?php echo $search; ?>"></div> </div> <button class="default-btn-down load-more"> VER MAIS </button> </div> </div> </section> <?php get_footer(); ?> <script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js"></script> <script> jQuery(function($){ var post_per_page = 12; var page_news = 1; var page_products = 1; var max_num_pages_news = $("#row-news .total-pages").data("maxpages"); var max_num_pages_products = $("#row-products .total-pages").data("maxpages"); var search = $("#row-products .total-pages").data("search"); $(".noticias .load-more").on('click', function(e){ e.preventDefault(); page_news++; var button = $(this); var data = { action: 'load_filter_search_news', ppp: post_per_page, page: page_news, search: search, }; $.ajax({ type: 'post', url: wc_add_to_cart_params.ajax_url, data: data, beforeSend: function (response) { button.text("CARREGANDO..."); button.attr("disabled", true); button.addClass('btn-loading'); }, complete: function (response) { button.text("VER MAIS"); button.attr("disabled", false); button.removeClass('btn-loading'); }, success: function(response){ if((max_num_pages_news - page_news) > 0) { $("#row-news").append(response); $("#row-news").fadeIn(); } else { $("#row-news").append(response); $("#row-news").fadeIn(); button.hide(); } }, }); }); $(".produtos .load-more").on('click', function(e){ e.preventDefault(); page_products++; var button = $(this); var data = { action: 'load_filter_search_products', ppp: post_per_page, page: page_products, search: search, }; $.ajax({ type: 'post', url: wc_add_to_cart_params.ajax_url, data: data, beforeSend: function (response) { button.text("CARREGANDO..."); button.attr("disabled", true); button.addClass('btn-loading'); }, complete: function (response) { button.text("VER MAIS"); button.attr("disabled", false); button.removeClass('btn-loading'); }, success: function(response){ if((max_num_pages_products - page_products) > 0) { $("#row-products").append(response); $("#row-products").fadeIn(); } else { $("#row-products").append(response); $("#row-products").fadeIn(); button.hide(); } }, }); }); }); </script>