| Server IP : 77.50.203.18 / Your IP : 192.168.0.10 Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23 System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64 User : warsnews.ru ( 1001) PHP Version : 8.4.23 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/ifwar.ru/www/wp-content/plugins/clever-fox/inc/fiona-food/sections/ |
Upload File : |
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
if ( ! function_exists( 'fiona_blog_slider' ) ) :
function fiona_blog_slider() {
$fionablog_fionafood_slider_hs = get_theme_mod('slider_hs','1');
$fionablog_fionafood_slider_category_id = get_theme_mod('slider_category_id');
if($fionablog_fionafood_slider_hs == '1'){
?>
<section id="slider-section" class="slider-wrapper section-18">
<div class="main11 main-slider">
<?php
$fionablog_fionafood_args = array( 'post_type' => 'post', 'category_name' => $fionablog_fionafood_slider_category_id,'posts_per_page' => 3,'ignore_sticky_posts' => true ) ;
$fionablog_fionafood_qry_one = new WP_Query( $fionablog_fionafood_args );
if($fionablog_fionafood_qry_one->have_posts())
{
while($fionablog_fionafood_qry_one->have_posts()):$fionablog_fionafood_qry_one->the_post();
?>
<div class="item">
<?php do_action( 'fiona_blog_post_format_img_video' ); ?>
<div class="theme-slider">
<div class="theme-table">
<div class="theme-table-cell">
<div class="av-container">
<div class="theme-content text-left">
<ul class="post-categories"><li><a href="<?php echo esc_url(get_permalink()); ?>"><?php the_tags('','',''); ?></a></li></ul>
<?php
if ( is_single() ) :
the_title('<h1 class="post-title">', '</h1>' );
else:
the_title( sprintf( '<h1 class="post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' );
endif;
?>
<div class="author-sub-date">
<span class="author-name">
<?php $fionablog_fionafood_user = wp_get_current_user(); ?>
<a href="<?php echo esc_url(get_author_posts_url( get_the_author_meta( 'ID' ) ));?>" title="Author: <?php esc_html(the_author()); ?>" class="author meta-info hide-on-mobile"> <span class="author-image" style="background-image: url('<?php echo esc_url( get_avatar_url( $fionablog_fionafood_user->ID ) ); ?>');"></span><?php esc_html(the_author()); ?></a>
</span>
<span class="post-date">
<a href="<?php echo esc_url(get_month_link(get_post_time('Y'),get_post_time('m'))); ?>"><span><?php echo esc_html(get_the_date('j')); ?></span> <?php echo esc_html(get_the_date('M')); echo esc_html(get_the_date(' Y')); ?></a>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
endwhile;
}
?>
</div>
<div class="controls slider-nav" id="customize-controls" aria-label="Carousel Navigation" tabindex="0">
<button type="button" class="prev" data-controls="prev" aria-controls="customize" tabindex="-1"><i class="fa fa-arrow-left"></i></button>
<button type="button" class="next" data-controls="next" aria-controls="customize" tabindex="-1"><i class="fa fa-arrow-right"></i></button>
</div>
<div class="customize-tools">
<ul class="main-slider-thumbnails" id="customize-thumbnails">
<?php
$fionablog_fionafood_args = array( 'post_type' => 'post', 'category_name' => $fionablog_fionafood_slider_category_id,'posts_per_page' => 3,'ignore_sticky_posts' => true ) ;
$fionablog_fionafood_qry_two = new WP_Query( $fionablog_fionafood_args );
if($fionablog_fionafood_qry_two->have_posts())
{
while($fionablog_fionafood_qry_two->have_posts()):$fionablog_fionafood_qry_two->the_post();
?>
<li>
<?php do_action( 'fiona_blog_post_format_img_video' ); ?>
</li>
<?php
endwhile;
}
?>
</ul>
</div>
</section>
<?php
}} endif;
add_action('fiona_blog_slider', 'fiona_blog_slider');