<?php // Template Name: Exhibitors w/o banner ?>
<?php
get_header();
$url = get_field('exhibitor_api_url', 'option');
$request = wp_remote_get( $url );
if( is_wp_error( $request ) ) {
return false;
}
$body = wp_remote_retrieve_body( $request );
$data = json_decode( $body );
$initArray = $data[0]->responses;
usort($initArray, function ($first, $second) {
return $first->multitask[1]->shortAnswer <=> $second->multitask[1]->shortAnswer;
});
function myFilter($var){
return ($var->multitask[4]->files !== NULL && $var->multitask[4]->files !== "");
}
$array = array_filter($initArray, "myFilter");
usort($array, function ($first, $second) {
return strtolower($first->multitask[1]->shortAnswer) <=> strtolower($second->multitask[1]->shortAnswer);
});
$posts_array = array();
$categories_array = array();
$categories = array();
$alphabet_array = range('a', 'z');
$number_array = range(0, 9);
foreach( $array as $exhibitor ) {
$posts_array[] = strtolower($exhibitor->multitask[1]->shortAnswer[0]);
}
"Cannot use object of type stdClass as array"
}
break;
}
}
if ( ! $template ) {
$template = get_index_template();
}
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
<?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/airspace-world/webapps/airspace-world/web/wp/wp-includes/template-loader.php"
<?php
/**
* WordPress View Bootstrapper
*/
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
"/home/airspace-world/webapps/airspace-world/web/wp/wp-blog-header.php"
Key | Value |
SERVER_SOFTWARE | "Apache/2.4.63 (Unix) OpenSSL/3.0.2"
|
REQUEST_URI | "/exhibitors/"
|
USER | "airspace-world"
|
HOME | "/home/airspace-world"
|
SCRIPT_NAME | "/index.php"
|
QUERY_STRING | "" |
REQUEST_METHOD | "GET"
|
SERVER_PROTOCOL | "HTTP/1.0"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
REDIRECT_URL | "/exhibitors/"
|
REMOTE_PORT | "43364"
|
SCRIPT_FILENAME | "/home/airspace-world/webapps/airspace-world/web/index.php"
|
SERVER_ADMIN | "you@example.com"
|
CONTEXT_DOCUMENT_ROOT | "/home/airspace-world/webapps/airspace-world/web/"
|
CONTEXT_PREFIX | "" |
REQUEST_SCHEME | "http"
|
DOCUMENT_ROOT | "/home/airspace-world/webapps/airspace-world/web/"
|
REMOTE_ADDR | "3.145.151.116"
|
SERVER_PORT | "80"
|
SERVER_ADDR | "127.0.0.1"
|
SERVER_NAME | "asw24.srgry.com"
|
SERVER_SIGNATURE | "" |
LD_LIBRARY_PATH | "/RunCloud/Packages/apache2-rc/lib"
|
PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
|
HTTP_REFERER | "https://asw24.srgry.com/exhibitors"
|
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 | "*/*"
|
HTTP_CONNECTION | "close"
|
HTTP_X_FORWARDED_PROTO | "https"
|
HTTP_X_FORWARDED_FOR | "3.145.151.116"
|
HTTP_X_SERVER_ADDR | "164.92.216.228"
|
HTTP_HOST | "asw24.srgry.com"
|
HTTP_AUTHORIZATION | "" |
HTTPS | "on"
|
REDIRECT_STATUS | "200"
|
REDIRECT_HTTP_AUTHORIZATION | "" |
REDIRECT_HTTPS | "on"
|
FCGI_ROLE | "RESPONDER"
|
PHP_SELF | "/index.php"
|
REQUEST_TIME_FLOAT | 1745620371.9469
|
REQUEST_TIME | 1745620371
|
DB_NAME | "airspace_db"
|
DB_USER | "airspace_user"
|
DB_PASSWORD | "f6khXm6VMr5az9"
|
WP_ENV | "production"
|
WP_HOME | "https://asw24.srgry.com"
|
WP_SITEURL | "https://asw24.srgry.com/wp"
|
AUTH_KEY | "generateme"
|
SECURE_AUTH_KEY | "generateme"
|
LOGGED_IN_KEY | "generateme"
|
NONCE_KEY | "generateme"
|
AUTH_SALT | "generateme"
|
SECURE_AUTH_SALT | "generateme"
|
LOGGED_IN_SALT | "generateme"
|
NONCE_SALT | "generateme"
|
Key | Value |
DB_NAME | "airspace_db"
|
DB_USER | "airspace_user"
|
DB_PASSWORD | "f6khXm6VMr5az9"
|
WP_ENV | "production"
|
WP_HOME | "https://asw24.srgry.com"
|
WP_SITEURL | "https://asw24.srgry.com/wp"
|
AUTH_KEY | "generateme"
|
SECURE_AUTH_KEY | "generateme"
|
LOGGED_IN_KEY | "generateme"
|
NONCE_KEY | "generateme"
|
AUTH_SALT | "generateme"
|
SECURE_AUTH_SALT | "generateme"
|
LOGGED_IN_SALT | "generateme"
|
NONCE_SALT | "generateme"
|