Plugin Directory

Changeset 1464000


Ignore:
Timestamp:
07/30/2016 07:17:56 PM (10 years ago)
Author:
heimsveld
Message:

release 2.4.8

Location:
chronosly-events-calendar/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • chronosly-events-calendar/trunk/README.txt

    r1452263 r1464000  
    66Requires at least: 3.1
    77Tested up to:  4.5.3
    8 Stable tag: 2.4.7
     8Stable tag: 2.4.8
    99License: GPLv2
    1010
  • chronosly-events-calendar/trunk/README.txt~

    r1452263 r1464000  
    55Tags: calendar, calendars, event plugin, events plugin, event plugins, events plugins, event calendar, event calendars, events calendar, events calendars, event list, events list, event lists, events lists, online calendar, organizer, organizers, place, places, recurring events, responsive calendar, calendar shortcode, event shortcode, event calendar AJAX, events calendar AJAX, event calendars AJAX, events calendars AJAX, events calendars google map, event calendar google maps, events calendar google maps, event calendars google maps, events calendars google maps, event gmap, events gmap, event management, events management, event manager, events manager, event organizer, events organizer, event page, events page, event widget, events widget, kalender, kalenders, evento, eventos, calendario, calendarios, schedule, scheduling
    66Requires at least: 3.1
    7 Tested up to:  4.5.1
    8 Stable tag: 2.4.6
     7Tested up to:  4.6.1
     8Stable tag: 2.4.8
    99License: GPLv2
    1010
  • chronosly-events-calendar/trunk/chronosly.php

    r1452263 r1464000  
    44 * Plugin URI: https://www.chronosly.com
    55 * Description: Chronosly is one of the plugins you have always dreamt about. Designed to suit all users (basic, designers, and software developers). Choose your template and you are ready to publish your events. Install addons to enhance the preset plugin features. You can get a wide selection of templates and addons in our marketplace
    6  * Version: 2.4.7
     6 * Version: 2.4.8
    77 * Author: Chronosly
    88 * Author URI: https://www.chronosly.com
     
    2626define('CHRONOSLY_TEMPLATES_URL',  plugins_url()."/chronosly-templates"); //path para incluir scripts o css
    2727define('CHRONOSLY_DEBUG', false); //debug mode
    28 define('CHRONOSLY_VERSION', "2.4.7"); //debug mode
     28define('CHRONOSLY_VERSION', "2.4.8"); //debug mode
    2929define('CHRONOSLY_ADMIN_INTERFACE', 1);  //Todo: hacer diferentes interficies de admin simple o varios event
    3030define('CHRONOSLY_ADMIN_MODALITY', 1);  //Todo: hacer diferentes modalidades segun la tematica
  • chronosly-events-calendar/trunk/classes/chronosly_dad_elements.php

    r1452263 r1464000  
    51785178            }
    51795179            if($vars->metas['tickets_vars'][$value]["sale"] && $vars->metas['tickets_vars'][$value]["sales-price"]) {
    5180                 if($vars->metas['tickets_vars'][$value]["currency"]) $currency = $vars->metas['tickets_vars'][$value]["currency"];
     5180                if($vars->metas['tickets_vars'][$value]["currency"]) $currency = urldecode($vars->metas['tickets_vars'][$value]["currency"]);
    51815181
    51825182                $porc = " <span class='sale-discount' style='background-color: #sale-color'>".round((($vars->metas['tickets_vars'][$value]["sales-price"]-$vars->metas['tickets_vars'][$value]["price"])/$vars->metas['tickets_vars'][$value]["price"])*100)."%</span>";
  • chronosly-events-calendar/trunk/classes/chronosly_widgets.php

    r1301303 r1464000  
    1919            if ( ! empty( $title ) ) echo $args['before_title'] . $title . $args['after_title'];
    2020            if($instance['type'] == "calendar" and  !$instance['year'] and  !$instance['month'] and  !$instance['week']){
    21                 $instance['month'] = date("m");
     21                $instance['month'] = date("n");
    2222            }
    2323            foreach($instance as $k=>$v){
  • chronosly-events-calendar/trunk/post-types/post_type_chronosly.php

    r1452263 r1464000  
    765765            if($_REQUEST["ch-price-max"]) $args["post_meta_price_max"] = $_REQUEST["ch-price-max"];
    766766             if(has_action( 'pre_get_posts', array("Post_Type_Chronosly",'add_custom_post_vars') )) remove_action( 'pre_get_posts', array("Post_Type_Chronosly",'add_custom_post_vars') );
     767           if(isset( $args["p"])) unset( $args["p"]);
    767768            $query2 = new WP_Query( $args );
    768769
     
    10791080                            $pos = Post_Type_Chronosly::get_event_position(get_the_title(),$meta, get_the_ID(), $start);
    10801081                            if(Post_Type_Chronosly::filter(get_the_ID())) {
    1081                                 $elements[$pos] = get_the_ID();
     1082                                $elements["$pos"] = get_the_ID();
    10821083                            }
    10831084                        } else {
     
    10901091                        $pos = Post_Type_Chronosly::get_event_position(get_the_title(),$meta, get_the_ID(), $start);
    10911092                        if(Post_Type_Chronosly::filter(get_the_ID())) {
    1092                             $elements[$pos] = get_the_ID();
     1093                            $elements["$pos"] = get_the_ID();
    10931094                        }
    10941095                    }
     
    11541155                                $pos = Post_Type_Chronosly::get_event_position($name,$meta, $id, $from, date("H", $from), date("i", $from));
    11551156                                // echo $pos." ";
    1156                                 $elements[$pos]= array("id" => $id,"start" => $from, "end" => $to , "h" => date("H", $from), "m"=> date("i", $from), "eh" => date("H", $to), "em"=> date("i", $to));
     1157                                $elements["$pos"]= array("id" => $id,"start" => $from, "end" => $to , "h" => date("H", $from), "m"=> date("i", $from), "eh" => date("H", $to), "em"=> date("i", $to));
    11571158                            }
    11581159                         
     
    12251226                            if($start >= $start_min and $start <= $end_top){
    12261227                                $pos = Post_Type_Chronosly::get_event_position($name,$meta, $id, $start);
    1227                                 if(Post_Type_Chronosly::filter($id)) $elements[$pos]= array("id" => $id, "start" => $start, "end" => $end);
     1228                                if(Post_Type_Chronosly::filter($id)) $elements["$pos"]= array("id" => $id, "start" => $start, "end" => $end);
    12281229                            }
    12291230                            $start = $end;//restamos un dia porque si no el ultimo dia no se cuenta al salir del bucle
     
    12401241                            if($start >= $start_min  and $start <= $end_top){
    12411242                                $pos = Post_Type_Chronosly::get_event_position($name,$meta, $id, $start);
    1242                                 if(Post_Type_Chronosly::filter($id)) $elements[$pos]= array("id" => $id, "start" => $start, "end" => $end);
     1243                                if(Post_Type_Chronosly::filter($id)) $elements["$pos"]= array("id" => $id, "start" => $start, "end" => $end);
    12431244                            }
    12441245                            $start = $end;//restamos un dia porque si no el ultimo dia no se cuenta al salir del bucle
     
    12561257                            if($start >= $start_min  and $start <= $end_top){
    12571258                                $pos = Post_Type_Chronosly::get_event_position($name,$meta, $id, $start);
    1258                                 if(Post_Type_Chronosly::filter($id)) $elements[$pos]= array("id" => $id, "start" => $start, "end" => $end);
     1259                                if(Post_Type_Chronosly::filter($id)) $elements["$pos"]= array("id" => $id, "start" => $start, "end" => $end);
    12591260                            }
    12601261                            $start = $end;//restamos un dia porque si no el ultimo dia no se cuenta al salir del bucle
     
    12711272                            if($start >= $start_min  and $start <= $end_top){
    12721273                                $pos = Post_Type_Chronosly::get_event_position($name,$meta, $id, $start);
    1273                                 if(Post_Type_Chronosly::filter($id)) $elements[$pos]= array("id" => $id, "start" => $start, "end" => $end);
     1274                                if(Post_Type_Chronosly::filter($id)) $elements["$pos"]= array("id" => $id, "start" => $start, "end" => $end);
    12741275                            }
    12751276                            $start = $end;//restamos un dia porque si no el ultimo dia no se cuenta al salir del bucle
  • chronosly-events-calendar/trunk/post-types/post_type_chronosly_calendar.php

    r1452263 r1464000  
    203203            if(isset($meta["ev-from-m"][0]) and $meta["ev-from-m"][0] != "00") $pos += $meta["ev-from-m"][0]*10000000000;
    204204            if($settings["chronosly_featured_first"] and (!isset($meta["featured"][0]) or $meta["featured"][0] != 1)) $pos += 10000000000000;
     205            //echo $id." ".$pos."<br/>";
    205206            return $pos;
    206207        }
    207208
    208        public static function get_array_days_by_query($year, $month, $week, $query){
     209        public static function get_array_days_by_query($year, $month, $week, $query){
    209210            $elements = array("ids"=>array(), "days"=>array());
    210211            $settings =  unserialize(get_option("chronosly-settings"));
     
    234235                            $end =  strtotime($meta["ev-to"][0]);
    235236                        }//si no empezamos en el primer dia del año
    236                         else $end = strtotime("31-12-".$year+1)-1;
    237                         $end_top = strtotime("31-12-".$year+1)-1;
     237                        else $end = strtotime("31-12-".($year+1))-1;
     238                        $end_top = strtotime("31-12-".($year+1))-1;
    238239                        if($settings["chronosly_week_start"] == 1) {
    239240                            //$start -= (60*60*24);
     
    245246                        $pos = Post_Type_Chronosly_Calendar::get_event_position_by_hour(get_the_title(), $meta, get_the_ID());
    246247                        do{
    247                             if($settings["hide_past_on_calendar"] != 1 or $start>= strtotime(date("Y-m-d"))) {$elements["days"][date('Y-m-d',$start)][$pos]= get_the_ID();}
     248                            if($settings["hide_past_on_calendar"] != 1 or $start>= strtotime(date("Y-m-d"))) {$elements["days"][date('Y-m-d',$start)]["$pos"]= get_the_ID();}
    248249                            $start = strtotime("+ 1 day",$start);
     250                            // echo date('Y-m-d',$start)." $start $end $endHours $end_top<br/>";
    249251                        }while ( $start<=$end and ($endHours < $end_top or date('Y-m-d',$start) != date('Y-m-d',$endHours)));
    250252
     
    305307                        $endHours = $end + ($meta["ev-to-h"][0]*60*60) + ($meta["ev-to-m"][0]*60);
    306308                        do{
    307                             $elements["days"][date('Y-m-d',$start)][$pos]= get_the_ID();
     309                            $elements["days"][date('Y-m-d',$start)]["$pos"]= get_the_ID();
    308310                            $start = strtotime("+ 1 day",$start);
    309311                        }while ( $start<=$end and ($endHours < $end_top or date('Y-m-d',$start) != date('Y-m-d',$endHours))  );
     
    355357                        $endHours = $end + ($meta["ev-to-h"][0]*60*60) + ($meta["ev-to-m"][0]*60);
    356358                        do{
    357                             $elements["days"][date('Y-m-d',$start)][$pos]= get_the_ID();
     359                            $elements["days"][date('Y-m-d',$start)]["$pos"]= get_the_ID();
    358360                            $start = strtotime("+ 1 day",$start);
    359361                        }while ( $start<=$end and ($endHours < $end_top or date('Y-m-d',$start) != date('Y-m-d',$endHours)));
     
    454456                if(!$month and !$week){
    455457                    if($repeated)  $start_min = strtotime("01-01-".$year);//start building array
    456                     $end_top = strtotime("01-01-".$year+1)-1;//limit of repeats per year
     458                    $end_top = strtotime("01-01-".($year+1))-1;//limit of repeats per year
    457459                    if(isset($meta["ev-repeat-option"][0]) and $meta["ev-repeat-option"][0] == "until" and
    458460                        isset($meta["ev-until"][0]) and strtotime($meta["ev-until"][0]) < $end_top){
    459                         $end_top = strtotime($meta["ev-until"][0]);
     461                        $end_top = strtotime($meta["ev-until"][0])+(60*60*24);
    460462                    }
    461463                } else if($week){
     
    469471                    if(isset($meta["ev-repeat-option"][0]) and $meta["ev-repeat-option"][0] == "until" and
    470472                        isset($meta["ev-until"][0]) and strtotime($meta["ev-until"][0]) < $end_top){
    471                         $end_top = strtotime($meta["ev-until"][0]);
     473                        $end_top = strtotime($meta["ev-until"][0])+(60*60*24);
    472474                    }
    473475                    // if($settings["chronosly_week_start"] == 1) {
     
    480482                    if(isset($meta["ev-repeat-option"][0]) and $meta["ev-repeat-option"][0] == "until" and
    481483                        isset($meta["ev-until"][0]) and strtotime($meta["ev-until"][0]) < $end_top){
    482                         $end_top = strtotime($meta["ev-until"][0]);
     484                        $end_top = strtotime($meta["ev-until"][0])+(60*60*24);
    483485                    }
    484486                }
     
    506508                            --$count;
    507509                            while($start <= $end and $start <= $end_top){//rellenamos los dias de este tramo
    508                                 if($start >= $start_min and ($endHours < $end_top or date('Y-m-d',$start) != date('Y-m-d',$endHours)) and ($settings["hide_past_on_calendar"] != 1 or $start>= strtotime(date("Y-m-d")))) $elements["days"][date('Y-m-d',$start)][$pos]= array("id" => $id, "start" => $start1, "end" => $end );
     510                                if($start >= $start_min and ($endHours < $end_top or date('Y-m-d',$start) != date('Y-m-d',$endHours)) and ($settings["hide_past_on_calendar"] != 1 or $start>= strtotime(date("Y-m-d")))) $elements["days"][date('Y-m-d',$start)]["$pos"]= array("id" => $id, "start" => $start1, "end" => $end );
    509511                                $start = strtotime("+ 1 day",$start);
    510512                                //echo date('Y-m-d',$start)." ".date('Y-m-d',$end)."<br/>";
     
    528530                            //echo date('Y-m-d',$start)." ".date('Y-m-d',$end)."<br/>";
    529531                            while($start <= $end and $start <= $end_top){//rellenamos los dias de este tramo
    530                                 if((!$repeated or $start >= $start_min) and ($endHours < $end_top or date('Y-m-d',$start) != date('Y-m-d',$endHours)) and ($settings["hide_past_on_calendar"] != 1 or $start>= strtotime(date("Y-m-d")))) $elements["days"][date('Y-m-d',$start)][$pos]= array("id" => $id, "start" => $start1, "end" => $end );
     532                                if((!$repeated or $start >= $start_min) and ($endHours < $end_top or date('Y-m-d',$start) != date('Y-m-d',$endHours)) and ($settings["hide_past_on_calendar"] != 1 or $start>= strtotime(date("Y-m-d")))) $elements["days"][date('Y-m-d',$start)]["$pos"]= array("id" => $id, "start" => $start1, "end" => $end );
    531533                               // echo $id." ".date('Y-m-d H:i',$start)." ".date('Y-m-d H:i',$endHours)." ".date('Y-m-d H:i',$end_top)."<br/>";
    532534
     
    550552                            //echo date('Y-m-d',$start)." ".date('Y-m-d',$end)."<br/>";
    551553                            while($start <= $end and $start <= $end_top){//rellenamos los dias de este tramo
    552                                 if((!$repeated or $start >= $start_min) and ($endHours < $end_top or date('Y-m-d',$start) != date('Y-m-d',$endHours)) and ($settings["hide_past_on_calendar"] != 1 or $start>= strtotime(date("Y-m-d")))) $elements["days"][date('Y-m-d',$start)][$pos]= array("id" => $id, "start" => $start1, "end" => $end );
     554                                if((!$repeated or $start >= $start_min) and ($endHours < $end_top or date('Y-m-d',$start) != date('Y-m-d',$endHours)) and ($settings["hide_past_on_calendar"] != 1 or $start>= strtotime(date("Y-m-d")))) $elements["days"][date('Y-m-d',$start)]["$pos"]= array("id" => $id, "start" => $start1, "end" => $end );
    553555                                // echo $id." ".date('Y-m-d H:i',$start)." ".date('Y-m-d H:i',$endHours)." ".date('Y-m-d H:i',$end_top)."<br/>";
    554556                                $start = strtotime("+ 1 day",$start);
     
    569571                            //echo date('Y-m-d',$start)." ".date('Y-m-d',$end)."<br/>";
    570572                            while($start <= $end and $start <= $end_top ){//rellenamos los dias de este tramo
    571                                 if((!$repeated or $start >= $start_min) and ($endHours < $end_top or date('Y-m-d',$start) != date('Y-m-d',$endHours)) and ($settings["hide_past_on_calendar"] != 1 or $start>= strtotime(date("Y-m-d")))) $elements["days"][date('Y-m-d',$start)][$pos]= array("id" => $id, "start" => $start1, "end" => $end );
     573                                if((!$repeated or $start >= $start_min) and ($endHours < $end_top or date('Y-m-d',$start) != date('Y-m-d',$endHours)) and ($settings["hide_past_on_calendar"] != 1 or $start>= strtotime(date("Y-m-d")))) $elements["days"][date('Y-m-d',$start)]["$pos"]= array("id" => $id, "start" => $start1, "end" => $end );
    572574                                $start = strtotime("+ 1 day",$start);
    573575                                //echo date('Y-m-d',$start)." ".date('Y-m-d',$end)."<br/>";
     
    581583            return $elements;
    582584        }
    583        
     585           
    584586        public static function seasons($eventos, $year, $month, $week, $start, $end, $id, $elements, $tickets){
    585587            $settings =  unserialize(get_option("chronosly-settings"));
     
    652654                        do{
    653655                            if($settings["hide_past_on_calendar"] != 1 or $start>= strtotime(date("Y-m-d"))) {
    654                                 $elements["days"][date('Y-m-d',$start)][$pos]= array("id" => $id,"start" => $start_ini, "end" => $end , "h" => date("H", $from), "m"=> date("i", $from), "eh" => date("H", $to), "em"=> date("i", $to));}
     656                                $elements["days"][date('Y-m-d',$start)]["$pos"]= array("id" => $id,"start" => $start_ini, "end" => $end , "h" => date("H", $from), "m"=> date("i", $from), "eh" => date("H", $to), "em"=> date("i", $to));}
    655657                            $start = strtotime("+ 1 day",$start);
    656658                        }while ( $start<=$end );
     
    697699                        do{
    698700                            // echo date('Y-m-d',$start)." ";
    699                             $elements["days"][date('Y-m-d',$start)][$pos]= array("id" => $id,"start" => $start_ini, "end" => $end , "h" => date("H", $from), "m"=> date("i", $from), "eh" => date("H", $to), "em"=> date("i", $to));
     701                            $elements["days"][date('Y-m-d',$start)]["$pos"]= array("id" => $id,"start" => $start_ini, "end" => $end , "h" => date("H", $from), "m"=> date("i", $from), "eh" => date("H", $to), "em"=> date("i", $to));
    700702                            $start = strtotime("+ 1 day",$start);
    701703                        }while ( $start<=$end );
     
    726728
    727729                        do{
    728                             $elements["days"][date('Y-m-d',$start)][$pos]=array("id" => $id,"start" => $start_ini, "end" => $end , "h" => date("H", $from), "m"=> date("i", $from), "eh" => date("H", $to), "em"=> date("i", $to));
     730                            $elements["days"][date('Y-m-d',$start)]["$pos"]=array("id" => $id,"start" => $start_ini, "end" => $end , "h" => date("H", $from), "m"=> date("i", $from), "eh" => date("H", $to), "em"=> date("i", $to));
    729731                            $start = strtotime("+ 1 day",$start);
    730732                        }while ( $start<=$end );
Note: See TracChangeset for help on using the changeset viewer.