at path:
ROOT
/
wp-content
/
themes
/
kadu
/
inc
/
kadu-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
📄
kadu-functions.php
Save
<?php /** * Preloader * * @return [type] [return description] */ function kadu_preloader(){ $preloader_enable = cs_get_option('preloader_enable'); $kadu_custom_preloader = cs_get_option('kadu_custom_preloader'); $kadu_logo_preloader = cs_get_option('kadu_logo_preloader'); if ($preloader_enable == true): ?> <div id="preloader"> <div class="preloader-wrap"> <div class="loading"> <img class="logo" src="<?php if (!empty($kadu_logo_preloader['url'])) { echo esc_url($kadu_logo_preloader['url']); } else { echo esc_url(get_template_directory_uri()) . "/assets/img/logo.svg"; } ?>" alt="<?php if(!empty($kadu_logo_preloader['alt'])){ echo esc_attr($kadu_logo_preloader['alt']);}else{ esc_attr_e('Preloader', 'kadu');}?>"> <div class="icon-ani"> <img src="<?php if (!empty($kadu_custom_preloader['url'])) { echo esc_url($kadu_custom_preloader['url']); } ?>" alt="<?php if(!empty($kadu_custom_preloader['alt'])){ echo esc_attr($kadu_custom_preloader['alt']);}else{ esc_attr_e('Preloader', 'kadu');}?>"> </div> </div> </div> </div> <?php endif; } function kadu_scroll_up_btn(){ $scroll_up_btn = cs_get_option('scroll_up_btn'); if ($scroll_up_btn == true): ?> <div class="scroll-top"> <div class="scroll-top-wrap"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="injected-svg" data-src="https://static.elfsight.com/icons/app-back-to-top-arrow-3.svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="m7.997 10 3.515-3.79a.672.672 0 0 1 .89-.076l.086.075L16 10l-3 .001V18h-2v-7.999L7.997 10z"></path></svg> </div> </div> <?php endif; } /** * kadu Post Loop * * @return [type] [return description] */ function kadu_post_loop(){ if (have_posts()): /* Start the Loop */ while (have_posts()): the_post(); /* * Include the Post-Type-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Type name) and that will be used instead. */ get_template_part('template-parts/content', get_post_type()); endwhile; ?> <!-- pagination --> <div class="next-prev-btn pt-20 wow fadeInUp"> <?php kadu_pagination( ' <i class="fa-solid fa-angles-left feh-pagination-icon"></i>', '<i class="fa-solid fa-angles-right feh-pagination-icon"></i>', '', ['class' => ''] ); ?> </div> <?php else: get_template_part('template-parts/content', 'none'); endif; } /** * Single Post Loop * * @return [type] [return description] */ function kadu_single_post_loop(){ while (have_posts()): the_post(); get_template_part('template-parts/content', 'single'); endwhile; // End of the loop. } /** * Archive Loop * * @return [type] [return description] */ function kadu_post_archive_loop(){ if (have_posts()): /* Start the Loop */ while (have_posts()): the_post(); /* * Include the Post-Type-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Type name) and that will be used instead. */ get_template_part('template-parts/content', get_post_type()); endwhile; ?> <div class="next-prev-btn pt-20 wow fadeInUp"> <?php kadu_pagination( ' <i class="fa-solid fa-angles-left feh-pagination-icon"></i>', '<i class="fa-solid fa-angles-right feh-pagination-icon"></i>', '', ['class' => ''] ); ?> </div> <?php else: get_template_part('template-parts/content', 'none'); endif; } /** * Search Loop * * @return [type] [return description] */ function kadu_search_loop(){ if (have_posts()): /* Start the Loop */ while (have_posts()): the_post(); /** * Run the loop for the search to output the results. * If you want to overload this in a child theme then include a file * called content-search.php and that will be used instead. */ get_template_part('template-parts/content', 'search'); endwhile; ?> <div class="next-prev-btn pt-20 wow fadeInUp"> <?php kadu_pagination( ' <i class="fa-solid fa-angles-left feh-pagination-icon"></i>', '<i class="fa-solid fa-angles-right feh-pagination-icon"></i>', '', ['class' => ''] ); ?> </div> <?php else: get_template_part('template-parts/content', 'none'); endif; } /** * Page Loop * * @return [type] [return description] */ function kadu_page_loop(){ while (have_posts()): the_post(); get_template_part('template-parts/content', 'page'); // If comments are open or we have at least one comment, load up the comment template. if (comments_open() || get_comments_number()): comments_template(); endif; endwhile; // End of the loop. }