/home/expert/domains/expertdom.pl/public_html/wp-content/themes/expertdom/app/Models/Other.php
];
$breadcrumbs[] = [
'title' => get_the_title(),
'active' => true,
];
}
} elseif ( !is_single() && !is_page() && get_post_type() != 'post' && !is_404() ) {
$post_type = get_post_type_object(get_post_type());
$breadcrumbs[] = [
'title' => $post_type->labels->name,
'active' => true,
];
} elseif ( is_attachment() ) {
$parent = get_post($post->post_parent);
$cat = get_the_category($parent->ID);
$cat = $cat[0];
echo get_category_parents($cat, TRUE, '');
echo '<li><a href="' . get_permalink($parent) . '">' . $parent->post_title . '</a></li>';
$breadcrumbs[] = [
'title' => get_the_title(),
'active' => true,
];
} elseif ( is_page() && !$post->post_parent ) {
$breadcrumbs[] = [
'title' => get_the_title(),
'active' => true,
];
} elseif ( is_page() && $post->post_parent ) {
$parent_id = $post->post_parent;
$breadcrumbs_temp = [];
while ($parent_id) {
$page = get_page($parent_id);
Arguments
"Object of class WP_Error could not be converted to string"
/home/expert/domains/expertdom.pl/public_html/wp-content/themes/expertdom/app/Controllers/SingleController.php
protected $modelClass = 'Page';
protected function globalHooks()
{
}
protected function initHooks()
{
add_action('wp_enqueue_scripts', 'wpcf7_recaptcha_enqueue_scripts', 10, 0);
}
protected function init()
{
$breadcrumbs = Other::breadcrumbs();
$this->data = [
'breadcrumbs' => $breadcrumbs,
];
}
}
/home/expert/domains/expertdom.pl/public_html/wp-content/themes/expertdom/app/Controllers/FrontController.php
return;
}
$this->setCurrentTemplate();
if (current_filter() == 'init') {
$this->globalHooks();
} elseif ((current_filter() == 'wp' || current_filter() == "sage/template/{$this->__getTemplateParam()}-data/data")
&& !empty($this->currentTemplate)
) {
if ($this->template != $this->currentTemplate) {
// $this->active = false;
return;
} elseif (current_filter() == 'wp') {
$this->initHooks();
} else {
$this->setModel();
$this->init();
}
}
}
/**
* globalHooks function
*
* hooks in this function run everywhere on each page/post/etc
*
*
* below hooks work only in globalHooks
* widgets_init / register_sidebar / wp_register_sidebar_widget / wp_loaded / parse_request / send_headers
* parse_tax_query / parse_query / pre_get_posts / posts_selection
*
* @url http://rachievee.com/the-wordpress-hooks-firing-sequence/
* @return void
*/
protected function globalHooks()
{
}
/home/expert/domains/expertdom.pl/public_html/wp-content/themes/expertdom/vendor/illuminate/container/Container.php
// we can just resolve the instances of the objects right away, without
// resolving any other types or dependencies out of these containers.
if (is_null($constructor)) {
array_pop($this->buildStack);
return new $concrete;
}
$dependencies = $constructor->getParameters();
// Once we have all the constructor's parameters we can create each of the
// dependency instances and then use the reflection instances to make a
// new instance of this class, injecting the created dependencies in.
$instances = $this->resolveDependencies(
$dependencies
);
array_pop($this->buildStack);
return $reflector->newInstanceArgs($instances);
}
/**
* Resolve all of the dependencies from the ReflectionParameters.
*
* @param array $dependencies
* @return array
*/
protected function resolveDependencies(array $dependencies)
{
$results = [];
foreach ($dependencies as $dependency) {
// If this dependency has a override for this particular build we will use
// that instead as the value. Otherwise, we will continue with this run
// of resolutions and let reflection attempt to determine the result.
if ($this->hasParameterOverride($dependency)) {
$results[] = $this->getParameterOverride($dependency);
continue;
Arguments
/home/expert/domains/expertdom.pl/public_html/wp-content/themes/expertdom/vendor/illuminate/container/Container.php
$needsContextualBuild = ! empty($parameters) || ! is_null(
$this->getContextualConcrete($abstract)
);
// If an instance of the type is currently being managed as a singleton we'll
// just return an existing instance instead of instantiating new instances
// so the developer can keep using the same objects instance every time.
if (isset($this->instances[$abstract]) && ! $needsContextualBuild) {
return $this->instances[$abstract];
}
$this->with[] = $parameters;
$concrete = $this->getConcrete($abstract);
// We're ready to instantiate an instance of the concrete type registered for
// the binding. This will instantiate the types, as well as resolve any of
// its "nested" dependencies recursively until all have gotten resolved.
if ($this->isBuildable($concrete, $abstract)) {
$object = $this->build($concrete);
} else {
$object = $this->make($concrete);
}
// If we defined any extenders for this type, we'll need to spin through them
// and apply them to the object being built. This allows for the extension
// of services, such as changing configuration or decorating the object.
foreach ($this->getExtenders($abstract) as $extender) {
$object = $extender($object, $this);
}
// If the requested type is registered as a singleton we'll want to cache off
// the instances in "memory" so we can return it later without creating an
// entirely new instance of an object on each subsequent request for it.
if ($this->isShared($abstract) && ! $needsContextualBuild) {
$this->instances[$abstract] = $object;
}
$this->fireResolvingCallbacks($abstract, $object);
Arguments
"App\Controllers\SingleController"
/home/expert/domains/expertdom.pl/public_html/wp-content/themes/expertdom/vendor/illuminate/container/Container.php
*
* @param string $abstract
* @param array $parameters
* @return mixed
*/
public function makeWith($abstract, array $parameters = [])
{
return $this->make($abstract, $parameters);
}
/**
* Resolve the given type from the container.
*
* @param string $abstract
* @param array $parameters
* @return mixed
*/
public function make($abstract, array $parameters = [])
{
return $this->resolve($abstract, $parameters);
}
/**
* {@inheritdoc}
*/
public function get($id)
{
try {
return $this->resolve($id);
} catch (Exception $e) {
if ($this->has($id)) {
throw $e;
}
throw new EntryNotFoundException;
}
}
/**
* Resolve the given type from the container.
Arguments
"App\Controllers\SingleController"
[]
/home/expert/domains/expertdom.pl/public_html/wp-content/themes/expertdom/vendor/soberwp/controller/controller.php
// Loop over each class
foreach ($loader->getClassesToRun() as $class) {
// Create the class on the DI container
$controller = $container->make($class);
// Set the params required for template param
$controller->__setParams();
if (current_filter() == 'init') {
// Determine template location to expose data
$location = "sage/template/{$controller->__getTemplateParam()}-data/data";
// Pass data to filter
add_filter($location, function ($data) use ($container, $class) {
// Recreate the class so that $post is included
$controller = $container->make($class);
// Params
$controller->__setParams();
// Lifecycle
$controller->__before();
// Data
$controller->__setData($data);
// Lifecycle
$controller->__after();
// Return
return $controller->__getData();
}, 10, 2);
}
}
}
Arguments
"App\Controllers\SingleController"
/home/expert/domains/expertdom.pl/public_html/wp-includes/class-wp-hook.php
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 == $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
$this->nesting_level--;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
Arguments
array:6 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:2 [
0 => {#5744}
1 => {#5735}
]
"section" => null
"__app" => array:3 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:1 [
0 => {#5744}
]
]
"__store" => array:6 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:2 [
0 => {#5744}
1 => {#5735}
]
"__app" => array:3 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:1 [
0 => {#5744}
]
]
"__store" => array:4 [
"__blade" => array:1 [
0 => {#5744}
]
"post" => WP_Post {#5699}
"model" => false
"__app" => array:3 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:1 [
0 => {#5744}
]
]
]
"section" => null
]
]
"/home/expert/domains/expertdom.pl/public_html/wp-content/themes/expertdom/resources/views/single.blade.php"
/home/expert/domains/expertdom.pl/public_html/wp-includes/plugin.php
if ( isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $tag;
_wp_call_all_hook( $args );
}
if ( ! isset( $wp_filter[ $tag ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return $value;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $tag;
}
// Don't pass the tag name to WP_Hook.
array_shift( $args );
$filtered = $wp_filter[ $tag ]->apply_filters( $value, $args );
array_pop( $wp_current_filter );
return $filtered;
}
/**
* Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
*
* @since 3.0.0
*
* @see apply_filters() This function is identical, but the arguments passed to the
* functions hooked to `$tag` are supplied using an array.
*
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
* @global string[] $wp_current_filter Stores the list of current filters with the current one last.
*
* @param string $tag The name of the filter hook.
* @param array $args The arguments supplied to the functions hooked to $tag.
* @return mixed The filtered value after all hooked functions are applied to it.
Arguments
array:6 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:2 [
0 => {#5744}
1 => {#5735}
]
"section" => null
"__app" => array:3 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:1 [
0 => {#5744}
]
]
"__store" => array:6 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:2 [
0 => {#5744}
1 => {#5735}
]
"__app" => array:3 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:1 [
0 => {#5744}
]
]
"__store" => array:4 [
"__blade" => array:1 [
0 => {#5744}
]
"post" => WP_Post {#5699}
"model" => false
"__app" => array:3 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:1 [
0 => {#5744}
]
]
]
"section" => null
]
]
array:2 [
0 => array:6 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:2 [
0 => {#5744}
1 => {#5735}
]
"section" => null
"__app" => array:3 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:1 [
0 => {#5744}
]
]
"__store" => array:6 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:2 [
0 => {#5744}
1 => {#5735}
]
"__app" => array:3 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:1 [
0 => {#5744}
]
]
"__store" => array:4 [
"__blade" => array:1 [
0 => {#5744}
]
"post" => WP_Post {#5699}
"model" => false
"__app" => array:3 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:1 [
0 => {#5744}
]
]
]
"section" => null
]
]
1 => "/home/expert/domains/expertdom.pl/public_html/wp-content/themes/expertdom/resources/views/single.blade.php"
]
/home/expert/domains/expertdom.pl/public_html/wp-content/themes/expertdom/app/filters.php
'frontpage', 'page', 'paged', 'search', 'single', 'singular', 'attachment', 'embed'
])->map(function ($type) {
add_filter("{$type}_template_hierarchy", 'filter_templates');
});
/**
* Render page using Blade
*/
add_filter('template_include', function ($template) {
collect(['get_header', 'wp_head'])->each(function ($tag) {
ob_start();
do_action($tag);
$output = ob_get_clean();
remove_all_actions($tag);
add_action($tag, function () use ($output) {
echo $output;
});
});
$data = collect(get_body_class())->reduce(function ($data, $class) use ($template) {
return apply_filters("sage/template/{$class}/data", $data, $template);
}, []);
if ($template) {
echo view($template, $data);
return get_stylesheet_directory().'/index.php';
}
return $template;
}, PHP_INT_MAX);
/**
* Render comments.blade.php
*/
add_filter('comments_template', function ($comments_template) {
$comments_template = str_replace(
[get_stylesheet_directory(), get_template_directory()],
'',
$comments_template
);
Arguments
"sage/template/single-data/data"
array:5 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:1 [
0 => {#5744}
]
"__app" => array:3 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:1 [
0 => {#5744}
]
]
"__store" => array:4 [
"__blade" => array:1 [
0 => {#5744}
]
"post" => WP_Post {#5699}
"model" => false
"__app" => array:3 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:1 [
0 => {#5744}
]
]
]
]
"/home/expert/domains/expertdom.pl/public_html/wp-content/themes/expertdom/resources/views/single.blade.php"
[internal]
Arguments
array:5 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:1 [
0 => {#5744}
]
"__app" => array:3 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:1 [
0 => {#5744}
]
]
"__store" => array:4 [
"__blade" => array:1 [
0 => {#5744}
]
"post" => WP_Post {#5699}
"model" => false
"__app" => array:3 [
"post" => WP_Post {#5699}
"model" => false
"__blade" => array:1 [
0 => {#5744}
]
]
]
]
"single-data"
/home/expert/domains/expertdom.pl/public_html/wp-content/themes/expertdom/vendor/illuminate/support/Collection.php
*/
public function random($number = null)
{
if (is_null($number)) {
return Arr::random($this->items);
}
return new static(Arr::random($this->items, $number));
}
/**
* Reduce the collection to a single value.
*
* @param callable $callback
* @param mixed $initial
* @return mixed
*/
public function reduce(callable $callback, $initial = null)
{
return array_reduce($this->items, $callback, $initial);
}
/**
* Create a collection of all elements that do not pass a given truth test.
*
* @param callable|mixed $callback
* @return static
*/
public function reject($callback)
{
if ($this->useAsCallable($callback)) {
return $this->filter(function ($value, $key) use ($callback) {
return ! $callback($value, $key);
});
}
return $this->filter(function ($item) use ($callback) {
return $item != $callback;
});
}
Arguments
array:21 [
0 => "attachment"
1 => "attachment-template-default"
2 => "single"
3 => "single-attachment"
4 => "postid-436"
5 => "attachmentid-436"
6 => "attachment-pdf"
7 => "wp-custom-logo"
8 => "test"
9 => "app-data"
10 => "index-data"
11 => "singular-data"
14 => "single-data"
17 => "single-attachment-data"
20 => "single-attachment-test-data"
23 => "attachment-data"
26 => "application_pdf-data"
29 => "pdf-data"
32 => "application-data"
35 => "user-"
36 => "user-desktop"
]
Closure($data, $class) {#5752 …2}
[]
/home/expert/domains/expertdom.pl/public_html/wp-content/themes/expertdom/app/filters.php
])->map(function ($type) {
add_filter("{$type}_template_hierarchy", 'filter_templates');
});
/**
* Render page using Blade
*/
add_filter('template_include', function ($template) {
collect(['get_header', 'wp_head'])->each(function ($tag) {
ob_start();
do_action($tag);
$output = ob_get_clean();
remove_all_actions($tag);
add_action($tag, function () use ($output) {
echo $output;
});
});
$data = collect(get_body_class())->reduce(function ($data, $class) use ($template) {
return apply_filters("sage/template/{$class}/data", $data, $template);
}, []);
if ($template) {
echo view($template, $data);
return get_stylesheet_directory().'/index.php';
}
return $template;
}, PHP_INT_MAX);
/**
* Render comments.blade.php
*/
add_filter('comments_template', function ($comments_template) {
$comments_template = str_replace(
[get_stylesheet_directory(), get_template_directory()],
'',
$comments_template
);
$data = collect(get_body_class())->reduce(function ($data, $class) use ($comments_template) {
Arguments
Closure($data, $class) {#5752 …2}
[]
/home/expert/domains/expertdom.pl/public_html/wp-includes/class-wp-hook.php
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 == $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
$this->nesting_level--;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
Arguments
"/home/expert/domains/expertdom.pl/public_html/wp-content/themes/expertdom/resources/views/single.blade.php"
/home/expert/domains/expertdom.pl/public_html/wp-includes/plugin.php
if ( isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $tag;
_wp_call_all_hook( $args );
}
if ( ! isset( $wp_filter[ $tag ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return $value;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $tag;
}
// Don't pass the tag name to WP_Hook.
array_shift( $args );
$filtered = $wp_filter[ $tag ]->apply_filters( $value, $args );
array_pop( $wp_current_filter );
return $filtered;
}
/**
* Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
*
* @since 3.0.0
*
* @see apply_filters() This function is identical, but the arguments passed to the
* functions hooked to `$tag` are supplied using an array.
*
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
* @global string[] $wp_current_filter Stores the list of current filters with the current one last.
*
* @param string $tag The name of the filter hook.
* @param array $args The arguments supplied to the functions hooked to $tag.
* @return mixed The filtered value after all hooked functions are applied to it.
Arguments
"/home/expert/domains/expertdom.pl/public_html/wp-content/themes/expertdom/resources/views/single.blade.php"
array:1 [
0 => "/home/expert/domains/expertdom.pl/public_html/wp-content/themes/expertdom/resources/views/single.blade.php"
]
/home/expert/domains/expertdom.pl/public_html/wp-includes/template-loader.php
if ( 'is_attachment' === $tag ) {
remove_filter( 'the_content', 'prepend_attachment' );
}
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
"template_include"
"/home/expert/domains/expertdom.pl/public_html/wp-content/themes/expertdom/resources/views/single.blade.php"
/home/expert/domains/expertdom.pl/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/expert/domains/expertdom.pl/public_html/wp-includes/template-loader.php"
/home/expert/domains/expertdom.pl/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/expert/domains/expertdom.pl/public_html/wp-blog-header.php"