Plugin Directory

Changeset 1329607


Ignore:
Timestamp:
01/16/2016 03:14:19 PM (10 years ago)
Author:
heimsveld
Message:

release 2.3.2

Location:
chronosly-events-calendar
Files:
5 edited
13 copied

Legend:

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

    r1325241 r1329607  
    66Requires at least: 3.1
    77Tested up to:  4.4.1
    8 Stable tag: 2.3.1
     8Stable tag: 2.3.2
    99License: GPLv2
    1010
  • chronosly-events-calendar/tags/2.3.2/README.txt~

    r1325241 r1329607  
    66Requires at least: 3.1
    77Tested up to:  4.4.1
    8 Stable tag: 2.3.0
     8Stable tag: 2.3.2
    99License: GPLv2
    1010
  • chronosly-events-calendar/tags/2.3.2/chronosly.php

    r1325241 r1329607  
    44 * Plugin URI: http://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.3.1
     6 * Version: 2.3.2
    77 * Author: Heimsveld IPBN
    88 * Author URI: http://www.heimsveld.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.3.1"); //debug mode
     28define('CHRONOSLY_VERSION', "2.3.2"); //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/tags/2.3.2/classes/chronosly_shortcode.php

    r1316864 r1329607  
    105105
    106106            }
    107             if($code["show_past"] or class_exists("Chronosly_Tickets_and_Repeats_Extended") ){
     107            if(isset($code["show_past"]) or class_exists("Chronosly_Tickets_and_Repeats_Extended") ){
    108108                //show event list for day
    109109                //$code["type"] = "event";
    110                 $_REQUEST["ch_show_past"] = 1;
     110                if($code["show_past"] or class_exists("Chronosly_Tickets_and_Repeats_Extended") ) $_REQUEST["ch_show_past"] = 1;
     111                else $_REQUEST["ch_show_past"] = 0;
    111112
    112113            }
     
    161162               $pastformat = 1;
    162163               $_REQUEST["ch_show_past"] = 1;
    163 
    164164            }
    165165            $_REQUEST["shortcode"] = 1;
  • chronosly-events-calendar/tags/2.3.2/post-types/post_type_chronosly_calendar.php

    r1316864 r1329607  
    260260                        $tickets = array();
    261261                        if( isset($meta["tickets"][0])) $tickets = json_decode($meta["tickets"][0]);
    262                         $elements = Post_Type_Chronosly_Calendar::seasons($eventos, $year, $month, $week, $start_ini, $end, get_the_ID(), $elements, $tickets);
     262                        $elements = Post_Type_Chronosly_Calendar::seasons($eventos, $year, $month, $week, $start_ini, $end, get_the_ID(), $elements,$tickets);
    263263                    }
    264264                    else if(isset($meta["ev-from"][0])){
    265265                        //si empieza en el mismo año y week que el calendario debemos empezar en el dia especifico
    266                           if($settings["chronosly_week_start"] == 1) {
     266                         if($settings["chronosly_week_start"] == 1) {
    267267                            $botom = strtotime($year."W".str_pad($week, 2, '0', STR_PAD_LEFT))-(60*60*24);
    268                             $top = strtotime("+6 days", $botom);
     268                            $top = strtotime("+7 days", $botom);
    269269                         } else {
    270270                             $botom = strtotime($year."W".str_pad($week, 2, '0', STR_PAD_LEFT));
    271                              $top = strtotime("+6 days", $botom);
     271                             $top = strtotime("+7 days", $botom);
    272272                         }
     273
    273274                        if(strtotime($meta["ev-from"][0]) >=  $botom
    274275                            and  strtotime($meta["ev-from"][0]) <= $top){
     
    311312
    312313                    $meta = get_post_meta(get_the_ID());
     314                       
    313315
    314316                    if(isset($meta["events"][0]) and $meta["events"][0]) {
     
    316318                        $tickets = array();
    317319                        if( isset($meta["tickets"][0])) $tickets = json_decode($meta["tickets"][0]);
    318                         $elements = Post_Type_Chronosly_Calendar::seasons($eventos, $year, $month, $week, $start_ini, $end, get_the_ID(), $elements, $tickets);
     320                        $elements = Post_Type_Chronosly_Calendar::seasons($eventos, $year, $month, $week, $start_ini, $end, get_the_ID(), $elements,$tickets);
    319321                    }
    320322                    else if(isset($meta["ev-from"][0])){
     
    444446                } else if($week){
    445447
    446 
    447448                    $st1 =  strtotime($year."W".str_pad($week, 2, '0', STR_PAD_LEFT));
    448449                    if($repeated)  $start_min = $st1;//start building array
    449                     $end_top = strtotime("+6 days", $st1);//limit of repeats per week
     450                    $end_top = strtotime("+7 days", $st1);//limit of repeats per week
    450451
    451452
     
    556557        }
    557558           
    558       public static function seasons($eventos, $year, $month, $week, $start, $end, $id, $elements, $tickets){
     559        public static function seasons($eventos, $year, $month, $week, $start, $end, $id, $elements, $tickets){
    559560            $settings =  unserialize(get_option("chronosly-settings"));
    560             // print_r($eventos);
     561           
     562                // print_r($tickets);
    561563            foreach($eventos as $evento){
    562564                $from = strtotime(substr($evento->start, 0, stripos($evento->start, "+")-1));
    563565                $to = strtotime(substr($evento->end, 0, stripos( $evento->end, "+")-1));
    564 
    565566                if($_REQUEST["ch-price-min"]){
    566567                    if(!isset($evento->tickets)) continue;
     
    598599                    if(!$tick) continue;
    599600                }
    600 
     601                // print_r($evento);
    601602                if(date('Y-m-d',$from) != date('Y-m-d',$to)) $to -= 60*60*24;
    602603
     
    634635                   
    635636                    //si empieza en el mismo año y week que el calendario debemos empezar en el dia especifico
    636                        if($settings["chronosly_week_start"] == 1) {
     637                     // if($settings["chronosly_week_start"] == 1) {
     638                     //    $botom = strtotime($year."W".str_pad($week, 2, '0', STR_PAD_LEFT))-(60*60*24);
     639                     //    $top = strtotime($year."W".str_pad($week+1, 2, '0', STR_PAD_LEFT))-(1*60*60*24);
     640                     // } else {
     641                     //     $botom = strtotime($year."W".str_pad($week, 2, '0', STR_PAD_LEFT));
     642                     //    $top = strtotime($year."W".str_pad($week+1, 2, '0', STR_PAD_LEFT));
     643
     644                     // }
     645                      if($settings["chronosly_week_start"] == 1) {
    637646                            $botom = strtotime($year."W".str_pad($week, 2, '0', STR_PAD_LEFT))-(60*60*24);
    638                             $top = strtotime("+6 days", $botom);
     647                            $top = strtotime("+7 days", $botom);
    639648                         } else {
    640649                             $botom = strtotime($year."W".str_pad($week, 2, '0', STR_PAD_LEFT));
    641                              $top = strtotime("+6 days", $botom);
     650                             $top = strtotime("+7 days", $botom);
    642651                         }
     652                    // echo "$botom $top<br/>";
    643653                    if($from >=  $botom
    644654                        and  $from <= $top){
     
    689699                        // echo date("Y-m", $from);
    690700                        // echo date("Y-m", strtotime($year."-".$month));
     701
    691702                        do{
    692703                            $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));
     
    854865
    855866            }
    856              if( $_REQUEST["event_name"]) {
     867
     868            if( $_REQUEST["event_name"]) {
    857869                 $args['post_title_like'] =$_REQUEST["event_name"];
    858870            }
     871
    859872            if ( is_user_logged_in() ) $args["post_status"] = array('publish', 'private');
    860873
  • chronosly-events-calendar/trunk/README.txt

    r1325241 r1329607  
    66Requires at least: 3.1
    77Tested up to:  4.4.1
    8 Stable tag: 2.3.1
     8Stable tag: 2.3.2
    99License: GPLv2
    1010
  • chronosly-events-calendar/trunk/README.txt~

    r1325241 r1329607  
    66Requires at least: 3.1
    77Tested up to:  4.4.1
    8 Stable tag: 2.3.0
     8Stable tag: 2.3.2
    99License: GPLv2
    1010
  • chronosly-events-calendar/trunk/chronosly.php

    r1325241 r1329607  
    44 * Plugin URI: http://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.3.1
     6 * Version: 2.3.2
    77 * Author: Heimsveld IPBN
    88 * Author URI: http://www.heimsveld.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.3.1"); //debug mode
     28define('CHRONOSLY_VERSION', "2.3.2"); //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_shortcode.php

    r1316864 r1329607  
    105105
    106106            }
    107             if($code["show_past"] or class_exists("Chronosly_Tickets_and_Repeats_Extended") ){
     107            if(isset($code["show_past"]) or class_exists("Chronosly_Tickets_and_Repeats_Extended") ){
    108108                //show event list for day
    109109                //$code["type"] = "event";
    110                 $_REQUEST["ch_show_past"] = 1;
     110                if($code["show_past"] or class_exists("Chronosly_Tickets_and_Repeats_Extended") ) $_REQUEST["ch_show_past"] = 1;
     111                else $_REQUEST["ch_show_past"] = 0;
    111112
    112113            }
     
    161162               $pastformat = 1;
    162163               $_REQUEST["ch_show_past"] = 1;
    163 
    164164            }
    165165            $_REQUEST["shortcode"] = 1;
  • chronosly-events-calendar/trunk/post-types/post_type_chronosly_calendar.php

    r1316864 r1329607  
    260260                        $tickets = array();
    261261                        if( isset($meta["tickets"][0])) $tickets = json_decode($meta["tickets"][0]);
    262                         $elements = Post_Type_Chronosly_Calendar::seasons($eventos, $year, $month, $week, $start_ini, $end, get_the_ID(), $elements, $tickets);
     262                        $elements = Post_Type_Chronosly_Calendar::seasons($eventos, $year, $month, $week, $start_ini, $end, get_the_ID(), $elements,$tickets);
    263263                    }
    264264                    else if(isset($meta["ev-from"][0])){
    265265                        //si empieza en el mismo año y week que el calendario debemos empezar en el dia especifico
    266                           if($settings["chronosly_week_start"] == 1) {
     266                         if($settings["chronosly_week_start"] == 1) {
    267267                            $botom = strtotime($year."W".str_pad($week, 2, '0', STR_PAD_LEFT))-(60*60*24);
    268                             $top = strtotime("+6 days", $botom);
     268                            $top = strtotime("+7 days", $botom);
    269269                         } else {
    270270                             $botom = strtotime($year."W".str_pad($week, 2, '0', STR_PAD_LEFT));
    271                              $top = strtotime("+6 days", $botom);
     271                             $top = strtotime("+7 days", $botom);
    272272                         }
     273
    273274                        if(strtotime($meta["ev-from"][0]) >=  $botom
    274275                            and  strtotime($meta["ev-from"][0]) <= $top){
     
    311312
    312313                    $meta = get_post_meta(get_the_ID());
     314                       
    313315
    314316                    if(isset($meta["events"][0]) and $meta["events"][0]) {
     
    316318                        $tickets = array();
    317319                        if( isset($meta["tickets"][0])) $tickets = json_decode($meta["tickets"][0]);
    318                         $elements = Post_Type_Chronosly_Calendar::seasons($eventos, $year, $month, $week, $start_ini, $end, get_the_ID(), $elements, $tickets);
     320                        $elements = Post_Type_Chronosly_Calendar::seasons($eventos, $year, $month, $week, $start_ini, $end, get_the_ID(), $elements,$tickets);
    319321                    }
    320322                    else if(isset($meta["ev-from"][0])){
     
    444446                } else if($week){
    445447
    446 
    447448                    $st1 =  strtotime($year."W".str_pad($week, 2, '0', STR_PAD_LEFT));
    448449                    if($repeated)  $start_min = $st1;//start building array
    449                     $end_top = strtotime("+6 days", $st1);//limit of repeats per week
     450                    $end_top = strtotime("+7 days", $st1);//limit of repeats per week
    450451
    451452
     
    556557        }
    557558           
    558       public static function seasons($eventos, $year, $month, $week, $start, $end, $id, $elements, $tickets){
     559        public static function seasons($eventos, $year, $month, $week, $start, $end, $id, $elements, $tickets){
    559560            $settings =  unserialize(get_option("chronosly-settings"));
    560             // print_r($eventos);
     561           
     562                // print_r($tickets);
    561563            foreach($eventos as $evento){
    562564                $from = strtotime(substr($evento->start, 0, stripos($evento->start, "+")-1));
    563565                $to = strtotime(substr($evento->end, 0, stripos( $evento->end, "+")-1));
    564 
    565566                if($_REQUEST["ch-price-min"]){
    566567                    if(!isset($evento->tickets)) continue;
     
    598599                    if(!$tick) continue;
    599600                }
    600 
     601                // print_r($evento);
    601602                if(date('Y-m-d',$from) != date('Y-m-d',$to)) $to -= 60*60*24;
    602603
     
    634635                   
    635636                    //si empieza en el mismo año y week que el calendario debemos empezar en el dia especifico
    636                        if($settings["chronosly_week_start"] == 1) {
     637                     // if($settings["chronosly_week_start"] == 1) {
     638                     //    $botom = strtotime($year."W".str_pad($week, 2, '0', STR_PAD_LEFT))-(60*60*24);
     639                     //    $top = strtotime($year."W".str_pad($week+1, 2, '0', STR_PAD_LEFT))-(1*60*60*24);
     640                     // } else {
     641                     //     $botom = strtotime($year."W".str_pad($week, 2, '0', STR_PAD_LEFT));
     642                     //    $top = strtotime($year."W".str_pad($week+1, 2, '0', STR_PAD_LEFT));
     643
     644                     // }
     645                      if($settings["chronosly_week_start"] == 1) {
    637646                            $botom = strtotime($year."W".str_pad($week, 2, '0', STR_PAD_LEFT))-(60*60*24);
    638                             $top = strtotime("+6 days", $botom);
     647                            $top = strtotime("+7 days", $botom);
    639648                         } else {
    640649                             $botom = strtotime($year."W".str_pad($week, 2, '0', STR_PAD_LEFT));
    641                              $top = strtotime("+6 days", $botom);
     650                             $top = strtotime("+7 days", $botom);
    642651                         }
     652                    // echo "$botom $top<br/>";
    643653                    if($from >=  $botom
    644654                        and  $from <= $top){
     
    689699                        // echo date("Y-m", $from);
    690700                        // echo date("Y-m", strtotime($year."-".$month));
     701
    691702                        do{
    692703                            $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));
     
    854865
    855866            }
    856              if( $_REQUEST["event_name"]) {
     867
     868            if( $_REQUEST["event_name"]) {
    857869                 $args['post_title_like'] =$_REQUEST["event_name"];
    858870            }
     871
    859872            if ( is_user_logged_in() ) $args["post_status"] = array('publish', 'private');
    860873
Note: See TracChangeset for help on using the changeset viewer.