at path:
ROOT
/
wp-content
/
plugins
/
kadu-plugin
/
inc
/
class-template.php
run:
R
W
Run
custom-widget
DIR
2025-12-13 10:18:27
R
W
Run
options
DIR
2025-12-13 10:18:27
R
W
Run
post-type
DIR
2025-12-13 10:18:27
R
W
Run
class-template.php
1.35 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
csf-custom-icon.php
6 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
helper.php
10.68 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
kadu-icon.php
1.02 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
kadu-plugin-helper.php
3.08 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
error_log
up
📄
class-template.php
Save
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } /** * kadu Theme Helper * * * @class kadu_Helper * @version 1.0 * @category Class * @author Raziul */ if ( ! class_exists( 'kadu_Helper' ) ) { class kadu_Helper { /** * [header Template Get] * * @return [type] [return description] */ public static function kadu_get_header_type(){ $header = ['' => esc_html__( 'Default', 'kadu-plugin' ) ]; $headers = get_posts( [ 'posts_per_page' => - 1, 'post_type' => 'kadu_template', 'orderby' => 'name', 'order' => 'ASC', 'meta_query' => array( array( 'key' => 'kadu_template_type', 'value' => 'tf_header_key', 'compare' => '=' ) ) ] ); foreach ($headers as $value) { $header[$value->ID] = $value->post_title; } return $header; } /** * [Render Header Template] * * @param [type] $header_style [$header_style description] * * @return [type] [return description] */ public static function kadu_render_header($header_style){ $elementor_instance = Elementor\Plugin::instance(); return $elementor_instance->frontend->get_builder_content_for_display( $header_style ); } } // Instantiate theme new kadu_Helper(); }