$calendar .= " small";
    }
    echo "<div class='chronosly-calendar-block'>";
    if (!$_REQUEST["shortcode"] or $_REQUEST["shortcode"] and $_REQUEST["before_events"]) {
        do_action("chronosly-before-events", $stilo);
    }
    echo "<div class='chronosly-content-block' style='" . $stilo . ";clear:both;'>";
    if ($_REQUEST["from"]) {
        echo "<div style='display:none'>\r\n            <div class='ch_from'>" . $_REQUEST["from"] . "</div>\r\n            <div class='ch_to'>" . $_REQUEST["to"] . "</div>\r\n            <input type='hidden' name='y' value='{$year}'/>\r\n            <input type='hidden' name='mo' value='{$month}'/>\r\n            <input type='hidden' name='w' value='{$week}'/>\r\n        </div>";
    }
    if (isset($Post_Type_Chronosly->template)) {
        $template = $Post_Type_Chronosly->template;
    } else {
        $template = new Chronosly_Templates();
    }
    $template->templates_tabs("dad1", 1);
    ?>


            <?php 
    $days = Post_Type_Chronosly_Calendar::get_days_by_date($year, $month, $week, $query, $repeated);
    $events = $repeats = array();
    $type = "year";
    $week_in_sunday = 0;
    if ($Post_Type_Chronosly->settings["chronosly_week_start"] == 1) {
        $week_in_sunday = 1;
    }
    if ($month) {
        $type = "month";
    } else {
        if ($week) {