/home/areansca/public_html/wp-content/themes/areans/vendor/roots/acorn/src/Roots/Acorn/Application.php
$providers->splice(1, 0, [$this->make(PackageManifest::class)->providers()]);
(new ProviderRepository($this, new Filesystem(), $this->getCachedServicesPath()))
->load($providers->collapse()->toArray());
}
/**
* Get the application namespace.
*
* @return string
*
* @throws \RuntimeException
*/
public function getNamespace()
{
if (! is_null($this->namespace)) {
return $this->namespace;
}
$composer = json_decode(file_get_contents($composer_path = $this->getAppComposer()), true);
foreach ((array) data_get($composer, 'autoload.psr-4') as $namespace => $path) {
foreach ((array) $path as $pathChoice) {
if (realpath($this->path()) === realpath(dirname($composer_path) . DIRECTORY_SEPARATOR . $pathChoice)) {
return $this->namespace = $namespace;
}
}
}
throw new RuntimeException('Unable to detect application namespace.');
}
/**
* Get the composer.json file that's used by the application.
*
* This function will begin in the app path and walk up the
* directory structure until it finds a composer.json file.
*
* If one is not found, then it will assume that there's a
* composer.json file in the base path.
Arguments
"file_get_contents(/home/areansca/public_html/wp-content/themes/areans/composer.json): failed to open stream: No such file or directory"
/home/areansca/public_html/wp-content/themes/areans/vendor/roots/acorn/src/Roots/Acorn/Application.php
$providers->splice(1, 0, [$this->make(PackageManifest::class)->providers()]);
(new ProviderRepository($this, new Filesystem(), $this->getCachedServicesPath()))
->load($providers->collapse()->toArray());
}
/**
* Get the application namespace.
*
* @return string
*
* @throws \RuntimeException
*/
public function getNamespace()
{
if (! is_null($this->namespace)) {
return $this->namespace;
}
$composer = json_decode(file_get_contents($composer_path = $this->getAppComposer()), true);
foreach ((array) data_get($composer, 'autoload.psr-4') as $namespace => $path) {
foreach ((array) $path as $pathChoice) {
if (realpath($this->path()) === realpath(dirname($composer_path) . DIRECTORY_SEPARATOR . $pathChoice)) {
return $this->namespace = $namespace;
}
}
}
throw new RuntimeException('Unable to detect application namespace.');
}
/**
* Get the composer.json file that's used by the application.
*
* This function will begin in the app path and walk up the
* directory structure until it finds a composer.json file.
*
* If one is not found, then it will assume that there's a
* composer.json file in the base path.
Arguments
"/home/areansca/public_html/wp-content/themes/areans/composer.json"
/home/areansca/public_html/wp-content/themes/areans/vendor/illuminate/view/Compilers/ComponentTagCompiler.php
if (! isset($this->namespaces[$prefix]) || ! isset($segments[1])) {
return;
}
if (class_exists($class = $this->namespaces[$prefix].'\\'.$this->formatClassName($segments[1]))) {
return $class;
}
}
/**
* Guess the class name for the given component.
*
* @param string $component
* @return string
*/
public function guessClassName(string $component)
{
$namespace = Container::getInstance()
->make(Application::class)
->getNamespace();
$class = $this->formatClassName($component);
return $namespace.'View\\Components\\'.$class;
}
/**
* Format the class name for the given component.
*
* @param string $component
* @return string
*/
public function formatClassName(string $component)
{
$componentPieces = array_map(function ($componentPiece) {
return ucfirst(Str::camel($componentPiece));
}, explode('.', $component));
return implode('\\', $componentPieces);
}
/home/areansca/public_html/wp-content/themes/areans/vendor/illuminate/view/Compilers/ComponentTagCompiler.php
if (isset($this->aliases[$component])) {
if (class_exists($alias = $this->aliases[$component])) {
return $alias;
}
if ($viewFactory->exists($alias)) {
return $alias;
}
throw new InvalidArgumentException(
"Unable to locate class or view [{$alias}] for component [{$component}]."
);
}
if ($class = $this->findClassByComponent($component)) {
return $class;
}
if (class_exists($class = $this->guessClassName($component))) {
return $class;
}
if ($viewFactory->exists($view = $this->guessViewName($component))) {
return $view;
}
throw new InvalidArgumentException(
"Unable to locate a class or view for component [{$component}]."
);
}
/**
* Find the class for the given component using the registered namespaces.
*
* @param string $component
* @return string|null
*/
public function findClassByComponent(string $component)
{
Arguments
/home/areansca/public_html/wp-content/themes/areans/vendor/illuminate/view/Compilers/ComponentTagCompiler.php
$this->boundAttributes = [];
$attributes = $this->getAttributesFromAttributeString($matches['attributes']);
return $this->componentString($matches[1], $attributes)."\n@endComponentClass##END-COMPONENT-CLASS##";
}, $value);
}
/**
* Compile the Blade component string for the given component and attributes.
*
* @param string $component
* @param array $attributes
* @return string
*
* @throws \InvalidArgumentException
*/
protected function componentString(string $component, array $attributes)
{
$class = $this->componentClass($component);
[$data, $attributes] = $this->partitionDataAndAttributes($class, $attributes);
$data = $data->mapWithKeys(function ($value, $key) {
return [Str::camel($key) => $value];
});
// If the component doesn't exists as a class we'll assume it's a class-less
// component and pass the component as a view parameter to the data so it
// can be accessed within the component and we can render out the view.
if (! class_exists($class)) {
$parameters = [
'view' => "'$class'",
'data' => '['.$this->attributesToString($data->all(), $escapeBound = false).']',
];
$class = AnonymousComponent::class;
} else {
$parameters = $data->all();
}
Arguments
/home/areansca/public_html/wp-content/themes/areans/vendor/illuminate/view/Compilers/ComponentTagCompiler.php
\'[^\']*\'
|
[^\'\\\"=<>]+
)
)?
)
)
)*
\s*
)
(?<![\/=\-])
>
/x";
return preg_replace_callback($pattern, function (array $matches) {
$this->boundAttributes = [];
$attributes = $this->getAttributesFromAttributeString($matches['attributes']);
return $this->componentString($matches[1], $attributes);
}, $value);
}
/**
* Compile the self-closing tags within the given string.
*
* @param string $value
* @return string
*
* @throws \InvalidArgumentException
*/
protected function compileSelfClosingTags(string $value)
{
$pattern = "/
<
\s*
x[-\:]([\w\-\:\.]*)
\s*
(?<attributes>
(?:
Arguments
"alert"
array:1 [
"type" => "'warning'"
]
[internal]
Arguments
array:5 [
0 => "<x-alert type="warning">"
1 => "alert"
"attributes" => " type="warning""
2 => " type="warning""
3 => "="warning""
]
/home/areansca/public_html/wp-content/themes/areans/vendor/illuminate/view/Compilers/ComponentTagCompiler.php
(
=
(?:
\\\"[^\\\"]*\\\"
|
\'[^\']*\'
|
[^\'\\\"=<>]+
)
)?
)
)
)*
\s*
)
(?<![\/=\-])
>
/x";
return preg_replace_callback($pattern, function (array $matches) {
$this->boundAttributes = [];
$attributes = $this->getAttributesFromAttributeString($matches['attributes']);
return $this->componentString($matches[1], $attributes);
}, $value);
}
/**
* Compile the self-closing tags within the given string.
*
* @param string $value
* @return string
*
* @throws \InvalidArgumentException
*/
protected function compileSelfClosingTags(string $value)
{
$pattern = "/
<
Arguments
"""
/\n
<\n
\s*\n
x[-\:]([\w\-\:\.]*)\n
(?<attributes>\n
(?:\n
\s+\n
(?:\n
(?:\n
\{\{\s*\$attributes(?:[^}]+?)?\s*\}\}\n
)\n
|\n
(?:\n
[\w\-:.@]+\n
(\n
=\n
(?:\n
\"[^\"]*\"\n
|\n
\'[^\']*\'\n
|\n
[^\'\"=<>]+\n
)\n
)?\n
)\n
)\n
)*\n
\s*\n
)\n
(?<![\/=\-])\n
>\n
/x
"""
Closure(array $matches) {#1756 …4}
"""
@extends('layouts.app')\n
\n
@section('content')\n
@include('partials.page-header')\n
\n
@if (! have_posts())\n
<x-alert type="warning">\n
{!! __('Sorry, no results were found.', 'sage') !!}\n
</x-alert>\n
\n
{!! get_search_form(false) !!}\n
@endif\n
\n
@while(have_posts()) @php(the_post())\n
@includeFirst(['partials.content-' . get_post_type(), 'partials.content'])\n
@endwhile\n
\n
{!! get_the_posts_navigation() !!}\n
@endsection\n
\n
@section('sidebar')\n
@include('partials.sidebar')\n
@endsection\n
"""
/home/areansca/public_html/wp-content/themes/areans/vendor/illuminate/view/Compilers/ComponentTagCompiler.php
*/
public function compile(string $value)
{
$value = $this->compileSlots($value);
return $this->compileTags($value);
}
/**
* Compile the tags within the given string.
*
* @param string $value
* @return string
*
* @throws \InvalidArgumentException
*/
public function compileTags(string $value)
{
$value = $this->compileSelfClosingTags($value);
$value = $this->compileOpeningTags($value);
$value = $this->compileClosingTags($value);
return $value;
}
/**
* Compile the opening tags within the given string.
*
* @param string $value
* @return string
*
* @throws \InvalidArgumentException
*/
protected function compileOpeningTags(string $value)
{
$pattern = "/
<
\s*
x[-\:]([\w\-\:\.]*)
(?<attributes>
Arguments
"""
@extends('layouts.app')\n
\n
@section('content')\n
@include('partials.page-header')\n
\n
@if (! have_posts())\n
<x-alert type="warning">\n
{!! __('Sorry, no results were found.', 'sage') !!}\n
</x-alert>\n
\n
{!! get_search_form(false) !!}\n
@endif\n
\n
@while(have_posts()) @php(the_post())\n
@includeFirst(['partials.content-' . get_post_type(), 'partials.content'])\n
@endwhile\n
\n
{!! get_the_posts_navigation() !!}\n
@endsection\n
\n
@section('sidebar')\n
@include('partials.sidebar')\n
@endsection\n
"""
/home/areansca/public_html/wp-content/themes/areans/vendor/illuminate/view/Compilers/ComponentTagCompiler.php
*/
public function __construct(array $aliases = [], array $namespaces = [], ?BladeCompiler $blade = null)
{
$this->aliases = $aliases;
$this->namespaces = $namespaces;
$this->blade = $blade ?: new BladeCompiler(new Filesystem, sys_get_temp_dir());
}
/**
* Compile the component and slot tags within the given string.
*
* @param string $value
* @return string
*/
public function compile(string $value)
{
$value = $this->compileSlots($value);
return $this->compileTags($value);
}
/**
* Compile the tags within the given string.
*
* @param string $value
* @return string
*
* @throws \InvalidArgumentException
*/
public function compileTags(string $value)
{
$value = $this->compileSelfClosingTags($value);
$value = $this->compileOpeningTags($value);
$value = $this->compileClosingTags($value);
return $value;
}
/**
Arguments
"""
@extends('layouts.app')\n
\n
@section('content')\n
@include('partials.page-header')\n
\n
@if (! have_posts())\n
<x-alert type="warning">\n
{!! __('Sorry, no results were found.', 'sage') !!}\n
</x-alert>\n
\n
{!! get_search_form(false) !!}\n
@endif\n
\n
@while(have_posts()) @php(the_post())\n
@includeFirst(['partials.content-' . get_post_type(), 'partials.content'])\n
@endwhile\n
\n
{!! get_the_posts_navigation() !!}\n
@endsection\n
\n
@section('sidebar')\n
@include('partials.sidebar')\n
@endsection\n
"""
/home/areansca/public_html/wp-content/themes/areans/vendor/illuminate/view/Compilers/BladeCompiler.php
return $this->getRawPlaceholder(
array_push($this->rawBlocks, $value) - 1
);
}
/**
* Compile the component tags.
*
* @param string $value
* @return string
*/
protected function compileComponentTags($value)
{
if (! $this->compilesComponentTags) {
return $value;
}
return (new ComponentTagCompiler(
$this->classComponentAliases, $this->classComponentNamespaces, $this
))->compile($value);
}
/**
* Replace the raw placeholders with the original code stored in the raw blocks.
*
* @param string $result
* @return string
*/
protected function restoreRawContent($result)
{
$result = preg_replace_callback('/'.$this->getRawPlaceholder('(\d+)').'/', function ($matches) {
return $this->rawBlocks[$matches[1]];
}, $result);
$this->rawBlocks = [];
return $result;
}
/**
Arguments
"""
@extends('layouts.app')\n
\n
@section('content')\n
@include('partials.page-header')\n
\n
@if (! have_posts())\n
<x-alert type="warning">\n
{!! __('Sorry, no results were found.', 'sage') !!}\n
</x-alert>\n
\n
{!! get_search_form(false) !!}\n
@endif\n
\n
@while(have_posts()) @php(the_post())\n
@includeFirst(['partials.content-' . get_post_type(), 'partials.content'])\n
@endwhile\n
\n
{!! get_the_posts_navigation() !!}\n
@endsection\n
\n
@section('sidebar')\n
@include('partials.sidebar')\n
@endsection\n
"""
/home/areansca/public_html/wp-content/themes/areans/vendor/illuminate/view/Compilers/BladeCompiler.php
public function setPath($path)
{
$this->path = $path;
}
/**
* Compile the given Blade template contents.
*
* @param string $value
* @return string
*/
public function compileString($value)
{
[$this->footer, $result] = [[], ''];
// First we will compile the Blade component tags. This is a precompile style
// step which compiles the component Blade tags into @component directives
// that may be used by Blade. Then we should call any other precompilers.
$value = $this->compileComponentTags(
$this->compileComments($this->storeUncompiledBlocks($value))
);
foreach ($this->precompilers as $precompiler) {
$value = call_user_func($precompiler, $value);
}
// Here we will loop through all of the tokens returned by the Zend lexer and
// parse each one into the corresponding valid PHP. We will then have this
// template as the correctly rendered PHP that can be rendered natively.
foreach (token_get_all($value) as $token) {
$result .= is_array($token) ? $this->parseToken($token) : $token;
}
if (! empty($this->rawBlocks)) {
$result = $this->restoreRawContent($result);
}
// If there are any footer lines that need to get added to a template we will
// add them here at the end of the template. This gets used mainly for the
// template inheritance via the extends keyword that should be appended.
Arguments
"""
@extends('layouts.app')\n
\n
@section('content')\n
@include('partials.page-header')\n
\n
@if (! have_posts())\n
<x-alert type="warning">\n
{!! __('Sorry, no results were found.', 'sage') !!}\n
</x-alert>\n
\n
{!! get_search_form(false) !!}\n
@endif\n
\n
@while(have_posts()) @php(the_post())\n
@includeFirst(['partials.content-' . get_post_type(), 'partials.content'])\n
@endwhile\n
\n
{!! get_the_posts_navigation() !!}\n
@endsection\n
\n
@section('sidebar')\n
@include('partials.sidebar')\n
@endsection\n
"""
/home/areansca/public_html/wp-content/themes/areans/vendor/illuminate/view/Compilers/BladeCompiler.php
* Indicates if component tags should be compiled.
*
* @var bool
*/
protected $compilesComponentTags = true;
/**
* Compile the view at the given path.
*
* @param string|null $path
* @return void
*/
public function compile($path = null)
{
if ($path) {
$this->setPath($path);
}
if (! is_null($this->cachePath)) {
$contents = $this->compileString($this->files->get($this->getPath()));
if (! empty($this->getPath())) {
$contents = $this->appendFilePath($contents);
}
$this->ensureCompiledDirectoryExists(
$compiledPath = $this->getCompiledPath($this->getPath())
);
$this->files->put($compiledPath, $contents);
}
}
/**
* Append the file path to the compiled string.
*
* @param string $contents
* @return string
*/
protected function appendFilePath($contents)
Arguments
"""
@extends('layouts.app')\n
\n
@section('content')\n
@include('partials.page-header')\n
\n
@if (! have_posts())\n
<x-alert type="warning">\n
{!! __('Sorry, no results were found.', 'sage') !!}\n
</x-alert>\n
\n
{!! get_search_form(false) !!}\n
@endif\n
\n
@while(have_posts()) @php(the_post())\n
@includeFirst(['partials.content-' . get_post_type(), 'partials.content'])\n
@endwhile\n
\n
{!! get_the_posts_navigation() !!}\n
@endsection\n
\n
@section('sidebar')\n
@include('partials.sidebar')\n
@endsection\n
"""
/home/areansca/public_html/wp-content/themes/areans/vendor/illuminate/view/Engines/CompilerEngine.php
$this->compiler = $compiler;
}
/**
* Get the evaluated contents of the view.
*
* @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
Arguments
"/home/areansca/public_html/wp-content/themes/areans/resources/views/index.blade.php"
/home/areansca/public_html/wp-content/themes/areans/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;
}
Arguments
"/home/areansca/public_html/wp-content/themes/areans/resources/views/index.blade.php"
array:2 [
"__env" => Illuminate\View\Factory {#368}
"app" => Roots\Acorn\Application {#452}
]
/home/areansca/public_html/wp-content/themes/areans/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());
}
/**
/home/areansca/public_html/wp-content/themes/areans/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
/home/areansca/public_html/wp-content/themes/areans/index.php
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<?php wp_head(); ?>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=20210820">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=20210820">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=20210820">
<link rel="manifest" href="/site.webmanifest?v=20210820">
<link rel="mask-icon" href="/safari-pinned-tab.svg?v=20210820" color="#0069a7">
<link rel="shortcut icon" href="/favicon.ico?v=20210820">
<meta name="msapplication-TileColor" content="#0069a7">
<meta name="theme-color" content="#0069a7">
</head>
<body <?php body_class('bg-primary font-sans overflow-x-hidden'); ?>>
<?php wp_body_open(); ?>
<?php do_action('get_header'); ?>
<div id="app">
<?php echo \Roots\view(\Roots\app('sage.view'), \Roots\app('sage.data'))->render(); ?>
</div>
<?php do_action('get_footer'); ?>
<?php wp_footer(); ?>
</body>
</html>
/home/areansca/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
"/home/areansca/public_html/wp-content/themes/areans/index.php"
/home/areansca/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
"/home/areansca/public_html/wp-includes/template-loader.php"
/home/areansca/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
"/home/areansca/public_html/wp-blog-header.php"