Sindbad~EG File Manager

Current Path : /var/www/html/taet.readinessglobal.com/wp-content/plugins/tockify-events-calendar/
Upload File :
Current File : /var/www/html/taet.readinessglobal.com/wp-content/plugins/tockify-events-calendar/shortcode.php

<?php

// If this file is called directly, abort.
if (!defined('WPINC')) {
    die;
}

function tockify_func($atts)
{
    $atts = array_merge(array(
        'calendar' => 'spirited',
        'component' => 'calendar'
    ), $atts);

    $embedstring = "<br><div";
    foreach ($atts as $key => $value) {
        $embedstring .= " data-tockify-" . $key . "=\"" . $value . "\"";
    }
    $embedstring .= "></div>";
    $embedstring .= "<script type='text/javascript'>";
    $embedstring .= "if (window._tkf && window._tkf.loadDeclaredCalendars) {";
    $embedstring .= "window._tkf.loadDeclaredCalendars();}</script>";
    return $embedstring;
}

add_shortcode('tockify', 'tockify_func');


?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists