at path:
ROOT
/
wp-content
/
themes
/
kadu
/
inc
/
kadu-helper-class.php
run:
R
W
Run
admin
DIR
2025-12-13 10:18:31
R
W
Run
breadcrumb-init.php
8.85 KB
2024-06-25 08:54:22
R
W
Run
Delete
Rename
class-wp-kadu-navwalker.php
21.13 KB
2024-05-28 06:29:50
R
W
Run
Delete
Rename
cs-framework-functions.php
2.75 KB
2024-07-04 04:06:28
R
W
Run
Delete
Rename
custom-header.php
1.8 KB
2024-05-28 06:29:50
R
W
Run
Delete
Rename
customizer.php
1.6 KB
2024-05-28 06:29:50
R
W
Run
Delete
Rename
dynamic-style.php
1.45 KB
2024-07-04 04:29:24
R
W
Run
Delete
Rename
jetpack.php
1.45 KB
2024-05-28 06:29:50
R
W
Run
Delete
Rename
kadu-functions.php
5.99 KB
2024-07-04 04:07:09
R
W
Run
Delete
Rename
kadu-helper-class.php
2.33 KB
2024-07-04 04:00:37
R
W
Run
Delete
Rename
remove_actions.php
1.41 KB
2023-09-30 10:46:10
R
W
Run
Delete
Rename
template-functions.php
17.14 KB
2024-06-23 05:40:36
R
W
Run
Delete
Rename
template-tags.php
3.69 KB
2024-06-23 12:25:22
R
W
Run
Delete
Rename
error_log
up
📄
kadu-helper-class.php
Save
<?php if (!defined('ABSPATH')) { exit; } /** * kadu Theme Helper * * * @class Kadu_Helper * @version 1.0 * @category Class */ if (!class_exists('Kadu_Helper')) { class Kadu_Helper{ /** * Header Template * * @return [type] [return description] */ public static function kadu_header_template() { $meta = get_post_meta(get_the_ID(), 'kadu_page_meta', true); $meta_header_option = isset($meta['meta_header_type']) ? $meta['meta_header_type'] : ''; $f_style = cs_get_option('header_style'); $header_style = ''; $meta_header = isset($meta['meta_header_style']) ? $meta['meta_header_style'] : ''; if ($meta_header_option == true || $meta_header_option == 1) { $header_style .= $meta_header; } else { $header_style .= $f_style; } if (class_exists('Kadu_Plugin_Helper') && $header_style && (get_post($header_style)) && in_array('elementor/elementor.php', apply_filters('active_plugins', get_option('active_plugins')))) { ?> <?php $elementor_instance = Elementor\Plugin::instance(); ?> <?php echo Kadu_Plugin_Helper::kadu_render_header($header_style); ?> <?php } else { get_template_part('template-parts/header/default', 'header'); } } /** * Footer Template * * @return [type] [return description] */ public static function kadu_footer_template() { $meta = get_post_meta(get_the_ID(), 'kadu_page_meta', true); $meta_footer_option = isset($meta['meta_footer_type']) ? $meta['meta_footer_type'] : ''; $f_style = cs_get_option('footer_style'); $footer_style = ''; $meta_footer = isset($meta['meta_footer_style']) ? $meta['meta_footer_style'] : ''; if ($meta_footer_option == true || $meta_footer_option == 1) { $footer_style .= $meta_footer; } else { $footer_style .= $f_style; } if (class_exists('Kadu_Plugin_Helper') && $footer_style && (get_post($footer_style)) && in_array('elementor/elementor.php', apply_filters('active_plugins', get_option('active_plugins')))) { ?> <?php $elementor_instance = Elementor\Plugin::instance(); ?> <?php echo Kadu_Plugin_Helper::kadu_render_footer($footer_style); ?> <?php } else { get_template_part('template-parts/footer/default', 'footer'); } } } // Instantiate theme new Kadu_Helper(); }