/var/www/html/wmm.com/public_html/public/themes/os-theme/page-templates/components/thumbnails-slider.php
?>
<div class="thumbnails-slider<?php echo ! empty( $blur_background ) ? ' blurry' : '' ?>">
<div class="d-flex">
<div class="image-wrap main-image-wrap venobox" data-href="<?php echo img_cap( $main_image )->url ?>" data-gall="film-thumbnails" data-title="<?php echo (isset($image['caption'])?$image['caption']:'');?>">
<?php if ( ! empty( $blur_background ) ): ?>
<div class="image-blurry-bg"></div>
<?php endif; ?>
<img class="large-image main-image" src="<?php echo img_cap( $main_image )->medium_large ?>"
alt="<?php echo ! empty( $alt_main ) ? $alt_main : null ?>">
</div>
</div>
<?php if ( ! empty( $images ) ): ?>
<?
//dump($images);
?>
<div class="row mt-2 mx-0 thumbnails-wrap owl-carousel">
<?php foreach ( $images as $i => $image ): ?>
<div class="thumbnail venobox" data-href="<?php echo img_cap( $image )->url ?>" data-gall="film-thumbnails" data-title="<?php echo (isset($image['caption'])?$image['caption']:'');?>">
<img class="thumbnail-image" src="<?php echo img_cap( $image )->medium_large ?>">
</div>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
Arguments
"Cannot use object of type stdClass as array"
/var/www/html/wmm.com/public_html/public/themes/os-theme/includes/classes/WP_Theme.php
if ( file_exists( $bd . $template_path ) ) {
$template_file = $bd . $template_path;
} elseif ( file_exists( "{$bd}$template_path.blade.php" ) ) {
$template_file = "{$bd}$template_path.blade.php";
} elseif ( file_exists( "{$bd}$template_path.php" ) ) {
$template_file = "{$bd}$template_path.php";
} elseif ( file_exists( $bd . str_replace( '.', $ds, $template_path ) . ".php" ) ) {
$template_file = $bd . str_replace( '.', $ds, $template_path ) . ".php";
} elseif ( file_exists( $bd . str_replace( '.', $ds, $template_path ) . ".blade.php" ) ) {
$template_file = $bd . str_replace( '.', $ds, $template_path ) . ".blade.php";
}
if ( $template_file ) {
extract( $data );
ob_start();
include $template_file;
$result = ob_get_clean();
} else {
throw new \Exception( "Template file \"$bd . $template_path\" was not found" );
}
if ( $return ) {
return $result;
}
echo $result;
}
/**
* Loads component template, passes data
*
* @param $component_path
* @param array $data
*
* @param bool $return
/var/www/html/wmm.com/public_html/public/themes/os-theme/includes/classes/WP_Theme.php
}
/**
* Loads component template, passes data
*
* @param $component_path
* @param array $data
*
* @param bool $return
*
* @return string
* @throws \Exception
*/
public function component( $component_path, array $data = [], $return = false )
{
$ds = DIRECTORY_SEPARATOR;
$component_path = 'components' . $ds . trim( $component_path, $ds );
return $this->template( $component_path, $data, $return );
}
/**
* Loads layout template, passes data
*
* @param $layout_path
* @param array $data
*
* @param bool $return
*
* @return string
* @throws \Exception
*/
public function layout( $layout_path, array $data = [], $return = false )
{
$ds = DIRECTORY_SEPARATOR;
$layout_path = 'layout' . $ds . trim( $layout_path, $ds );
return $this->template( $layout_path, $data, $return );
Arguments
"components/thumbnails-slider"
array:1 [
"images" => array:9 [
0 => "https://www.wmm.com/storage/films/illusions/poster_illusions-2.jpg"
1 => {#15937}
2 => {#16272}
3 => {#15928}
4 => {#16276}
5 => {#16274}
6 => {#16275}
7 => {#16277}
8 => {#16278}
]
]
false
/var/www/html/wmm.com/public_html/public/themes/os-theme/includes/_helpers.php
foreach ( $attrs_array as $attribute => $value ) {
$attrs_array[] = $attribute . '="' . $value . '"';
unset( $attrs_array[$attribute] );
}
return implode( ' ', $attrs_array );
}
}
if ( ! function_exists( 'layout' ) ) {
function layout( $name, $data = [], $return = false )
{
return OS\wp_theme()->layout( $name, $data, $return );
}
}
if ( ! function_exists( 'component' ) ) {
function component( $name, $data = [], $return = false )
{
return OS\wp_theme()->component( $name, $data, $return );
}
}
if ( ! function_exists( 'component_cache' ) ) {
function component_cache( $name, $data = [], $return = false, $cache_area = '' )
{
$key = md5( $name . json_encode( $data ) . ( $cache_area ?? current_url() ) );
$uploads = wp_get_upload_dir();
$cache_dir = $uploads['basedir'] . "/.c-cache";
if ( ! is_dir( $cache_dir ) ) {
mkdir( $cache_dir, 0777, true );
}
$cache_file = "$cache_dir/$key.html";
if ( file_exists( $cache_file ) && ( time() - filectime( $cache_file ) ) < 15 * 60 ) {
$html = file_get_contents( $cache_file );
}
Arguments
"components/thumbnails-slider"
array:1 [
"images" => array:9 [
0 => "https://www.wmm.com/storage/films/illusions/poster_illusions-2.jpg"
1 => {#15937}
2 => {#16272}
3 => {#15928}
4 => {#16276}
5 => {#16274}
6 => {#16275}
7 => {#16277}
8 => {#16278}
]
]
false
/var/www/html/wmm.com/public_html/public/themes/os-theme/page-templates/_film.php
//'blurry' => true,
//'laurels' => get_field( 'laurels', $film->ext_id ),
'laurels' => $film->laurels,
'banner_image' => $film->page_banner,
'page_banner_position' => $film->page_banner_position,
// 'post_id' => $film->ext_id,
'alt_image' => $gallery_image,
] );
endif; ?>
<?php /*<?php component( 'filters' ) ?>*/ ?>
</div>
<?php /*<div class="row p-md-5 px-3 pt-4">*/ ?>
<div class="container">
<div class="row px-3 pt-4 pt-md-5 px-md-5">
<aside class="col-12 col-sm-4 col-lg-3 mr-md-3 mr-0 px-0 mb-5">
<div class="thumbnails-slider">
<?php component( 'thumbnails-slider', [ 'images' => $film->images ] ) ?>
</div>
<?php if ( ! empty( $film->trailer ) && $film->trailer->popup_type !== 'wrong-type' ): ?>
<div class="text-center pt-5 d-flex flex-column">
<a href="<?php echo $film->trailer->url ?>" data-vbtype="<?php echo $film->trailer->popup_type ?>" data-frameheight="<?php echo $film->trailer->popup_frameheight ?>"
data-framewidth="<?php echo $film->trailer->popup_framewidth ?>" data-autoplay="true" class="button-blue w-100 trailer venobox mb-2">
<small class="small">WATCH</small>
<i class="fa-play-circled mx-1"></i>
<small class="small"><?php echo strtoupper($film->trailer->label) ?></small>
</a>
</div>
<?php endif; ?>
<div class="text-center pt-5 d-flex flex-column">
<?php /* <a href="<?php echo home_url( 'catalog/host/request' ) ?>" class="button-blue mb-4">BOOK A SCREENING</a> */ ?>
<?php if ( $film->virtual_screening_enable && ! empty( $film->virtual_screening_link ) ) { ?>
<a class="button-blue mb-4" href="<?php echo $film->virtual_screening_link; ?>">Host a screening</a>
<?php } ?>
<?php if($film->watch_on_kanopy_enable && $film->watch_on_kanopy_link) { ?>
<a class="button-blue mb-4" href="<?php echo $film->watch_on_kanopy_link; ?>" target="_blank"><?php echo !empty($film->watch_on_kanopy_button_text) ? $film->watch_on_kanopy_button_text : 'Watch on Kanopy'; ?></a>
<?php } ?>
Arguments
"thumbnails-slider"
array:1 [
"images" => array:9 [
0 => "https://www.wmm.com/storage/films/illusions/poster_illusions-2.jpg"
1 => {#15937}
2 => {#16272}
3 => {#15928}
4 => {#16276}
5 => {#16274}
6 => {#16275}
7 => {#16277}
8 => {#16278}
]
]
/var/www/html/wmm.com/public_html/public/themes/os-theme/includes/classes/WP_Theme.php
if ( file_exists( $bd . $template_path ) ) {
$template_file = $bd . $template_path;
} elseif ( file_exists( "{$bd}$template_path.blade.php" ) ) {
$template_file = "{$bd}$template_path.blade.php";
} elseif ( file_exists( "{$bd}$template_path.php" ) ) {
$template_file = "{$bd}$template_path.php";
} elseif ( file_exists( $bd . str_replace( '.', $ds, $template_path ) . ".php" ) ) {
$template_file = $bd . str_replace( '.', $ds, $template_path ) . ".php";
} elseif ( file_exists( $bd . str_replace( '.', $ds, $template_path ) . ".blade.php" ) ) {
$template_file = $bd . str_replace( '.', $ds, $template_path ) . ".blade.php";
}
if ( $template_file ) {
extract( $data );
ob_start();
include $template_file;
$result = ob_get_clean();
} else {
throw new \Exception( "Template file \"$bd . $template_path\" was not found" );
}
if ( $return ) {
return $result;
}
echo $result;
}
/**
* Loads component template, passes data
*
* @param $component_path
* @param array $data
*
* @param bool $return
Arguments
"/var/www/html/wmm.com/public_html/public/themes/os-theme/page-templates/_film.php"
/var/www/html/wmm.com/public_html/public/themes/os-theme/includes/_helpers.php
$html = file_get_contents( $cache_file );
}
if ( empty( $html ) ) {
$html = OS\wp_theme()->component( $name, $data, true );
file_put_contents( $cache_file, $html );
}
if ( $return ) {
return $html;
} else {
echo $html;
}
}
}
if ( ! function_exists( 'template' ) ) {
function template( $name, $data = [], $return = false )
{
return OS\wp_theme()->template( $name, $data, $return );
}
}
if ( ! function_exists( 'social' ) && function_exists( 'OS\wp_social' ) ) {
function social()
{
return OS\wp_social();
}
}
if ( ! function_exists( 'posts' ) && function_exists( 'OS\wp_posts' ) ) {
function posts()
{
return OS\wp_posts();
}
}
if ( ! function_exists( 'theme' ) && function_exists( 'OS\wp_theme' ) ) {
function theme()
{
Arguments
"_film"
array:1 [
"film_slug" => "illusions"
]
false
/var/www/html/wmm.com/public_html/public/themes/os-theme/index.php
<?php if ( ! defined( 'ABSPATH' ) ) exit( 'restricted access' );
if ( $filmmaker_name = get_query_var( 'filmmaker' ) ) {
template( '_filmmaker', compact( 'filmmaker_name' ) );
} else if ( $film_slug = get_query_var( 'film_slug' ) ) {
template( '_film', compact( 'film_slug' ) );
} else if ( $film_slug = get_query_var( 'catalog_film_slug' ) ) {
template( '_catalog-film-item', compact( 'film_slug' ) );
} else if ( $collection_slug = get_query_var( 'collection_slug' ) ) {
template( '_collection', compact( 'collection_slug' ) );
} else if ( $subjects = get_query_var( 'subjects' ) ) {
template( '_subjects', compact( 'subjects' ) );
} else if ( $cart = get_query_var( 'cart' ) ) {
template( '_cart', compact( 'cart' ) );
} else if ( $sponsored_widget = get_query_var( 'sponsored_widget' ) ) {
template( '_sponsored-widget', compact( 'sponsored_widget' ) );
} else {
template( '_blog' );
}
Arguments
"_film"
array:1 [
"film_slug" => "illusions"
]
/var/www/html/wmm.com/public_html/public/wordpress/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
"/var/www/html/wmm.com/public_html/public/themes/os-theme/index.php"
/var/www/html/wmm.com/public_html/public/wordpress/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
"/var/www/html/wmm.com/public_html/public/wordpress/wp-includes/template-loader.php"
/var/www/html/wmm.com/public_html/public/index.php
|
| We need to define and tell WordPress to load the WordPress theme and
| output it to the client's browser.
|
*/
define('WP_USE_THEMES', true);
/*
|--------------------------------------------------------------------------
| Booting WordPress
|--------------------------------------------------------------------------
|
| This is the 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.
|
*/
require __DIR__.'/wordpress/wp-blog-header.php';
Arguments
"/var/www/html/wmm.com/public_html/public/wordpress/wp-blog-header.php"