Uname:Linux ip-11-115-0-196 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 10:54:48 UTC 2025 x86_64

403WebShell
403Webshell
Server IP : 13.126.101.145  /  Your IP : 216.73.217.50
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ip-11-115-0-196 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 10:54:48 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.3.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/rentals_updated/wp-content/themes/hello-elementor-child/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/rentals_updated/wp-content/themes/hello-elementor-child//header.php
<?php
/**
 * The template for displaying the header
 *
 * This is the template that displays all of the <head> section, opens the <body> tag and adds the site's header.
 *
 * @package HelloElementor
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

$viewport_content = apply_filters( 'hello_elementor_viewport_content', 'width=device-width, initial-scale=1' );
$enable_skip_link = apply_filters( 'hello_elementor_enable_skip_link', true );
$skip_link_url = apply_filters( 'hello_elementor_skip_link_url', '#content' );
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="<?php echo esc_attr( $viewport_content ); ?>">
	<link rel="profile" href="https://gmpg.org/xfn/11">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
	<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>

<?php wp_body_open();
	echo do_shortcode('[enquiry_popup]'); ?>
<header>
        <div class="desktop-menu">
            <div class="container">
                <div class="d-flex justify-content-between align-items-center gap-4">
                    <div class="d-flex align-items-center gap-4">
                        <!-- Logo -->
                        <a href="<?= home_url(); ?>" class="site-logo">
                            <img src="/wp-content/uploads/elementor/thumbs/gmmco-cat-rental-logo-r4kqaqbf3325tnb00vdi5776olx8znqsk3i2tz0kps.png"
                                alt="Logo">
                        </a>
                        <!-- Navigation -->
                        <nav class="nav-wrap ml-5">
                            <?php /** <a class="nav-link" href="<?= home_url(); ?>">Home</a> */ ?>
                            <div class="dd-wrap">
                                <div class="nav-link dd-link p-0">
                                    <span>Rent Equipment</span>
                                    <i class="fa-solid fa-angle-down"></i>
                                </div>
                                <div class="dd-menu">
                                    <div class="container">
                                        <div class="d-flex justify-content-between gap-4 align-items-center">
                                            <h2 class="menu-heading">Equipment</h2>
                                            <!-- <button class="mega-close-btn">
                                                <i class="fa-solid fa-xmark"></i>
                                            </button> -->
                                        </div>
                                        <div class="menu-wrapper mt-4">
                                            <?php
                                                $equipmentMenu = [
													[
														"category" => "Wheel Loaders",
														"category_url" => "/product-category/rent/rent-machine-rentals/rent-loaders/",
														"items" => [
															["label" => "SEM Loaders", "url" => "/product-category/rent/rent-machine-rentals/rent-loaders/rent-sem-wheel-loaders/"]
														]
													],
													[
														"category" => "Excavators",
														"category_url" => "/product-category/rent/rent-machine-rentals/rent-excavator/",
														"items" => [
															["label" => "Small Excavator (<15T)", "url" => "/product-category/rent/rent-machine-rentals/rent-excavator/rent-small-excavator/"],
															["label" => "Medium Excavator (19T–30T)", "url" => "/product-category/rent/rent-machine-rentals/rent-excavator/rent-medium-excavator/"],
															["label" => "Large Excavator (45T+)", "url" => "/product-category/rent/rent-machine-rentals/rent-excavator/rent-large-excavator/"]
														]
													],
													[
														"category" => "Backhoe Loader",
														"category_url" => "/product-category/rent/rent-machine-rentals/rent-loaders/rent-backhoe-loader/",
														"items" => [
															["label" => "CAT 424-2WD", "url" => "/product-category/rent/rent-machine-rentals/rent-backhoe-loader/cat-424-2wd/"],
															["label" => "CAT 424-4WD", "url" => "/product-category/rent/rent-machine-rentals/rent-backhoe-loader/cat-424-4wd/"]
														]
													],
													[
														"category" => "Dozers",
														"category_url" => "/product-category/rent/rent-machine-rentals/rent-dozer/",
														"items" => [
															["label" => "CAT Dozer", "url" => "/product-category/rent/rent-machine-rentals/rent-dozer/rent-cat-wheel-dozer/"],
															["label" => "SEM Dozer", "url" => "/product-category/rent/rent-machine-rentals/rent-dozer/rent-sem-dozer/"],
														]
													],
													[
														"category" => "Motor Graders",
														"category_url" => "/product-category/rent/rent-machine-rentals/rent-motor-grader/",
														"items" => [
															["label" => "CAT Motor Graders", "url" => "/product-category/rent/rent-machine-rentals/rent-motor-grader/rent-cat-motor-grader/"],
															["label" => "SEM Motor Graders", "url" => "/product-category/rent/rent-machine-rentals/rent-motor-grader/rent-sem-motor-grader/"]
														]
													],

													[
														"category" => "Off Highway Trucks",
														"category_url" => "/product-category/rent/rent-machine-rentals/rent-trucks/rent-off-highway-trucks/",
														"items" => [
															["label" => "CAT-772G", "url" => "/product-category/rent/rent-machine-rentals/rent-trucks/rent-off-highway-trucks/cat-772g/"],
															["label" => "CAT-777E", "url" => "/product-category/rent/rent-machine-rentals/rent-trucks/rent-off-highway-trucks/cat-777e/"]
														]
													],
													[
														"category" => "Accessories",
														"category_url" => "/product-category/rent/rent-machine-rentals/rent-accessories/",
														"items" => [
															["label" => "Hammer Kit", "url" => "/product-category/rent/rent-machine-rentals/rent-accessories/hammer-kit/"],
															["label" => "Pickup Broom", "url" => "/product-category/rent/rent-machine-rentals/rent-accessories/pickup-broom/"]
														]
													],
													[
														"category" => "Aerial Working Platform",
														"category_url" => "/product-category/rent/rent-machine-rentals/rent-aerial-working-platform-jlg/",
														"items" => [
															["label" => "Telescopic Boom Lift", "url" => "/product-category/rent/rent-machine-rentals/rent-aerial-working-platform-jlg/telescopic-boom-lift/"],
															["label" => "Scissor Lift", "url" => "/product-category/rent/rent-machine-rentals/rent-aerial-working-platform-jlg/scissor-lift/"]
														]
													],
													[
														"category" => "Skid Steer Loader",
														"category_url" => "/product-category/rent/rent-machine-rentals/rent-skid-steer-loader/",
														"items" => [
															["label" => "CAT 216B3", "url" => "/product-category/rent/rent-machine-rentals/rent-skid-steer-loader/cat-216b3/"]
														]
													],
// 													[
// 														"category" => "Power Solutions",
// 														"category_url" => "/product-category/rent/rent-power-rental/",
// 														"items" => [
// 															["label" => "Diesel Generators", "url" => "/product-category/rent/rent-power-rental/"]
// 														]
// 													]
												]; ?>
                                                <?php
                                                    // Render loop
                                                    foreach ($equipmentMenu as $section) {
                                                        echo "<div class='menu-section'>";
                                                        echo "<a class='category-title' href='" . esc_url($section['category_url']) . "'>" . esc_html($section['category']) . "</a>";
                                                        
                                                        foreach ($section['items'] as $item) {
                                                            echo "<a class='menu-link' href='" . esc_url($item['url']) . "'>" . esc_html($item['label']) . "</a>";
                                                        }

                                                        echo "</div>";
                                                    }
                                                    ?>
                                        </div>
                                    </div>
                                </div>
                                <a class="nav-link" href="<?= home_url(); ?>/sell-your-equipment/">
                                    <span>Sell Equipment</span>
                                </a>
                            </div>
                        <!-- <a class="nav-link" href="<?= home_url(); ?>/product-category/buy/">Buy Used</a> -->
                            <?php /** <a class="nav-link" href="<?= home_url(); ?>/sell-your-equipment/">Sell</a><a class="nav-link" href="<?= home_url(); ?>/about-us/">About Us</a> */ ?>
                        </nav>
                    </div>
                    <div class="d-flex align-items-center">
                        <div class="">
                            <?= do_shortcode('[fibosearch]'); ?>
                        </div>
                    </div>
                    <a href="tel:18004252546" class="d-flex align-items-center text-white text-decoration-none">
                        <i class="fa-solid fa-phone mr-2"></i> 1800 425 2546
                    </a>
                    <!-- Cart, Wishlist, Signin -->
                    <div class="d-flex align-items-center">
                        <?php if ( is_user_logged_in() ) : ?>
							<a href="<?= home_url(); ?>/cart" class="cart-icon text-white mx-3">
								<img src="/wp-content/uploads/2025/08/cart.png" alt="cart">
								<?php
