Changeset 282084
- Timestamp:
- 08/03/2025 06:18:41 PM (4 months ago)
- Location:
- shoper/1.6.4
- Files:
-
- 4 edited
- 1 copied
-
. (copied) (copied from shoper/1.6.3)
-
assets/js/shoper.js (modified) (1 diff)
-
inc/class/class-header.php (modified) (2 diffs)
-
search.php (modified) (2 diffs)
-
style.css (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shoper/1.6.4/assets/js/shoper.js
r139409 r282084 235 235 236 236 } 237 }); 237 }); 238 if ($('h2.wp-block-heading').length) { 239 $('h2.wp-block-heading').each(function(index) { 240 var currentContent = $(this).html(); 241 $(this).html('<span>' + currentContent + '</span>'); 242 }); 243 } 244 238 245 239 246 }); -
shoper/1.6.4/inc/class/class-header.php
r227352 r282084 192 192 public function get_site_search_form (){ 193 193 ?> 194 <div class="search-bar" id="search-bar"> 195 <div class="container-wrap"> 196 <div class="container"> 197 <div class="row align-items-center"> 198 <div class="col-md-8"> 199 <?php 200 if( class_exists('APSW_Product_Search_Finale_Class') && class_exists( 'WooCommerce' ) ){ 201 do_action('apsw_search_bar_preview'); 202 }else{ 203 get_search_form(); 204 } 205 ?> 206 </div> 207 <div class="col-md-4"> 208 <a href="javascript:void(0)" class="search-close-trigger"><i class="icofont-close"></i></a> 209 </div> 210 </div> 211 </div> 194 <div class="search-bar d-flex align-items-center" id="search-bar"> 195 <div class="form-wrap"> 196 <?php 197 if( class_exists('APSW_Product_Search_Finale_Class') && class_exists( 'WooCommerce' ) ){ 198 do_action('apsw_search_bar_preview'); 199 }else{ 200 get_search_form(); 201 } 202 ?> 203 <a href="javascript:void(0)" class="search-close-trigger"><i class="icofont-close"></i></a> 212 204 </div> 213 205 </div> … … 289 281 echo single_post_title( '', false ); 290 282 echo '</h1>'; 283 if( is_singular('post') ){ 284 do_action('shoper_single_post_meta'); 285 } 291 286 } elseif ( is_archive() ) { 292 287 -
shoper/1.6.4/search.php
r139409 r282084 7 7 * @package shoper 8 8 */ 9 10 11 9 get_header(); 12 10 /** … … 17 15 do_action( 'shoper_container_wrap_start'); 18 16 19 20 if ( have_posts() ) : ?> 21 22 <header class="page-header shoper-header-block"> 23 <h1 class="page-title"> 24 <?php 25 /* translators: %s: search query. */ 26 printf( esc_html__( 'Search Results for: %s', 'shoper' ), '<span>' . get_search_query() . '</span>' ); 27 ?> 28 </h1> 29 </header><!-- .page-header --> 30 31 <?php 17 if ( have_posts() ) : 32 18 /* Start the Loop */ 33 19 while ( have_posts() ) : -
shoper/1.6.4/style.css
r280999 r282084 9 9 Tested up to: 6.8.0 10 10 Requires PHP: 7.0 11 Version: 1.6. 311 Version: 1.6.4 12 12 License: GPLv3 or later 13 13 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 735 735 transform: translateY(-100%); 736 736 transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1); 737 738 737 } 739 738 .search-bar.active{ … … 753 752 transform: translateY(-50px); 754 753 } 754 .search-bar .form-wrap{ 755 width: 100%; 756 max-width: 500px; 757 margin: 0px auto; 758 display: flex; 759 align-items: center; 760 } 761 .search-bar .form-wrap a{ 762 margin-left: 10px; 763 } 755 764 .search-bar form{ 756 765 position: relative; 766 width: 100%; 767 margin-bottom: 0px; 757 768 } 758 769 .search-bar label{ … … 812 823 .related.products h2, 813 824 .upsells.products h2, 814 .cross-sells h2{ 825 .cross-sells h2, 826 h2.wp-block-heading{ 815 827 text-align:center; 816 828 display: block; … … 822 834 .related.products h2 span, 823 835 .upsells.products h2 span, 824 .cross-sells h2 span{ 836 .cross-sells h2 span, 837 h2.wp-block-heading span{ 825 838 display:inline-block; 826 839 padding:10px 15px;
Note: See TracChangeset
for help on using the changeset viewer.