??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/koilplta.co.uk/wp-content/themes/wise-news/inc/frontpage-sections/banner.php
⬅ Kembali
<?php
/**
* Frontpage Banner Section.
*
* @package Wise News
*/
// Banner Section.
$banner_section = get_theme_mod( 'wise_news_banner_section_enable', false );
if ( false === $banner_section ) {
return;
}
$banner_slider_content_ids = $banner_posts_content_ids = array();
$banner_slider_content_type = get_theme_mod( 'wise_news_banner_slider_content_type', 'post' );
$banner_posts_content_type = get_theme_mod( 'wise_news_banner_posts_content_type', 'post' );
if ( $banner_slider_content_type === 'post' ) {
for ( $i = 1; $i <= 3; $i++ ) {
$banner_slider_content_ids[] = get_theme_mod( 'wise_news_banner_slider_post_' . $i );
}
$banner_slider_args = array(
'post_type' => 'post',
'posts_per_page' => absint( 3 ),
'ignore_sticky_posts' => true,
);
if ( ! empty( array_filter( $banner_slider_content_ids ) ) ) {
$banner_slider_args['post__in'] = array_filter( $banner_slider_content_ids );
$banner_slider_args['orderby'] = 'post__in';
} else {
$banner_slider_args['orderby'] = 'date';
}
} else {
$cat_content_id = get_theme_mod( 'wise_news_banner_slider_category' );
$banner_slider_args = array(
'cat' => $cat_content_id,
'posts_per_page' => absint( 3 ),
);
}
if ( $banner_posts_content_type === 'post' ) {
for ( $i = 1; $i <= 2; $i++ ) {
$banner_posts_content_ids[] = get_theme_mod( 'wise_news_banner_posts_post_' . $i );
}
$banner_posts_args = array(
'post_type' => 'post',
'posts_per_page' => absint( 2 ),
'ignore_sticky_posts' => true,
);
if ( ! empty( array_filter( $banner_posts_content_ids ) ) ) {
$banner_posts_args['post__in'] = array_filter( $banner_posts_content_ids );
$banner_posts_args['orderby'] = 'post__in';
} else {
$banner_posts_args['orderby'] = 'date';
}
} else {
$cat_content_id = get_theme_mod( 'wise_news_banner_posts_category' );
$banner_posts_args = array(
'cat' => $cat_content_id,
'posts_per_page' => absint( 2 ),
);
}
?>
<section class="banner-section banner-layout-2">
<div class="site-container-width">
<div class="banner-section-wrapper">
<?php
require get_template_directory() . '/inc/frontpage-sections/banner/banner-slider.php';
require get_template_directory() . '/inc/frontpage-sections/banner/banner-posts.php';
?>
</div>
</div>
</section>
Nama
Tipe
Ukuran
Diubah
Aksi
📁 banner
dir
—
2026-06-07 16:03
📁 widgets-area
dir
—
2026-06-07 16:03
📄 .htaccess
htaccess
1.1 KB
2026-06-10 13:06
🐘 banner.php
php
2.4 KB
2026-05-26 02:22
🐘 sections.php
php
290 B
2026-05-26 02:22