/data/m/musikisyd.se/www/public_html/wp-content/themes/bravissimo-start/vendor/illuminate/view/Engines/PhpEngine.php
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Throwable $e
* @param int $obLevel
* @return void
*
* @throws \Throwable
*/
protected function handleViewException(Throwable $e, $obLevel)
{
while (ob_get_level() > $obLevel) {
ob_end_clean();
}
/data/m/musikisyd.se/www/public_html/wp-content/uploads/sites/11/cache/86d5cf916fd753658a9e2d079c302de378b8d750.php
<?php $__currentLoopData = $page['modules']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $module): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($module['acf_fc_layout'] === 'aboutUs'): ?>
<?php echo $__env->make('views.frontPage.components.aboutUs.aboutUs', [
'aboutUs' => $module,
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php elseif($module['acf_fc_layout'] === 'shortcuts'): ?>
<?php echo $__env->make('views.frontPage.components.shortcuts.shortcutGroup', [
'shortcuts' => $module['shortcuts'],
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php elseif($module['acf_fc_layout'] === 'latestNews'): ?>
<?php echo $__env->make('views.frontPage.components.latestNews.latestNews', [
'cards' => $page['latestNews'],
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php elseif($module['acf_fc_layout'] === 'channel'): ?>
<?php echo $__env->make('views.frontPage.components.channel.channel', [
'channel' => $module,
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php elseif($module['acf_fc_layout'] === 'facebookPosts'): ?>
<?php echo $__env->make('components.sections.facebookPosts.facebookPosts', [
'feed' => $module['id'],
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php elseif($module['acf_fc_layout'] === 'concertCalendar'): ?>
<?php if (isset($component)) { $__componentOriginal2802d64b161125e5979fb1ba6654efe462d30175 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\Calendar::class, ['heading' => !empty($module['heading']) ? $module['heading'] : 'Kalender','take' => isSite(KORROFESTIVALEN) || isSite(LUNDCHORALFESTIVAL) ? 50 : 7]); ?>
<?php $component->withName('calendar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php if (isset($__componentOriginal2802d64b161125e5979fb1ba6654efe462d30175)): ?>
<?php $component = $__componentOriginal2802d64b161125e5979fb1ba6654efe462d30175; ?>
<?php unset($__componentOriginal2802d64b161125e5979fb1ba6654efe462d30175); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', [
Arguments
/data/m/musikisyd.se/www/public_html/wp-content/uploads/sites/11/cache/86d5cf916fd753658a9e2d079c302de378b8d750.php
<?php $__currentLoopData = $page['modules']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $module): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($module['acf_fc_layout'] === 'aboutUs'): ?>
<?php echo $__env->make('views.frontPage.components.aboutUs.aboutUs', [
'aboutUs' => $module,
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php elseif($module['acf_fc_layout'] === 'shortcuts'): ?>
<?php echo $__env->make('views.frontPage.components.shortcuts.shortcutGroup', [
'shortcuts' => $module['shortcuts'],
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php elseif($module['acf_fc_layout'] === 'latestNews'): ?>
<?php echo $__env->make('views.frontPage.components.latestNews.latestNews', [
'cards' => $page['latestNews'],
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php elseif($module['acf_fc_layout'] === 'channel'): ?>
<?php echo $__env->make('views.frontPage.components.channel.channel', [
'channel' => $module,
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php elseif($module['acf_fc_layout'] === 'facebookPosts'): ?>
<?php echo $__env->make('components.sections.facebookPosts.facebookPosts', [
'feed' => $module['id'],
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php elseif($module['acf_fc_layout'] === 'concertCalendar'): ?>
<?php if (isset($component)) { $__componentOriginal2802d64b161125e5979fb1ba6654efe462d30175 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\Calendar::class, ['heading' => !empty($module['heading']) ? $module['heading'] : 'Kalender','take' => isSite(KORROFESTIVALEN) || isSite(LUNDCHORALFESTIVAL) ? 50 : 7]); ?>
<?php $component->withName('calendar'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php if (isset($__componentOriginal2802d64b161125e5979fb1ba6654efe462d30175)): ?>
<?php $component = $__componentOriginal2802d64b161125e5979fb1ba6654efe462d30175; ?>
<?php unset($__componentOriginal2802d64b161125e5979fb1ba6654efe462d30175); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', [
/data/m/musikisyd.se/www/public_html/wp-content/themes/bravissimo-start/vendor/illuminate/view/Engines/PhpEngine.php
/**
* Get the evaluated contents of the view at the given path.
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Throwable $e
* @param int $obLevel
* @return void
*
* @throws \Throwable
*/
protected function handleViewException(Throwable $e, $obLevel)
{
while (ob_get_level() > $obLevel) {
ob_end_clean();
Arguments
"/data/m/musikisyd.se/www/public_html/wp-content/uploads/sites/11/cache/86d5cf916fd753658a9e2d079c302de378b8d750.php"
/data/m/musikisyd.se/www/public_html/wp-content/themes/bravissimo-start/vendor/illuminate/view/Engines/CompilerEngine.php
*
* @param string $path
* @param array $data
* @return string
*/
public function get($path, array $data = [])
{
$this->lastCompiled[] = $path;
// If this given view has expired, which means it has simply been edited since
// it was last compiled, we will re-compile the views so we can evaluate a
// fresh copy of the view. We'll pass the compiler the path of the view.
if ($this->compiler->isExpired($path)) {
$this->compiler->compile($path);
}
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
/**
* Handle a view exception.
*
* @param \Throwable $e
* @param int $obLevel
* @return void
*
* @throws \Throwable
*/
protected function handleViewException(Throwable $e, $obLevel)
{
$e = new ViewException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
parent::handleViewException($e, $obLevel);
/data/m/musikisyd.se/www/public_html/wp-content/themes/bravissimo-start/vendor/illuminate/view/View.php
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
* @return array
*/
public function gatherData()
{
$data = array_merge($this->factory->getShared(), $this->data);
foreach ($data as $key => $value) {
if ($value instanceof Renderable) {
$data[$key] = $value->render();
}
}
return $data;
}
/data/m/musikisyd.se/www/public_html/wp-content/themes/bravissimo-start/vendor/illuminate/view/View.php
throw $e;
}
}
/**
* Get the contents of the view instance.
*
* @return string
*/
protected function renderContents()
{
// We will keep track of the amount of views being rendered so we can flush
// the section after the complete rendering operation is done. This will
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
/data/m/musikisyd.se/www/public_html/wp-content/themes/bravissimo-start/vendor/illuminate/view/View.php
$this->view = $view;
$this->path = $path;
$this->engine = $engine;
$this->factory = $factory;
$this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
}
/**
* Get the string contents of the view.
*
* @param callable|null $callback
* @return array|string
*
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// another view gets rendered in the future by the application developer.
$this->factory->flushStateIfDoneRendering();
return ! is_null($response) ? $response : $contents;
} catch (Throwable $e) {
$this->factory->flushState();
throw $e;
}
}
/**
* Get the contents of the view instance.
*
* @return string
/data/m/musikisyd.se/www/public_html/wp-content/themes/bravissimo-start/vendor/jenssegers/blade/src/Blade.php
/**
* @var BladeCompiler
*/
private $compiler;
public function __construct($viewPaths, string $cachePath, ContainerInterface $container = null)
{
$this->container = $container ?: new Container;
$this->setupContainer((array) $viewPaths, $cachePath);
(new ViewServiceProvider($this->container))->register();
$this->factory = $this->container->get('view');
$this->compiler = $this->container->get('blade.compiler');
}
public function render(string $view, array $data = [], array $mergeData = []): string
{
return $this->make($view, $data, $mergeData)->render();
}
public function make($view, $data = [], $mergeData = []): View
{
return $this->factory->make($view, $data, $mergeData);
}
public function compiler(): BladeCompiler
{
return $this->compiler;
}
public function directive(string $name, callable $handler)
{
$this->compiler->directive($name, $handler);
}
public function if($name, callable $callback)
{
$this->compiler->if($name, $callback);
/data/m/musikisyd.se/www/public_html/wp-content/themes/bravissimo-start/vendor/bravissimo_agency/wp-lib/src/View.php
$this->jsVariables[$name] = array_merge($this->jsVariables[$name], $data);
} else {
$this->jsVariables[$name] = $data;
}
}
public function getJsVariables() : array {
return $this->jsVariables;
}
public function addBladeGlobal(string $name, $value) : void {
$this->blade->share($name, $value);
}
public function addBladeDirective(string $name, callable $directive) : void {
$this->blade->directive($name, $directive);
}
public function render(string $template, array $data) : string {
return $this->blade->render($template, $data);
}
}
class App extends \Illuminate\Container\Container {
public function getNamespace() {
return 'App';
}
}
/data/m/musikisyd.se/www/public_html/wp-content/themes/bravissimo-start/vendor/bravissimo_agency/wp-lib/src/utils/helpers.php
<?php
/*
// View helpers
*/
use Illuminate\Support\Str;
use Symfony\Component\HttpFoundation\JsonResponse;
use Valitron\Validator;
use WP_Lib\Request;
use WP_Lib\View;
function view(string $template, array $data) : string {
$view = View::getInstance();
return $view->render($template, $data);
}
function asset(?string $path = null) : string {
return get_template_directory_uri() . '/resources/assets/' . $path;
}
function addJsVariable(string $name, $data) : void {
$view = View::getInstance();
$view->addJsVariable($name, $data);
}
function getJsVariables() : array {
$view = View::getInstance();
return $view->getJsVariables();
}
function addBladeDirective(string $name, callable $directive) : void {
$view = View::getInstance();
$view->addBladeDirective($name, $directive);
}
function addBladeGlobal(string $name, $value) : void {
$view = View::getInstance();
/data/m/musikisyd.se/www/public_html/wp-content/themes/bravissimo-start/app/Controllers/PageController.php
<?php
namespace App\Controllers;
use App\Frontpage;
use App\Page;
class PageController {
public function frontPage($postId) {
$page = (new Frontpage)
->find($postId)
->withAcf()
->withMeta()
->get();
return view('views.frontPage.frontPage', compact('page'));
}
public function show($postId) {
$page = (new Page)
->find($postId)
->withAcf()
->withTitle()
->withMeta()
->get();
addBladeGlobal('favoriteData', [
'id' => $page['id'],
'title' => $page['title'],
'text' => 'Sida',
'permalink' => get_the_permalink($page['id']),
'image' => Page::getImage($page),
'type' => 'page',
]);
return view('views.page.page', compact('page'));
}
}
/data/m/musikisyd.se/www/public_html/wp-content/themes/bravissimo-start/front-page.php
<?php
echo (new App\Controllers\PageController)->frontPage(get_the_ID());
/data/m/musikisyd.se/www/public_html/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
"/data/m/musikisyd.se/www/public_html/wp-content/themes/bravissimo-start/front-page.php"
/data/m/musikisyd.se/www/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
"/data/m/musikisyd.se/www/public_html/wp-includes/template-loader.php"
/data/m/musikisyd.se/www/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
"/data/m/musikisyd.se/www/public_html/wp-blog-header.php"