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

// [ai_tools_directory] shortcode
add_shortcode( 'ai_tools_directory', 'aitd_directory_shortcode' );
function aitd_directory_shortcode( $atts ) {
    wp_enqueue_style( 'aitd-frontend' );
    wp_enqueue_script( 'aitd-frontend' );

    ob_start();
    include AITD_PATH . 'templates/directory.php';
    return ob_get_clean();
}