$cart_count_raw   = do_shortcode('[cart_count]');
$cart_count_clean = (int) preg_replace('/\D+/', '', $cart_count_raw); // remove non-digits

if ( $cart_count_clean > 0 ) : ?>
    <span class="badge">(<?php echo esc_html( $cart_count_clean ); ?>)</span>
<?php endif; ?>

							</a>
							<?php endif; ?>
                        <?php if ( is_user_logged_in() ) : 
                            $current_user = wp_get_current_user(); ?>
                            <div class="user-dropdown dd-wrap">
                                <a href="javascript:void(0);" class="signin-btn text-decoration-none py-2 dd-link">
									<img src="/wp-content/uploads/2025/08/user-icon.png" alt="user">
									Hello 
									<?php 
										$first_name = get_user_meta( $current_user->ID, 'first_name', true );
										$display_name = $first_name ? $first_name : $current_user->user_login;

										// Show only first 5 characters with "..." if longer
										$short_name = (strlen($display_name) > 5) ? substr($display_name, 0, 5) . '...' : $display_name;

										echo esc_html($short_name);
									?>!
									<i class="fa-solid fa-angle-down"></i>
								</a>

                                <ul class="dropdown-menu">
                                    <li><a href="<?= home_url('/my-account/'); ?>">My Dashboard</a></li>
                                    <li class="d-flex align-items-center gap-3"><a href="<?= wp_logout_url(home_url()); ?>"><img src="/wp-content/uploads/2025/08/logout-icon.png" alt="logout-icon" width="20" height="20" class="mr-2"/>Logout</a></li>
                                </ul>
                            </div>
                        <?php else : ?>
                            <a href="<?= home_url(); ?>/my-account/" class="signin-btn text-decoration-none py-2">
                                SIGN IN / SIGN UP <i class="fa-solid fa-user-gear"></i>
                            </a>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>

        <div class="mobile-menu">
            <div class="container">
                <div class="d-flex justify-content-between align-items-center gap-4 py-2">
                    <a href="<?= home_url(); ?>" class="site-logo">
                        <img src="/wp-content/uploads/elementor/thumbs/gmmco-cat-rental-logo-r4kqaqbf3325tnb00vdi5776olx8znqsk3i2tz0kps.png"
                            alt="Logo">
                    </a>
                    <div class="d-flex align-items-center">
                        <?php if ( is_user_logged_in() ) : ?>
							<a href="<?= home_url(); ?>/cart" class="cart-icon text-white mx-3">
								<img src="/wp-content/uploads/2025/08/cart.png" alt="cart">
								<span class="badge">(<?= do_shortcode('[cart_count]'); ?>)</span>
							</a>
							<?php endif; ?>
                        <?php if ( is_user_logged_in() ) : 
                            $current_user = wp_get_current_user(); ?>
                            <div class="user-dropdown dd-wrap">
                                <a href="javascript:void(0);" class="signin-btn text-decoration-none py-2 mx-4">
                                    <img src="/wp-content/uploads/2025/08/user-icon.png" alt="user">
                                    <!-- <i class="fa-solid fa-angle-down"></i> -->
                                </a>
                                <ul class="dropdown-menu">
                                    <li><a href="<?= home_url('/my-account/'); ?>">My Dashboard</a></li>
                                    <li class="d-flex align-items-center gap-3"><a href="<?= wp_logout_url(home_url()); ?>"><img src="/wp-content/uploads/2025/08/logout-icon.png" alt="logout-icon" width="20" height="20" class="mr-2"/>Logout</a></li>
                                </ul>
                            </div>
                        <?php else : ?>
                            <a href="<?= home_url(); ?>/my-account/" class="signin-btn text-decoration-none py-2 mr-3">
                                SIGN IN / SIGN UP <i class="fa-solid fa-user-gear"></i>
                            </a>
                        <?php endif; ?>
                        <!-- <a href="<?= home_url(); ?>/my-account/" class="signin-btn text-decoration-none py-2">
                            <i class="fa-solid fa-user-gear"></i>
                        </a> -->
                        <button class="hm-btn">
                            <i class="fa-solid fa-bars"></i>
                        </button>
                    </div>
                </div>
            </div>

            <nav class="nav-wrap p-4 pe-2">
                <div class="d-flex align-items-center justify-content-between gap-4 menu-header pe-2">
                    <a href="<?= home_url(); ?>" class="site-logo">
                        <img src="<?= home_url(); ?>/wp-content/uploads/elementor/thumbs/gmmco-cat-rental-logo-r4kqaqbf3325tnb00vdi5776olx8znqsk3i2tz0kps.png"
                            alt="Logo">
                    </a>
                    <button class="close-btn">
                        <i class="fa-solid fa-xmark"></i>
                    </button>
                </div>

                <div class="menu-wrap mt-4">
                    <ul class="nav-menu">
                        <?php /* <li><a class="nav-link" href="<?= home_url(); ?>">Home</a></li> */?>
                        <li>
                            <?php
                                $rentMenu = [
                                    "title" => "Rent Equipment",
                                    "url" => "/product-category/rent/",
                                    "children" => [
                                        [
                                            "title" => "Equipment",
                                            "url" => "#",
                                            "children" => [
                                                ["title" => "Wheel Loader", "url" => "/product-category/rent/rent-machine-rentals/rent-loaders/cat-wheel-loader/"],
                                                ["title" => "Excavator", "url" => "/product-category/rent/rent-machine-rentals/rent-excavator/"],
                                                ["title" => "Backhoe Loader", "url" => "/product-category/buy/buy-used-equipment-to-buy/buy-loaders/buy-backhoe-loader/"],
                                                ["title" => "Dozer", "url" => "/product-category/rent/rent-machine-rentals/rent-dozer/"],
                                                ["title" => "Motor Grader", "url" => "/product-category/rent/rent-machine-rentals/rent-motor-grader/"],
                                                ["title" => "Off Highway Trucks", "url" => "/product-category/rent/rent-machine-rentals/rent-trucks/rent-off-highway-trucks/"],
                                                ["title" => "Accessories", "url" => "/product-category/buy/buy-used-equipment-to-buy/buy-accessories/"],
                                                ["title" => "Aerial Working Platform (JLG)", "url" => "/product-category/buy/buy-used-equipment-to-buy/buy-aerial-working-platform-jlg/"],
                                                ["title" => "Skid Steer Loader", "url" => "/product-category/rent/rent-machine-rentals/rent-skid-steer-loader/"],
                                            ]
                                        ],
                                        [
                                            "title" => "Power Solutions",
                                            "url" => "#",
                                            "children" => [
                                                ["title" => "Diesel Generators", "url" => "/product-category/rent/rent-power-rental/fg-wilson/"]
                                            ]
                                        ]
                                    ]
                                ];
                                echo "<div class='nav-link dd-toggle d-flex justify-content-between align-items-center p-0'><a style='width: fit-content;' href='". $rentMenu['url'] ."'>" . $rentMenu['title'] . "</a><i class='fas fa-chevron-right'></i></div>";
                                if (!empty($rentMenu['children'])) {
                                    echo "<ul class='submenu'>";
                                    foreach ($rentMenu['children'] as $child) {
                                        echo "<li><div class='nav-link dd-toggle d-flex justify-content-between align-items-center p-0'><a style='width: fit-content;' href='". $child['url'] ."'>" . $child['title'] . "</a><i class='fas fa-chevron-right'></i></div>";
                                        if (!empty($child['children'])) {
                                            echo "<ul class='submenu'>";
                                            foreach ($child['children'] as $subchild) {
                                                echo "<li><a class='nav-link' href='" . $subchild['url'] . "'>" . $subchild['title'] . "</a></li>";
                                            }
                                            echo "</ul>";
                                        }
                                        echo "</li>";
                                    }
                                    echo "</ul>";
                                }
                            ?>

                            <!-- <button class="nav-link dd-toggle">
                                Rent <i class="fas fa-chevron-down"></i>
                            </button>
                            <ul class="submenu">
                                <li>
                                    <button class="nav-link dd-toggle">
                                        Equipment <i class="fas fa-chevron-right"></i>
                                    </button>
                                    <ul class="submenu">
                                        <li><a class="nav-link" href="#">Buy</a></li>
                                        <li><a class="nav-link" href="#">Buy</a></li>
                                        <li><a class="nav-link" href="#">Buy</a></li>
                                        <li><a class="nav-link" href="#">Buy</a></li>
                                        <li><a class="nav-link" href="#">Buy</a></li>
                                    </ul>
                                </li>
                                <li>
                                    <button class="nav-link dd-toggle">
                                        Power Solutions <i class="fas fa-chevron-right"></i>
                                    </button>
                                    <ul class="submenu">
                                        <li><a class="nav-link" href="#">Buy</a></li>
                                        <li><a class="nav-link" href="#">Buy</a></li>
                                        <li><a class="nav-link" href="#">Buy</a></li>
                                        <li><a class="nav-link" href="#">Buy</a></li>
                                        <li><a class="nav-link" href="#">Buy</a></li>
                                    </ul>
                                </li>
                            </ul> -->
                        </li>
                        <li><a class="nav-link" href="<?= home_url(); ?>/sell-your-equipment/">Sell Equipment</a></li>
                        <?php /* <li><a class="nav-link" href="<?= home_url(); ?>/sell-your-equipment/">Sell</a></li>
                        <li><a class="nav-link" href="<?= home_url(); ?>/about-us/">About Us</a></li>*/ ?>
                    </ul>
                </div>
            </nav>

            <div class="nav-bg-layer"></div>

        </div>
    </header>

Youez - 2016 - github.com/yon3zu
LinuXploit