Changeset 275453
- Timestamp:
- 06/11/2025 06:28:11 PM (6 months ago)
- Location:
- joyas-shop/1.3.4
- Files:
-
- 3 edited
- 1 copied
-
. (copied) (copied from joyas-shop/1.3.3)
-
inc/class/class-header.php (modified) (2 diffs)
-
inc/class/class-post-related.php (modified) (12 diffs)
-
style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
joyas-shop/1.3.4/inc/class/class-header.php
r262618 r275453 27 27 add_action('joyas_shop_site_header', array( $this, 'site_skip_to_content' ), 5 ); 28 28 29 30 29 add_action('joyas_shop_site_header', array( $this, 'site_header_top_bar' ), 10 ); 31 30 32 31 add_action('joyas_shop_site_header', array( $this, 'site_header_wrap_before' ), 10 ); 33 32 34 35 36 33 add_action('joyas_shop_site_header', array( $this, 'site_header_layout' ), 30 ); 37 34 … … 242 239 * @return HTML 243 240 */ 244 public function site_hero_sections(){ 245 if( is_404() ) return; 246 if ( is_front_page() && is_active_sidebar( 'slider' ) ) : 247 dynamic_sidebar( 'slider' ); 248 else: 249 $header_image = get_header_image(); 250 ?> 251 <?php if( !empty( $header_image ) ) : ?> 252 <div id="static_header_banner" class="header-img" style="background-image: url(<?php echo esc_url( $header_image );?>); background-attachment: scroll; background-size: cover; background-position: center center;"> 253 <?php else: ?> 254 <div id="static_header_banner"> 255 <?php endif;?> 256 257 258 259 <div class="content-text"> 260 <div class="container"> 261 <?php 262 echo '<div class="site-header-text-wrap">'; 263 264 if ( is_home() ) { 265 if ( display_header_text() == true ){ 266 echo '<h1 class="page-title-text">'; 267 echo bloginfo( 'name' ); 268 echo '</h1>'; 269 echo '<p class="subtitle">'; 270 echo esc_html(get_bloginfo( 'description', 'display' )); 271 echo '</p>'; 272 } 273 }else if ( function_exists('is_shop') && is_shop() ){ 274 if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { 275 echo '<h1 class="page-title-text">'; 276 echo esc_html( woocommerce_page_title() ); 277 echo '</h1>'; 278 } 279 }else if( function_exists('is_product_category') && is_product_category() ){ 280 echo '<h1 class="page-title-text">'; 281 echo esc_html( woocommerce_page_title() ); 282 echo '</h1>'; 283 echo '<p class="subtitle">'; 284 do_action( 'joyas_shop_archive_description' ); 285 echo '</p>'; 286 287 }elseif ( is_singular() ) { 288 echo '<h1 class="page-title-text">'; 289 echo single_post_title( '', false ); 290 echo '</h1>'; 291 } elseif ( is_archive() ) { 292 293 the_archive_title( '<h1 class="page-title-text">', '</h1>' ); 294 the_archive_description( '<p class="archive-description subtitle">', '</p>' ); 295 296 } elseif ( is_search() ) { 297 echo '<h1 class="title">'; 298 printf( /* translators:straing */ esc_html__( 'Search Results for: %s', 'joyas-shop' ), get_search_query() ); 299 echo '</h1>'; 300 } elseif ( is_404() ) { 301 echo '<h1 class="display-1">'; 302 esc_html_e( 'Oops! That page can’t be found.', 'joyas-shop' ); 303 echo '</h1>'; 304 } 305 echo '</div>'; 306 ?> 307 </div> 308 </div> 309 </div> 310 <?php 311 endif; 312 } 313 /** 314 * Add Banner Title. 315 * 316 * @since 1.0.0 317 */ 318 function hero_block_heading() { 319 echo '<div class="site-header-text-wrap">'; 320 321 if ( is_home() ) { 322 echo '<h1 class="page-title-text">'; 323 echo bloginfo( 'name' ); 324 echo '</h1>'; 325 echo '<p class="subtitle">'; 326 echo esc_html(get_bloginfo( 'description', 'display' )); 327 echo '</p>'; 328 }else if ( function_exists('is_shop') && is_shop() ){ 329 if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { 330 echo '<h1 class="page-title-text">'; 331 echo esc_html( woocommerce_page_title() ); 332 echo '</h1>'; 333 } 334 }else if( function_exists('is_product_category') && is_product_category() ){ 335 echo '<h1 class="page-title-text">'; 336 echo esc_html( woocommerce_page_title() ); 337 echo '</h1>'; 338 echo '<p class="subtitle">'; 339 do_action( 'joyas_shop_archive_description' ); 340 echo '</p>'; 341 342 }elseif ( is_singular() ) { 343 echo '<h1 class="page-title-text">'; 344 echo single_post_title( '', false ); 345 echo '</h1>'; 346 } elseif ( is_archive() ) { 347 348 the_archive_title( '<h1 class="page-title-text">', '</h1>' ); 349 the_archive_description( '<p class="archive-description subtitle">', '</p>' ); 350 351 } elseif ( is_search() ) { 352 echo '<h1 class="title">'; 353 printf( /* translators:straing */ esc_html__( 'Search Results for: %s', 'joyas-shop' ), get_search_query() ); 354 echo '</h1>'; 355 } elseif ( is_404() ) { 356 echo '<h1 class="display-1">'; 357 esc_html_e( 'Oops! That page can’t be found.', 'joyas-shop' ); 358 echo '</h1>'; 359 } 360 361 echo '</div>'; 241 public function site_hero_sections() { 242 if ( is_404() ) return; 243 244 if ( is_front_page() && is_active_sidebar( 'slider' ) ) { 245 dynamic_sidebar( 'slider' ); 246 return; 247 } 248 $header_image = get_header_image(); 249 $has_header_image = ! empty( $header_image ); 250 ?> 251 <div id="static_header_banner" class="header-img" 252 <?php if ( $has_header_image ) : ?> 253 style="background-image: url(<?php echo esc_url( $header_image ); ?>); background-attachment: scroll; background-size: cover; background-position: center center;" 254 <?php endif; ?>> 255 256 <div class="content-text"> 257 <div class="container"> 258 <div class="site-header-text-wrap"> 259 <?php 260 if ( is_home() && display_header_text() ) { 261 echo '<h1 class="page-title-text">' . get_bloginfo( 'name' ) . '</h1>'; 262 echo '<p class="subtitle">' . esc_html( get_bloginfo( 'description', 'display' ) ) . '</p>'; 263 } 264 265 elseif ( function_exists( 'is_shop' ) && is_shop() && class_exists( 'WooCommerce' ) ) { 266 echo '<h1 class="page-title-text">'; 267 echo esc_html( woocommerce_page_title() ); 268 echo '</h1>'; 269 } 270 elseif ( function_exists( 'is_product_category' ) && is_product_category() ) { 271 echo '<h1 class="page-title-text">'; 272 echo esc_html( woocommerce_page_title() ); 273 echo '</h1>'; 274 echo '<p class="subtitle">'; 275 do_action( 'joyas_shop_archive_description' ); 276 echo '</p>'; 277 } 278 279 elseif ( is_singular() ) { 280 echo '<h1 class="page-title-text">' . single_post_title( '', false ) . '</h1>'; 281 echo '<div class="subtitle">'; 282 do_action( 'joyas_shop_single_post_title' ); 283 echo '</div>'; 284 } 285 286 elseif ( is_archive() ) { 287 the_archive_title( '<h1 class="page-title-text">', '</h1>' ); 288 the_archive_description( '<p class="archive-description subtitle">', '</p>' ); 289 } 290 291 elseif ( is_search() ) { 292 echo '<h1 class="title">'; 293 printf( esc_html__( 'Search Results for: %s', 'joyas-shop' ), get_search_query() ); 294 echo '</h1>'; 295 } 296 297 elseif ( is_404() ) { 298 echo '<h1 class="display-1">'; 299 esc_html_e( 'Oops! That page can’t be found.', 'joyas-shop' ); 300 echo '</h1>'; 301 } 302 ?> 303 </div> 304 </div> 305 </div> 306 </div> 307 <?php 362 308 } 363 309 private function alowed_tags(){ -
joyas-shop/1.3.4/inc/class/class-post-related.php
r170683 r275453 26 26 27 27 add_action( 'joyas_shop_posts_blog_media', array( $this, 'render_thumbnail' ) ); 28 29 30 28 add_action( 'joyas_shop_loop_navigation', array( $this,'site_loop_navigation' ) ); 31 29 add_action( 'joyas_shop_single_post_navigation', array( $this,'single_post_navigation' ),10 ); 32 33 30 add_filter( 'the_content_more_link', array( $this,'content_read_more_link' )); 34 31 add_filter( 'excerpt_more', array( $this,'excerpt_read_more_link' ) ); … … 41 38 function author_bio(){ 42 39 ?> 43 44 <div id="author-info"> 45 <div class="author-avatar"> 46 <?php echo get_avatar( get_the_author_meta('user_email'), '80', '' ); ?> 47 </div> 48 <h3><?php the_author_link(); ?></h3> 49 <div class="author-description"> 50 <?php the_author_meta('description'); ?> 51 </div> 40 <div id="author-info"> 41 <div class="author-avatar"> 42 <?php echo get_avatar( get_the_author_meta('user_email'), '80', '' ); ?> 52 43 </div> 53 44 <h3><?php the_author_link(); ?></h3> 45 <div class="author-description"> 46 <?php the_author_meta('description'); ?> 47 </div> 48 </div> 54 49 <?php 55 50 } … … 66 61 the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark" >', '</a></h2>' ); 67 62 endif; 68 69 70 } 71 72 73 63 } 74 64 /** 75 65 * @since Blog Expert 1.0.0 … … 103 93 104 94 } 105 106 107 108 95 /** 109 96 * Adds custom Read More link the_content(). … … 142 129 return $more; 143 130 } 144 145 146 131 /** 147 132 * Post Single Posts Navigation … … 193 178 194 179 } 195 196 197 180 /** 198 181 * Post Posts Loop Navigation … … 231 214 endif; 232 215 233 234 } 235 236 216 } 237 217 /** 238 218 * Change Comment fields location … … 253 233 return $fields; 254 234 } 255 256 257 258 235 /** 259 236 * Render post type thumbnail. … … 282 259 283 260 } 284 285 286 261 /** 287 262 * Post formats audio. … … 333 308 334 309 endif; 335 336 337 338 310 $html = apply_filters( 'joyas-shop_gallery_thumbnail', $html ); 339 311 … … 394 366 $html .= $this->get_image_thumbnail(); 395 367 } 396 397 398 399 368 400 369 $html = apply_filters( 'joyas-shop_audio_thumbnail', $html ); … … 484 453 echo wp_kses( $html, $this->alowed_tags() ); 485 454 } 486 487 488 489 490 455 private function alowed_tags(){ 491 456 -
joyas-shop/1.3.4/style.css
r270218 r275453 8 8 Tested up to: 6.8.0 9 9 Requires PHP: 7.0 10 Version: 1.3. 310 Version: 1.3.4 11 11 License: GPLv3 or later 12 12 License URI: http://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset
for help on using the changeset viewer.