![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/hessa.corals.io/wp-content/themes/mauer-essentialist/ |
<?php /* * Single post template */ get_header(); ?> <div class="section-main-content"> <div class="container"> <?php if ( have_posts() ) : ?> <?php global $wp_query; ?> <?php while ( have_posts() ) : the_post(); ?> <div class="row"> <div class="col-xs-12 alignwide-width-reference"> <div <?php post_class('entry-full'); ?>> <?php if (has_post_thumbnail()): ?> <div class="entry-thumb singlePost"> <img src="<?php the_post_thumbnail_url(); ?>" class="attachment-full wp-post-image" alt="<?php the_title(); ?>" loading="lazy" > </div> <?php endif; ?> <div class="row"> <div class="col-md-8 col-md-offset-2 standard-width-reference"> <div class="entry-meta text-center add-padding-on-small-resolutions"> <span class="entry-date"><a href="<?php the_permalink(); ?>"><?php echo get_the_date(); ?></a></span> <span class="entry-cats"><?php echo get_the_category_list( esc_html_x( ', ', 'blog entry categories separator', 'mauer-essentialist' ) ); ?></span> </div> <h1 class="entry-title text-center add-padding-on-small-resolutions"><?php the_title(); ?></h1> <div class="entry-meta after-entry-title text-center add-padding-on-small-resolutions"> </div> <div class="add-padding-on-small-resolutions"> <?php if ( class_exists( 'Jetpack' ) && in_array( 'sharedaddy', Jetpack::get_active_modules()) ) {$sharedaddy_active = true;} else {$sharedaddy_active = false;} ?> <?php if ( $sharedaddy_active ) { $class_to_add = " special";} else {$class_to_add = "";} ?> <div class="entry-content clearfix<?php echo esc_html($class_to_add); ?>"> <?php the_content(); ?> <div class="showComment"> <a href="#" id="showComment" title="اترك تعليق"> <span id="wpnt-notes-unread-count" class="wpnt-loading wpn-read" style="position: relative;display:block;"> <i class="fas fa-comment" style=" font-size: 21px; align-items: center; display: flex; line-height: 26px; color: grey; "></i> <span id="commentsCount"><?php echo get_comments_number() ?></span> </span> </a> </div> <?php if ($sharedaddy_active || get_the_tags()): ?> <div style="margin: 0;" class="entry-content-special-separator"></div> <?php endif ?> </div> <?php if (get_the_tags()): ?> <div class="entry-tags"> <p class="tags"><i></i><?php the_tags(esc_html__(' ', 'mauer-essentialist') . '', ' '); ?></p> </div> <?php endif ?> <?php comments_template(); ?> </div> </div> </div> </div> <!-- related --> <?php if (function_exists('get_field')): ?> <?php if (get_field('show_related_posts')) { $related_posts = array(); if (get_field('related_posts_mode') == 'auto') {$related_posts = mauer_essentialist_get_related_posts(get_the_ID(), "category", "post_tag", 3);} else {foreach (get_field('more_posts_repeater') as $k => $el) {$related_posts[] = $el['post'];}} } ?> <?php if (get_field('show_related_posts') && !empty($related_posts)): ?> <div class="mauer-related-posts"> <h4 class="h4-special more-posts-heading text-center"><?php if (mauer_essentialist_get_related_heading(get_the_ID())) {echo mauer_essentialist_get_related_heading(get_the_ID());} else {esc_html_e( 'اقرأ أيضاً', 'mauer-essentialist' );} ?>:</h4> <?php foreach ($related_posts as $ii => $related_post): ?> <?php global $post; $post = $related_post; setup_postdata( $post ); ?> <?php $current_post_index = $ii + 1; ?> <?php if ($current_post_index <= 3): ?> <?php if ( ($current_post_index % 3) == 1 ): ?><div class="row posts-row"><?php endif ?> <div class="col-xs-12 col-sm-4"> <div <?php post_class('post-card small'); ?>> <a href="<?php the_permalink(); ?>" class="entry-thumb-link"> <?php if(get_the_post_thumbnail_url()): ?> <img src="<?php the_post_thumbnail_url(); ?>" class="attachment-full wp-post-image" alt="<?php the_title(); ?>" loading="lazy" > <div class="entry-thumb-overlay"></div> <?php endif ?> </a> <div class="entry-meta"> <span class="entry-date"><a href="<?php the_permalink(); ?>"><?php echo get_the_date(); ?></a></span> <span class="entry-cats"><?php echo get_the_category_list( esc_html_x( ', ', 'blog entry categories separator', 'mauer-essentialist' ) ); ?></span> </div> <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <div class="entry-excerpt"> <?php if (strpos($related_post->post_content, '<!--more-->')) {the_content();} else {the_excerpt();}?> </div> </div><!-- /.post-card --> </div> <?php if ( ($current_post_index % 3) == 0 ): ?></div><!-- /.posts-row --><?php endif ?> <?php endif ?> <?php wp_reset_postdata(); ?> <?php endforeach ?> </div> <?php endif ?> <?php endif ?> <!-- related end --> </div> </div> <?php endwhile; ?> <?php else: ?> <div class="row"> <div class="col-xs-12"> <p class="text-center"><?php esc_html_e('Sorry, no posts matched your criteria', 'mauer-essentialist'); ?></p> </div> </div> <?php endif; ?> </div><!-- /.container --> </div><!-- /.section-main-content --> <script> jQuery("#showComment").click(function(e){ jQuery("div#comments").toggle(); e.preventDefault(); }); </script> <?php get_footer();?>