AnonSec Shell
Server IP : 198.244.165.102  /  Your IP : 216.73.216.218   [ Reverse IP ]
Web Server : nginx/1.24.0
System : Linux modovh-ub-01 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : colleary ( 1011)
PHP Version : 8.3.23
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/midwest/public_html/wp-content/themes/midwest/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/midwest/public_html/wp-content/themes/midwest/archive-local-services.php
<?php
/*
Template Name: Local Services
*/

get_header(); // Include the header
?>
<?php get_template_part('template-parts/content', 'custom-advertisement'); ?>



<!-- Local Services Message Section -->
<section class="local-services-message job-wave-message">
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
                <div class="alert alert-info text-center">
                    <p>Advertise your local services on Midwest Radio to the biggest radio audience in the province.</p>
                    <p>Call <a href="tel:+353818300055">0818 300055</a> Or Email <a href="mailto:sharon@midwestradio.ie">sharon@midwestradio.ie</a> Or <a href="mailto:patrina@midwestradio.ie">patrina@midwestradio.ie</a></p>
                </div>
            </div>
        </div>
    </div>
</section>

<section class="mid-content-wrap">
    <div class="container">
        <div class="row">
            <div class="col-md-12 mid-pad-ziro">
                <!-- Local Services Listings Start -->
                <div class="mid-home-slider-wrap mid-pad--right-ziro mid-inner-news">
                    <div class="mid-home-slider-inner">
                        <div class="row">
                            <?php
                            // Set up query parameters
                            $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; // Get the current page number
                            $args = array(
                                'post_type' => 'local-services', 
                                'posts_per_page' => -1, // Number of posts to display
                                'orderby' => 'date',
                                'order' => 'DESC',
                                'paged' => $paged, // Pass the current page number
                            );
                            $services_query = new WP_Query($args);

                            if ($services_query->have_posts()) :
                                while ($services_query->have_posts()) : $services_query->the_post(); ?>
                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="card">
                                            <?php if (has_post_thumbnail()) : ?>
                                                <a href="<?php the_permalink(); ?>"><img src="<?php the_post_thumbnail_url('medium'); ?>" class="card-img-top" alt="<?php the_title(); ?>"></a>
                                            <?php endif; ?>
                                            <div class="card-body">
                                                <span><b><?php echo get_the_date('M j, Y'); ?>  |</b> <?php echo get_the_time('g:i a'); ?></span>
                                                <h4 class="card-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
                                                <p class="card-text"><?php echo wp_trim_words(get_the_excerpt(), 20, '...'); ?></p>
                                                <a href="<?php the_permalink(); ?>" class="btn btn-primary mid-read-more-btn">read more <i class="fa-solid fa-plus"></i></a>
                                            </div>
                                        </div>
                                    </div>
                                <?php endwhile;
                            else : ?>
                                <div class="col-md-12">
                                    <p>No local services listings found.</p>
                                </div>
                            <?php endif;
                            wp_reset_postdata(); ?>
                        </div>

                        <div class="row">
                            <nav aria-label="Page navigation example" class="mid-pagination">
                                <?php
                                // Pagination setup
                                $big = 999999999; // an unlikely integer
                                $pagination_args = array(
                                    'base' => str_replace($big, '%#%', esc_url(get_pagenum_link($big))),
                                    'format' => '?paged=%#%',
                                    'current' => max(1, get_query_var('paged')),
                                    'total' => $services_query->max_num_pages,
                                    'prev_text' => __('&laquo; Previous'),
                                    'next_text' => __('Next &raquo;'),
                                );
                                ?>
                                <ul class="pagination">
                                    <?php echo paginate_links($pagination_args); ?>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </div>
                <!-- Local Services Listings End -->
            </div>
        </div>
    </div>
</section>

<?php get_template_part('template-parts/content', 'google-ads-bottom'); ?>

<?php get_footer('inner'); // Include the footer ?>

Anon7 - 2022
AnonSec Team