/www/htdocs/w0113a38/gwa.13-grad.com/wp-content/themes/gwa/theme/vendor/symfony/options-resolver/OptionsResolver.php
foreach ($this->allowedTypes[$option] as $type) {
if ($valid = $this->verifyTypes($type, $value, $invalidTypes)) {
break;
}
}
if (!$valid) {
$fmtActualValue = $this->formatValue($value);
$fmtAllowedTypes = implode('" or "', $this->allowedTypes[$option]);
$fmtProvidedTypes = implode('|', array_keys($invalidTypes));
$allowedContainsArrayType = \count(array_filter($this->allowedTypes[$option], static function ($item) {
return str_ends_with($item, '[]');
})) > 0;
if (\is_array($value) && $allowedContainsArrayType) {
throw new InvalidOptionsException(sprintf('The option "%s" with value %s is expected to be of type "%s", but one of the elements is of type "%s".', $this->formatOptions([$option]), $fmtActualValue, $fmtAllowedTypes, $fmtProvidedTypes));
}
throw new InvalidOptionsException(sprintf('The option "%s" with value %s is expected to be of type "%s", but is of type "%s".', $this->formatOptions([$option]), $fmtActualValue, $fmtAllowedTypes, $fmtProvidedTypes));
}
}
// Validate the value of the resolved option
if (isset($this->allowedValues[$option])) {
$success = false;
$printableAllowedValues = [];
foreach ($this->allowedValues[$option] as $allowedValue) {
if ($allowedValue instanceof \Closure) {
if ($allowedValue($value)) {
$success = true;
break;
}
// Don't include closures in the exception message
continue;
}
if ($value === $allowedValue) {
Arguments
"The option "customer_id" with value null is expected to be of type "string", but is of type "null"."
/www/htdocs/w0113a38/gwa.13-grad.com/wp-content/themes/gwa/theme/vendor/symfony/options-resolver/OptionsResolver.php
$clone->defaults[$option] = $value;
unset($clone->resolved[$option], $clone->lazy[$option]);
}
// Check whether any required option is missing
$diff = array_diff_key($clone->required, $clone->defaults);
if (\count($diff) > 0) {
ksort($diff);
throw new MissingOptionsException(sprintf(\count($diff) > 1 ? 'The required options "%s" are missing.' : 'The required option "%s" is missing.', $this->formatOptions(array_keys($diff))));
}
// Lock the container
$clone->locked = true;
// Now process the individual options. Use offsetGet(), which resolves
// the option itself and any options that the option depends on
foreach ($clone->defaults as $option => $_) {
$clone->offsetGet($option);
}
return $clone->resolved;
}
/**
* Returns the resolved value of an option.
*
* @param bool $triggerDeprecation Whether to trigger the deprecation or not (true by default)
*
* @return mixed
*
* @throws AccessException If accessing this method outside of
* {@link resolve()}
* @throws NoSuchOptionException If the option is not set
* @throws InvalidOptionsException If the option doesn't fulfill the
* specified validation rules
* @throws OptionDefinitionException If there is a cyclic dependency between
* lazy options and/or normalizers
*/
Arguments
/www/htdocs/w0113a38/gwa.13-grad.com/wp-content/themes/gwa/theme/ivm-pro/src/Request.php
$resolver->setNormalizer('cache_dir', function (Options $options, $dir) {
if (!is_dir($dir)) {
mkdir($dir, 0775, true);
}
return $dir;
});
$resolver->setNormalizer('cache_lifetime', function (Options $options, $lifetime) {
if (true === $lifetime) {
$lifetime = 300;
}
return $lifetime;
});
$this->configureParams($resolver);
$this->params = $resolver->resolve($params);
}
public function configureParams(OptionsResolver $resolver): void
{
}
public function getQueryParams(): array
{
return [];
}
final public function send()
{
$client = new Client();
if (false !== $this->params['cache_lifetime']) {
$cache = new FilesystemAdapter(
'ivm',
$this->params['cache_lifetime'],
$this->params['cache_dir']
Arguments
array:5 [
"customer_id" => null
"cache_dir" => "/www/htdocs/w0113a38/gwa.13-grad.com/wp-content/themes/gwa/theme/var/cache"
"cache_lifetime" => 0
"flat_usenr" => "Wohnung"
"limit" => "all"
]
/www/htdocs/w0113a38/gwa.13-grad.com/wp-content/themes/gwa/theme/config/sections.php
// 'required' => 0,
// ])
// ->endRepeater()
->addFields(theme_fieldset('settings_row_default'))
// ->addFields(theme_fieldset('setting_grid'))
->setCallback(function($data) {
$request = app('request');
$params = [
'customer_id' => theme_option('theme.ivm_customer'),
'cache_dir' => THEME_CACHE,
'cache_lifetime' => (int) theme_option('theme.ivm_cache_lifetime'),
'flat_usenr' => 'Wohnung',
'limit' => 'all'
];
$availableDataRequest = new FlatSearchRequest($params);
$filter = new Filter($availableDataRequest);
$sessionVarName = 'filter_' . parse_url($request->getRequestUri(), PHP_URL_PATH);
if ($filterParams = app('session')->get($sessionVarName)) {
$filter->setParams($filterParams);
}
$filter->handle($request);
app('session')->set($sessionVarName, $filter->getParams());
$data['filter'] = $filter;
return $data;
})
;
Arguments
array:5 [
"customer_id" => null
"cache_dir" => "/www/htdocs/w0113a38/gwa.13-grad.com/wp-content/themes/gwa/theme/var/cache"
"cache_lifetime" => 0
"flat_usenr" => "Wohnung"
"limit" => "all"
]
/www/htdocs/w0113a38/gwa.13-grad.com/wp-content/themes/gwa/theme/library/Core/Acf/Fieldset.php
apply_filters('extend/'.$this->getFilterName(), $this);
}
public function setCallback(callable $callback)
{
$this->callback = $callback;
return $this;
}
public function __invoke(?array $data)
{
$result = apply_filters($this->getFilterName(), $data);
if (is_array($result)) {
$data = $result;
}
if ($this->callback) {
$result = call_user_func_array($this->callback, [$data]);
if (is_array($result)) {
$data = $result;
}
}
return $data;
}
}
Arguments
array:7 [
"acf_fc_layout" => "flat_search"
"row_text_theme" => ""
"row_text_align" => ""
"row_width" => ""
"row_align_h" => ""
"row_padding_top" => ""
"row_padding_bottom" => ""
]
/www/htdocs/w0113a38/gwa.13-grad.com/wp-content/themes/gwa/theme/library/Core/Acf/Fieldset.php
apply_filters('extend/'.$this->getFilterName(), $this);
}
public function setCallback(callable $callback)
{
$this->callback = $callback;
return $this;
}
public function __invoke(?array $data)
{
$result = apply_filters($this->getFilterName(), $data);
if (is_array($result)) {
$data = $result;
}
if ($this->callback) {
$result = call_user_func_array($this->callback, [$data]);
if (is_array($result)) {
$data = $result;
}
}
return $data;
}
}
Arguments
Closure($data) {#5158 …2}
array:1 [
0 => array:7 [
"acf_fc_layout" => "flat_search"
"row_text_theme" => ""
"row_text_align" => ""
"row_width" => ""
"row_align_h" => ""
"row_padding_top" => ""
"row_padding_bottom" => ""
]
]
/www/htdocs/w0113a38/gwa.13-grad.com/wp-content/themes/gwa/theme/library/functions.php
}
$content = apply_filters('theme/sections/content', $content);
do_action('theme/sections/after', $content);
return $content;
}
// internal
function walk_section_rows(array $rows, string $postId): array
{
foreach ($rows as $idx => $rowData) {
$rowLayout = $rowData['acf_fc_layout'] ?? null;
if ($rowLayout) {
$rowDefinition = theme_fieldset($rowLayout);
if ($rowDefinition) {
// Apply optional callback and filter for row
$rows[$idx] = $rowDefinition($rowData);
}
$rows[$idx]['_id'] = sha1($postId.$idx);
}
}
return $rows;
}
function theme_html_to_text(string $content): string
{
$html = new Html2Text($content);
return $html->getText();
}
/**
* Applies the filter "the_content" but without "wpautop".
*
* @param string $content The content
Arguments
array:7 [
"acf_fc_layout" => "flat_search"
"row_text_theme" => ""
"row_text_align" => ""
"row_width" => ""
"row_align_h" => ""
"row_padding_top" => ""
"row_padding_bottom" => ""
]
/www/htdocs/w0113a38/gwa.13-grad.com/wp-content/themes/gwa/theme/library/functions.php
$prev = $i > 0 ? $sections[$i - 1] : null;
$next = $i < $count - 1 ? $sections[$i + 1] : null;
$data = $context->getData();
$data['section'] = array_merge($section, [
'prev' => $prev,
'next' => $next
]);
$postId = sprintf('%s-%s', $post->ID ?? 0, $i);
// Apply optional callback and filter for section
$data = $definition($data);
// Default section type
if (isset($data['section']['rows']) &&
is_iterable($data['section']['rows'])) {
$data['section']['rows'] = walk_section_rows($data['section']['rows'], $postId);
}
// Col section type
if (isset($data['section']['left']['rows']) &&
is_iterable($data['section']['left']['rows'])) {
$data['section']['left']['rows'] = walk_section_rows($data['section']['left']['rows'], $postId);
}
// Col section type
if (isset($data['section']['right']['rows']) &&
is_iterable($data['section']['right']['rows'])) {
$data['section']['right']['rows'] = walk_section_rows($data['section']['right']['rows'], $postId);
}
$content .= $twig->render($template, $data);
}
$content = apply_filters('theme/sections/content', $content);
Arguments
array:1 [
0 => array:7 [
"acf_fc_layout" => "flat_search"
"row_text_theme" => ""
"row_text_align" => ""
"row_width" => ""
"row_align_h" => ""
"row_padding_top" => ""
"row_padding_bottom" => ""
]
]
"122-1"
/www/htdocs/w0113a38/gwa.13-grad.com/wp-content/themes/gwa/sections.php
<?php defined('ABSPATH') or die();
/**
* Template Name: Sektionen
* Template Post Type: page, post
*/
get_header();
print theme_content(theme_sections());
get_footer();
?>
/www/htdocs/w0113a38/gwa.13-grad.com/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
"/www/htdocs/w0113a38/gwa.13-grad.com/wp-content/themes/gwa/sections.php"
/www/htdocs/w0113a38/gwa.13-grad.com/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
"/www/htdocs/w0113a38/gwa.13-grad.com/wp-includes/template-loader.php"
/www/htdocs/w0113a38/gwa.13-grad.com/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
"/www/htdocs/w0113a38/gwa.13-grad.com/wp-blog-header.php"