/home/forge/lnc.ayctor.dev/wp-content/viewscache/8c259797a9345720e3ad859ae38258e8.php
<div class="container mx-auto px-8 font-sans py-8 lg:py-14">
<div class="flex flex-col justify-center items-center">
<h2 class="typo-h2 text-<?php echo e($program->color); ?> text-center">
<?php echo e(get_field('pinel_title', $frontpageId)); ?>
</h2>
<div class="mt-8 mb-6 text-center max-w-3xl">
<?php echo get_field('pinel_text', $frontpageId); ?>
</div>
</div>
<div class="flex flex-col items-stretch lg:flex-row shadow-md rounded-lg">
<div class="relative flex w-full lg:w-1/2">
<img src="<?php echo e(get_field('pinel_image', $frontpageId)['sizes']['card-large']); ?>" alt="<?php echo e(get_field('pinel_image', $frontpageId)['alt']); ?>" class="rounded-lg object-cover w-full h-full">
<div class="absolute bottom-0 right-0 p-2">
<div class="flex justify-center items-center rounded-full w-24 h-24 bg-red text-white text-center">
<?php echo get_field('pinel_badge', $frontpageId); ?>
</div>
</div>
</div>
<div class="flex flex-col justify-center w-full lg:w-1/2 px-14 py-10">
<div class="flex items-center">
<div class="flex shrink-0 justify-center items-center w-10 h-10 rounded-full border border-<?php echo e($program->color); ?> mr-6">
1
</div>
<p class="w-full shrink">
<?php echo e(get_field('pinel_text_1', $frontpageId)); ?>
</p>
</div>
<div class="flex items-center mt-6">
<div class="flex shrink-0 justify-center items-center w-10 h-10 rounded-full border border-<?php echo e($program->color); ?> mr-6">
2
</div>
<p class="w-full shrink">
<?php echo e(get_field('pinel_text_2', $frontpageId)); ?>
</p>
</div>
Arguments
"Undefined variable $program (View: /home/forge/deploy/lnc.ayctor.dev/releases/489/resources/views/partials/_pinel.blade.php) (View: /home/forge/deploy/lnc.ayctor.dev/releases/489/resources/views/partials/_pinel.blade.php)"
/home/forge/deploy/lnc.ayctor.dev/shared/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();
// 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 {
$this->files->getRequire($path, $data);
} 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();
}
/home/forge/lnc.ayctor.dev/wp-content/viewscache/8c259797a9345720e3ad859ae38258e8.php
<div class="container mx-auto px-8 font-sans py-8 lg:py-14">
<div class="flex flex-col justify-center items-center">
<h2 class="typo-h2 text-<?php echo e($program->color); ?> text-center">
<?php echo e(get_field('pinel_title', $frontpageId)); ?>
</h2>
<div class="mt-8 mb-6 text-center max-w-3xl">
<?php echo get_field('pinel_text', $frontpageId); ?>
</div>
</div>
<div class="flex flex-col items-stretch lg:flex-row shadow-md rounded-lg">
<div class="relative flex w-full lg:w-1/2">
<img src="<?php echo e(get_field('pinel_image', $frontpageId)['sizes']['card-large']); ?>" alt="<?php echo e(get_field('pinel_image', $frontpageId)['alt']); ?>" class="rounded-lg object-cover w-full h-full">
<div class="absolute bottom-0 right-0 p-2">
<div class="flex justify-center items-center rounded-full w-24 h-24 bg-red text-white text-center">
<?php echo get_field('pinel_badge', $frontpageId); ?>
</div>
</div>
</div>
<div class="flex flex-col justify-center w-full lg:w-1/2 px-14 py-10">
<div class="flex items-center">
<div class="flex shrink-0 justify-center items-center w-10 h-10 rounded-full border border-<?php echo e($program->color); ?> mr-6">
1
</div>
<p class="w-full shrink">
<?php echo e(get_field('pinel_text_1', $frontpageId)); ?>
</p>
</div>
<div class="flex items-center mt-6">
<div class="flex shrink-0 justify-center items-center w-10 h-10 rounded-full border border-<?php echo e($program->color); ?> mr-6">
2
</div>
<p class="w-full shrink">
<?php echo e(get_field('pinel_text_2', $frontpageId)); ?>
</p>
</div>
Arguments
"Undefined variable $program (View: /home/forge/deploy/lnc.ayctor.dev/releases/489/resources/views/partials/_pinel.blade.php)"
/home/forge/deploy/lnc.ayctor.dev/shared/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();
// 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 {
$this->files->getRequire($path, $data);
} 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();
}
/home/forge/lnc.ayctor.dev/wp-content/viewscache/8c259797a9345720e3ad859ae38258e8.php
<div class="container mx-auto px-8 font-sans py-8 lg:py-14">
<div class="flex flex-col justify-center items-center">
<h2 class="typo-h2 text-<?php echo e($program->color); ?> text-center">
<?php echo e(get_field('pinel_title', $frontpageId)); ?>
</h2>
<div class="mt-8 mb-6 text-center max-w-3xl">
<?php echo get_field('pinel_text', $frontpageId); ?>
</div>
</div>
<div class="flex flex-col items-stretch lg:flex-row shadow-md rounded-lg">
<div class="relative flex w-full lg:w-1/2">
<img src="<?php echo e(get_field('pinel_image', $frontpageId)['sizes']['card-large']); ?>" alt="<?php echo e(get_field('pinel_image', $frontpageId)['alt']); ?>" class="rounded-lg object-cover w-full h-full">
<div class="absolute bottom-0 right-0 p-2">
<div class="flex justify-center items-center rounded-full w-24 h-24 bg-red text-white text-center">
<?php echo get_field('pinel_badge', $frontpageId); ?>
</div>
</div>
</div>
<div class="flex flex-col justify-center w-full lg:w-1/2 px-14 py-10">
<div class="flex items-center">
<div class="flex shrink-0 justify-center items-center w-10 h-10 rounded-full border border-<?php echo e($program->color); ?> mr-6">
1
</div>
<p class="w-full shrink">
<?php echo e(get_field('pinel_text_1', $frontpageId)); ?>
</p>
</div>
<div class="flex items-center mt-6">
<div class="flex shrink-0 justify-center items-center w-10 h-10 rounded-full border border-<?php echo e($program->color); ?> mr-6">
2
</div>
<p class="w-full shrink">
<?php echo e(get_field('pinel_text_2', $frontpageId)); ?>
</p>
</div>
Arguments
"Undefined variable $program"
/home/forge/lnc.ayctor.dev/wp-content/viewscache/8c259797a9345720e3ad859ae38258e8.php
<div class="container mx-auto px-8 font-sans py-8 lg:py-14">
<div class="flex flex-col justify-center items-center">
<h2 class="typo-h2 text-<?php echo e($program->color); ?> text-center">
<?php echo e(get_field('pinel_title', $frontpageId)); ?>
</h2>
<div class="mt-8 mb-6 text-center max-w-3xl">
<?php echo get_field('pinel_text', $frontpageId); ?>
</div>
</div>
<div class="flex flex-col items-stretch lg:flex-row shadow-md rounded-lg">
<div class="relative flex w-full lg:w-1/2">
<img src="<?php echo e(get_field('pinel_image', $frontpageId)['sizes']['card-large']); ?>" alt="<?php echo e(get_field('pinel_image', $frontpageId)['alt']); ?>" class="rounded-lg object-cover w-full h-full">
<div class="absolute bottom-0 right-0 p-2">
<div class="flex justify-center items-center rounded-full w-24 h-24 bg-red text-white text-center">
<?php echo get_field('pinel_badge', $frontpageId); ?>
</div>
</div>
</div>
<div class="flex flex-col justify-center w-full lg:w-1/2 px-14 py-10">
<div class="flex items-center">
<div class="flex shrink-0 justify-center items-center w-10 h-10 rounded-full border border-<?php echo e($program->color); ?> mr-6">
1
</div>
<p class="w-full shrink">
<?php echo e(get_field('pinel_text_1', $frontpageId)); ?>
</p>
</div>
<div class="flex items-center mt-6">
<div class="flex shrink-0 justify-center items-center w-10 h-10 rounded-full border border-<?php echo e($program->color); ?> mr-6">
2
</div>
<p class="w-full shrink">
<?php echo e(get_field('pinel_text_2', $frontpageId)); ?>
</p>
</div>
/home/forge/deploy/lnc.ayctor.dev/shared/vendor/illuminate/filesystem/Filesystem.php
/**
* Get the returned value of a file.
*
* @param string $path
* @param array $data
* @return mixed
*
* @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
*/
public function getRequire($path, array $data = [])
{
if ($this->isFile($path)) {
$__path = $path;
$__data = $data;
return (static function () use ($__path, $__data) {
extract($__data, EXTR_SKIP);
return require $__path;
})();
}
throw new FileNotFoundException("File does not exist at path {$path}.");
}
/**
* Require the given file once.
*
* @param string $path
* @param array $data
* @return mixed
*
* @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
*/
public function requireOnce($path, array $data = [])
{
if ($this->isFile($path)) {
$__path = $path;
$__data = $data;
Arguments
"/home/forge/lnc.ayctor.dev/wp-content/viewscache/8c259797a9345720e3ad859ae38258e8.php"
/home/forge/deploy/lnc.ayctor.dev/shared/vendor/illuminate/filesystem/Filesystem.php
/**
* Get the returned value of a file.
*
* @param string $path
* @param array $data
* @return mixed
*
* @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
*/
public function getRequire($path, array $data = [])
{
if ($this->isFile($path)) {
$__path = $path;
$__data = $data;
return (static function () use ($__path, $__data) {
extract($__data, EXTR_SKIP);
return require $__path;
})();
}
throw new FileNotFoundException("File does not exist at path {$path}.");
}
/**
* Require the given file once.
*
* @param string $path
* @param array $data
* @return mixed
*
* @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
*/
public function requireOnce($path, array $data = [])
{
if ($this->isFile($path)) {
$__path = $path;
$__data = $data;
/home/forge/deploy/lnc.ayctor.dev/shared/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();
// 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 {
$this->files->getRequire($path, $data);
} 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();
/home/forge/deploy/lnc.ayctor.dev/shared/vendor/illuminate/view/Engines/CompilerEngine.php
* @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 (! isset($this->compiledOrNotExpired[$path]) && $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.
try {
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
} catch (ViewException $e) {
if (! str($e->getMessage())->contains(['No such file or directory', 'File does not exist at path'])) {
throw $e;
}
if (! isset($this->compiledOrNotExpired[$path])) {
throw $e;
}
$this->compiler->compile($path);
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
}
$this->compiledOrNotExpired[$path] = true;
array_pop($this->lastCompiled);
return $results;
}
/home/forge/deploy/lnc.ayctor.dev/shared/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 section gets 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;
}
/home/forge/deploy/lnc.ayctor.dev/shared/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 number 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 section gets 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());
}
/**
/home/forge/deploy/lnc.ayctor.dev/shared/vendor/illuminate/view/View.php
*
* @return string
*/
protected function allFragments()
{
return collect($this->render(fn () => $this->factory->getFragments()))->implode('');
}
/**
* Get the string contents of the view.
*
* @param callable|null $callback
* @return 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
/home/forge/lnc.ayctor.dev/wp-content/viewscache/1b6fd5f24511e6d28dae8df0177bc727.php
<?php elseif(get_sub_field('contents_medias_text_medias_select')['value'] === 'oembed'): ?>
<?php echo e(get_sub_field('contents_medias_text_medias_oembed')); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
</div>
<div class="single_block">
<?php echo get_sub_field('contents_medias_text_text'); ?>
</div>
</div>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
</div>
</section>
</section>
<?php if(get_field('show_pinel_block')): ?>
<?php echo $__env->make('partials._pinel', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php endif; ?>
<?php echo $__env->make('partials._contactform', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('partials._links', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<section class="py-14 bg-beige_light" role="region">
<h2 class="typo-h2 text-center text-red" role="heading">À découvrir</h2>
<div class="container cards-3" id="programs" data-size="3">
<span class="py-16 font-bold">Chargement des résidences...</span>
</div>
<div class="flex content-center justify-center">
<a class="button-round-gradient-plum" href="<?php echo e(get_post_type_archive_link('program')); ?>" role="link">+ de
résidences</a>
</div>
</section>
<?php echo $__env->make('partials._shortcut', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/forge/deploy/lnc.ayctor.dev/releases/489/resources/views/pages/page.blade.php ENDPATH**/ ?>
/home/forge/deploy/lnc.ayctor.dev/shared/vendor/illuminate/filesystem/Filesystem.php
/**
* Get the returned value of a file.
*
* @param string $path
* @param array $data
* @return mixed
*
* @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
*/
public function getRequire($path, array $data = [])
{
if ($this->isFile($path)) {
$__path = $path;
$__data = $data;
return (static function () use ($__path, $__data) {
extract($__data, EXTR_SKIP);
return require $__path;
})();
}
throw new FileNotFoundException("File does not exist at path {$path}.");
}
/**
* Require the given file once.
*
* @param string $path
* @param array $data
* @return mixed
*
* @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
*/
public function requireOnce($path, array $data = [])
{
if ($this->isFile($path)) {
$__path = $path;
$__data = $data;
Arguments
"/home/forge/lnc.ayctor.dev/wp-content/viewscache/1b6fd5f24511e6d28dae8df0177bc727.php"
/home/forge/deploy/lnc.ayctor.dev/shared/vendor/illuminate/filesystem/Filesystem.php
/**
* Get the returned value of a file.
*
* @param string $path
* @param array $data
* @return mixed
*
* @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
*/
public function getRequire($path, array $data = [])
{
if ($this->isFile($path)) {
$__path = $path;
$__data = $data;
return (static function () use ($__path, $__data) {
extract($__data, EXTR_SKIP);
return require $__path;
})();
}
throw new FileNotFoundException("File does not exist at path {$path}.");
}
/**
* Require the given file once.
*
* @param string $path
* @param array $data
* @return mixed
*
* @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
*/
public function requireOnce($path, array $data = [])
{
if ($this->isFile($path)) {
$__path = $path;
$__data = $data;
/home/forge/deploy/lnc.ayctor.dev/shared/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();
// 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 {
$this->files->getRequire($path, $data);
} 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();
/home/forge/deploy/lnc.ayctor.dev/shared/vendor/illuminate/view/Engines/CompilerEngine.php
* @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 (! isset($this->compiledOrNotExpired[$path]) && $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.
try {
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
} catch (ViewException $e) {
if (! str($e->getMessage())->contains(['No such file or directory', 'File does not exist at path'])) {
throw $e;
}
if (! isset($this->compiledOrNotExpired[$path])) {
throw $e;
}
$this->compiler->compile($path);
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
}
$this->compiledOrNotExpired[$path] = true;
array_pop($this->lastCompiled);
return $results;
}
/home/forge/deploy/lnc.ayctor.dev/shared/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 section gets 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;
}
/home/forge/deploy/lnc.ayctor.dev/shared/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 number 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 section gets 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());
}
/**
/home/forge/deploy/lnc.ayctor.dev/shared/vendor/illuminate/view/View.php
*
* @return string
*/
protected function allFragments()
{
return collect($this->render(fn () => $this->factory->getFragments()))->implode('');
}
/**
* Get the string contents of the view.
*
* @param callable|null $callback
* @return 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
/home/forge/deploy/lnc.ayctor.dev/shared/vendor/ayctor/wp-core/src/WpCore/Bootstrap/Blade.php
$this->viewResolver->register('blade', function () {
return new CompilerEngine($this->bladeCompiler, $this->filesystem);
});
$this->viewResolver->register('php', function () {
return new PhpEngine;
});
$this->viewFinder = new FileViewFinder($this->filesystem, $this->templates);
$this->viewFactory = new Factory($this->viewResolver, $this->viewFinder, $this->eventDispatcher);
}
/**
* Render Blade template for Front
* @param string $view The view to render
* @param array $with Data to pass to the view
* @return string Html rendered
*/
public static function render($view, $with = [])
{
$instance = new static;
return $instance->viewFactory->make($view, $with)->render();
}
/**
* Create directory if not exists
* @param string $dir abs path of directory
* @return bool If folder is created
*/
private function createDirectory($dir)
{
if (!is_dir($dir)) {
return mkdir($dir);
}
return true;
}
/**
* Custom directives
* @return string Html of the directive
*/
public function extend()
/home/forge/deploy/lnc.ayctor.dev/shared/vendor/ayctor/wp-core/src/WpCore/Controllers/Controller.php
<?php
namespace WpCore\Controllers;
use WpCore\Bootstrap\Blade;
/**
* Class Controller, basic controller
*/
class Controller
{
/**
* Helper function to tell which view to render
* @param string $view The view to render
* @param array $with Data to pass to the view
* @return string Html rendered
*/
protected function view($view, $with = [])
{
echo Blade::render($view, $with);
}
}
/home/forge/deploy/lnc.ayctor.dev/releases/489/app/Controllers/Controller.php
<?php
namespace Ayctor\Controllers;
use Ayctor\Models\Department;
use WpCore\Controllers\Controller as BaseController;
class Controller extends BaseController
{
/**
* Return the requested view with the right params.
*
* @param string $route The view name
* @param array $variables The array of variables
*
* @return string
*/
protected function view($route, $variables = [])
{
return parent::view($route, array_merge($this->getParams(), $variables));
}
/**
* Get Pages params.
*
* @return array Params to pass to the view
*/
private function getParams(): array
{
if (false === ($params = get_transient('pages_params'))) {
$params = [];
$params['frontpageId'] = get_option('page_on_front');
$params['banner'] = get_field('banner', $params['frontpageId']);
$params['logo'] = get_field('logo', $params['frontpageId']);
$params['slogan'] = get_field('slogan', $params['frontpageId']);
$params['phone'] = get_field('phone', $params['frontpageId']);
$params['shortcutsColors'] = [
'border' => get_field('shortcuts_border_color', $params['frontpageId']),
'background' => get_field('shortcuts_background_color', $params['frontpageId']),
'text' => get_field('shortcuts_text_color', $params['frontpageId']),
/home/forge/deploy/lnc.ayctor.dev/releases/489/app/Controllers/PageController.php
}
public function category()
{
return $this->view('pages.category');
}
public function post()
{
return $this->view('pages.post');
}
/**
* View for page.php.
*
* @return string
*/
public function page()
{
return $this->view('pages.page');
}
/**
* View for page-simple.php.
*
* @return string
*/
public function simple()
{
return $this->view('pages.simple');
}
/**
* View for page-recruitment.php.
*
* @return string
*/
public function recruitment()
{
return $this->view('pages.recruitment', [
/home/forge/deploy/lnc.ayctor.dev/releases/489/page.php
<?php
(new Ayctor\Controllers\PageController)->page();
/home/forge/lnc.ayctor.dev/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/forge/deploy/lnc.ayctor.dev/releases/489/page.php"
/home/forge/lnc.ayctor.dev/wp-blog-header.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/forge/lnc.ayctor.dev/wp-includes/template-loader.php"
/home/forge/lnc.ayctor.dev/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/forge/lnc.ayctor.dev/wp-blog-header.php"