/home3
/sageexec
/public_html
/wp-content
/themes
/roots
/templates
/page-header.php
<?php endif;
if (!empty($post->acfField('address')['address_line_1'])) : ?>
<div class="page-header--card">
<i class="fas fa-map-marker fa"></i>
<h4>Where</h4>
<p>
<?php if ($address = $post->acfField('address')) {
echo $address['location_title'] ? '<strong>' . $address['location_title'] . '</strong><br>' : '';
echo $address['address_line_1'] ? $address['address_line_1'] . '<br>' : '';
echo $address['address_line_2'] ? $address['address_line_2'] . ' <br>' : '';
echo $address['city'] ? $address['city'] . ', ' : '';
echo $address['state'] ? $address['state'] . ' ' : '';
echo $address['zip'] ? $address['zip'] : '';
} ?>
</p>
<?php $location = gm_map_search_geocode(implode(' ', $post->acfField('address'))); ?>
<a class="btn btn-secondary"
href="https://www.google.com/maps/dir/<?php echo urlencode($location[2]); ?>">Get
Directions</a>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</div>
Arguments
"Trying to access array offset on false"
/home3
/sageexec
/public_html
/wp-content
/themes
/roots
/templates
/page-header.php
<?php endif;
if (!empty($post->acfField('address')['address_line_1'])) : ?>
<div class="page-header--card">
<i class="fas fa-map-marker fa"></i>
<h4>Where</h4>
<p>
<?php if ($address = $post->acfField('address')) {
echo $address['location_title'] ? '<strong>' . $address['location_title'] . '</strong><br>' : '';
echo $address['address_line_1'] ? $address['address_line_1'] . '<br>' : '';
echo $address['address_line_2'] ? $address['address_line_2'] . ' <br>' : '';
echo $address['city'] ? $address['city'] . ', ' : '';
echo $address['state'] ? $address['state'] . ' ' : '';
echo $address['zip'] ? $address['zip'] : '';
} ?>
</p>
<?php $location = gm_map_search_geocode(implode(' ', $post->acfField('address'))); ?>
<a class="btn btn-secondary"
href="https://www.google.com/maps/dir/<?php echo urlencode($location[2]); ?>">Get
Directions</a>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</div>
Arguments
2
"Trying to access array offset on false"
"/home3/sageexec/public_html/wp-content/themes/roots/templates/page-header.php"
98
/home3
/sageexec
/public_html
/wp-content
/plugins
/wpdev
/inc
/template
/Template.php
*/
public static function include(string $file_name, array $data = [])
{
return static::create($file_name, $data)->includeTemplate();
}
/**
* Includes the template file passing along the data.
*
* @return bool True if successfully included the template. Otherwise, false.
*/
public function includeTemplate()
{
if (!$template = $this->getTemplate()) {
return false;
}
$data = $this->data;
extract($data);
include $this->getTemplate();
return true;
}
/**
* Locates a template file.
*
* @param string $file_name
*
* @return string The path to the template file. Empty if none found.
*/
public static function locate(string $file_name)
{
return self::create($file_name)->getTemplate();
}
/*
|--------------------------------------------------------------------------
| Protected
|--------------------------------------------------------------------------
Arguments
"/home3/sageexec/public_html/wp-content/themes/roots/templates/page-header.php"
/home3
/sageexec
/public_html
/wp-content
/plugins
/wpdev
/inc
/template
/Template.php
return '';
}
/** @var \Symfony\Component\Finder\SplFileInfo $file */
$file = reset($this->foundTemplates); // grab the first file
return $file->getRealPath();
}
/**
* Include a theme template file. Optionally pass data.
*
* @param string $file_name The file name of the template.
* @param array $data Data to be passed to view. Will also be extracted into variables.
*
* @return bool True if successfully included the template. Otherwise, false.
*/
public static function include(string $file_name, array $data = [])
{
return static::create($file_name, $data)->includeTemplate();
}
/**
* Includes the template file passing along the data.
*
* @return bool True if successfully included the template. Otherwise, false.
*/
public function includeTemplate()
{
if (!$template = $this->getTemplate()) {
return false;
}
$data = $this->data;
extract($data);
include $this->getTemplate();
return true;
}
/home3
/sageexec
/public_html
/wp-content
/plugins
/wpdev
/inc
/helpers.php
function get_posts_from_query(WP_Query $wp_query)
{
return array_map(function ($post) {
return new Post($post);
}, $wp_query->posts);
}
}
if (! function_exists('template')) {
/**
* Include a theme template file. Optionally pass data.
*
* @param string $file_name The file name of the template.
* @param array $data Data to be passed to view. Will also be extracted into variables.
*
* @return bool True if successfully included the template. Otherwise, false.
*/
function template(string $file_name, array $data = []) {
return Template::include($file_name, $data);
}
}
if (! function_exists('template_locate')) {
/**
* Locates a template file.
*
* @param string $file_name
*
* @return string The path to the template file. Empty if none found.
*/
function template_locate(string $file_name) {
return Template::locate($file_name);
}
}
if (! function_exists('plugin_template')) {
/**
* Include a theme template file. Optionally pass data.
*
Arguments
"page-header.php"
array:1 [
"post" => Post {#2462}
]
/home3
/sageexec
/public_html
/wp-content
/themes
/roots
/base.php
<div class="alert alert-warning">
<?php _e('You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'roots'); ?>
</div>
<![endif]-->
<?php
do_action('get_header');
// Choose the correct header
// pick which one in config.php
if (current_theme_supports('header-two-navs')) {
get_template_part('templates/header-two-navs');
} elseif (current_theme_supports('header-nav-bottom')) {
get_template_part('templates/header-nav-bottom');
} else {
get_template_part('templates/header');
}
?>
<?php if(!is_front_page()) {
template('page-header.php', ['post' => $Post]);
} ?>
<?php if(!is_singular('event') && $Post->acfField('introduction')) : ?>
<div class="bg-light lead py-6"><div class="container"> <?php echo $Post->acfField('introduction'); ?></div></div>
<?php endif; ?>
<div class="site-main py-6">
<div class="container">
<div class="content row justify-content-center">
<main class="main <?php echo is_front_page() ? 'col-sm-12' : roots_main_class(); ?>" role="main">
<?php include roots_template_path(); ?>
</main>
<?php if (roots_display_sidebar()) : ?>
<aside class="sidebar <?php echo roots_sidebar_class(); ?>" role="complementary">
<?php include roots_sidebar_path(); ?>
</aside>
<?php endif; ?>
</div>
</div>
</div>
Arguments
"page-header.php"
array:1 [
"post" => Post {#2462}
]
/home3
/sageexec
/public_html
/wp-content
/plugins
/wpdev
/inc
/bootstrap.php
if ( ! empty($GLOBALS['wp_query'])) {
$default_data['Posts'] = get_posts_from_query($GLOBALS['wp_query']);
}
// Load Controllers then include the template
$controller = ControllerLoader::create(new Hierarchy)->getController();
/** @var \WPDev\Controller\ControllerInterface $controller */
if ($controller) {
// set the default data so controller can access it in the build method
$controller->defaultData = $default_data;
$data = array_merge($default_data, $controller->build());
} else {
$data = $default_data;
}
extract($data);
include $template;
}
add_filter('template_include', __NAMESPACE__.'\\data', 1000);
/*
|--------------------------------------------------------------------------
| Load this plugin first
|--------------------------------------------------------------------------
| WordPress sorts and loads plugins alphabetically.
| Here we find the wpdev plugin and move it to the front.
| And we have to do it every time a plugin is activated since
| WP always calls sort()
*/
function on_plugin_activation()
{
// should end up evaluating to 'wpdev/wpdev.php'
$path = basename(dirname(__DIR__)).'/wpdev.php';
$plugins = get_option('active_plugins', []);
$key = array_search($path, $plugins);
if ($key !== false) {
Arguments
"/home3/sageexec/public_html/wp-content/themes/roots/base.php"
/home3
/sageexec
/public_html
/wp-includes
/class-wp-hook.php
$this->iterations[ $nesting_level ] = $this->priorities;
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
Arguments
/home3
/sageexec
/public_html
/wp-includes
/plugin.php
$all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
_wp_call_all_hook( $all_args );
}
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return $value;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
// Pass the value to WP_Hook.
array_unshift( $args, $value );
$filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
array_pop( $wp_current_filter );
return $filtered;
}
/**
* Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
*
* @since 3.0.0
*
* @see apply_filters() This function is identical, but the arguments passed to the
* functions hooked to `$hook_name` are supplied using an array.
*
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
* @global int[] $wp_filters Stores the number of times each filter was triggered.
* @global string[] $wp_current_filter Stores the list of current filters with the current one last.
*
* @param string $hook_name The name of the filter hook.
* @param array $args The arguments supplied to the functions hooked to `$hook_name`.
Arguments
Roots_Wrapping {#2460}
array:1 [
0 => Roots_Wrapping {#2460}
]
/home3
/sageexec
/public_html
/wp-includes
/template-loader.php
if ( 'is_attachment' === $tag ) {
remove_filter( 'the_content', 'prepend_attachment' );
}
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 ) {
/**
* 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;
}
Arguments
"template_include"
"/home3/sageexec/public_html/wp-content/themes/roots/single-event.php"
/home3
/sageexec
/public_html
/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';
}
Arguments
"/home3/sageexec/public_html/wp-includes/template-loader.php"
/home3
/sageexec
/public_html
/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';
Arguments
"/home3/sageexec/public_html/wp-blog-header.php"