if (isset($_COOKIE['c_location_post_id'])) {
$location_id = $_COOKIE['c_location_post_id'];
if (get_field('has_happy_hour', $location_id)) {
$display = 'Happy Hour';
} else {
$display = 'No Happy Hour';
}
} else {
$display = 'No Restaruant';
}
$args = array('posts_per_page' => -1, 'post_type' => 'happy-hour-menus');
$loop = new WP_Query($args);
?>
<?php while ($loop->have_posts()) : $loop->the_post();
$happy_hour_region = $_COOKIE['c_happy_hour_region'];
?>
<?php if ($happy_hour_region == get_field('happy_hour_region')->name) : ?>
<?php setup_postdata($post); ?>
<?php if (have_rows('happy_hour_schedule')) : ?>
<?php while (have_rows('happy_hour_schedule')) : the_row(); ?>
<?php $days_time .= '<p>' . get_sub_field('days_time') . '</p>'; ?>
<?php endwhile; ?>
<?php endif; ?>
<?php endif; ?>
<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
<?php if ($display != 'Happy Hour') {
$days_time = '';
} ?>
<?php set_query_var('hh-schedule', $days_time); ?>
<?php get_template_part('template-parts/hero'); ?>
<?php set_query_var('hh-schedule', false); ?>
<main class="container">
<div id="post-<?php echo $post->ID ?>" <?php post_class('content'); ?>>
"Attempt to read property "name" on string"
if (isset($_COOKIE['c_location_post_id'])) {
$location_id = $_COOKIE['c_location_post_id'];
if (get_field('has_happy_hour', $location_id)) {
$display = 'Happy Hour';
} else {
$display = 'No Happy Hour';
}
} else {
$display = 'No Restaruant';
}
$args = array('posts_per_page' => -1, 'post_type' => 'happy-hour-menus');
$loop = new WP_Query($args);
?>
<?php while ($loop->have_posts()) : $loop->the_post();
$happy_hour_region = $_COOKIE['c_happy_hour_region'];
?>
<?php if ($happy_hour_region == get_field('happy_hour_region')->name) : ?>
<?php setup_postdata($post); ?>
<?php if (have_rows('happy_hour_schedule')) : ?>
<?php while (have_rows('happy_hour_schedule')) : the_row(); ?>
<?php $days_time .= '<p>' . get_sub_field('days_time') . '</p>'; ?>
<?php endwhile; ?>
<?php endif; ?>
<?php endif; ?>
<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
<?php if ($display != 'Happy Hour') {
$days_time = '';
} ?>
<?php set_query_var('hh-schedule', $days_time); ?>
<?php get_template_part('template-parts/hero'); ?>
<?php set_query_var('hh-schedule', false); ?>
<main class="container">
<div id="post-<?php echo $post->ID ?>" <?php post_class('content'); ?>>
*/
$template = apply_filters( 'template_include', $template );
$is_stringy = is_string( $template ) || ( is_object( $template ) && method_exists( $template, '__toString' ) );
$template = $is_stringy ? realpath( (string) $template ) : null;
if (
is_string( $template ) &&
( str_ends_with( $template, '.php' ) || str_ends_with( $template, '.html' ) ) &&
is_file( $template ) &&
is_readable( $template )
) {
/**
* Fires immediately before including the template.
*
* @since 6.9.0
*
* @param string $template The path of the template about to be included.
*/
do_action( 'wp_before_include_template', $template );
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
"/home/forge/www.ontheborder.com/theme/template-happy-hour.php"
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
"/home/forge/www.ontheborder.com/public/wp/wp-includes/template-loader.php"
<?php
/**
* WordPress View Bootstrapper
*/
define('WP_USE_THEMES', true);
require __DIR__.'/wp/wp-blog-header.php';
"/home/forge/www.ontheborder.com/public/wp/wp-blog-header.php"
| Key | Value |
| catering | "FRONTERA"
|
| hh | "HH-RC"
|
| menu | "Frontera Chicos"
|
| Key | Value |
| c_happy_hour_region | "HH-RC"
|
| Key | Value |
| SERVER_SOFTWARE | "nginx/1.28.1"
|
| REQUEST_URI | "/happy-hour/?catering=FRONTERA&hh=HH-RC&menu=Frontera+Chicos"
|
| USER | "forge"
|
| HOME | "/home/forge"
|
| HTTP_HOST | "www.ontheborder.com"
|
| HTTP_ACCEPT_ENCODING | "gzip, br, zstd, deflate"
|
| HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
|
| HTTP_ACCEPT | "*/*"
|
| REDIRECT_STATUS | "200"
|
| HTTPS | "on"
|
| SERVER_NAME | "www.ontheborder.com"
|
| SERVER_PORT | "443"
|
| SERVER_ADDR | "10.10.0.46"
|
| REMOTE_PORT | "31239"
|
| REMOTE_ADDR | "216.73.216.171"
|
| GATEWAY_INTERFACE | "CGI/1.1"
|
| SERVER_PROTOCOL | "HTTP/2.0"
|
| DOCUMENT_ROOT | "/home/forge/www.ontheborder.com/public"
|
| DOCUMENT_URI | "/index.php"
|
| SCRIPT_NAME | "/index.php"
|
| SCRIPT_FILENAME | "/home/forge/www.ontheborder.com/public/index.php"
|
| CONTENT_LENGTH | "" |
| CONTENT_TYPE | "" |
| REQUEST_METHOD | "GET"
|
| QUERY_STRING | "catering=FRONTERA&hh=HH-RC&menu=Frontera+Chicos"
|
| FCGI_ROLE | "RESPONDER"
|
| PHP_SELF | "/index.php"
|
| REQUEST_TIME_FLOAT | 1776201109.8988
|
| REQUEST_TIME | 1776201109
|
| DB_NAME | "ontheborder"
|
| DB_USER | "forge"
|
| DB_PASSWORD | "ZegJ8zd7HUJmMvGqabPY"
|
| WP_ENV | "production"
|
| WP_HOME | "https://www.ontheborder.com"
|
| WP_DEBUG | "" |
| WP_DEBUG_DISPLAY | "" |
| WP_DEBUG_LOG | "" |
| AUTH_KEY | "}Ie778iRS3Y/j/8CgESRW1;6F2suQZ!lP5NOnuj;EM!8Peey&OCvX$6!yyi=}]M("
|
| SECURE_AUTH_KEY | ",]{m>]Q*egZUq2qbZ&D%n/Gd7*ip_,FGi{a/i`-s*dP@y{$!K>*mS:%3Bv[/%}{O"
|
| LOGGED_IN_KEY | "$5Qe9j%wUt]$8C4=&yiptFcO}akqahP^pIbhvcEmL-G,2wDdQ0tRudaT,p!XYUMX"
|
| NONCE_KEY | "2kDV}yjBTn:c;&!A/;I[IojM@F--Oo3vZ8WLZ6#R$LqT,M|i|DqD/O.Pc`#yrC*["
|
| AUTH_SALT | "GlqRJ@!5$h?g_5P`B(a5fRplNAA=.ew!uV;63c[4-YS:J>.7|-ZCz7(O.[hZ/w/|"
|
| SECURE_AUTH_SALT | "i.wlE$-]%r]J0ChMtnrm9Nw:S{_pj_*j|;[V6c^B&U:r9@U:sSZE5Wk`Hc]:Fv_e"
|
| LOGGED_IN_SALT | "V/p9qhujvM{3Azr1wukg]63nA*}b*r%)).</LZSY=F)cKHmxak&YToNs/_A-i+%L"
|
| NONCE_SALT | "FoVf1|s:H[s)44_nj7V(S7]+`9mYjm(/c1LM@VII{g{:-UWpv.uB)B`wnB-2_}),"
|
| WP2FA_ENCRYPT_KEY | "BUndq7NiFKMGW3vDp5Bixw=="
|
| Key | Value |
| DB_NAME | "ontheborder"
|
| DB_USER | "forge"
|
| DB_PASSWORD | "ZegJ8zd7HUJmMvGqabPY"
|
| WP_ENV | "production"
|
| WP_HOME | "https://www.ontheborder.com"
|
| WP_DEBUG | "" |
| WP_DEBUG_DISPLAY | "" |
| WP_DEBUG_LOG | "" |
| AUTH_KEY | "}Ie778iRS3Y/j/8CgESRW1;6F2suQZ!lP5NOnuj;EM!8Peey&OCvX$6!yyi=}]M("
|
| SECURE_AUTH_KEY | ",]{m>]Q*egZUq2qbZ&D%n/Gd7*ip_,FGi{a/i`-s*dP@y{$!K>*mS:%3Bv[/%}{O"
|
| LOGGED_IN_KEY | "$5Qe9j%wUt]$8C4=&yiptFcO}akqahP^pIbhvcEmL-G,2wDdQ0tRudaT,p!XYUMX"
|
| NONCE_KEY | "2kDV}yjBTn:c;&!A/;I[IojM@F--Oo3vZ8WLZ6#R$LqT,M|i|DqD/O.Pc`#yrC*["
|
| AUTH_SALT | "GlqRJ@!5$h?g_5P`B(a5fRplNAA=.ew!uV;63c[4-YS:J>.7|-ZCz7(O.[hZ/w/|"
|
| SECURE_AUTH_SALT | "i.wlE$-]%r]J0ChMtnrm9Nw:S{_pj_*j|;[V6c^B&U:r9@U:sSZE5Wk`Hc]:Fv_e"
|
| LOGGED_IN_SALT | "V/p9qhujvM{3Azr1wukg]63nA*}b*r%)).</LZSY=F)cKHmxak&YToNs/_A-i+%L"
|
| NONCE_SALT | "FoVf1|s:H[s)44_nj7V(S7]+`9mYjm(/c1LM@VII{g{:-UWpv.uB)B`wnB-2_}),"
|
| WP2FA_ENCRYPT_KEY | "BUndq7NiFKMGW3vDp5Bixw=="
|