Plugin Directory

Changeset 1519831


Ignore:
Timestamp:
10/22/2016 12:02:40 PM (9 years ago)
Author:
heimsveld
Message:

release 2.5.3

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

Legend:

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

    r1506517 r1519831  
    66Requires at least: 3.1
    77Tested up to:  4.5.3
    8 Stable tag: 2.5.2
     8Stable tag: 2.5.3
    99License: GPLv2
    1010
  • chronosly-events-calendar/trunk/chronosly.php

    r1506517 r1519831  
    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.5.2
     6 * Version: 2.5.3
    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.5.2"); //debug mode
     28define('CHRONOSLY_VERSION', "2.5.3"); //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

    r1452263 r1519831  
    5151                'organizer' => 0,//filter for concret organizers, coma separated
    5252                'place' => 0,//filter for concret places,coma separated
     53                'tag' => 0,//filter for concret places,coma separated
    5354                'navigation' => 0, //show navigation on top
    5455                'pagination' => 0, //show pagination on bottom
     
    144145            unset($_REQUEST["chcount"]);
    145146            unset($_REQUEST["category"]);
     147            unset($_REQUEST["tag"]);
    146148            unset($_REQUEST["organizer"]);
    147149            unset($_REQUEST["place"]);
     
    205207            if($args["category"]) {
    206208                $_REQUEST["category"] = $args["category"];
     209            }
     210            if($args["tag"]) {
     211                $_REQUEST["tag"] = $args["tag"];
    207212            }
    208213            if($args["organizer"]) {
     
    302307                    $wp_query = new WP_Query($q);
    303308                    // echo "<pre>";print_r($wp_query);
    304                     $repeated = Post_Type_Chronosly::get_events_repeated_by_date(-1, 1, $extra);
     309                   
     310                    $repeated = Post_Type_Chronosly::get_events_repeated_by_date(-1, 1, $extra,$elementos);
    305311                    $elementos = Post_Type_Chronosly::get_days_by_date($wp_query, $repeated, -1, 1);
    306312                    // print_r($repeated);
  • chronosly-events-calendar/trunk/classes/chronosly_widgets.php

    r1464000 r1519831  
    66    class Chronosly_Widget extends WP_Widget {
    77
    8         function Chronosly_Widget() {
     8        public function Chronosly_Widget() {
    99            // Instantiate the parent object
    1010            parent::__construct( "chronosly_widget", 'Chronosly Widget',array( 'description' => __( 'Chronosly widget for Events,Calendar, Organizers and Places', 'chronosly' ) ));
  • chronosly-events-calendar/trunk/post-types/post_type_chronosly.php

    r1500197 r1519831  
    653653
    654654            }
     655            if(isset($_REQUEST["tag"]) and $_REQUEST["tag"]){
     656                $cats = explode(",",$_REQUEST["tag"]);
     657                $tax_query = array(
     658                    'relation' => 'OR',
     659                    array(
     660                        'taxonomy' => 'chronosly_tag',
     661                        'field' => 'slug',
     662                        'terms' => $cats
     663                    ));
     664                if(!$return) $query->set('tax_query',$tax_query);
     665
     666
     667            }
    655668           // 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') );
    656669        // print_r($meta_query);
     
    782795
    783796            }
     797            if(isset($_REQUEST["tag"]) and $_REQUEST["tag"]){
     798                $cats = explode(",",$_REQUEST["tag"]);
     799
     800                $args['tax_query'] = array(
     801                    'relation' => 'OR',
     802                    array(
     803                        'taxonomy' => 'chronosly_tag',
     804                        'field' => 'slug',
     805                        'terms' => $cats
     806                    ));
     807
     808            }
     809
    784810            if ( is_user_logged_in() ) $args["post_status"] = array('publish', 'private');
    785811            if($_REQUEST["ch-price-min"]) $args["post_meta_price_min"] = $_REQUEST["ch-price-min"];
  • chronosly-events-calendar/trunk/post-types/post_type_chronosly_calendar.php

    r1506517 r1519831  
    503503
    504504                switch($meta["ev-repeat"][0]){
    505                     case "day":
     505                     case "day":
    506506
    507507                        $start = $end;
     508                        if($distance == 1 && $start < $start_min) $start = $start_min-(60*60*24);
     509                        // echo $start." ".$end_top."<br/>";
     510                        // continue;
    508511                        while($start < $end_top and $count){//mientras no estemos en el tope superior
    509512                            $start += ($distance*60*60*24);//añadimos la distancia de dias
     
    512515                             $endHours = $end + ($meta["ev-to-h"][0]*60*60) + ($meta["ev-to-m"][0]*60);
    513516                            --$count;
    514                             while($start <= $end and $start <= $end_top){//rellenamos los dias de este tramo
     517                             if($distance != 1) {
     518                                while($start <= $end and $start <= $end_top){//rellenamos los dias de este tramo
     519                                    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")))) {
     520
     521                                        $elements["days"][date('Y-m-d',$start)]["$pos"]= array("id" => $id, "start" => $start1, "end" => $end );
     522                                    }
     523                                    $start = strtotime("+ 1 day",$start);
     524                                    // echo date('Y-m-d',$start)." ".date('Y-m-d',$end)."<br/>";
     525                                }
     526                                $start = strtotime("- 1 day",$start);//restamos un dia porque si no el ultimo dia no se cuenta al salir del bucle
     527                           } else {
     528
    515529                                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")))) {
    516530
    517531                                    $elements["days"][date('Y-m-d',$start)]["$pos"]= array("id" => $id, "start" => $start1, "end" => $end );
    518532                                }
    519                                 $start = strtotime("+ 1 day",$start);
    520                                 //echo date('Y-m-d',$start)." ".date('Y-m-d',$end)."<br/>";
    521                             }
    522                             $start = strtotime("- 1 day",$start);//restamos un dia porque si no el ultimo dia no se cuenta al salir del bucle
     533                            }
    523534                        }
    524535
     
    904915
    905916            }
     917            if(isset($_REQUEST["tag"]) and $_REQUEST["tag"]){
     918                $cats = explode(",",$_REQUEST["tag"]);
     919
     920                $args['tax_query'] = array(
     921                    'relation' => 'OR',
     922                    array(
     923                        'taxonomy' => 'chronosly_tag',
     924                        'field' => 'slug',
     925                        'terms' => $cats
     926                    ));
     927
     928            }
    906929
    907930            if( $_REQUEST["event_name"]) {
     
    9861009
    9871010            }
     1011            if(isset($_REQUEST["tag"]) and $_REQUEST["tag"]){
     1012                $cats = explode(",",$_REQUEST["tag"]);
     1013
     1014                $args['tax_query'] = array(
     1015                    'relation' => 'OR',
     1016                    array(
     1017                        'taxonomy' => 'chronosly_tag',
     1018                        'field' => 'slug',
     1019                        'terms' => $cats
     1020                    ));
     1021
     1022            }
    9881023            if ( is_user_logged_in() ) $args["post_status"] = array('publish', 'private');
    9891024
  • chronosly-events-calendar/trunk/post-types/post_type_chronosly_category.php

    r1452263 r1519831  
    107107                    //exit;
    108108                } else {
    109                     if(get_query_var("chronosly_category") == "list_all_cats") include(CHRONOSLY_PATH.DIRECTORY_SEPARATOR."templates".DIRECTORY_SEPARATOR.'archive-category-chronosly.php');
     109                    if(get_query_var("chronosly_category") == "list_all_cats") {
     110                        if(file_exists(get_template_directory().DIRECTORY_SEPARATOR."archive-category-chronosly.php")) include(get_template_directory().DIRECTORY_SEPARATOR."archive-category-chronosly.php");
     111                        else if(file_exists(get_template_directory().DIRECTORY_SEPARATOR."chronosly.php")) include(get_template_directory().DIRECTORY_SEPARATOR."chronosly.php");
     112                        else include(CHRONOSLY_PATH.DIRECTORY_SEPARATOR."templates".DIRECTORY_SEPARATOR.'archive-category-chronosly.php');
     113                    }
    110114                    else {
    111115                        add_action( 'pre_get_posts', array("Post_Type_Chronosly",'add_custom_post_vars')  );
    112                         include(CHRONOSLY_PATH.DIRECTORY_SEPARATOR."templates".DIRECTORY_SEPARATOR.'single-category-chronosly.php');
     116                        if(file_exists(get_template_directory().DIRECTORY_SEPARATOR."single-category-chronosly.php")) include(get_template_directory().DIRECTORY_SEPARATOR."single-category-chronosly.php");
     117                        else if(file_exists(get_template_directory().DIRECTORY_SEPARATOR."chronosly.php")) include(get_template_directory().DIRECTORY_SEPARATOR."chronosly.php");
     118                        else include(CHRONOSLY_PATH.DIRECTORY_SEPARATOR."templates".DIRECTORY_SEPARATOR.'single-category-chronosly.php');
    113119                    }
    114120                    exit;
     
    403409                    //drag and drop 7
    404410                    //get custom templates
    405                     if ($handle = opendir(CHRONOSLY_TEMPLATES_PATH.DIRECTORY_SEPARATOR."dad11".DIRECTORY_SEPARATOR)) {
     411                    if ($handle = opendir(CHRONOSLY_PATH.DIRECTORY_SEPARATOR."custom-templates".DIRECTORY_SEPARATOR."dad11".DIRECTORY_SEPARATOR)) {
     412
    406413                        while (false !== ($entry = readdir($handle))) {
    407414                            if($entry != "." and $entry != "..") $custom_templates[] = str_replace(".php", "",$entry);
  • chronosly-events-calendar/trunk/templates/archive-category-chronosly.php

    r1403380 r1519831  
    157157} else {
    158158    echo '<div class="ch-error" style="'.$stilo.'">';
    159     _e("No events found");
     159    _e("No events found", "chronosly");
    160160    echo '</div>';
    161161}
  • chronosly-events-calendar/trunk/templates/archive-chronosly.php

    r1435498 r1519831  
    223223    } else{
    224224                    echo '<div class="ch-error" style="'.$stilo.'">';
    225                     _e("No events found");
     225                    _e("No events found", "chronosly");
    226226                    echo '</div>';
    227227                }
  • chronosly-events-calendar/trunk/templates/single-category-chronosly.php

    r1435498 r1519831  
    121121    } else {
    122122        $res = '<div class="ch-error" style="'.$stilo.'">';
    123         $res .= __("No events found");
     123        $res .= __("No events found", "chronosly");
    124124        $res .= '</div>';
    125125    }
  • chronosly-events-calendar/trunk/templates/single-chronosly.php

    r1403380 r1519831  
    9090            } else {
    9191                    echo '<div class="ch-error" style="'.$stilo.'">';
    92                     _e("No events found");
     92                    _e("No events found", "chronosly");
    9393                    echo '</div>';
    9494            }
  • chronosly-events-calendar/trunk/templates/single-tag-chronosly.php

    r1403380 r1519831  
    9393            } else {
    9494                echo '<div class="ch-error" style="'.$stilo.'">';
    95                 _e("No events found");
     95                _e("No events found", "chronosly");
    9696                echo '</div>';
    9797            }
Note: See TracChangeset for help on using the changeset viewer.