/srv/htdocs/wp-content/themes/asap/cityTemplate.php
set_transient('portable_linked_cities', $rowsLC, 60 * 60 * 168);
wp_die('Refresh Again');
}
}else{
function numberFormat($price){
$price=str_replace(',','',$price);
if(isset($price) && $price !=0){
return intval($price);
}else{
return false;
}
}
///**************if city dumpster page**************///
if($terms_service[0]->name == 'Dumpster'){
$searchVar=$context['getCityName'].', '.$context['state_name'];
$getIndexKeyFAQ = array_search($searchVar, array_column($faq_dumpster_min_max_price, '0'));
$context['dumpsterCalculator']=$globalcontent['dumpster_calculator_redirect'];
$dataCitySheet=array_column($dumpster_min_max_price, '0');
$getIndexKey = array_search($searchVar, array_column($dumpster_min_max_price, '0'));
//$getLinkedCityIndexKey = array_search($searchVar, array_column($dumpster_linked_cities, '0'));
if(empty($getIndexKey)){
$cityWithHyphen=str_replace(' ','-',$context['getCityName']);
$searchVar=$cityWithHyphen.', '.$context['state_name'];
$getIndexKey = array_search($searchVar, array_column($dumpster_min_max_price, '0'));
}
if(!empty($getIndexKey)){
$arr_combine = array_combine($dumpster_min_max_price[0], $dumpster_min_max_price[$getIndexKey]);
$dumpsterProductList=get_field('min_and_maximum_price','options');
$context['dumpsterProductList']=$dumpsterProductList['products'];
$context['cityPageSubHeading']=$dumpsterProductList['heading'];
$context['cityPageTermShortDescription']=$dumpsterProductList['short_description_about_dumpster'];
$dumpsterArraydata = array(
'min0' => numberFormat($arr_combine['10YD Min Price']),
/srv/htdocs/wp-content/themes/asap/cityTemplate.php
set_transient('portable_linked_cities', $rowsLC, 60 * 60 * 168);
wp_die('Refresh Again');
}
}else{
function numberFormat($price){
$price=str_replace(',','',$price);
if(isset($price) && $price !=0){
return intval($price);
}else{
return false;
}
}
///**************if city dumpster page**************///
if($terms_service[0]->name == 'Dumpster'){
$searchVar=$context['getCityName'].', '.$context['state_name'];
$getIndexKeyFAQ = array_search($searchVar, array_column($faq_dumpster_min_max_price, '0'));
$context['dumpsterCalculator']=$globalcontent['dumpster_calculator_redirect'];
$dataCitySheet=array_column($dumpster_min_max_price, '0');
$getIndexKey = array_search($searchVar, array_column($dumpster_min_max_price, '0'));
//$getLinkedCityIndexKey = array_search($searchVar, array_column($dumpster_linked_cities, '0'));
if(empty($getIndexKey)){
$cityWithHyphen=str_replace(' ','-',$context['getCityName']);
$searchVar=$cityWithHyphen.', '.$context['state_name'];
$getIndexKey = array_search($searchVar, array_column($dumpster_min_max_price, '0'));
}
if(!empty($getIndexKey)){
$arr_combine = array_combine($dumpster_min_max_price[0], $dumpster_min_max_price[$getIndexKey]);
$dumpsterProductList=get_field('min_and_maximum_price','options');
$context['dumpsterProductList']=$dumpsterProductList['products'];
$context['cityPageSubHeading']=$dumpsterProductList['heading'];
$context['cityPageTermShortDescription']=$dumpsterProductList['short_description_about_dumpster'];
$dumpsterArraydata = array(
'min0' => numberFormat($arr_combine['10YD Min Price']),
/wordpress/core/6.9.4/wp-includes/template-loader.php
*/
$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;
}
/wordpress/core/6.9.4/wp-blog-header.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';
}
/wordpress/core/6.9.4/index.php
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';