PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/travelchappelle.online/wp-content/themes/Custom2/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/travelchappelle.online/wp-content/themes/Custom2/thumbnail.php |
<div class="thumbnail"><a href="<?php the_permalink() ?>" rel="bookmark"> <?php $PostContent = $post->post_content; $ImgSearch = '|<img.*?src=[\'"](.*?)[\'"].*?>|i'; preg_match_all( $ImgSearch, $PostContent, $PostImg ); $ImgNumber = count($PostImg[0]); if ( get_post_meta($post->ID, "Thumbnail", true) ) { ?> <img src="<?php echo get_post_meta($post->ID, "Thumbnail", true); ?>" alt="<?php the_title(); ?>" /> <?php } elseif ( get_post_meta($post->ID, "thumbnail", true) ) { ?> <img src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" /> <?php } elseif ( $ImgNumber > 0 ) { for ( $i=0; $i < $ImgNumber ; $i++ ) { echo $PostImg[0][$i]; }; } else { ?> <img src="<?php bloginfo('stylesheet_directory');?>/images/thumbnail.png" alt="thumbnail"/> <?php } ?></a></div>