Tucalendi

<?php
function tucalendi_shortcode()
{
	return '<div id="tucalendi"></div>';
}
add_shortcode( 'tucalendi', 'tucalendi_shortcode' );


function tucalendi_scripts()
{
	global $post;
	if (
		is_admin() ||
		!isset( $post->post_content ) ||
		!has_shortcode( $post->post_content, 'tucalendi' )
	) return;

	wp_enqueue_script( 'tucalendi', plugin_dir_url( __FILE__ ) . 'tucalendi.js', [], \false, \true );
	wp_enqueue_style( 'tucalendi', plugin_dir_url( __FILE__ ) . 'tucalendi.css' );
}
add_action( 'wp_enqueue_scripts', 'tucalendi_scripts', 100 );