/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_medias.php
$size = '2048x2048';
}
}
$html = '';
//SUPPORT GIF
$mime = get_post_mime_type($attachment_id);
if (strpos($mime, 'gif') !== false) {
$size = 'full';
}
$image = wp_get_attachment_image_src($attachment_id, $size, $icon);
if ($image) {
if (strpos($mime, 'svg') !== false) {
$html = file_get_contents(get_attached_file($attachment_id));
$alt = trim(strip_tags(get_post_meta($attachment_id, '_wp_attachment_image_alt', true)));
$dom = new DOMDocument;
$dom->loadXML($html);
$nodes = $dom->getElementsByTagName('svg');
$title = $dom->createElement('title', $alt);
$firstSibling = $nodes[0]->firstChild;
$nodes[0]->insertBefore($title, $firstSibling);
if ($icon) {
$nodes[0]->setAttribute('role', 'icon');
} else {
$nodes[0]->setAttribute('role', 'img');
}
if ($attr) {
foreach ($attr as $name => $value) {
$nodes[0]->setAttribute($name, $value);
}
}
$xpath = new DOMXPath($dom);
$matching_elements = $xpath->query("//*[contains(@class, 'st')]");
Arguments
"Class "DOMDocument" not found"
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/parts/sections/header.php
$drawer_id = uniqid();
?>
<header is="walt-main-header" id="header" class="site_header <?= $show_anbar ? 'an_bar' : '' ?>" role="banner">
<!-- Announcement bar -->
<div class="block bg-[var(--section-bg-color)]">
<?= $announce_bar ?>
<div class="wrapper">
<div class="header-container">
<!-- Logo -->
<div class="header-logo">
<a href="<?= get_home_url() ?>">
<?php if ($top['logos']['main']['id']) {
echo walt_get_media($top['logos']['main']['id'], 'medium', '', ['class' => 'logo-desktop']);
} ?>
<?php if ($top['logos']['minified']['id']) {
echo walt_get_media($top['logos']['minified']['id'], 'medium', '', ['class' => 'logo-desktop-minified']);
} ?>
<?php if ($top['logos']['responsive']['id']) {
echo walt_get_media($top['logos']['responsive']['id'], 'medium', '', ['class' => 'logo-responsive']);
} ?>
</a>
</div>
<!-- Navigation -->
<div class="header-navigation">
<div class="header-desktop">
<walt-modal-open modal-id="search-modal" class="search-toggle">
<i class="fa-sharp fa-solid fa-magnifying-glass"></i>
</walt-modal-open>
<?= get_component_part('menu/main-menu') ?>
</div>
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_parts.php
$cache_args[$key] = $value;
} else if (is_object($value) && method_exists($value, 'get_id')) {
$cache_args[$key] = call_user_method('get_id', $value);
}
}
if (($cache = wp_cache_get($file, serialize($cache_args))) !== false) {
if (!empty($template_args['return']))
return $cache;
echo $cache;
return;
}
}
$file_handle = $file;
do_action('start_operation', 'hm_template_part::' . $file_handle);
if (file_exists(get_stylesheet_directory() . '/' . $file . '.php'))
$file = get_stylesheet_directory() . '/' . $file . '.php';
elseif (file_exists(get_template_directory() . '/' . $file . '.php'))
$file = get_template_directory() . '/' . $file . '.php';
ob_start();
$return = require($file);
$data = ob_get_clean();
do_action('end_operation', 'hm_template_part::' . $file_handle);
if ($cache_args) {
wp_cache_set($file, $data, serialize($cache_args), 3600);
}
if (!empty($template_args['return']))
if ($return === false)
return false;
else
return $data;
echo $data;
}
// =============================================================================
// GET CUSTOM PART
// =============================================================================
function get_custom_part($path_part, $params = [])
{
$path = get_template_directory() . '/parts/';
Arguments
"/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/parts/sections/header.php"
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_parts.php
}
if (!empty($template_args['return']))
if ($return === false)
return false;
else
return $data;
echo $data;
}
// =============================================================================
// GET CUSTOM PART
// =============================================================================
function get_custom_part($path_part, $params = [])
{
$path = get_template_directory() . '/parts/';
$path .= $path_part;
if (file_exists($path)) {
$template = walt_template_part($path, [
'params' => $params,
'return' => true
]);
return $template;
}
return false;
}
// =============================================================================
// CUSTOM PART COMPONENT CALL
// =============================================================================
function get_component_part($component, $params = [])
{
$path = 'components/' . $component . '.php';
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_parts.php
$path = 'components/' . $component . '.php';
return get_custom_part($path, $params);
}
// =============================================================================
// CUSTOM PART SECTION CALL
// =============================================================================
function get_section_part($section, $params = [])
{
$path = 'sections/' . $section . '.php';
//wrapper template section
return get_custom_part($path, $params);
}
// =============================================================================
// CUSTOM CARD PART
// =============================================================================
function get_card_part($post_type, $params = [])
{
$path = 'cards/card-' . $post_type . '.php';
return get_custom_part($path, $params);
}
// =============================================================================
// CUSTOM ARCHIVE PART
// =============================================================================
function get_archive_part($post_type, $params = [])
{
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/header.php
$wishlist_popup_add = get_field('wishlist_popup_add', 'option');
$wishlist_popup_delete = get_field('wishlist_popup_delete', 'option');
?>
<script>
window.WISHLIST_MODAL_TEXTS = {
ADD_TITLE: "<?= $wishlist_popup_add['title'] ? $wishlist_popup_add['title'] : ' ' ?>",
ADD_TEXT: "<?= $wishlist_popup_add['text'] ? $wishlist_popup_add['text'] : ' ' ?>",
DELETE_TITLE: "<?= $wishlist_popup_delete['title'] ? $wishlist_popup_delete['title'] : ' ' ?>",
DELETE_TEXT: "<?= $wishlist_popup_delete['text'] ? $wishlist_popup_delete['text'] : ' ' ?>",
}
</script>
</head>
<body <?php body_class(); ?>>
<div id="page" class="<?= is_mobile() ? 'mobile' : 'desktop' ?>">
<?= get_section_part('header', []); ?>
<div id="content" class="site_content">
/home/eyth6418/public_html/prod/paltini/wp-includes/template.php
extract( $wp_query->query_vars, EXTR_SKIP );
}
if ( isset( $s ) ) {
$s = esc_attr( $s ); // @phpstan-ignore variable.undefined (It's extracted from query vars.)
}
/**
* 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 );
}
/**
* Checks whether the template should be output buffered for enhancement.
*
* By default, an output buffer is only started if a {@see 'wp_template_enhancement_output_buffer'} filter has been
Arguments
"/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/header.php"
/home/eyth6418/public_html/prod/paltini/wp-includes/template.php
continue;
}
if ( file_exists( $wp_stylesheet_path . '/' . $template_name ) ) {
$candidate = $wp_stylesheet_path . '/' . $template_name;
} elseif ( $is_child_theme && file_exists( $wp_template_path . '/' . $template_name ) ) {
$candidate = $wp_template_path . '/' . $template_name;
} elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
$candidate = ABSPATH . WPINC . '/theme-compat/' . $template_name;
} else {
continue;
}
if ( _wp_is_template_path_allowed( $candidate ) ) {
$located = $candidate;
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.
/home/eyth6418/public_html/prod/paltini/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.
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/template-contact.php
// Galeries
$galeries_args = array('post_type' => 'galerie', 'fields' => 'ids', 'orderby' => 'name', 'order' => 'ASC', 'posts_per_page' => -1);
$galeries_ids = get_posts($galeries_args);
// GET
if (isset($_GET['g'])) {
$queried_galerie = intval($_GET['g']);
} else {
$queried_galerie = null;
}
?>
<!-- Header -->
<?php get_header(); ?>
<div id="container_page" class="container-contact-page">
<div class="wrapper-default">
<!-- Hero -->
<div class="contact-page-hero">
<div class="inner global-content">
<?php if ($hero) {
echo $hero;
} else {
echo '<h1>' . get_the_title() . '</h1>';
} ?>
</div>
</div>
<!-- Content -->
<div class="contact-page-accordion">
<?php if ($galeries_ids) : ?>
/home/eyth6418/public_html/prod/paltini/wp-includes/template-loader.php
*/
$template = apply_filters( 'template_include', $template );
$is_stringy = is_string( $template ) || ( is_object( $template ) && method_exists( $template, '__toString' ) );
$template = $is_stringy ? realpath( (string) $template ) : null;
if (
is_string( $template ) &&
( str_ends_with( $template, '.php' ) || str_ends_with( $template, '.html' ) ) &&
is_file( $template ) &&
is_readable( $template )
) {
/**
* Fires immediately before including the template.
*
* @since 6.9.0
*
* @param string $template The path of the template about to be included.
*/
do_action( 'wp_before_include_template', $template );
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
Arguments
"/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/template-contact.php"
/home/eyth6418/public_html/prod/paltini/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/eyth6418/public_html/prod/paltini/wp-includes/template-loader.php"
/home/eyth6418/public_html/prod/paltini/index.php
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
Arguments
"/home/eyth6418/public_html/prod/paltini/wp-blog-header.php"