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;
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
// 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();
* @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
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php do_action('get_header'); ?>
<div id="app">
<?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
</div>
<?php do_action('get_footer'); ?>
<?php wp_footer(); ?>
</body>
*
* @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() );
}
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
Error
|
---|
Error: Call to undefined function Illuminate\View\Engines\str() at /home/hzjjsmp/www/wp-content/themes/surface/vendor/illuminate/view/Engines/CompilerEngine.php:73 at Illuminate\View\Engines\CompilerEngine->get('/home/hzjjsmp/www/wp-content/themes/surface/resources/views/page.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'post' => object(WP_Post), 'siteName' => 'Surface', 'flexibleContent' => array(array('acf_fc_layout' => 'slider_text', 'title' => 'Lighting', 'title_link' => '', 'left_slider' => array(array('left_slider_item' => false), array('left_slider_item' => false)), 'right_text_slider' => '<p>Born from the meeting of two primitive natural materials: earth and wool fiber.<br />The lamp base is shaped in coil with a red sandstone chamotte and encrusted with micas*.<br />The lampshade is handmade in ecru wool.</p>', 'circle_text' => '', 'circle_url' => '', 'more_info' => '<p>Golden shards</p>', 'color_class' => 'orange'), array('acf_fc_layout' => 'product', 'product' => false), array('acf_fc_layout' => 'instagram', 'title' => 'Instagram', 'title_link' => '', 'instagram_feed' => '<div class="photo-feed-block"></div> <!-- // Gallery Block -->')))) (/home/hzjjsmp/www/wp-content/themes/surface/vendor/illuminate/view/View.php:195) at Illuminate\View\View->getContents() (/home/hzjjsmp/www/wp-content/themes/surface/vendor/illuminate/view/View.php:178) at Illuminate\View\View->renderContents() (/home/hzjjsmp/www/wp-content/themes/surface/vendor/illuminate/view/View.php:147) at Illuminate\View\View->render() (/home/hzjjsmp/www/wp-content/themes/surface/index.php:57) at include('/home/hzjjsmp/www/wp-content/themes/surface/index.php') (/home/hzjjsmp/www/wp-includes/template-loader.php:106) at require_once('/home/hzjjsmp/www/wp-includes/template-loader.php') (/home/hzjjsmp/www/wp-blog-header.php:19) at require('/home/hzjjsmp/www/wp-blog-header.php') (/home/hzjjsmp/www/index.php:17) |