<?php
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

class IDSC_Shortcodes {

    private $shortcode_dir;

    public function __construct() {
        $this->shortcode_dir = IDSC_PLUGIN_DIR . 'includes/shortcodes/';
        $this->load_shortcodes();
    }

    private function load_shortcodes() {
        $files = array(
            'alert.php',
            'testimonial.php',
            'card.php',
            'progress.php',
            'icon-list.php',
            'social-links.php',
            'accordion.php',
            'gallery.php',
            'tabs.php',
            'counter.php',
            'toc.php',
            'map.php',
        );

        foreach ( $files as $file ) {
            $path = $this->shortcode_dir . $file;
            if ( file_exists( $path ) ) {
                require_once $path;
            }
        }
    }
}
