/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/src/views/single.twig
{# <?php #}
{% extends "layouts/app.twig" %}
{% block content %}
<div class="container">
<article class="post-19 w-full post type-post status-publish format-standard hentry category-uncategorized tag-boat tag-lake entry" id="post-{{ post.ID }}">
<div class="entry-content lg:w-2/3 pr-6 w-full">
<h1 class="title is-2">{{ post.title }}</h1>
{# START GODMOTHER #}
{% set imagePortrait = Image(post.portrait) %}
{% if imagePortrait %}
<figure>
<img src="{{imagePortrait.src}}" srcset='{{imagePortrait.srcset}}' alt="{{imagePortrait.alt}}" title="{{imagePortrait.title}}">
</figure>
{% endif %}
{# END GODMOTHER #}
<section>
{# START GODMOTHER #}
{% if post.biography %}
{{post.biography}}
{% endif %}
{# END GODMOTHER #}
{{ post.content }}
</section>
</div>
</article>
</div>
{% endblock %}
Arguments
"An exception has been thrown during the rendering of a template ("str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated")."
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/web/wp/wp-includes/formatting.php
* @param string $locale_name The locale name before sanitization.
*/
return apply_filters( 'sanitize_locale_name', $sanitized, $locale_name );
}
/**
* Converts lone & characters into `&` (a.k.a. `&`)
*
* @since 0.71
*
* @param string $content String of characters to be converted.
* @param string $deprecated Not used.
* @return string Converted string.
*/
function convert_chars( $content, $deprecated = '' ) {
if ( ! empty( $deprecated ) ) {
_deprecated_argument( __FUNCTION__, '0.71' );
}
if ( str_contains( $content, '&' ) ) {
$content = preg_replace( '/&([^#])(?![a-z1-4]{1,8};)/i', '&$1', $content );
}
return $content;
}
/**
* Converts invalid Unicode references range to valid range.
*
* @since 4.3.0
*
* @param string $content String with entities that need converting.
* @return string Converted string.
*/
function convert_invalid_entities( $content ) {
$wp_htmltranswinuni = array(
'€' => '€', // The Euro sign.
'' => '',
'‚' => '‚', // These are Windows CP1252 specific characters.
'ƒ' => 'ƒ', // They would look weird on non-Windows browsers.
Arguments
"str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated"
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/web/wp/wp-includes/formatting.php
* @param string $locale_name The locale name before sanitization.
*/
return apply_filters( 'sanitize_locale_name', $sanitized, $locale_name );
}
/**
* Converts lone & characters into `&` (a.k.a. `&`)
*
* @since 0.71
*
* @param string $content String of characters to be converted.
* @param string $deprecated Not used.
* @return string Converted string.
*/
function convert_chars( $content, $deprecated = '' ) {
if ( ! empty( $deprecated ) ) {
_deprecated_argument( __FUNCTION__, '0.71' );
}
if ( str_contains( $content, '&' ) ) {
$content = preg_replace( '/&([^#])(?![a-z1-4]{1,8};)/i', '&$1', $content );
}
return $content;
}
/**
* Converts invalid Unicode references range to valid range.
*
* @since 4.3.0
*
* @param string $content String with entities that need converting.
* @return string Converted string.
*/
function convert_invalid_entities( $content ) {
$wp_htmltranswinuni = array(
'€' => '€', // The Euro sign.
'' => '',
'‚' => '‚', // These are Windows CP1252 specific characters.
'ƒ' => 'ƒ', // They would look weird on non-Windows browsers.
Arguments
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/web/wp/wp-includes/class-wp-hook.php
$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, $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.
*/
public function do_action( $args ) {
Arguments
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/web/wp/wp-includes/plugin.php
$all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
_wp_call_all_hook( $all_args );
}
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return $value;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
// Pass the value to WP_Hook.
array_unshift( $args, $value );
$filtered = $wp_filter[ $hook_name ]->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 `$hook_name` are supplied using an array.
*
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
* @global int[] $wp_filters Stores the number of times each filter was triggered.
* @global string[] $wp_current_filter Stores the list of current filters with the current one last.
*
* @param string $hook_name The name of the filter hook.
* @param array $args The arguments supplied to the functions hooked to `$hook_name`.
Arguments
null
array:2 [
0 => null
1 => null
]
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/vendor/timber/timber/lib/Post.php
//return new Image($tid);
return new $this->ImageClass($tid);
}
}
/**
* Returns the processed title to be used in templates. This returns the title of the post after WP's filters have run. This is analogous to `the_title()` in standard WP template tags.
* @api
* @example
* ```twig
* <h1>{{ post.title }}</h1>
* ```
* @return string
*/
public function title() {
if ( $rd = $this->get_revised_data_from_method('title') ) {
return $rd;
}
return apply_filters('the_title', $this->post_title, $this->ID);
}
/**
* Returns the gallery
* @api
* @example
* ```twig
* {{ post.gallery }}
* ```
* @return html
*/
public function gallery( $html = true ) {
if ( isset($this->custom['gallery']) ) {
return $this->custom['gallery'];
}
$galleries = get_post_galleries($this->ID, $html);
$gallery = reset($galleries);
return apply_filters('get_post_gallery', $gallery, $this->ID, $galleries);
}
Arguments
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/vendor/twig/twig/src/Extension/CoreExtension.php
if ($ignoreStrictCheck || !$env->isStrictVariables()) {
return;
}
throw new RuntimeError(sprintf('Neither the property "%1$s" nor one of the methods "%1$s()", "get%1$s()"/"is%1$s()"/"has%1$s()" or "__call()" exist and have public access in class "%2$s".', $item, $class), $lineno, $source);
}
if ($isDefinedTest) {
return true;
}
if ($sandboxed) {
$env->getExtension(SandboxExtension::class)->checkMethodAllowed($object, $method, $lineno, $source);
}
// Some objects throw exceptions when they have __call, and the method we try
// to call is not supported. If ignoreStrictCheck is true, we should return null.
try {
$ret = $object->$method(...$arguments);
} catch (\BadMethodCallException $e) {
if ($call && ($ignoreStrictCheck || !$env->isStrictVariables())) {
return;
}
throw $e;
}
return $ret;
}
/**
* Returns the values from a single column in the input array.
*
* <pre>
* {% set items = [{ 'fruit' : 'apple'}, {'fruit' : 'orange' }] %}
*
* {% set fruits = items|column('fruit') %}
*
* {# fruits now contains ['apple', 'orange'] #}
* </pre>
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/vendor/twig/twig/src/Environment.php
$key = $this->cache->generateKey($name, $mainCls);
if (!$this->isAutoReload() || $this->isTemplateFresh($name, $this->cache->getTimestamp($key))) {
$this->cache->load($key);
}
$source = null;
if (!class_exists($cls, false)) {
$source = $this->getLoader()->getSourceContext($name);
$content = $this->compileSource($source);
$this->cache->write($key, $content);
$this->cache->load($key);
if (!class_exists($mainCls, false)) {
/* Last line of defense if either $this->bcWriteCacheFile was used,
* $this->cache is implemented as a no-op or we have a race condition
* where the cache was cleared between the above calls to write to and load from
* the cache.
*/
eval('?>'.$content);
}
if (!class_exists($cls, false)) {
throw new RuntimeError(sprintf('Failed to load Twig template "%s", index "%s": cache might be corrupted.', $name, $index), -1, $source);
}
}
}
// to be removed in 3.0
$this->extensionSet->initRuntime($this);
return $this->loadedTemplates[$cls] = new $cls($this);
}
/**
* Creates a template from source.
*
* This method should not be used as a generic way to load templates.
*
* @param string $template The template source
Arguments
Twig\Environment {#23295}
Twig\Source {#24732}
Timber\Image {#24534}
"title"
[]
"any"
false
false
false
14
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/vendor/twig/twig/src/Template.php
{
if ($useBlocks && isset($blocks[$name])) {
$template = $blocks[$name][0];
$block = $blocks[$name][1];
} elseif (isset($this->blocks[$name])) {
$template = $this->blocks[$name][0];
$block = $this->blocks[$name][1];
} else {
$template = null;
$block = null;
}
// avoid RCEs when sandbox is enabled
if (null !== $template && !$template instanceof self) {
throw new \LogicException('A block must be a method on a \Twig\Template instance.');
}
if (null !== $template) {
try {
$template->$block($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($template->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getSourceContext(), $e);
$e->guess();
throw $e;
}
} elseif (false !== $parent = $this->getParent($context)) {
$parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false, $templateContext ?? $this);
Arguments
array:26 [
"http_host" => "https://fxb.org"
"wp_title" => "FXB Shop - FXB | Vaincre la pauvreté, restaurer la dignité"
"body_class" => "module-template-default single single-module postid-7619 shop"
"site" => Timber\Site {#23223}
"request" => Timber\Request {#23238}
"user" => false
"theme" => Timber\Theme {#23241}
"posts" => Timber\PostQuery {#23248
+found_posts: 1
found_posts: 1
#userQuery: false
#queryIterator: Timber\QueryIterator {#23243}
#pagination: null
-storage: array:1 [
0 => App\Models\Post {#23246}
]
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "Timber\PostsIterator"
}
"wp_head" => Timber\FunctionWrapper {#23247}
"wp_footer" => Timber\FunctionWrapper {#23313}
"menu" => Timber\Menu {#23312}
"footer_links" => Timber\Menu {#23027}
"footer_sites" => Timber\Menu {#25053}
"favicon" => "https://fxb.org/app/themes/fxb/assets/images/favicon.png"
"logo" => "https://fxb.org/app/themes/fxb/assets/images/logo.png"
"env" => "development"
"thanos_test" => "https://fxb.org/app/themes/fxb/assets/images/thanos.jpg"
"zewo_logo" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certification.png"
"footer_fxb_logo" => "https://fxb.org/app/themes/fxb/assets/images/fxb_logo_signatureless.png"
"footer_zewo_certification" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certif_logo.svg"
"breadcrumb" => "<p id="breadcrumbs"><span><span><a href="https://fxb.org/fr/module/">Modules</a></span> <i class="fa fas fa-chevron-right"></i> <span class="breadcrumb_last" aria-current="page">FXB Shop</span></span></p>"
"options" => array:10 [
"donate_url" => WP_Post {#25045}
"facebook" => "https://www.facebook.com/FXBinternational"
"instagram" => "https://www.instagram.com/fxb_international/"
"legal_notice" => "https://fxb.org/fr/politique-de-confidentialite/"
"linkedin" => "https://www.linkedin.com/company/fxb-international"
"privacy_policy" => "https://fxb.org/fr/politique-de-confidentialite/"
"read_more" => "https://fxb.org/fr/who-we-are/vision-mission/"
"shop_url" => "https://fxbshop.org/fr-fr"
"twitter" => "https://twitter.com/FXBIntl"
"youtube" => "https://www.youtube.com/user/FXBinternational"
]
"language_switcher" => array:1 [
"fr" => array:13 [
"code" => "fr"
"id" => "4"
"native_name" => "Français"
"major" => "1"
"active" => "1"
"default_locale" => "fr_FR"
"encode_url" => "0"
"tag" => "fr"
"missing" => 0
"translated_name" => "Français"
"url" => "https://fxb.org/fr/module/shop/"
"country_flag_url" => "https://fxb.org/app/plugins/sitepress-multilingual-cms/res/flags/fr.png"
"language_code" => "fr"
]
]
"active_lang" => "fr"
"post" => App\Models\Post {#23290}
"imagePortrait" => Timber\Image {#24534}
]
array:1 [
"content" => array:2 [
0 => __TwigTemplate_a19323c6c07ee8965df7a4b4e57a1e8d {#24728}
1 => "block_content"
]
]
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/vendor/twig/twig/src/Environment.php
$key = $this->cache->generateKey($name, $mainCls);
if (!$this->isAutoReload() || $this->isTemplateFresh($name, $this->cache->getTimestamp($key))) {
$this->cache->load($key);
}
$source = null;
if (!class_exists($cls, false)) {
$source = $this->getLoader()->getSourceContext($name);
$content = $this->compileSource($source);
$this->cache->write($key, $content);
$this->cache->load($key);
if (!class_exists($mainCls, false)) {
/* Last line of defense if either $this->bcWriteCacheFile was used,
* $this->cache is implemented as a no-op or we have a race condition
* where the cache was cleared between the above calls to write to and load from
* the cache.
*/
eval('?>'.$content);
}
if (!class_exists($cls, false)) {
throw new RuntimeError(sprintf('Failed to load Twig template "%s", index "%s": cache might be corrupted.', $name, $index), -1, $source);
}
}
}
// to be removed in 3.0
$this->extensionSet->initRuntime($this);
return $this->loadedTemplates[$cls] = new $cls($this);
}
/**
* Creates a template from source.
*
* This method should not be used as a generic way to load templates.
*
* @param string $template The template source
Arguments
"content"
array:25 [
"http_host" => "https://fxb.org"
"wp_title" => "FXB Shop - FXB | Vaincre la pauvreté, restaurer la dignité"
"body_class" => "module-template-default single single-module postid-7619 shop"
"site" => Timber\Site {#23223}
"request" => Timber\Request {#23238}
"user" => false
"theme" => Timber\Theme {#23241}
"posts" => Timber\PostQuery {#23248
+found_posts: 1
found_posts: 1
#userQuery: false
#queryIterator: Timber\QueryIterator {#23243}
#pagination: null
-storage: array:1 [
0 => App\Models\Post {#23246}
]
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "Timber\PostsIterator"
}
"wp_head" => Timber\FunctionWrapper {#23247}
"wp_footer" => Timber\FunctionWrapper {#23313}
"menu" => Timber\Menu {#23312}
"footer_links" => Timber\Menu {#23027}
"footer_sites" => Timber\Menu {#25053}
"favicon" => "https://fxb.org/app/themes/fxb/assets/images/favicon.png"
"logo" => "https://fxb.org/app/themes/fxb/assets/images/logo.png"
"env" => "development"
"thanos_test" => "https://fxb.org/app/themes/fxb/assets/images/thanos.jpg"
"zewo_logo" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certification.png"
"footer_fxb_logo" => "https://fxb.org/app/themes/fxb/assets/images/fxb_logo_signatureless.png"
"footer_zewo_certification" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certif_logo.svg"
"breadcrumb" => "<p id="breadcrumbs"><span><span><a href="https://fxb.org/fr/module/">Modules</a></span> <i class="fa fas fa-chevron-right"></i> <span class="breadcrumb_last" aria-current="page">FXB Shop</span></span></p>"
"options" => array:10 [
"donate_url" => WP_Post {#25045}
"facebook" => "https://www.facebook.com/FXBinternational"
"instagram" => "https://www.instagram.com/fxb_international/"
"legal_notice" => "https://fxb.org/fr/politique-de-confidentialite/"
"linkedin" => "https://www.linkedin.com/company/fxb-international"
"privacy_policy" => "https://fxb.org/fr/politique-de-confidentialite/"
"read_more" => "https://fxb.org/fr/who-we-are/vision-mission/"
"shop_url" => "https://fxbshop.org/fr-fr"
"twitter" => "https://twitter.com/FXBIntl"
"youtube" => "https://www.youtube.com/user/FXBinternational"
]
"language_switcher" => array:1 [
"fr" => array:13 [
"code" => "fr"
"id" => "4"
"native_name" => "Français"
"major" => "1"
"active" => "1"
"default_locale" => "fr_FR"
"encode_url" => "0"
"tag" => "fr"
"missing" => 0
"translated_name" => "Français"
"url" => "https://fxb.org/fr/module/shop/"
"country_flag_url" => "https://fxb.org/app/plugins/sitepress-multilingual-cms/res/flags/fr.png"
"language_code" => "fr"
]
]
"active_lang" => "fr"
"post" => App\Models\Post {#23290}
]
array:1 [
"content" => array:2 [
0 => __TwigTemplate_a19323c6c07ee8965df7a4b4e57a1e8d {#24728}
1 => "block_content"
]
]
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/vendor/twig/twig/src/Template.php
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:25 [
"http_host" => "https://fxb.org"
"wp_title" => "FXB Shop - FXB | Vaincre la pauvreté, restaurer la dignité"
"body_class" => "module-template-default single single-module postid-7619 shop"
"site" => Timber\Site {#23223}
"request" => Timber\Request {#23238}
"user" => false
"theme" => Timber\Theme {#23241}
"posts" => Timber\PostQuery {#23248
+found_posts: 1
found_posts: 1
#userQuery: false
#queryIterator: Timber\QueryIterator {#23243}
#pagination: null
-storage: array:1 [
0 => App\Models\Post {#23246}
]
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "Timber\PostsIterator"
}
"wp_head" => Timber\FunctionWrapper {#23247}
"wp_footer" => Timber\FunctionWrapper {#23313}
"menu" => Timber\Menu {#23312}
"footer_links" => Timber\Menu {#23027}
"footer_sites" => Timber\Menu {#25053}
"favicon" => "https://fxb.org/app/themes/fxb/assets/images/favicon.png"
"logo" => "https://fxb.org/app/themes/fxb/assets/images/logo.png"
"env" => "development"
"thanos_test" => "https://fxb.org/app/themes/fxb/assets/images/thanos.jpg"
"zewo_logo" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certification.png"
"footer_fxb_logo" => "https://fxb.org/app/themes/fxb/assets/images/fxb_logo_signatureless.png"
"footer_zewo_certification" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certif_logo.svg"
"breadcrumb" => "<p id="breadcrumbs"><span><span><a href="https://fxb.org/fr/module/">Modules</a></span> <i class="fa fas fa-chevron-right"></i> <span class="breadcrumb_last" aria-current="page">FXB Shop</span></span></p>"
"options" => array:10 [
"donate_url" => WP_Post {#25045}
"facebook" => "https://www.facebook.com/FXBinternational"
"instagram" => "https://www.instagram.com/fxb_international/"
"legal_notice" => "https://fxb.org/fr/politique-de-confidentialite/"
"linkedin" => "https://www.linkedin.com/company/fxb-international"
"privacy_policy" => "https://fxb.org/fr/politique-de-confidentialite/"
"read_more" => "https://fxb.org/fr/who-we-are/vision-mission/"
"shop_url" => "https://fxbshop.org/fr-fr"
"twitter" => "https://twitter.com/FXBIntl"
"youtube" => "https://www.youtube.com/user/FXBinternational"
]
"language_switcher" => array:1 [
"fr" => array:13 [
"code" => "fr"
"id" => "4"
"native_name" => "Français"
"major" => "1"
"active" => "1"
"default_locale" => "fr_FR"
"encode_url" => "0"
"tag" => "fr"
"missing" => 0
"translated_name" => "Français"
"url" => "https://fxb.org/fr/module/shop/"
"country_flag_url" => "https://fxb.org/app/plugins/sitepress-multilingual-cms/res/flags/fr.png"
"language_code" => "fr"
]
]
"active_lang" => "fr"
"post" => App\Models\Post {#23290}
]
array:1 [
"content" => array:2 [
0 => __TwigTemplate_a19323c6c07ee8965df7a4b4e57a1e8d {#24728}
1 => "block_content"
]
]
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/vendor/twig/twig/src/Template.php
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
Arguments
array:25 [
"http_host" => "https://fxb.org"
"wp_title" => "FXB Shop - FXB | Vaincre la pauvreté, restaurer la dignité"
"body_class" => "module-template-default single single-module postid-7619 shop"
"site" => Timber\Site {#23223}
"request" => Timber\Request {#23238}
"user" => false
"theme" => Timber\Theme {#23241}
"posts" => Timber\PostQuery {#23248
+found_posts: 1
found_posts: 1
#userQuery: false
#queryIterator: Timber\QueryIterator {#23243}
#pagination: null
-storage: array:1 [
0 => App\Models\Post {#23246}
]
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "Timber\PostsIterator"
}
"wp_head" => Timber\FunctionWrapper {#23247}
"wp_footer" => Timber\FunctionWrapper {#23313}
"menu" => Timber\Menu {#23312}
"footer_links" => Timber\Menu {#23027}
"footer_sites" => Timber\Menu {#25053}
"favicon" => "https://fxb.org/app/themes/fxb/assets/images/favicon.png"
"logo" => "https://fxb.org/app/themes/fxb/assets/images/logo.png"
"env" => "development"
"thanos_test" => "https://fxb.org/app/themes/fxb/assets/images/thanos.jpg"
"zewo_logo" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certification.png"
"footer_fxb_logo" => "https://fxb.org/app/themes/fxb/assets/images/fxb_logo_signatureless.png"
"footer_zewo_certification" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certif_logo.svg"
"breadcrumb" => "<p id="breadcrumbs"><span><span><a href="https://fxb.org/fr/module/">Modules</a></span> <i class="fa fas fa-chevron-right"></i> <span class="breadcrumb_last" aria-current="page">FXB Shop</span></span></p>"
"options" => array:10 [
"donate_url" => WP_Post {#25045}
"facebook" => "https://www.facebook.com/FXBinternational"
"instagram" => "https://www.instagram.com/fxb_international/"
"legal_notice" => "https://fxb.org/fr/politique-de-confidentialite/"
"linkedin" => "https://www.linkedin.com/company/fxb-international"
"privacy_policy" => "https://fxb.org/fr/politique-de-confidentialite/"
"read_more" => "https://fxb.org/fr/who-we-are/vision-mission/"
"shop_url" => "https://fxbshop.org/fr-fr"
"twitter" => "https://twitter.com/FXBIntl"
"youtube" => "https://www.youtube.com/user/FXBinternational"
]
"language_switcher" => array:1 [
"fr" => array:13 [
"code" => "fr"
"id" => "4"
"native_name" => "Français"
"major" => "1"
"active" => "1"
"default_locale" => "fr_FR"
"encode_url" => "0"
"tag" => "fr"
"missing" => 0
"translated_name" => "Français"
"url" => "https://fxb.org/fr/module/shop/"
"country_flag_url" => "https://fxb.org/app/plugins/sitepress-multilingual-cms/res/flags/fr.png"
"language_code" => "fr"
]
]
"active_lang" => "fr"
"post" => App\Models\Post {#23290}
]
array:1 [
"content" => array:2 [
0 => __TwigTemplate_a19323c6c07ee8965df7a4b4e57a1e8d {#24728}
1 => "block_content"
]
]
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/vendor/twig/twig/src/Environment.php
$key = $this->cache->generateKey($name, $mainCls);
if (!$this->isAutoReload() || $this->isTemplateFresh($name, $this->cache->getTimestamp($key))) {
$this->cache->load($key);
}
$source = null;
if (!class_exists($cls, false)) {
$source = $this->getLoader()->getSourceContext($name);
$content = $this->compileSource($source);
$this->cache->write($key, $content);
$this->cache->load($key);
if (!class_exists($mainCls, false)) {
/* Last line of defense if either $this->bcWriteCacheFile was used,
* $this->cache is implemented as a no-op or we have a race condition
* where the cache was cleared between the above calls to write to and load from
* the cache.
*/
eval('?>'.$content);
}
if (!class_exists($cls, false)) {
throw new RuntimeError(sprintf('Failed to load Twig template "%s", index "%s": cache might be corrupted.', $name, $index), -1, $source);
}
}
}
// to be removed in 3.0
$this->extensionSet->initRuntime($this);
return $this->loadedTemplates[$cls] = new $cls($this);
}
/**
* Creates a template from source.
*
* This method should not be used as a generic way to load templates.
*
* @param string $template The template source
Arguments
array:25 [
"http_host" => "https://fxb.org"
"wp_title" => "FXB Shop - FXB | Vaincre la pauvreté, restaurer la dignité"
"body_class" => "module-template-default single single-module postid-7619 shop"
"site" => Timber\Site {#23223}
"request" => Timber\Request {#23238}
"user" => false
"theme" => Timber\Theme {#23241}
"posts" => Timber\PostQuery {#23248
+found_posts: 1
found_posts: 1
#userQuery: false
#queryIterator: Timber\QueryIterator {#23243}
#pagination: null
-storage: array:1 [
0 => App\Models\Post {#23246}
]
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "Timber\PostsIterator"
}
"wp_head" => Timber\FunctionWrapper {#23247}
"wp_footer" => Timber\FunctionWrapper {#23313}
"menu" => Timber\Menu {#23312}
"footer_links" => Timber\Menu {#23027}
"footer_sites" => Timber\Menu {#25053}
"favicon" => "https://fxb.org/app/themes/fxb/assets/images/favicon.png"
"logo" => "https://fxb.org/app/themes/fxb/assets/images/logo.png"
"env" => "development"
"thanos_test" => "https://fxb.org/app/themes/fxb/assets/images/thanos.jpg"
"zewo_logo" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certification.png"
"footer_fxb_logo" => "https://fxb.org/app/themes/fxb/assets/images/fxb_logo_signatureless.png"
"footer_zewo_certification" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certif_logo.svg"
"breadcrumb" => "<p id="breadcrumbs"><span><span><a href="https://fxb.org/fr/module/">Modules</a></span> <i class="fa fas fa-chevron-right"></i> <span class="breadcrumb_last" aria-current="page">FXB Shop</span></span></p>"
"options" => array:10 [
"donate_url" => WP_Post {#25045}
"facebook" => "https://www.facebook.com/FXBinternational"
"instagram" => "https://www.instagram.com/fxb_international/"
"legal_notice" => "https://fxb.org/fr/politique-de-confidentialite/"
"linkedin" => "https://www.linkedin.com/company/fxb-international"
"privacy_policy" => "https://fxb.org/fr/politique-de-confidentialite/"
"read_more" => "https://fxb.org/fr/who-we-are/vision-mission/"
"shop_url" => "https://fxbshop.org/fr-fr"
"twitter" => "https://twitter.com/FXBIntl"
"youtube" => "https://www.youtube.com/user/FXBinternational"
]
"language_switcher" => array:1 [
"fr" => array:13 [
"code" => "fr"
"id" => "4"
"native_name" => "Français"
"major" => "1"
"active" => "1"
"default_locale" => "fr_FR"
"encode_url" => "0"
"tag" => "fr"
"missing" => 0
"translated_name" => "Français"
"url" => "https://fxb.org/fr/module/shop/"
"country_flag_url" => "https://fxb.org/app/plugins/sitepress-multilingual-cms/res/flags/fr.png"
"language_code" => "fr"
]
]
"active_lang" => "fr"
"post" => App\Models\Post {#23290}
]
array:1 [
"content" => array:2 [
0 => __TwigTemplate_a19323c6c07ee8965df7a4b4e57a1e8d {#24728}
1 => "block_content"
]
]
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/vendor/twig/twig/src/Template.php
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Exception $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:25 [
"http_host" => "https://fxb.org"
"wp_title" => "FXB Shop - FXB | Vaincre la pauvreté, restaurer la dignité"
"body_class" => "module-template-default single single-module postid-7619 shop"
"site" => Timber\Site {#23223}
"request" => Timber\Request {#23238}
"user" => false
"theme" => Timber\Theme {#23241}
"posts" => Timber\PostQuery {#23248
+found_posts: 1
found_posts: 1
#userQuery: false
#queryIterator: Timber\QueryIterator {#23243}
#pagination: null
-storage: array:1 [
0 => App\Models\Post {#23246}
]
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "Timber\PostsIterator"
}
"wp_head" => Timber\FunctionWrapper {#23247}
"wp_footer" => Timber\FunctionWrapper {#23313}
"menu" => Timber\Menu {#23312}
"footer_links" => Timber\Menu {#23027}
"footer_sites" => Timber\Menu {#25053}
"favicon" => "https://fxb.org/app/themes/fxb/assets/images/favicon.png"
"logo" => "https://fxb.org/app/themes/fxb/assets/images/logo.png"
"env" => "development"
"thanos_test" => "https://fxb.org/app/themes/fxb/assets/images/thanos.jpg"
"zewo_logo" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certification.png"
"footer_fxb_logo" => "https://fxb.org/app/themes/fxb/assets/images/fxb_logo_signatureless.png"
"footer_zewo_certification" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certif_logo.svg"
"breadcrumb" => "<p id="breadcrumbs"><span><span><a href="https://fxb.org/fr/module/">Modules</a></span> <i class="fa fas fa-chevron-right"></i> <span class="breadcrumb_last" aria-current="page">FXB Shop</span></span></p>"
"options" => array:10 [
"donate_url" => WP_Post {#25045}
"facebook" => "https://www.facebook.com/FXBinternational"
"instagram" => "https://www.instagram.com/fxb_international/"
"legal_notice" => "https://fxb.org/fr/politique-de-confidentialite/"
"linkedin" => "https://www.linkedin.com/company/fxb-international"
"privacy_policy" => "https://fxb.org/fr/politique-de-confidentialite/"
"read_more" => "https://fxb.org/fr/who-we-are/vision-mission/"
"shop_url" => "https://fxbshop.org/fr-fr"
"twitter" => "https://twitter.com/FXBIntl"
"youtube" => "https://www.youtube.com/user/FXBinternational"
]
"language_switcher" => array:1 [
"fr" => array:13 [
"code" => "fr"
"id" => "4"
"native_name" => "Français"
"major" => "1"
"active" => "1"
"default_locale" => "fr_FR"
"encode_url" => "0"
"tag" => "fr"
"missing" => 0
"translated_name" => "Français"
"url" => "https://fxb.org/fr/module/shop/"
"country_flag_url" => "https://fxb.org/app/plugins/sitepress-multilingual-cms/res/flags/fr.png"
"language_code" => "fr"
]
]
"active_lang" => "fr"
"post" => App\Models\Post {#23290}
]
array:1 [
"content" => array:2 [
0 => __TwigTemplate_a19323c6c07ee8965df7a4b4e57a1e8d {#24728}
1 => "block_content"
]
]
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/vendor/twig/twig/src/Template.php
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
Arguments
array:25 [
"http_host" => "https://fxb.org"
"wp_title" => "FXB Shop - FXB | Vaincre la pauvreté, restaurer la dignité"
"body_class" => "module-template-default single single-module postid-7619 shop"
"site" => Timber\Site {#23223}
"request" => Timber\Request {#23238}
"user" => false
"theme" => Timber\Theme {#23241}
"posts" => Timber\PostQuery {#23248
+found_posts: 1
found_posts: 1
#userQuery: false
#queryIterator: Timber\QueryIterator {#23243}
#pagination: null
-storage: array:1 [
0 => App\Models\Post {#23246}
]
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "Timber\PostsIterator"
}
"wp_head" => Timber\FunctionWrapper {#23247}
"wp_footer" => Timber\FunctionWrapper {#23313}
"menu" => Timber\Menu {#23312}
"footer_links" => Timber\Menu {#23027}
"footer_sites" => Timber\Menu {#25053}
"favicon" => "https://fxb.org/app/themes/fxb/assets/images/favicon.png"
"logo" => "https://fxb.org/app/themes/fxb/assets/images/logo.png"
"env" => "development"
"thanos_test" => "https://fxb.org/app/themes/fxb/assets/images/thanos.jpg"
"zewo_logo" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certification.png"
"footer_fxb_logo" => "https://fxb.org/app/themes/fxb/assets/images/fxb_logo_signatureless.png"
"footer_zewo_certification" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certif_logo.svg"
"breadcrumb" => "<p id="breadcrumbs"><span><span><a href="https://fxb.org/fr/module/">Modules</a></span> <i class="fa fas fa-chevron-right"></i> <span class="breadcrumb_last" aria-current="page">FXB Shop</span></span></p>"
"options" => array:10 [
"donate_url" => WP_Post {#25045}
"facebook" => "https://www.facebook.com/FXBinternational"
"instagram" => "https://www.instagram.com/fxb_international/"
"legal_notice" => "https://fxb.org/fr/politique-de-confidentialite/"
"linkedin" => "https://www.linkedin.com/company/fxb-international"
"privacy_policy" => "https://fxb.org/fr/politique-de-confidentialite/"
"read_more" => "https://fxb.org/fr/who-we-are/vision-mission/"
"shop_url" => "https://fxbshop.org/fr-fr"
"twitter" => "https://twitter.com/FXBIntl"
"youtube" => "https://www.youtube.com/user/FXBinternational"
]
"language_switcher" => array:1 [
"fr" => array:13 [
"code" => "fr"
"id" => "4"
"native_name" => "Français"
"major" => "1"
"active" => "1"
"default_locale" => "fr_FR"
"encode_url" => "0"
"tag" => "fr"
"missing" => 0
"translated_name" => "Français"
"url" => "https://fxb.org/fr/module/shop/"
"country_flag_url" => "https://fxb.org/app/plugins/sitepress-multilingual-cms/res/flags/fr.png"
"language_code" => "fr"
]
]
"active_lang" => "fr"
"post" => App\Models\Post {#23290}
]
array:1 [
"content" => array:2 [
0 => __TwigTemplate_a19323c6c07ee8965df7a4b4e57a1e8d {#24728}
1 => "block_content"
]
]
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/vendor/twig/twig/src/Template.php
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
Arguments
array:25 [
"http_host" => "https://fxb.org"
"wp_title" => "FXB Shop - FXB | Vaincre la pauvreté, restaurer la dignité"
"body_class" => "module-template-default single single-module postid-7619 shop"
"site" => Timber\Site {#23223}
"request" => Timber\Request {#23238}
"user" => false
"theme" => Timber\Theme {#23241}
"posts" => Timber\PostQuery {#23248
+found_posts: 1
found_posts: 1
#userQuery: false
#queryIterator: Timber\QueryIterator {#23243}
#pagination: null
-storage: array:1 [
0 => App\Models\Post {#23246}
]
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "Timber\PostsIterator"
}
"wp_head" => Timber\FunctionWrapper {#23247}
"wp_footer" => Timber\FunctionWrapper {#23313}
"menu" => Timber\Menu {#23312}
"footer_links" => Timber\Menu {#23027}
"footer_sites" => Timber\Menu {#25053}
"favicon" => "https://fxb.org/app/themes/fxb/assets/images/favicon.png"
"logo" => "https://fxb.org/app/themes/fxb/assets/images/logo.png"
"env" => "development"
"thanos_test" => "https://fxb.org/app/themes/fxb/assets/images/thanos.jpg"
"zewo_logo" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certification.png"
"footer_fxb_logo" => "https://fxb.org/app/themes/fxb/assets/images/fxb_logo_signatureless.png"
"footer_zewo_certification" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certif_logo.svg"
"breadcrumb" => "<p id="breadcrumbs"><span><span><a href="https://fxb.org/fr/module/">Modules</a></span> <i class="fa fas fa-chevron-right"></i> <span class="breadcrumb_last" aria-current="page">FXB Shop</span></span></p>"
"options" => array:10 [
"donate_url" => WP_Post {#25045}
"facebook" => "https://www.facebook.com/FXBinternational"
"instagram" => "https://www.instagram.com/fxb_international/"
"legal_notice" => "https://fxb.org/fr/politique-de-confidentialite/"
"linkedin" => "https://www.linkedin.com/company/fxb-international"
"privacy_policy" => "https://fxb.org/fr/politique-de-confidentialite/"
"read_more" => "https://fxb.org/fr/who-we-are/vision-mission/"
"shop_url" => "https://fxbshop.org/fr-fr"
"twitter" => "https://twitter.com/FXBIntl"
"youtube" => "https://www.youtube.com/user/FXBinternational"
]
"language_switcher" => array:1 [
"fr" => array:13 [
"code" => "fr"
"id" => "4"
"native_name" => "Français"
"major" => "1"
"active" => "1"
"default_locale" => "fr_FR"
"encode_url" => "0"
"tag" => "fr"
"missing" => 0
"translated_name" => "Français"
"url" => "https://fxb.org/fr/module/shop/"
"country_flag_url" => "https://fxb.org/app/plugins/sitepress-multilingual-cms/res/flags/fr.png"
"language_code" => "fr"
]
]
"active_lang" => "fr"
"post" => App\Models\Post {#23290}
]
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/vendor/twig/twig/src/TemplateWrapper.php
* directly (use Twig\Environment::load() instead).
*
* @internal
*/
public function __construct(Environment $env, Template $template)
{
$this->env = $env;
$this->template = $template;
}
/**
* Renders the template.
*
* @param array $context An array of parameters to pass to the template
*/
public function render(array $context = []): string
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
return $this->template->render($context, \func_get_args()[1] ?? []);
}
/**
* Displays the template.
*
* @param array $context An array of parameters to pass to the template
*/
public function display(array $context = [])
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
$this->template->display($context, \func_get_args()[1] ?? []);
}
/**
* Checks if a block is defined.
*
* @param string $name The block name
* @param array $context An array of parameters to pass to the template
*/
Arguments
array:25 [
"http_host" => "https://fxb.org"
"wp_title" => "FXB Shop - FXB | Vaincre la pauvreté, restaurer la dignité"
"body_class" => "module-template-default single single-module postid-7619 shop"
"site" => Timber\Site {#23223}
"request" => Timber\Request {#23238}
"user" => false
"theme" => Timber\Theme {#23241}
"posts" => Timber\PostQuery {#23248
+found_posts: 1
found_posts: 1
#userQuery: false
#queryIterator: Timber\QueryIterator {#23243}
#pagination: null
-storage: array:1 [
0 => App\Models\Post {#23246}
]
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "Timber\PostsIterator"
}
"wp_head" => Timber\FunctionWrapper {#23247}
"wp_footer" => Timber\FunctionWrapper {#23313}
"menu" => Timber\Menu {#23312}
"footer_links" => Timber\Menu {#23027}
"footer_sites" => Timber\Menu {#25053}
"favicon" => "https://fxb.org/app/themes/fxb/assets/images/favicon.png"
"logo" => "https://fxb.org/app/themes/fxb/assets/images/logo.png"
"env" => "development"
"thanos_test" => "https://fxb.org/app/themes/fxb/assets/images/thanos.jpg"
"zewo_logo" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certification.png"
"footer_fxb_logo" => "https://fxb.org/app/themes/fxb/assets/images/fxb_logo_signatureless.png"
"footer_zewo_certification" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certif_logo.svg"
"breadcrumb" => "<p id="breadcrumbs"><span><span><a href="https://fxb.org/fr/module/">Modules</a></span> <i class="fa fas fa-chevron-right"></i> <span class="breadcrumb_last" aria-current="page">FXB Shop</span></span></p>"
"options" => array:10 [
"donate_url" => WP_Post {#25045}
"facebook" => "https://www.facebook.com/FXBinternational"
"instagram" => "https://www.instagram.com/fxb_international/"
"legal_notice" => "https://fxb.org/fr/politique-de-confidentialite/"
"linkedin" => "https://www.linkedin.com/company/fxb-international"
"privacy_policy" => "https://fxb.org/fr/politique-de-confidentialite/"
"read_more" => "https://fxb.org/fr/who-we-are/vision-mission/"
"shop_url" => "https://fxbshop.org/fr-fr"
"twitter" => "https://twitter.com/FXBIntl"
"youtube" => "https://www.youtube.com/user/FXBinternational"
]
"language_switcher" => array:1 [
"fr" => array:13 [
"code" => "fr"
"id" => "4"
"native_name" => "Français"
"major" => "1"
"active" => "1"
"default_locale" => "fr_FR"
"encode_url" => "0"
"tag" => "fr"
"missing" => 0
"translated_name" => "Français"
"url" => "https://fxb.org/fr/module/shop/"
"country_flag_url" => "https://fxb.org/app/plugins/sitepress-multilingual-cms/res/flags/fr.png"
"language_code" => "fr"
]
]
"active_lang" => "fr"
"post" => App\Models\Post {#23290}
]
[]
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/vendor/timber/timber/lib/Loader.php
$key = null;
$output = false;
if ( false !== $expires ) {
ksort($data);
$key = md5($file.json_encode($data));
$output = $this->get_cache($key, self::CACHEGROUP, $cache_mode);
}
if ( false === $output || null === $output ) {
$twig = $this->get_twig();
if ( strlen($file) ) {
$loader = $this->get_loader();
$result = $loader->getCacheKey($file);
do_action('timber_loader_render_file', $result);
}
$data = apply_filters('timber_loader_render_data', $data);
$data = apply_filters('timber/loader/render_data', $data, $file);
$template = $twig->load($file);
$output = $template->render($data);
}
if ( false !== $output && false !== $expires && null !== $key ) {
$this->delete_cache();
$this->set_cache($key, $output, self::CACHEGROUP, $expires, $cache_mode);
}
$output = apply_filters('timber_output', $output);
return apply_filters('timber/output', $output, $data, $file);
}
protected function delete_cache() {
Cleaner::delete_transients();
}
/**
* Get first existing template.
*
* @param array|string $templates Name(s) of the Twig template(s) to choose from.
* @return string|bool Name of chosen template, otherwise false.
*/
Arguments
array:25 [
"http_host" => "https://fxb.org"
"wp_title" => "FXB Shop - FXB | Vaincre la pauvreté, restaurer la dignité"
"body_class" => "module-template-default single single-module postid-7619 shop"
"site" => Timber\Site {#23223}
"request" => Timber\Request {#23238}
"user" => false
"theme" => Timber\Theme {#23241}
"posts" => Timber\PostQuery {#23248
+found_posts: 1
found_posts: 1
#userQuery: false
#queryIterator: Timber\QueryIterator {#23243}
#pagination: null
-storage: array:1 [
0 => App\Models\Post {#23246}
]
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "Timber\PostsIterator"
}
"wp_head" => Timber\FunctionWrapper {#23247}
"wp_footer" => Timber\FunctionWrapper {#23313}
"menu" => Timber\Menu {#23312}
"footer_links" => Timber\Menu {#23027}
"footer_sites" => Timber\Menu {#25053}
"favicon" => "https://fxb.org/app/themes/fxb/assets/images/favicon.png"
"logo" => "https://fxb.org/app/themes/fxb/assets/images/logo.png"
"env" => "development"
"thanos_test" => "https://fxb.org/app/themes/fxb/assets/images/thanos.jpg"
"zewo_logo" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certification.png"
"footer_fxb_logo" => "https://fxb.org/app/themes/fxb/assets/images/fxb_logo_signatureless.png"
"footer_zewo_certification" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certif_logo.svg"
"breadcrumb" => "<p id="breadcrumbs"><span><span><a href="https://fxb.org/fr/module/">Modules</a></span> <i class="fa fas fa-chevron-right"></i> <span class="breadcrumb_last" aria-current="page">FXB Shop</span></span></p>"
"options" => array:10 [
"donate_url" => WP_Post {#25045}
"facebook" => "https://www.facebook.com/FXBinternational"
"instagram" => "https://www.instagram.com/fxb_international/"
"legal_notice" => "https://fxb.org/fr/politique-de-confidentialite/"
"linkedin" => "https://www.linkedin.com/company/fxb-international"
"privacy_policy" => "https://fxb.org/fr/politique-de-confidentialite/"
"read_more" => "https://fxb.org/fr/who-we-are/vision-mission/"
"shop_url" => "https://fxbshop.org/fr-fr"
"twitter" => "https://twitter.com/FXBIntl"
"youtube" => "https://www.youtube.com/user/FXBinternational"
]
"language_switcher" => array:1 [
"fr" => array:13 [
"code" => "fr"
"id" => "4"
"native_name" => "Français"
"major" => "1"
"active" => "1"
"default_locale" => "fr_FR"
"encode_url" => "0"
"tag" => "fr"
"missing" => 0
"translated_name" => "Français"
"url" => "https://fxb.org/fr/module/shop/"
"country_flag_url" => "https://fxb.org/app/plugins/sitepress-multilingual-cms/res/flags/fr.png"
"language_code" => "fr"
]
]
"active_lang" => "fr"
"post" => App\Models\Post {#23290}
]
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/vendor/timber/timber/lib/Timber.php
if ( $via_render ) {
$file = apply_filters('timber_render_file', $file);
} else {
$file = apply_filters('timber_compile_file', $file);
}
$output = false;
if ($file !== false) {
if ( is_null($data) ) {
$data = array();
}
if ( $via_render ) {
$data = apply_filters('timber_render_data', $data);
} else {
$data = apply_filters('timber_compile_data', $data);
}
$output = $loader->render($file, $data, $expires, $cache_mode);
} else {
if ( is_array($filenames) ) {
$filenames = implode(", ", $filenames);
}
Helper::error_log( 'Error loading your template files: '.$filenames.'. Make sure one of these files exists.' );
}
do_action('timber_compile_done');
return $output;
}
/**
* Compile a string.
*
* @api
* @example
* ```php
* $data = array(
* 'username' => 'Jane Doe',
* );
Arguments
"single.twig"
array:25 [
"http_host" => "https://fxb.org"
"wp_title" => "FXB Shop - FXB | Vaincre la pauvreté, restaurer la dignité"
"body_class" => "module-template-default single single-module postid-7619 shop"
"site" => Timber\Site {#23223}
"request" => Timber\Request {#23238}
"user" => false
"theme" => Timber\Theme {#23241}
"posts" => Timber\PostQuery {#23248
+found_posts: 1
found_posts: 1
#userQuery: false
#queryIterator: Timber\QueryIterator {#23243}
#pagination: null
-storage: array:1 [
0 => App\Models\Post {#23246}
]
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "Timber\PostsIterator"
}
"wp_head" => Timber\FunctionWrapper {#23247}
"wp_footer" => Timber\FunctionWrapper {#23313}
"menu" => Timber\Menu {#23312}
"footer_links" => Timber\Menu {#23027}
"footer_sites" => Timber\Menu {#25053}
"favicon" => "https://fxb.org/app/themes/fxb/assets/images/favicon.png"
"logo" => "https://fxb.org/app/themes/fxb/assets/images/logo.png"
"env" => "development"
"thanos_test" => "https://fxb.org/app/themes/fxb/assets/images/thanos.jpg"
"zewo_logo" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certification.png"
"footer_fxb_logo" => "https://fxb.org/app/themes/fxb/assets/images/fxb_logo_signatureless.png"
"footer_zewo_certification" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certif_logo.svg"
"breadcrumb" => "<p id="breadcrumbs"><span><span><a href="https://fxb.org/fr/module/">Modules</a></span> <i class="fa fas fa-chevron-right"></i> <span class="breadcrumb_last" aria-current="page">FXB Shop</span></span></p>"
"options" => array:10 [
"donate_url" => WP_Post {#25045}
"facebook" => "https://www.facebook.com/FXBinternational"
"instagram" => "https://www.instagram.com/fxb_international/"
"legal_notice" => "https://fxb.org/fr/politique-de-confidentialite/"
"linkedin" => "https://www.linkedin.com/company/fxb-international"
"privacy_policy" => "https://fxb.org/fr/politique-de-confidentialite/"
"read_more" => "https://fxb.org/fr/who-we-are/vision-mission/"
"shop_url" => "https://fxbshop.org/fr-fr"
"twitter" => "https://twitter.com/FXBIntl"
"youtube" => "https://www.youtube.com/user/FXBinternational"
]
"language_switcher" => array:1 [
"fr" => array:13 [
"code" => "fr"
"id" => "4"
"native_name" => "Français"
"major" => "1"
"active" => "1"
"default_locale" => "fr_FR"
"encode_url" => "0"
"tag" => "fr"
"missing" => 0
"translated_name" => "Français"
"url" => "https://fxb.org/fr/module/shop/"
"country_flag_url" => "https://fxb.org/app/plugins/sitepress-multilingual-cms/res/flags/fr.png"
"language_code" => "fr"
]
]
"active_lang" => "fr"
"post" => App\Models\Post {#23290}
]
false
"default"
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/vendor/timber/timber/lib/Timber.php
$twig = $dummy_loader->get_twig();
$template = $twig->createTemplate($string);
return $template->render($data);
}
/**
* Fetch function.
*
* @api
* @param array|string $filenames Name of the Twig file to render. If this is an array of files, Timber will
* render the first file that exists.
* @param array $data Optional. An array of data to use in Twig template.
* @param bool|int $expires Optional. In seconds. Use false to disable cache altogether. When passed an
* array, the first value is used for non-logged in visitors, the second for users.
* Default false.
* @param string $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
* @return bool|string The returned output.
*/
public static function fetch( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
$output = self::compile($filenames, $data, $expires, $cache_mode, true);
$output = apply_filters('timber_compile_result', $output);
return $output;
}
/**
* Render function.
*
* Passes data to a Twig file and echoes the output.
*
* @api
* @example
* ```php
* $context = Timber::context();
*
* Timber::render( 'index.twig', $context );
* ```
* @param array|string $filenames Name of the Twig file to render. If this is an array of files, Timber will
* render the first file that exists.
* @param array $data Optional. An array of data to use in Twig template.
* @param bool|int $expires Optional. In seconds. Use false to disable cache altogether. When passed an
Arguments
"single.twig"
array:25 [
"http_host" => "https://fxb.org"
"wp_title" => "FXB Shop - FXB | Vaincre la pauvreté, restaurer la dignité"
"body_class" => "module-template-default single single-module postid-7619 shop"
"site" => Timber\Site {#23223}
"request" => Timber\Request {#23238}
"user" => false
"theme" => Timber\Theme {#23241}
"posts" => Timber\PostQuery {#23248
+found_posts: 1
found_posts: 1
#userQuery: false
#queryIterator: Timber\QueryIterator {#23243}
#pagination: null
-storage: array:1 [
0 => App\Models\Post {#23246}
]
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "Timber\PostsIterator"
}
"wp_head" => Timber\FunctionWrapper {#23247}
"wp_footer" => Timber\FunctionWrapper {#23313}
"menu" => Timber\Menu {#23312}
"footer_links" => Timber\Menu {#23027}
"footer_sites" => Timber\Menu {#25053}
"favicon" => "https://fxb.org/app/themes/fxb/assets/images/favicon.png"
"logo" => "https://fxb.org/app/themes/fxb/assets/images/logo.png"
"env" => "development"
"thanos_test" => "https://fxb.org/app/themes/fxb/assets/images/thanos.jpg"
"zewo_logo" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certification.png"
"footer_fxb_logo" => "https://fxb.org/app/themes/fxb/assets/images/fxb_logo_signatureless.png"
"footer_zewo_certification" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certif_logo.svg"
"breadcrumb" => "<p id="breadcrumbs"><span><span><a href="https://fxb.org/fr/module/">Modules</a></span> <i class="fa fas fa-chevron-right"></i> <span class="breadcrumb_last" aria-current="page">FXB Shop</span></span></p>"
"options" => array:10 [
"donate_url" => WP_Post {#25045}
"facebook" => "https://www.facebook.com/FXBinternational"
"instagram" => "https://www.instagram.com/fxb_international/"
"legal_notice" => "https://fxb.org/fr/politique-de-confidentialite/"
"linkedin" => "https://www.linkedin.com/company/fxb-international"
"privacy_policy" => "https://fxb.org/fr/politique-de-confidentialite/"
"read_more" => "https://fxb.org/fr/who-we-are/vision-mission/"
"shop_url" => "https://fxbshop.org/fr-fr"
"twitter" => "https://twitter.com/FXBIntl"
"youtube" => "https://www.youtube.com/user/FXBinternational"
]
"language_switcher" => array:1 [
"fr" => array:13 [
"code" => "fr"
"id" => "4"
"native_name" => "Français"
"major" => "1"
"active" => "1"
"default_locale" => "fr_FR"
"encode_url" => "0"
"tag" => "fr"
"missing" => 0
"translated_name" => "Français"
"url" => "https://fxb.org/fr/module/shop/"
"country_flag_url" => "https://fxb.org/app/plugins/sitepress-multilingual-cms/res/flags/fr.png"
"language_code" => "fr"
]
]
"active_lang" => "fr"
"post" => App\Models\Post {#23290}
]
false
"default"
true
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/vendor/timber/timber/lib/Timber.php
* Passes data to a Twig file and echoes the output.
*
* @api
* @example
* ```php
* $context = Timber::context();
*
* Timber::render( 'index.twig', $context );
* ```
* @param array|string $filenames Name of the Twig file to render. If this is an array of files, Timber will
* render the first file that exists.
* @param array $data Optional. An array of data to use in Twig template.
* @param bool|int $expires Optional. In seconds. Use false to disable cache altogether. When passed an
* array, the first value is used for non-logged in visitors, the second for users.
* Default false.
* @param string $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
* @return bool|string The echoed output.
*/
public static function render( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
$output = self::fetch($filenames, $data, $expires, $cache_mode);
echo $output;
return $output;
}
/**
* Render a string with Twig variables.
*
* @api
* @example
* ```php
* $data = array(
* 'username' => 'Jane Doe',
* );
*
* Timber::render_string( 'Hi {{ username }}, I’m a string with a custom Twig variable', $data );
* ```
* @param string $string A string with Twig variables.
* @param array $data An array of data to use in Twig template.
* @return bool|string
*/
Arguments
"single.twig"
array:25 [
"http_host" => "https://fxb.org"
"wp_title" => "FXB Shop - FXB | Vaincre la pauvreté, restaurer la dignité"
"body_class" => "module-template-default single single-module postid-7619 shop"
"site" => Timber\Site {#23223}
"request" => Timber\Request {#23238}
"user" => false
"theme" => Timber\Theme {#23241}
"posts" => Timber\PostQuery {#23248
+found_posts: 1
found_posts: 1
#userQuery: false
#queryIterator: Timber\QueryIterator {#23243}
#pagination: null
-storage: array:1 [
0 => App\Models\Post {#23246}
]
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "Timber\PostsIterator"
}
"wp_head" => Timber\FunctionWrapper {#23247}
"wp_footer" => Timber\FunctionWrapper {#23313}
"menu" => Timber\Menu {#23312}
"footer_links" => Timber\Menu {#23027}
"footer_sites" => Timber\Menu {#25053}
"favicon" => "https://fxb.org/app/themes/fxb/assets/images/favicon.png"
"logo" => "https://fxb.org/app/themes/fxb/assets/images/logo.png"
"env" => "development"
"thanos_test" => "https://fxb.org/app/themes/fxb/assets/images/thanos.jpg"
"zewo_logo" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certification.png"
"footer_fxb_logo" => "https://fxb.org/app/themes/fxb/assets/images/fxb_logo_signatureless.png"
"footer_zewo_certification" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certif_logo.svg"
"breadcrumb" => "<p id="breadcrumbs"><span><span><a href="https://fxb.org/fr/module/">Modules</a></span> <i class="fa fas fa-chevron-right"></i> <span class="breadcrumb_last" aria-current="page">FXB Shop</span></span></p>"
"options" => array:10 [
"donate_url" => WP_Post {#25045}
"facebook" => "https://www.facebook.com/FXBinternational"
"instagram" => "https://www.instagram.com/fxb_international/"
"legal_notice" => "https://fxb.org/fr/politique-de-confidentialite/"
"linkedin" => "https://www.linkedin.com/company/fxb-international"
"privacy_policy" => "https://fxb.org/fr/politique-de-confidentialite/"
"read_more" => "https://fxb.org/fr/who-we-are/vision-mission/"
"shop_url" => "https://fxbshop.org/fr-fr"
"twitter" => "https://twitter.com/FXBIntl"
"youtube" => "https://www.youtube.com/user/FXBinternational"
]
"language_switcher" => array:1 [
"fr" => array:13 [
"code" => "fr"
"id" => "4"
"native_name" => "Français"
"major" => "1"
"active" => "1"
"default_locale" => "fr_FR"
"encode_url" => "0"
"tag" => "fr"
"missing" => 0
"translated_name" => "Français"
"url" => "https://fxb.org/fr/module/shop/"
"country_flag_url" => "https://fxb.org/app/plugins/sitepress-multilingual-cms/res/flags/fr.png"
"language_code" => "fr"
]
]
"active_lang" => "fr"
"post" => App\Models\Post {#23290}
]
false
"default"
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/web/app/themes/fxb/single.php
<?php
// dd('single.php');
use Timber\Timber;
$context = Timber::context();
$context['post'] = Timber::get_post();
Timber::render('single.twig', $context );
Arguments
"single.twig"
array:25 [
"http_host" => "https://fxb.org"
"wp_title" => "FXB Shop - FXB | Vaincre la pauvreté, restaurer la dignité"
"body_class" => "module-template-default single single-module postid-7619 shop"
"site" => Timber\Site {#23223}
"request" => Timber\Request {#23238}
"user" => false
"theme" => Timber\Theme {#23241}
"posts" => Timber\PostQuery {#23248
+found_posts: 1
found_posts: 1
#userQuery: false
#queryIterator: Timber\QueryIterator {#23243}
#pagination: null
-storage: array:1 [
0 => App\Models\Post {#23246}
]
flag::STD_PROP_LIST: false
flag::ARRAY_AS_PROPS: false
iteratorClass: "Timber\PostsIterator"
}
"wp_head" => Timber\FunctionWrapper {#23247}
"wp_footer" => Timber\FunctionWrapper {#23313}
"menu" => Timber\Menu {#23312}
"footer_links" => Timber\Menu {#23027}
"footer_sites" => Timber\Menu {#25053}
"favicon" => "https://fxb.org/app/themes/fxb/assets/images/favicon.png"
"logo" => "https://fxb.org/app/themes/fxb/assets/images/logo.png"
"env" => "development"
"thanos_test" => "https://fxb.org/app/themes/fxb/assets/images/thanos.jpg"
"zewo_logo" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certification.png"
"footer_fxb_logo" => "https://fxb.org/app/themes/fxb/assets/images/fxb_logo_signatureless.png"
"footer_zewo_certification" => "https://fxb.org/app/themes/fxb/assets/images/zewo_certif_logo.svg"
"breadcrumb" => "<p id="breadcrumbs"><span><span><a href="https://fxb.org/fr/module/">Modules</a></span> <i class="fa fas fa-chevron-right"></i> <span class="breadcrumb_last" aria-current="page">FXB Shop</span></span></p>"
"options" => array:10 [
"donate_url" => WP_Post {#25045}
"facebook" => "https://www.facebook.com/FXBinternational"
"instagram" => "https://www.instagram.com/fxb_international/"
"legal_notice" => "https://fxb.org/fr/politique-de-confidentialite/"
"linkedin" => "https://www.linkedin.com/company/fxb-international"
"privacy_policy" => "https://fxb.org/fr/politique-de-confidentialite/"
"read_more" => "https://fxb.org/fr/who-we-are/vision-mission/"
"shop_url" => "https://fxbshop.org/fr-fr"
"twitter" => "https://twitter.com/FXBIntl"
"youtube" => "https://www.youtube.com/user/FXBinternational"
]
"language_switcher" => array:1 [
"fr" => array:13 [
"code" => "fr"
"id" => "4"
"native_name" => "Français"
"major" => "1"
"active" => "1"
"default_locale" => "fr_FR"
"encode_url" => "0"
"tag" => "fr"
"missing" => 0
"translated_name" => "Français"
"url" => "https://fxb.org/fr/module/shop/"
"country_flag_url" => "https://fxb.org/app/plugins/sitepress-multilingual-cms/res/flags/fr.png"
"language_code" => "fr"
]
]
"active_lang" => "fr"
"post" => App\Models\Post {#23290}
]
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/web/wp/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/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/web/app/themes/fxb/single.php"
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/web/wp/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/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/web/wp/wp-includes/template-loader.php"
/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/web/index.php
<?php
/** WordPress view bootstrapper */
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
Arguments
"/home/clients/d72ec93e3770f8d1b3105782883d6419/sites/fxb.org/web/wp/wp-blog-header.php"