/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/parts/singles/single-event.php
if ($related['display']) {
$posts_per_page = $related['posts_per_page'] ? $related['posts_per_page'] : '3';
if ($related['selection'] === 'auto') {
global $events;
$next_events = $events->get_events();
if ($next_events['events']) {
$posts_id = array();
foreach ($next_events['events'] as $event) {
if ($post->ID != $event->ID) {
$posts_id[] = $event->ID;
}
}
}
} elseif ($related['selection'] === 'manual') {
$posts_id = $related['selected'];
}
if (count($posts_id) == 1) {
$column_class = 'col-6_xs-12';
$display_alone = true;
} else {
$column_class = 'col-4_md-6_xs-12';
$display_alone = false;
}
}
?>
<!-- Breadcrumbs -->
<?php if (function_exists('yoast_breadcrumb')) {
yoast_breadcrumb('<div class="wrapper-default"><p id="breadcrumbs" class="as_h6">', '</p></div>');
} ?>
<!-- Hero -->
<?= !$thumb_id ? '<div class="wrapper-default">' : '<div class="wrapper-full-page">' ?>
Arguments
"count(): Argument #1 ($value) must be of type Countable|array, null given"
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_parts.php
$cache_args[$key] = $value;
} else if (is_object($value) && method_exists($value, 'get_id')) {
$cache_args[$key] = call_user_method('get_id', $value);
}
}
if (($cache = wp_cache_get($file, serialize($cache_args))) !== false) {
if (!empty($template_args['return']))
return $cache;
echo $cache;
return;
}
}
$file_handle = $file;
do_action('start_operation', 'hm_template_part::' . $file_handle);
if (file_exists(get_stylesheet_directory() . '/' . $file . '.php'))
$file = get_stylesheet_directory() . '/' . $file . '.php';
elseif (file_exists(get_template_directory() . '/' . $file . '.php'))
$file = get_template_directory() . '/' . $file . '.php';
ob_start();
$return = require($file);
$data = ob_get_clean();
do_action('end_operation', 'hm_template_part::' . $file_handle);
if ($cache_args) {
wp_cache_set($file, $data, serialize($cache_args), 3600);
}
if (!empty($template_args['return']))
if ($return === false)
return false;
else
return $data;
echo $data;
}
// =============================================================================
// GET CUSTOM PART
// =============================================================================
function get_custom_part($path_part, $params = [])
{
$path = get_template_directory() . '/parts/';
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_parts.php
}
if (!empty($template_args['return']))
if ($return === false)
return false;
else
return $data;
echo $data;
}
// =============================================================================
// GET CUSTOM PART
// =============================================================================
function get_custom_part($path_part, $params = [])
{
$path = get_template_directory() . '/parts/';
$path .= $path_part;
if (file_exists($path)) {
$template = walt_template_part($path, [
'params' => $params,
'return' => true
]);
return $template;
}
return false;
}
// =============================================================================
// CUSTOM PART COMPONENT CALL
// =============================================================================
function get_component_part($component, $params = [])
{
$path = 'components/' . $component . '.php';
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_parts.php
// =============================================================================
function get_archive_part($post_type, $params = [])
{
$path = 'archives/archive-' . $post_type . '.php';
return get_custom_part($path, $params);
}
// =============================================================================
// CUSTOM SINGLE PART
// =============================================================================
function get_single_part($post_type, $params = [])
{
$path = 'singles/single-' . $post_type . '.php';
return get_custom_part($path, $params);
}
// =============================================================================
// CUSTOM PART BLOCK CALL
// =============================================================================
/**
* get_block_part
*
* @param mixed $block
* @param mixed $params
* @return void
*/
function get_block_part($block, $params = [])
{
$path = 'blocks/' . $block . '.php';
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/single.php
<?php get_header(); ?>
<?php
global $post;
?>
<div id="container_page" class="single-<?= $post->post_type ?>-container">
<?php echo get_single_part($post->post_type); ?>
</div>
<?php get_footer(); ?>
/home/eyth6418/public_html/prod/paltini/wp-includes/template-loader.php
}
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;
}
Arguments
"/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/single.php"
/home/eyth6418/public_html/prod/paltini/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
"/home/eyth6418/public_html/prod/paltini/wp-includes/template-loader.php"
/home/eyth6418/public_html/prod/paltini/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
"/home/eyth6418/public_html/prod/paltini/wp-blog-header.php"