at path:
ROOT
/
wp-content
/
themes
/
kadu
/
inc
/
cs-framework-functions.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
📄
cs-framework-functions.php
Save
<?php /** * * Get kadu Theme options * * @since 1.0.0 * @version 1.0.0 * */ if (!function_exists('cs_get_option')) { function cs_get_option($option = '', $default = null) { $options = get_option('kadu_theme_options'); // Attention: Set your unique id of the framework return (isset($options[$option])) ? $options[$option] : $default; } } /** * * Get get switcher option * for theme options * @since 1.0.0 * @version 1.0.0 * */ if (!function_exists('cs_get_switcher_option')) { function cs_get_switcher_option($option = '', $default = null) { $options = get_option('kadu_theme_options'); // Attention: Set your unique id of the framework $return_val = (isset($options[$option])) ? $options[$option] : $default; $return_val = (is_null($return_val) || '1' == $return_val) ? true : false; ; return $return_val; } } if (!function_exists('cs_switcher_option')) { function cs_switcher_option($option = '', $default = null) { $options = get_option('kadu_theme_options'); // Attention: Set your unique id of the framework $return_val = (isset($options[$option])) ? $options[$option] : $default; $return_val = ('1' == $return_val) ? true : false; ; return $return_val; } } /** * Function for get a metaboxes * * @param $prefix_key Required Meta unique slug * @param $meta_key Required Meta slug * @param $default Optional Set default value * @param $id Optional Set post id * * @return mixed */ function kadu_get_meta($prefix_key, $meta_key, $default = null, $id = '') { if (!$id) { $id = get_the_ID(); } $meta_boxes = get_post_meta($id, $prefix_key, true); return (isset($meta_boxes[$meta_key])) ? $meta_boxes[$meta_key] : $default; } /** * Site Logo */ function kadu_default_logo(){ $global_logo = cs_get_option('kadu_logo'); ?> <?php if (isset($global_logo['url']) && $global_logo['url']): ?> <a aria-label="brand logo d-block" class="ftc-header-1-logo-1 d-block" href="<?php echo esc_url(home_url('/')); ?>"> <img src="<?php echo esc_url($global_logo['url']); ?>" alt="<?php echo esc_attr(get_bloginfo()); ?>"> </a> <?php else: ?> <?php if (has_custom_logo()) { the_custom_logo(); } else { ?> <a aria-label="brand logo d-block" class="ftc-header-1-logo-1 d-block" href="<?php echo esc_url(home_url('/')); ?>"> <img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/img/logo.svg" alt="<?php esc_attr_e('Logo', 'kadu'); ?>"> </a> <?php } ?> <?php endif; ?> <?php }