<?php
/**
 * Sifency Post Type Frontend Template Shortcode Init
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

// Base directory for template shortcode
$base = trailingslashit( SIFENCY_ADDONS_DIR . 'classes/template-shortcode' );

/**
 * Files to load
 */
$files = [
	'class-cpt.php',
	'functions.php',
	'class-modal.php',
	'class-ajax.php',
	'section-tab-content.php',
	'frontend-helper.php',
];

/**
 * Require files safely
 */
foreach ( $files as $file ) {
	$path = $base . $file;
	if ( file_exists( $path ) ) {
		require_once $path;
	}
}
