HEX
Server: Apache/2
System: Linux vpslll9m.sdns.vn 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
User: thuexe247c (1044)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/thuexe247c/public_html/wp-content/plugins/sliderkits/templates/accordion-slider.php
<?php
/**
 * The accordion slider template
 * If you want to override this template by your custom template in the theme folder,
 * just create the 'sliderkits' folder in the theme folder,
 * then, copy this file to sliderkits folder.
 * @version 1.0.0
 * @package SliderKits
 */

$slides           =   $sk_data->slides;
?>
<?php if( $slides ) : ?>
<div class="sk-vertical-accordion">
  <ul>
    <?php foreach( $slides as $item ):
      $target = $item['link']['is_external'] ? 'target="_blank"' : '';
      $picture_url = $item['picture']['url'];
    ?>
    <li class="elementor-repeater-item-<?php echo esc_attr( $item['_id'] ); ?>" <?php if( $picture_url !== '' ): ?>style="background-image:url(<?php echo esc_url( $picture_url );?>);"<?php endif;?>>
      <div class="sk-item__container">
        <?php if( $item['link']['url'] !== '' ): ?>
        <a href="<?php echo esc_url( $item['link']['url'] );?>" <?php echo esc_attr( $target );?>>
        <?php endif; ?>

          <?php if( $item['title'] ): ?>
          <h2 class="sk-heading" data-short="<?php echo esc_attr( $item['short_title'] );?>"><span><?php echo wp_kses_post( $item['title'] ); ?></span></h2>
          <?php endif;?>

          <?php if( $item['paragraph'] ): ?>
          <p class="sk-content"><?php echo wp_kses_post( $item['paragraph'] ); ?></p>
          <?php endif;?>

        <?php if( $item['link']['url'] !== '' ): ?>
        </a>
        <?php endif; ?>
      </div>
      <div class="sk-overlay"></div>
    </li>
    <?php endforeach;?>
  </ul>
</div>
<?php endif;?>