/www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/wpml-query-utils.class.php
*
* @return bool
*
* @used-by \WPML_Languages::add_author_url_to_ls_lang to determine what languages to show in the Language Switcher
*/
public function author_query_has_posts( $post_type, $author_data, $lang, $fallback_lang ) {
$post_types = (array) $post_type;
$post_type_snippet = (bool) $post_types ? ' AND post_type IN (' . wpml_prepare_in( $post_types ) . ') ' : '';
$language_snippet = $this->get_language_snippet( $lang, $fallback_lang, $post_type );
return (bool) $this->wpdb->get_var(
$this->wpdb->prepare(
" SELECT COUNT(p.ID) FROM {$this->wpdb->posts} p
JOIN {$this->wpdb->prefix}icl_translations wpml_translations
ON p.ID=wpml_translations.element_id AND wpml_translations.element_type = CONCAT('post_', p.post_type)
WHERE p.post_author=%d
" . $post_type_snippet . "
AND post_status='publish'
" . $language_snippet . ' LIMIT 1',
$author_data->ID
)
);
}
/**
* Returns the number of posts for a given post_type, date and language combination that is published.
*
* @param string $lang language code to check
* @param string $fallback_lang
* @param null|int $year
* @param null|int $month
* @param null|int $day
* @param string|array $post_type
*
* @return bool
*
* @used-by \WPML_Languages::add_date_or_cpt_url_to_ls_lang to determine what languages to show in the Language Switcher
*/
public function archive_query_has_posts( $lang, $fallback_lang, $year = null, $month = null, $day = null, $post_type = 'post' ) {
$cache_args = array();
Arguments
"Attempt to read property "ID" on bool"
/www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/wpml-query-utils.class.php
*
* @return bool
*
* @used-by \WPML_Languages::add_author_url_to_ls_lang to determine what languages to show in the Language Switcher
*/
public function author_query_has_posts( $post_type, $author_data, $lang, $fallback_lang ) {
$post_types = (array) $post_type;
$post_type_snippet = (bool) $post_types ? ' AND post_type IN (' . wpml_prepare_in( $post_types ) . ') ' : '';
$language_snippet = $this->get_language_snippet( $lang, $fallback_lang, $post_type );
return (bool) $this->wpdb->get_var(
$this->wpdb->prepare(
" SELECT COUNT(p.ID) FROM {$this->wpdb->posts} p
JOIN {$this->wpdb->prefix}icl_translations wpml_translations
ON p.ID=wpml_translations.element_id AND wpml_translations.element_type = CONCAT('post_', p.post_type)
WHERE p.post_author=%d
" . $post_type_snippet . "
AND post_status='publish'
" . $language_snippet . ' LIMIT 1',
$author_data->ID
)
);
}
/**
* Returns the number of posts for a given post_type, date and language combination that is published.
*
* @param string $lang language code to check
* @param string $fallback_lang
* @param null|int $year
* @param null|int $month
* @param null|int $day
* @param string|array $post_type
*
* @return bool
*
* @used-by \WPML_Languages::add_date_or_cpt_url_to_ls_lang to determine what languages to show in the Language Switcher
*/
public function archive_query_has_posts( $lang, $fallback_lang, $year = null, $month = null, $day = null, $post_type = 'post' ) {
$cache_args = array();
Arguments
2
"Attempt to read property "ID" on bool"
"/www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/wpml-query-utils.class.php"
58
/www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/inc/utilities/wpml-languages.class.php
list( $lang, $skip_lang ) = $this->maybe_mark_lang_missing( $lang, $args );
}
}
return array( $lang, $skip_lang );
}
/**
* @param array $lang
* @param object|WP_User $author_data
* @param bool $icl_lso_link_empty
* @param bool $skip_lang
* @param bool $link_empty_to
*
* @return array
*/
public function add_author_url_to_ls_lang( $lang, $fallback_lang, $author_data, $icl_lso_link_empty, $skip_lang, $link_empty_to ) {
$post_type = get_query_var( 'post_type' ) ? get_query_var( 'post_type' ) : 'post';
if ( $this->query_utils->author_query_has_posts( $post_type, $author_data, $lang['code'], $fallback_lang ) ) {
$lang['translated_url'] = $this->sitepress->convert_url( $this->sitepress->get_wp_api()->get_author_posts_url( $author_data->ID ), $lang['code'] );
$lang['missing'] = 0;
} else {
$args = array(
'skip_lang' => $skip_lang,
'link_empty' => $icl_lso_link_empty,
'override_missing' => false,
'link_empty_to' => $link_empty_to,
);
list( $lang, $skip_lang ) = $this->maybe_mark_lang_missing( $lang, $args );
}
return array( $lang, $skip_lang );
}
/**
* @param array $lang
* @param string $fallback_lang
Arguments
array:7 [
0 => "news_pt"
1 => "blog_pt"
2 => "locations"
3 => "products"
4 => "projects"
5 => "themas"
6 => "page"
]
false
"nl"
"nl"
/www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php
$icl_adjust_id_url_filter_off = true;
list( $lang, $skip_lang ) = $languages_helper->add_tax_url_to_ls_lang(
$lang,
$translations,
$icl_lso_link_empty,
$skip_lang,
$link_empty_to,
$display_as_translated_ls_link
);
$icl_adjust_id_url_filter_off = false;
} elseif ( is_author() ) {
global $authordata;
if ( empty( $authordata ) ) {
$authordata = get_userdata( get_query_var( 'author' ) );
}
remove_filter( 'home_url', array( $this, 'home_url' ), 1 );
remove_filter( 'author_link', array( $this, 'author_link' ) );
list( $lang, $skip_lang ) = $languages_helper->add_author_url_to_ls_lang(
$lang,
$default_language,
$authordata,
$icl_lso_link_empty,
$skip_lang,
$link_empty_to
);
add_filter( 'home_url', array( $this, 'home_url' ), 1, 4 );
add_filter( 'author_link', array( $this, 'author_link' ) );
} elseif ( is_archive() && ! is_tag() ) {
global $icl_archive_url_filter_off;
$icl_archive_url_filter_off = true;
remove_filter( 'post_type_archive_link', array( $this, 'post_type_archive_link_filter' ), 10 );
list( $lang, $skip_lang ) = $languages_helper->add_date_or_cpt_url_to_ls_lang(
$lang,
$default_language,
$this->wp_query,
$icl_lso_link_empty,
$skip_lang,
$link_empty_to
Arguments
array:10 [
"code" => "nl"
"id" => "37"
"english_name" => "Dutch"
"native_name" => "Nederlands"
"major" => "1"
"active" => "1"
"default_locale" => "nl_NL"
"encode_url" => "0"
"tag" => "nl"
"display_name" => "Dutch"
]
"nl"
false
false
false
null
/www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/classes/seo/class-wpml-seo-headlangs.php
if ( ! array_key_exists( 'head_langs_priority', $seo_settings ) ) {
$seo_settings['head_langs_priority'] = 1;
}
return $seo_settings;
}
public function init_hooks() {
if ( $this->sitepress->get_wp_api()->is_front_end() ) {
$seo_settings = $this->get_seo_settings();
$head_langs = $seo_settings['head_langs'];
if ( $head_langs ) {
$priority = $seo_settings['head_langs_priority'];
add_action( 'wp_head', array( $this, 'head_langs' ), (int) $priority );
}
}
}
function head_langs() {
$languages = $this->sitepress->get_ls_languages( array( 'skip_missing' => true ) );
/**
* @since 3.4.0
*/
$languages = apply_filters( 'wpml_head_langs', $languages );
if ( $this->must_render( $languages ) ) {
$hreflang_items = [];
$xdefault_href_lang = null;
foreach ( $languages as $lang ) {
/**
* @since 3.3.7
*/
$alternate_hreflang = apply_filters( 'wpml_alternate_hreflang', $lang['url'], $lang['code'] );
$hreflang_code = $this->get_hreflang_code( $lang );
if ( $hreflang_code ) {
$hreflang_items[ $hreflang_code ] = str_replace( '&', '&', $alternate_hreflang );
Arguments
array:1 [
"skip_missing" => true
]
/www/idverdenl_614/public/wp-includes/class-wp-hook.php
$this->iterations[ $nesting_level ] = $this->priorities;
$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.
Arguments
/www/idverdenl_614/public/wp-includes/class-wp-hook.php
} 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 ) {
$this->doing_action = true;
$this->apply_filters( '', $args );
// If there are recursive calls to the current action, we haven't finished it until we get to the last one.
if ( ! $this->nesting_level ) {
$this->doing_action = false;
}
}
/**
* Processes the functions hooked into the 'all' hook.
*
* @since 4.7.0
*
* @param array $args Arguments to pass to the hook callbacks. Passed by reference.
*/
public function do_all_hook( &$args ) {
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = $this->priorities;
do {
$priority = current( $this->iterations[ $nesting_level ] );
Arguments
/www/idverdenl_614/public/wp-includes/plugin.php
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
if ( empty( $arg ) ) {
$arg[] = '';
} elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
// Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
$arg[0] = $arg[0][0];
}
$wp_filter[ $hook_name ]->do_action( $arg );
array_pop( $wp_current_filter );
}
/**
* Calls the callback functions that have been added to an action hook, specifying arguments in an array.
*
* @since 2.1.0
*
* @see do_action() 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_actions Stores the number of times each action 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 action to be executed.
* @param array $args The arguments supplied to the functions hooked to `$hook_name`.
*/
function do_action_ref_array( $hook_name, $args ) {
Arguments
/www/idverdenl_614/public/wp-includes/general-template.php
* @param string $before The HTML to output before the date.
* @param string $after The HTML to output after the date.
*/
echo apply_filters( 'the_weekday_date', $the_weekday_date, $before, $after );
}
/**
* Fires the wp_head action.
*
* See {@see 'wp_head'}.
*
* @since 1.2.0
*/
function wp_head() {
/**
* Prints scripts or data in the head tag on the front end.
*
* @since 1.5.0
*/
do_action( 'wp_head' );
}
/**
* Fires the wp_footer action.
*
* See {@see 'wp_footer'}.
*
* @since 1.5.1
*/
function wp_footer() {
/**
* Prints scripts or data before the closing body tag on the front end.
*
* @since 1.5.1
*/
do_action( 'wp_footer' );
}
/**
* Fires the wp_body_open action.
Arguments
/www/idverdenl_614/public/wp-content/themes/idverde-child-theme/header.php
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- <link rel="icon" type="image/png" href="--><?php //echo get_stylesheet_directory_uri(); ?><!--/favicon.png"/>-->
<?php get_template_part( 'template-parts/head-end' ); ?>
<?php wp_head(); ?>
<link rel='stylesheet' href='https://static.mailplus.nl/jq/ui/jquery-ui-1.13.2.custom.min.css' type='text/css'>
<link rel='stylesheet' href='https://static.mailplus.nl/jq/ui/jquery-ui-1.13.2.custom.min.css' type='text/css'>
</head>
<body <?php body_class(); ?>>
<?php get_template_part( 'template-parts/body-start' ); ?>
<header id="site-header" role="banner" class="main-header">
<?php
$disable_header = get_field('disable_header_and_top_bar', get_the_ID())
?>
<?php if(!$disable_header) : ?>
<!-- Top Bar -->
<?php get_template_part( 'template-parts/header-parts/header-top' ) ?>
<!-- Main Header -->
<?php get_template_part( 'template-parts/header-parts/header-main' ) ?>
<?php endif; ?>
</header>
<?php get_template_part( 'template-parts/components/popup' ) ?>
/www/idverdenl_614/public/wp-includes/template.php
extract( $wp_query->query_vars, EXTR_SKIP );
}
if ( isset( $s ) ) {
$s = esc_attr( $s );
}
/**
* Fires before a template file is loaded.
*
* @since 6.1.0
*
* @param string $_template_file The full path to the template file.
* @param bool $load_once Whether to require_once or require.
* @param array $args Additional arguments passed to the template.
*/
do_action( 'wp_before_load_template', $_template_file, $load_once, $args );
if ( $load_once ) {
require_once $_template_file;
} else {
require $_template_file;
}
/**
* Fires after a template file is loaded.
*
* @since 6.1.0
*
* @param string $_template_file The full path to the template file.
* @param bool $load_once Whether to require_once or require.
* @param array $args Additional arguments passed to the template.
*/
do_action( 'wp_after_load_template', $_template_file, $load_once, $args );
}
Arguments
"/www/idverdenl_614/public/wp-content/themes/idverde-child-theme/header.php"
/www/idverdenl_614/public/wp-includes/template.php
$located = '';
foreach ( (array) $template_names as $template_name ) {
if ( ! $template_name ) {
continue;
}
if ( file_exists( $wp_stylesheet_path . '/' . $template_name ) ) {
$located = $wp_stylesheet_path . '/' . $template_name;
break;
} elseif ( $is_child_theme && file_exists( $wp_template_path . '/' . $template_name ) ) {
$located = $wp_template_path . '/' . $template_name;
break;
} elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
$located = ABSPATH . WPINC . '/theme-compat/' . $template_name;
break;
}
}
if ( $load && '' !== $located ) {
load_template( $located, $load_once, $args );
}
return $located;
}
/**
* Requires the template file with WordPress environment.
*
* The globals are set up for the template file to ensure that the WordPress
* environment is available from within the function. The query variables are
* also available.
*
* @since 1.5.0
* @since 5.5.0 The `$args` parameter was added.
*
* @global array $posts
* @global WP_Post $post Global post object.
* @global bool $wp_did_header
* @global WP_Query $wp_query WordPress Query object.
* @global WP_Rewrite $wp_rewrite WordPress rewrite component.
Arguments
"/www/idverdenl_614/public/wp-content/themes/idverde-child-theme/header.php"
true
[]
/www/idverdenl_614/public/wp-includes/general-template.php
* Fires before the header template file is loaded.
*
* @since 2.1.0
* @since 2.8.0 The `$name` parameter was added.
* @since 5.5.0 The `$args` parameter was added.
*
* @param string|null $name Name of the specific header file to use. Null for the default header.
* @param array $args Additional arguments passed to the header template.
*/
do_action( 'get_header', $name, $args );
$templates = array();
$name = (string) $name;
if ( '' !== $name ) {
$templates[] = "header-{$name}.php";
}
$templates[] = 'header.php';
if ( ! locate_template( $templates, true, true, $args ) ) {
return false;
}
}
/**
* Loads footer template.
*
* Includes the footer template for a theme or if a name is specified then a
* specialized footer will be included.
*
* For the parameter, if the file is called "footer-special.php" then specify
* "special".
*
* @since 1.5.0
* @since 5.5.0 A return value was added.
* @since 5.5.0 The `$args` parameter was added.
*
* @param string|null $name The name of the specialized footer. Default null.
* @param array $args Optional. Additional arguments passed to the footer template.
* Default empty array.
Arguments
array:1 [
0 => "header.php"
]
true
true
[]
/www/idverdenl_614/public/wp-content/themes/idverde-child-theme/search.php
<?php get_header(); ?>
<main class="main search-page">
<?php get_template_part( 'template-parts/header-parts/header-archives', null, [ 'type' => 'search-page' ] ); ?>
<?php
$search_query = $_GET[ 's' ];
$search_found = get_field( 'search_page_search_found_text', 'option' ) ?: 'U heeft gezocht op';
$search_found_before = get_field( 'search_page_before_text', 'option' ) ?: 'er zijn';
$search_found_after = get_field( 'search_page_after_text', 'option' ) ?: 'resultaten gevonden';
$search_not_found = get_field( 'search_page_not_found_text', 'option' ) ?: 'Nothing found for';
$read_more_text = get_field( 'search_page_read_more_text', 'option' ) ?? 'Bekijk pagina';
$search_placeholder = get_field( 'header_search_bar_placeholder', 'option' ) ?? 'Zoek op trefwoord';
$search_button_text = get_field( 'header_search_bar_button_text', 'option' ) ?? 'Zoeken';
$post_types = [ 'news_pt','blog_pt','locations','products','projects','themas', 'page' ];
$args = array(
's' => $search_query,
'posts_per_page' => -1,
'post_type' => $post_types,
);
$search_query = new WP_Query( $args );
$counter = 0;
if ( $search_query->have_posts() ) {
while ( $search_query->have_posts() ) {
$search_query->the_post();
$counter++;
}
wp_reset_postdata();
}
?>
<section class="search-section">
<div class="container">
<?php if ( have_posts() ): ?>
<div class="row">
<div class="col-12">
<div class="found">
<h2>
<?php echo $search_found . ' " ' . $_GET[ 's' ] . ' " ' . $search_found_before . ' ' . $counter . ' ' . $search_found_after; ?>
</h2>
/www/idverdenl_614/public/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/idverdenl_614/public/wp-content/themes/idverde-child-theme/search.php"
/www/idverdenl_614/public/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/idverdenl_614/public/wp-includes/template-loader.php"
/www/idverdenl_614/public/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/idverdenl_614/public/wp-blog-header.php"