????JFIF??x?x????'
Server IP : 104.21.48.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tempvsty/eaabusiness.com/wp-content/themes/globeco/ |
Upload File : |
<?php get_header (); global $cws_theme_funcs; global $globeco_theme_standard; $pid = get_the_id(); if ($cws_theme_funcs){ $sb = $cws_theme_funcs->cws_render_sidebars( get_queried_object_id() ); $class = $sb['layout_class'].' '. $sb['sb_class']; $sb['sb_class'] = apply_filters('cws_print_single_class', $class); $meta = $cws_theme_funcs->cws_get_post_meta( $pid ); if(isset($meta[0])){ $meta = $meta[0]; } extract( shortcode_atts( array( 'enable_lightbox' => '0', 'show_related' => '0', 'show_featured' => '', 'full_width_featured' => '', ), $meta) ); $fw_featured = $show_featured == '1' && $full_width_featured == '1'; } $page_class = ''; $page_class .= (isset($sb) ? $sb['sb_class'] : ' no_sidebars page_content'); $page_class .= isset($fw_featured) && $fw_featured ? ' full_width_featured' : ''; ?> <div class="<?php echo sprintf("%s", $page_class); ?>"> <?php if ($cws_theme_funcs){ if($fw_featured){ echo cws_blog_media(); } $GLOBALS['cws_vc_shortcode_single_post_atts'] = array( 'sb_layout' => $sb['layout_class'], ); echo (isset($sb['content']) && !empty($sb['content'])) ? $sb['content'] : ''; $related_projects_title = isset( $meta['rpo']['title'] ) ? $meta['rpo']['title'] : ''; $related_projects_category = isset( $meta['rpo']['category'] ) ? $meta['rpo']['category'] : ''; $related_projects_text_length = isset( $meta['rpo']['text_length'] ) ? $meta['rpo']['text_length'] : '90'; $related_projects_cols = isset( $meta['rpo']['cols'] ) ? (int) $meta['rpo']['cols'] : '4'; $related_projects_count = isset( $meta['rpo']['items_show'] ) ? (int) $meta['rpo']['items_show'] : '4'; $posts_hide = isset( $meta['rpo']['posts_hide'] ) ? $meta['rpo']['posts_hide'] : ''; $related_projects_category = !empty($related_projects_category) ? implode(',', $related_projects_category) : ''; $posts_hide = !empty($posts_hide) ? implode(',', $posts_hide) : ''; } $query_args = array( 'post_type' => 'post', 'ignore_sticky_posts' => true, 'post_status' => 'publish', ); $query_args["post__not_in"] = array( $pid ); if ($cws_theme_funcs){ if ( $related_projects_count ){ $query_args['posts_per_page'] = $related_projects_count; } } $q = new WP_Query( $query_args ); $related_posts = $q->posts; $has_related = false; if ( count( $related_posts ) > 0 ) { $has_related = true; } if ($cws_theme_funcs){ $show_related_items = $show_related == 1 && $has_related; } $section_class = "news single"; $query = cws_blog_defaults(); $query['layout'] = '1'; $query['post_hide_meta_override'] = true; $query['post_hide_meta'] = array('title'); ?> <main> <div class="grid_row clearfix"> <section class="<?php echo esc_attr($section_class) ?>"> <div class="cws_wrapper"> <div class="grid"> <?php while ( have_posts() ): the_post(); cws_single_post_output($query); endwhile; wp_reset_postdata(); ?> </div> </div> </section> <!-- Post navigation --> <?php ob_start(); previous_post_link("%link", ""); $prev_link = ob_get_clean(); $prev_link = preg_replace( '/<\/a>/', '', $prev_link ); ob_start(); next_post_link("%link", ""); $next_link = ob_get_clean(); $next_link = preg_replace('/<\/a>/', '', $next_link); if (!empty($prev_link) || !empty($next_link)) { ?><div class="nav_post_links"><?php if (!empty($prev_link)) { ?> <div class="prev_section"> <div class="prev"> <?php echo sprintf("%s", $prev_link); ?> <div class='wrap'><span><?php echo esc_html__('Prev Post', 'globeco') ?></span></div> </a> </div> </div> <?php } if (!empty($next_link)) { ?> <div class="next_section"> <div class="next"> <?php echo sprintf("%s", $next_link); ?> <div class='wrap'><span><?php echo esc_html__('Next Post', 'globeco') ?></span></div> </a> </div> </div> <?php } ?></div><?php } ?> </div> <?php if ( $cws_theme_funcs && $show_related_items ){ $crop_image = $cws_theme_funcs -> cws_get_option('crop_related_items'); $crop_image = isset($crop_image) ? (bool)$crop_image : ''; $mode = $q->post_count > $related_projects_cols ? '1' : '0'; $terms = wp_get_post_terms( get_queried_object_id(), 'category' ); $term_slugs = array(); for ( $i=0; $i < count( $terms ); $i++ ){ $term = $terms[$i]; $term_slug = $term->slug; array_push( $term_slugs, $term_slug ); } $term_slugs = implode( ",", $term_slugs ); $p_id = get_queried_object_id(); $sc_atts = array( 'title' => '', 'tax' => 'category', 'related_items' => true, 'terms' => !empty($related_projects_category) ? $related_projects_category : $term_slugs, 'total_items_count' => $related_projects_count, 'display_style' => ($related_projects_count > $related_projects_cols ? 'carousel' : 'grid'), 'layout' => $related_projects_cols, 'chars_count' => $related_projects_text_length, 'post_hide_meta_override' => true, 'navigation_carousel' => true, 'crop_featured' => $crop_image, 'meta_container' => 'inside', 'post_hide_meta' => $posts_hide, 'addl_query_args' => array( 'post__not_in' => array( $p_id ) ), ); //$related = (bool)true; $related_projects_section = function_exists('cws_blog_output') ? cws_blog_output( $sc_atts, '', true ) : ""; echo !empty( $related_projects_section ) ? "<div class='grid_row single_related'>" . "<h3 class='related_news_title'>" . esc_html($related_projects_title) . "</h3>" . $related_projects_section . "</div>" : ""; unset( $GLOBALS['cws_vc_shortcode_single_post_atts'] ); } if (is_singular() && comments_open() && get_option( 'thread_comments' ) == '1'){ wp_enqueue_script('comment-reply'); } ?> <?php comments_template(); ?> </main> <?php echo (isset($sb) && !empty($sb['content']) ) ? '</div>' : ''; ?> </div> <?php get_footer (); ?>