Plugin Directory

Changeset 1233814


Ignore:
Timestamp:
08/29/2015 06:14:07 PM (11 years ago)
Author:
heimsveld
Message:

Uploading version 2.2.0

Location:
chronosly-events-calendar
Files:
11 edited
26 copied

Legend:

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

    r1202019 r1233814  
    66Requires at least: 3.1
    77Tested up to: 4.2
    8 Stable tag: 2.1.9
     8Stable tag: 2.2.0
    99License: GPLv2
    1010
  • chronosly-events-calendar/tags/2.2.0/chronosly.php

    r1202016 r1233814  
    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.1.9
     6 * Version: 2.2.0
    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.1.9"); //debug mode
     28define('CHRONOSLY_VERSION', "2.2.0"); //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.2.0/classes/chronosly_dad_elements.php

    r1202016 r1233814  
    143143                else if(trim($cont) and stripos($cont, "{{notprev}}") === FALSE ){
    144144
    145                     $value = __($value , "chronosly");
     145                    $value2 = __($value , "chronosly");
     146                    $value = str_replace(trim($value), $value2, $value);
    146147                    return "<span class='before'>" .  $value . "</span> " . $cont;
    147148                }
     
    221222                }
    222223                else if(trim($cont)) {
    223                     $value = __($value , "chronosly");
     224                    $value2 = __(trim($value) , "chronosly");
     225                    $value = str_replace(trim($value), $value2, $value);
    224226                    return $cont . "<span class='after'>" .  $value . "</span> ";
    225227                }
     
    647649                    $id = 0;
    648650                    $repe = "";
    649                     $variable = "{{id}}";
     651                    $variable = "{{idurl}}";
    650652                    $postype = "chronosly";
    651653                    if ($ini = stripos($cont, "ch-organizer-")) {
     
    13331335                        $s = json_decode($vars->metas["ev-from-h"][0]);
    13341336                        foreach($s as $id=>$s1) if($s1 == ":") $s[$id] = __("All day long", "chronosly");
    1335                         if(count($s) > 1) $cont .= implode(", ", $s);
    1336                         else $cont .= $s[0];
     1337                        if(is_array($s)) $cont .= implode(", ", $s);
     1338                        else $cont .=  $s;
    13371339                    }
    13381340                }
     
    13591361
    13601362                        $s = json_decode($vars->metas["ev-from-h"][0]);
    1361                         $cont .= implode(", ", $s);
     1363                        if(is_array($s)) $cont .= implode(", ", $s);
     1364                        else $cont .=  $s;
    13621365                    }
    13631366                }
     
    14371440                       
    14381441                        $s = json_decode($vars->metas["ev-from-h"][0]);
     1442
    14391443                        // $m = json_decode($vars->metas["ev-from-m"][0]);
    1440                         if(count($s)>1) $cont .= implode(", ", $s);
    1441                         else $cont .= $s;
     1444                        if(is_array($s)) {
     1445                            foreach ($s as $v) {
     1446                                if($v == ":") $cont .= __("All day long", "chronosly").", ";
     1447                                else $cont .= $v.", ";
     1448                            }
     1449                            $cont = substr($cont, 0,-2);
     1450                        }
     1451                        else {
     1452                           if($s == ":") $cont .= __("All day long", "chronosly");
     1453                           else $cont .= $s;
     1454                        }
    14421455                        // print_r($vars->metas["ev-from-h"][0]);
    14431456                    }
     
    20862099        function chronosly_create_custom_code($value, $vars, $html = 0)
    20872100        {
    2088 
    2089             return do_shortcode($value);
     2101            ob_start();
     2102            do_shortcode($value);
     2103            $ret = ob_get_contents();
     2104            ob_end_clean();
     2105            return $ret;
    20902106        }
    20912107
     
    50545070            $settings = unserialize(get_option("chronosly-settings"));
    50555071            $soldout = "";
     5072            $soldoutClass = "solded";
    50565073            if (!$settings["chronosly_tickets"]) return;
    50575074            if (isset($vars->metas['tickets_vars'][$value]["soldout"]) and $vars->metas['tickets_vars'][$value]["soldout"]) $soldout = " <span class='ch-soldout'>" . __("Sold Out", "chronosly") . "</span>";
     5075           
     5076            foreach($vars->metas['tickets_vars'] as $t){
     5077                if(!$t["soldout"]) {
     5078                    $soldoutClass = "";
     5079                    break;
     5080                }
     5081
     5082            }
     5083
    50585084            $currency_type = "";
    50595085            $length = strlen(utf8_decode(html_entity_decode($settings["chronosly_currency"], ENT_COMPAT, 'utf-8')));
    50605086            if ($length > 1) $currency_type = "$length";
    50615087            $ant = "";
    5062             if(count($vars->metas['tickets_vars']) > 1) $ant = "<span class='price-from'>".__("From", "chronosly")."</span> ";
     5088            if(count($vars->metas['tickets_vars']) > 1) {
     5089                $ant = "<span class='price-from'>".__("From", "chronosly")."</span> ";
     5090                $value = 1;
     5091                $price = $vars->metas['tickets_vars'][1]["price"];
     5092                foreach($vars->metas['tickets_vars'] as $k=>$v){
     5093                    if($v["sale"] and $v["sales-price"] < $price) {
     5094                        $price = $v["sales-price"];
     5095                        $value = $k;
     5096                    } else if($v["price"] < $price){
     5097                        $price = $v["price"];
     5098                        $value = $k;
     5099                    }
     5100                }
     5101            }
    50635102            if($vars->metas['tickets_vars'][$value]["sale"] && $vars->metas['tickets_vars'][$value]["sales-price"]) {
    50645103                $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>";
    5065                 return "$ant<span class='sale'><span class='ch-currency$currency_type'>" . $settings["chronosly_currency"] . "</span> <span class='oldprice'>" .$vars->metas['tickets_vars'][$value]["price"]."</span> ". $vars->metas['tickets_vars'][$value]["sales-price"] .$porc. $soldout."</span>";
     5104                return "<div class='$soldoutClass'>$ant<span class='sale'><span class='ch-currency$currency_type'>" . $settings["chronosly_currency"] . "</span> <span class='oldprice'>" .$vars->metas['tickets_vars'][$value]["price"]."</span> <span class='price'>". $vars->metas['tickets_vars'][$value]["sales-price"] ."</span>" .$porc. $soldout."</span></div>";
    50665105            }
    5067             return "$ant<span class='ch-currency$currency_type'>" . $settings["chronosly_currency"] . "</span> " . $vars->metas['tickets_vars'][$value]["price"] . $soldout;
     5106            return "<div class='$soldoutClass'>$ant<span class='ch-currency$currency_type'>" . $settings["chronosly_currency"] . "</span> <span class='price'>" . $vars->metas['tickets_vars'][$value]["price"] ."</span>". $soldout."</div>";
    50685107        }
    50695108
     
    57585797    } // END
    57595798} // END
     5799
  • chronosly-events-calendar/tags/2.2.0/classes/chronosly_extend.php

    r1202016 r1233814  
    114114        "dw":1,
    115115        "rate":8
     116    },
     117    "tickets_and_repeats_extended":{
     118        "id":"tickets_and_repeats_extended",
     119        "version":"1.1",
     120        "name":"Tickets and Repeat Enhancement ",
     121        "desc":"Enhance ADVANCED recurring and ticketing event features" ,
     122        "img":"https://www.chronosly.com/wp-content/uploads/2015/06/recurring-events-enahancement-2.png",
     123        "price":24,
     124        "author":"Chronosly",
     125        "author_url":"http://www.chronosly.com",
     126        "view":"https://www.chronosly.com/faq/addons/upcoming-recurring-events-ticketing/?utm_source=clients&utm_medium=referral&utm_campaign=Addons2Recurring_FAQ",
     127        "url":"https://www.chronosly.com/product/recurring-ticketing-enhancement-for-events-addon/?utm_source=clients&utm_medium=referral&utm_campaign=Addons2Recurring",
     128        "featured":0,
     129        "updated":1412467200,
     130        "dw":1,
     131        "rate":9
    116132    }
    117133}');
     
    605621} // END
    606622
     623
  • chronosly-events-calendar/tags/2.2.0/classes/chronosly_shortcode.php

    r1157813 r1233814  
    205205            }
    206206            if($args["featured"]) {
    207                 if($args["featured"] == "yes") $feat = 1;
     207        if($args["featured"] == "yes" || $args["featured"] == "1") $feat = 1;
    208208                else $feat = "";
    209209                $q['post_meta_like']["featured"] = $feat;
  • chronosly-events-calendar/tags/2.2.0/classes/chronosly_templates.php

    r1202016 r1233814  
    19411941            switch(trim($var)){
    19421942                case "id":
    1943                     return $vars->pid;
     1943                     $repeat ="";
     1944                    if($vars->metas['repeat']) $repeat = "&repeat=" . $vars->metas['repeat'];
     1945                    return $vars->pid.$repeat;
    19441946                break;
    19451947                case "size":
     
    20642066
    20652067            $vars = $this->vars;
    2066             if($cont == "translate") return  do_shortcode( __($func." ".$arg, "chronosly"));
     2068            if($cont == "translate") {
     2069                if(stripos($func." ".$arg, "[") !== false and stripos( $func." ".$arg, "]") !== false) {
     2070                    ob_start();
     2071                    do_shortcode(__($func." ".$arg, "chronosly"));
     2072                    $ret = ob_get_contents();
     2073                    ob_end_clean();
     2074                    return $ret;
     2075                } else  return __($func." ".$arg, "chronosly");
     2076            }
    20672077            switch(trim($func)){
    20682078                case "filter":
  • chronosly-events-calendar/tags/2.2.0/js/front.js

    r1202016 r1233814  
    178178                // console.log("entra");
    179179                var pid = jQuery(this).parents(".chronosly").find(".ev-data.place_gmap").attr("id");
    180                 jQuery(this).attr("href", "https://www.google.com/maps/dir/"+address[pid]);
     180                jQuery(this).attr("href", "https://www.google.com/maps/dir//"+address[pid]);
    181181            }
    182182        });
     
    203203        );
    204204    }
    205     onload_calendar();
    206 
    207 });
     205   onload_calendar();});
    208206
    209207function ch_load_calendar(url, id){
     
    377375    if(dir == "next") element.next().toggleClass("show");
    378376    else element.prev().toggleClass("show");
     377    scrollToAnchor(jQuery(".ev-data.seasons_list"), -10);
    379378}
    380379
    381380
    382381function js_post_pagination(){
    383     console.log("sadsa");
    384382
    385383    jQuery(".chronosly-content-block .chronosly script").each(function(){
  • chronosly-events-calendar/tags/2.2.0/metaboxes/chronosly_dad_framework_metabox.php

    r1202016 r1233814  
    8383        if($this->settings["chronosly_template_min"] and !in_array($vista, $sinmin)) $stilo .= "min-width:".$this->settings["chronosly_template_min"]."px;";
    8484    ?>
    85 <div <?php if($stilo) echo "style='$stilo'";?> base="<?php echo $template;?>" class="chronosly perfil<?php echo $perfil;?> ch-<?php echo $template;?>  ch-<?php echo $st;?> ch-<?php echo $vista;?> ev-<?php echo $temp->post->ID; if(isset($_REQUEST['small']) and $_REQUEST["small"]) echo " small";?>">
     85<div <?php if($stilo) echo "style='$stilo'";?> base="<?php echo $template;?>" class="chronosly perfil<?php echo $perfil;?> ch-<?php echo $template;?>  ch-<?php echo $st;?> ch-<?php echo $vista;?> ev-<?php echo $temp->post->ID; if(isset($_REQUEST['small']) and $_REQUEST["small"]) echo " small";if($temp->metas["featured"][0]) echo " box-featured";?>">
    8686<?php } else { ?>
    8787
    88 <div <?php if($stilo) echo "style='$stilo;{{max-width}}{{min-width}}'";?> base="<?php echo $template;?>" class="chronosly perfil<?php echo $perfil;?> ch-<?php echo $template;?>  ch-<?php echo $st;?> ch-<?php echo $vista;?> ev-{{id}} {{size}}">
     88<div <?php if($stilo) echo "style='$stilo;{{max-width}}{{min-width}}'";?> base="<?php echo $template;?>" class="chronosly perfil<?php echo $perfil;?> ch-<?php echo $template;?>  ch-<?php echo $st;?> ch-<?php echo $vista;if($html == 2) echo " box-featured";?> ev-{{id}} {{size}} ">
    8989<?php
    9090        } //skeleton for front dad templates
  • chronosly-events-calendar/tags/2.2.0/metaboxes/chronosly_date_metabox.php

    r1157813 r1233814  
    1 <label for="from"><?php echo __("From", "chronosly"); ?></label>
    2 <input type="text" id="ev-from" name="ev-from" value="<?php echo (isset($vars['ev-from'][0])?$vars['ev-from'][0]:"");?>" />
    3 <label for="from-h"><?php echo __("Hour", "chronosly"); ?></label>
     1<div id="ev-date-box">
     2    <label for="from"><?php echo __("From", "chronosly"); ?></label>
     3    <input type="text" id="ev-from" name="ev-from" value="<?php echo (isset($vars['ev-from'][0])?$vars['ev-from'][0]:"");?>" />
     4    <label for="from-h"><?php echo __("Hour", "chronosly"); ?></label>
    45
    5 <input type="text" id="ev-from-h" name="ev-from-h"  value="<?php echo  (isset($vars['ev-from-h'][0])?$vars['ev-from-h'][0]:"");?>"  />:
    6 <input type="text" id="ev-from-m" name="ev-from-m"  value="<?php echo  (isset($vars['ev-from-m'][0])?$vars['ev-from-m'][0]:"")?>" />
    7 <br/>
    8 <label for="to"><?php echo __("To", "chronosly"); ?></label>
    9 <input type="text" id="ev-to" name="ev-to"  value="<?php echo  (isset($vars['ev-to'][0])?$vars['ev-to'][0]:"");?>"  />
    10 <label for="from-h"><?php echo __("Hour", "chronosly"); ?></label>
     6    <input type="text" id="ev-from-h" name="ev-from-h"  value="<?php echo  (isset($vars['ev-from-h'][0])?$vars['ev-from-h'][0]:"");?>"  />:
     7    <input type="text" id="ev-from-m" name="ev-from-m"  value="<?php echo  (isset($vars['ev-from-m'][0])?$vars['ev-from-m'][0]:"")?>" />
     8    <br/>
     9    <label for="to"><?php echo __("To", "chronosly"); ?></label>
     10    <input type="text" id="ev-to" name="ev-to"  value="<?php echo  (isset($vars['ev-to'][0])?$vars['ev-to'][0]:"");?>"  />
     11    <label for="from-h"><?php echo __("Hour", "chronosly"); ?></label>
    1112
    12 <input type="text" id="ev-to-h" name="ev-to-h"  value="<?php echo (isset($vars['ev-to-h'][0])?$vars['ev-to-h'][0]:"");?>" />:
    13 <input type="text" id="ev-to-m" name="ev-to-m"  value="<?php echo (isset($vars['ev-to-m'][0])?$vars['ev-to-m'][0]:"");?>" />
    14  <div >
    15     <label for="repeat" ><?php echo __("Repeat", "chronosly");?></label>
    16     <select id='repeat' name="ev-repeat">
    17         <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "") echo "selected";?> value=""><?php _e("Never (Not a recurring event)", "chronosly")?></option>
    18         <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "day") echo "selected";?> value="day"><?php _e("Every day", "chronosly")?></option>
    19         <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "week") echo "selected";?> value="week"><?php _e("Every week", "chronosly")?></option>
    20         <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "month") echo "selected";?> value="month"><?php _e("Every month", "chronosly")?></option>
    21         <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "year") echo "selected";?> value="year"><?php _e("Every year", "chronosly")?></option>
    22     </select>
    23 </div>
    24    
     13    <input type="text" id="ev-to-h" name="ev-to-h"  value="<?php echo (isset($vars['ev-to-h'][0])?$vars['ev-to-h'][0]:"");?>" />:
     14    <input type="text" id="ev-to-m" name="ev-to-m"  value="<?php echo (isset($vars['ev-to-m'][0])?$vars['ev-to-m'][0]:"");?>" />
     15    <div >
     16        <label for="repeat" ><?php echo __("Repeat", "chronosly");?></label>
     17        <select id='repeat' name="ev-repeat">
     18            <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "") echo "selected";?> value=""><?php _e("Never (Not a recurring event)", "chronosly")?></option>
     19            <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "day") echo "selected";?> value="day"><?php _e("Every day", "chronosly")?></option>
     20            <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "week") echo "selected";?> value="week"><?php _e("Every week", "chronosly")?></option>
     21            <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "month") echo "selected";?> value="month"><?php _e("Every month", "chronosly")?></option>
     22            <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "year") echo "selected";?> value="year"><?php _e("Every year", "chronosly")?></option>
     23        </select>
     24    </div>
     25       
    2526
    26 <div class="end-repeat-section" >
    27     <div class="field-hide field1 <?php if(!isset($vars['ev-repeat'][0]) or $vars['ev-repeat'][0] == "") echo "hide";?>"  >
     27    <div class="end-repeat-section" >
     28        <div class="field-hide field1 <?php if(!isset($vars['ev-repeat'][0]) or $vars['ev-repeat'][0] == "") echo "hide";?>"  >
    2829
    29         <label><?php _e("Repeat every","chronosly");?></label>
    30         <input type="text" id="ev-repeat-every" name="ev-repeat-every"  value="<?php echo (isset($vars['ev-repeat-every'][0])?$vars['ev-repeat-every'][0]:"");?>" /><span id="ev-repat-name"><?php
     30            <label><?php _e("Repeat every","chronosly");?></label>
     31            <input type="text" id="ev-repeat-every" name="ev-repeat-every"  value="<?php echo (isset($vars['ev-repeat-every'][0])?$vars['ev-repeat-every'][0]:"");?>" /><span id="ev-repat-name"><?php
    3132
    32             if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "day") echo __("days", "chronosly");
    33             else if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "week") echo   __("weeks", "chronosly");
    34             else if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "month") echo  __("months", "chronosly");
    35             else if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "year") echo __("years", "chronosly");
    36         ?></span>
     33                if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "day") echo __("days", "chronosly");
     34                else if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "week") echo   __("weeks", "chronosly");
     35                else if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "month") echo  __("months", "chronosly");
     36                else if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "year") echo __("years", "chronosly");
     37            ?></span>
    3738
    3839
    3940
    40         <label><?php _e("End of repeat","chronosly");?></label>
    41         <select id="repeat_end_type" name="ev-repeat-option" >
    42             <option <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] == "never") echo "selected";?> value="never"><?php _e("never", "chronosly");?></option>
    43             <option <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] == "until") echo "selected";?> value="until"><?php _e("by date", "chronosly");?></option>
    44             <option <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] == "count") echo "selected";?> value="count"><?php _e("by number", "chronosly");?></option>
    45         </select>
    46         <div class="ch-clear"></div>
     41            <label><?php _e("End of repeat","chronosly");?></label>
     42            <select id="repeat_end_type" name="ev-repeat-option" >
     43                <option <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] == "never") echo "selected";?> value="never"><?php _e("never", "chronosly");?></option>
     44                <option <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] == "until") echo "selected";?> value="until"><?php _e("by date", "chronosly");?></option>
     45                <option <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] == "count") echo "selected";?> value="count"><?php _e("by number", "chronosly");?></option>
     46            </select>
     47            <div class="ch-clear"></div>
     48        </div>
     49
     50        <div class="field-hide repeat_type_until <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] != "until") echo "hide";?> ">
     51
     52            <label><?php _e("End date","chronosly");?></label>
     53                <input id="rrule_until" type="text" name="ev-until"  value="<?php echo (isset($vars['ev-until'][0])?$vars['ev-until'][0]:"");?>" />
     54        </div>
     55
     56        <div class="field-hide repeat_type_count <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] != "count") echo "hide";?> ">
     57
     58            <label ><?php _e("Number of repeats","chronosly");?></label>
     59                <input id="fc_end_count" type="text" name="ev-end_count"  value="<?php echo (isset($vars['ev-end_count'][0])?$vars['ev-end_count'][0]:"");?>"  />
     60        </div>
    4761    </div>
    48 
    49     <div class="field-hide repeat_type_until <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] != "until") echo "hide";?> ">
    50 
    51         <label><?php _e("End date","chronosly");?></label>
    52             <input id="rrule_until" type="text" name="ev-until"  value="<?php echo (isset($vars['ev-until'][0])?$vars['ev-until'][0]:"");?>" />
    53     </div>
    54 
    55     <div class="field-hide repeat_type_count <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] != "count") echo "hide";?> ">
    56 
    57         <label ><?php _e("Number of repeats","chronosly");?></label>
    58             <input id="fc_end_count" type="text" name="ev-end_count"  value="<?php echo (isset($vars['ev-end_count'][0])?$vars['ev-end_count'][0]:"");?>"  />
    59     </div>
    60 </div>
    61 <span class="info"></span>
    62 <div class="info-hide">
    63     <?php _e("If you choose to repeat an event, more options will appear such as repeating the event over a period time, either in days, weeks or years. These new options will allow you to set the end of the repetitions, by setting an exact end date o a definite number of repetitions, for examples the event to be repeated twice.", "chronosly");?><br/><br/>
    64     <?php _e("Note: Chronosly does not allow certain repetitions to be set. If the number of days with events is over a week o a month, the system does not allow the event to be published. E.g. if you create 8-days events, these can not be repeated weekly. 32-days events can not be set with weekly or monthly repetition.", "chronosly");?><br/><br/>
    65     <?php _e("It is possible to set 2-days events with daily repetitions. In this case the event would be repeated every 2 days.", "chronosly");?><br/><br/>
     62    <span class="info"></span>
     63    <div class="info-hide">
     64        <?php _e("If you choose to repeat an event, more options will appear such as repeating the event over a period time, either in days, weeks or years. These new options will allow you to set the end of the repetitions, by setting an exact end date o a definite number of repetitions, for examples the event to be repeated twice.", "chronosly");?><br/><br/>
     65        <?php _e("Note: Chronosly does not allow certain repetitions to be set. If the number of days with events is over a week o a month, the system does not allow the event to be published. E.g. if you create 8-days events, these can not be repeated weekly. 32-days events can not be set with weekly or monthly repetition.", "chronosly");?><br/><br/>
     66        <?php _e("It is possible to set 2-days events with daily repetitions. In this case the event would be repeated every 2 days.", "chronosly");?><br/><br/>
    6667
    6768
    6869
     70    </div>
    6971</div>
    7072                   
  • chronosly-events-calendar/tags/2.2.0/post-types/post_type_chronosly.php

    r1202016 r1233814  
    22362236                    $vars = @get_post_meta($post->ID);
    22372237                    require_once(CHRONOSLY_PATH.DIRECTORY_SEPARATOR."metaboxes".DIRECTORY_SEPARATOR.self::POST_TYPE."_date_metabox.php");
     2238                    do_action("chronosly_date_metabox", $vars);
    22382239
    22392240                } elseif ('ticket' == $metabox['args']['type']) {
  • chronosly-events-calendar/tags/2.2.0/templates/calendar-chronosly.php

    r1202016 r1233814  
    354354                            echo "<div class='ch-navigate'>
    355355                                <span class='ch-current'>".date("d", $w)." - ".date("d", strtotime("+6 day",$w))." ".__(date("F", strtotime("+6 day",$w))).", $year</span>
    356                                 <span class='ch-links'>
    357                                     <a href='".(get_option('permalink_structure')?$calendar_url."year_".date("Y", strtotime("+6 day",$next1))."/week_".date("W", $next1):"index.php?post_type=chronosly_calendar&y=".date("Y", strtotime("+6 day",$next))."&week=".date("W", $next1))."' class='ch-next'><div class='arrow-up'></div>".date("d", $next)." - ".date("d", strtotime("+6 day", $next))." ".__(date("F", strtotime("+6 day", $next))).", ".date("Y", strtotime("+6 day", $next))."</a>
    358                                     <a href='".(get_option('permalink_structure')?$calendar_url."year_".date("Y", $prev)."/week_".date("W", $prev1):"index.php?post_type=chronosly_calendar&y=".date("Y", $prev)."&week=".date("W", $prev1))."' class='ch-prev'><div class='arrow-down'></div>".date("d", $prev)." - ".date("d", strtotime("+6 day", $prev))." ".__(date("F", $prev)).", ".date("Y", $prev)."</a>
     356                                <span class='ch-links'>";
     357                                    if(date("W", $next1) < 10) echo "<a href='".(get_option('permalink_structure')?$calendar_url."year_".date("Y", strtotime("+6 day",$next1))."/week_".date("W", $next1):"index.php?post_type=chronosly_calendar&y=".date("Y", strtotime("+6 day",$next))."&week=".date("W", $next1))."' class='ch-next'><div class='arrow-up'></div>".date("d", $next)." - ".date("d", strtotime("+6 day", $next))." ".__(date("F", strtotime("+6 day", $next))).", ".date("Y", strtotime("+6 day", $next))."</a>";
     358                                    else echo "<a href='".(get_option('permalink_structure')?$calendar_url."year_".date("Y", $next1)."/week_".date("W", $next1):"index.php?post_type=chronosly_calendar&y=".date("Y", $next)."&week=".date("W", $next1))."' class='ch-next'><div class='arrow-up'></div>".date("d", $next)." - ".date("d", strtotime("+6 day", $next))." ".__(date("F", strtotime("+6 day", $next))).", ".date("Y", strtotime("+6 day", $next))."</a>";
     359                                    echo "<a href='".(get_option('permalink_structure')?$calendar_url."year_".date("Y", $prev)."/week_".date("W", $prev1):"index.php?post_type=chronosly_calendar&y=".date("Y", $prev)."&week=".date("W", $prev1))."' class='ch-prev'><div class='arrow-down'></div>".date("d", $prev)." - ".date("d", strtotime("+6 day", $prev))." ".__(date("F", $prev)).", ".date("Y", $prev)."</a>
    359360                                </span>
    360361                                <div class='ch-navigate-type'>
     
    370371                            echo "<div class='ch-navigate'>
    371372                                <span class='ch-current'>".date("d", $w)." - ".date("d", strtotime("+6 day",$w))." ".__(date("F", strtotime("+6 day",$w))).", $year</span>
    372                                 <span class='ch-links'>
    373                                     <a href='javascript:ch_load_calendar(\"". (stripos($calendar_url, "?") !== FALSE?"$calendar_url":"$calendar_url?"). "&y=".date("Y", strtotime("+6 day",$next))."&week=".date("W", $next1)."$params\", $calendarId)' class='ch-next'><div class='arrow-up'></div>".date("d", $next)." - ".date("d", strtotime("+6 day", $next))." ".__(date("F", strtotime("+6 day", $next))).", ".date("Y", strtotime("+6 day", $next))."</a>
    374                                     <a href='javascript:ch_load_calendar(\"". (stripos($calendar_url, "?") !== FALSE?"$calendar_url":"$calendar_url?"). "&y=".date("Y", $prev)."&week=".date("W", $prev1)."$params\", $calendarId)' class='ch-prev'><div class='arrow-down'></div>".date("d", $prev)." - ".date("d", strtotime("+6 day", $prev))." ".__(date("F", $prev)).", ".date("Y", $prev)."</a>
     373                                <span class='ch-links'>";
     374                                   if(date("W", $next1) < 10) echo "<a href='javascript:ch_load_calendar(\"". (stripos($calendar_url, "?") !== FALSE?"$calendar_url":"$calendar_url?"). "&y=".date("Y", strtotime("+6 day",$next))."&week=".date("W", $next1)."$params\", $calendarId)' class='ch-next'><div class='arrow-up'></div>".date("d", $next)." - ".date("d", strtotime("+6 day", $next))." ".__(date("F", strtotime("+6 day", $next))).", ".date("Y", strtotime("+6 day", $next))."</a>";
     375                                    else echo "<a href='javascript:ch_load_calendar(\"". (stripos($calendar_url, "?") !== FALSE?"$calendar_url":"$calendar_url?"). "&y=".date("Y",$next)."&week=".date("W", $next1)."$params\", $calendarId)' class='ch-next'><div class='arrow-up'></div>".date("d", $next)." - ".date("d", strtotime("+6 day", $next))." ".__(date("F", strtotime("+6 day", $next))).", ".date("Y", strtotime("+6 day", $next))."</a>";
     376                                    echo "<a href='javascript:ch_load_calendar(\"". (stripos($calendar_url, "?") !== FALSE?"$calendar_url":"$calendar_url?"). "&y=".date("Y", $prev)."&week=".date("W", $prev1)."$params\", $calendarId)' class='ch-prev'><div class='arrow-down'></div>".date("d", $prev)." - ".date("d", strtotime("+6 day", $prev))." ".__(date("F", $prev)).", ".date("Y", $prev)."</a>
    375377                                </span>
    376378                                <div class='ch-navigate-type'>
  • chronosly-events-calendar/trunk/README.txt

    r1202019 r1233814  
    66Requires at least: 3.1
    77Tested up to: 4.2
    8 Stable tag: 2.1.9
     8Stable tag: 2.2.0
    99License: GPLv2
    1010
  • chronosly-events-calendar/trunk/chronosly.php

    r1202016 r1233814  
    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.1.9
     6 * Version: 2.2.0
    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.1.9"); //debug mode
     28define('CHRONOSLY_VERSION', "2.2.0"); //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

    r1202016 r1233814  
    143143                else if(trim($cont) and stripos($cont, "{{notprev}}") === FALSE ){
    144144
    145                     $value = __($value , "chronosly");
     145                    $value2 = __(trim($value) , "chronosly");
     146                    $value = str_replace(trim($value), $value2, $value);
    146147                    return "<span class='before'>" .  $value . "</span> " . $cont;
    147148                }
     
    221222                }
    222223                else if(trim($cont)) {
    223                     $value = __($value , "chronosly");
     224                    $value2 = __(trim($value) , "chronosly");
     225                    $value = str_replace(trim($value), $value2, $value);
    224226                    return $cont . "<span class='after'>" .  $value . "</span> ";
    225227                }
     
    13331335                        $s = json_decode($vars->metas["ev-from-h"][0]);
    13341336                        foreach($s as $id=>$s1) if($s1 == ":") $s[$id] = __("All day long", "chronosly");
    1335                         if(count($s) > 1) $cont .= implode(", ", $s);
    1336                         else $cont .= $s[0];
     1337                        if(is_array($s)) $cont .= implode(", ", $s);
     1338                        else $cont .=  $s;
    13371339                    }
    13381340                }
     
    13591361
    13601362                        $s = json_decode($vars->metas["ev-from-h"][0]);
    1361                         $cont .= implode(", ", $s);
     1363                        if(is_array($s)) $cont .= implode(", ", $s);
     1364                        else $cont .=  $s;
    13621365                    }
    13631366                }
     
    14381441                        $s = json_decode($vars->metas["ev-from-h"][0]);
    14391442                        // $m = json_decode($vars->metas["ev-from-m"][0]);
    1440                         if(count($s)>1) $cont .= implode(", ", $s);
     1443                        if(is_array($s)) $cont .= implode(", ", $s);
    14411444                        else $cont .= $s;
    14421445                        // print_r($vars->metas["ev-from-h"][0]);
     
    50605063            if ($length > 1) $currency_type = "$length";
    50615064            $ant = "";
    5062             if(count($vars->metas['tickets_vars']) > 1) $ant = "<span class='price-from'>".__("From", "chronosly")."</span> ";
     5065            if(count($vars->metas['tickets_vars']) > 1) {
     5066                $ant = "<span class='price-from'>".__("From", "chronosly")."</span> ";
     5067                $value = 1;
     5068                $price = $vars->metas['tickets_vars'][1]["price"];
     5069                foreach($vars->metas['tickets_vars'] as $k=>$v){
     5070                    if($v["sale"] and $v["sales-price"] < $price) {
     5071                        $price = $v["sales-price"];
     5072                        $value = $k;
     5073                    } else if($v["price"] < $price){
     5074                        $price = $v["price"];
     5075                        $value = $k;
     5076                    }
     5077                }
     5078            }
    50635079            if($vars->metas['tickets_vars'][$value]["sale"] && $vars->metas['tickets_vars'][$value]["sales-price"]) {
    50645080                $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_templates.php

    r1202016 r1233814  
    19411941            switch(trim($var)){
    19421942                case "id":
    1943                     return $vars->pid;
     1943                     $repeat ="";
     1944                    if($vars->metas['repeat']) $repeat = "&repeat=" . $vars->metas['repeat'];
     1945                    return $vars->pid.$repeat;
    19441946                break;
    19451947                case "size":
     
    20642066
    20652067            $vars = $this->vars;
    2066             if($cont == "translate") return  do_shortcode( __($func." ".$arg, "chronosly"));
     2068            if($cont == "translate") {
     2069                if(stripos($func." ".$arg, "[") !== false and stripos( $func." ".$arg, "]") !== false) {
     2070                    ob_start();
     2071                    do_shortcode(__($func." ".$arg, "chronosly"));
     2072                    $ret = ob_get_contents();
     2073                    ob_end_clean();
     2074                    return $ret;
     2075                } else  return __($func." ".$arg, "chronosly");
     2076            }
    20672077            switch(trim($func)){
    20682078                case "filter":
  • chronosly-events-calendar/trunk/js/front.js

    r1202016 r1233814  
    178178                // console.log("entra");
    179179                var pid = jQuery(this).parents(".chronosly").find(".ev-data.place_gmap").attr("id");
    180                 jQuery(this).attr("href", "https://www.google.com/maps/dir/"+address[pid]);
     180                jQuery(this).attr("href", "https://www.google.com/maps/dir//"+address[pid]);
    181181            }
    182182        });
  • chronosly-events-calendar/trunk/metaboxes/chronosly_dad_framework_metabox.php

    r1202016 r1233814  
    8383        if($this->settings["chronosly_template_min"] and !in_array($vista, $sinmin)) $stilo .= "min-width:".$this->settings["chronosly_template_min"]."px;";
    8484    ?>
    85 <div <?php if($stilo) echo "style='$stilo'";?> base="<?php echo $template;?>" class="chronosly perfil<?php echo $perfil;?> ch-<?php echo $template;?>  ch-<?php echo $st;?> ch-<?php echo $vista;?> ev-<?php echo $temp->post->ID; if(isset($_REQUEST['small']) and $_REQUEST["small"]) echo " small";?>">
     85<div <?php if($stilo) echo "style='$stilo'";?> base="<?php echo $template;?>" class="chronosly perfil<?php echo $perfil;?> ch-<?php echo $template;?>  ch-<?php echo $st;?> ch-<?php echo $vista;?> ev-<?php echo $temp->post->ID; if(isset($_REQUEST['small']) and $_REQUEST["small"]) echo " small";if($temp->metas["featured"][0]) echo " box-featured";?>">
    8686<?php } else { ?>
    8787
    88 <div <?php if($stilo) echo "style='$stilo;{{max-width}}{{min-width}}'";?> base="<?php echo $template;?>" class="chronosly perfil<?php echo $perfil;?> ch-<?php echo $template;?>  ch-<?php echo $st;?> ch-<?php echo $vista;?> ev-{{id}} {{size}}">
     88<div <?php if($stilo) echo "style='$stilo;{{max-width}}{{min-width}}'";?> base="<?php echo $template;?>" class="chronosly perfil<?php echo $perfil;?> ch-<?php echo $template;?>  ch-<?php echo $st;?> ch-<?php echo $vista;if($html == 2) echo " box-featured";?> ev-{{id}} {{size}} ">
    8989<?php
    9090        } //skeleton for front dad templates
  • chronosly-events-calendar/trunk/metaboxes/chronosly_date_metabox.php

    r1157813 r1233814  
    1 <label for="from"><?php echo __("From", "chronosly"); ?></label>
    2 <input type="text" id="ev-from" name="ev-from" value="<?php echo (isset($vars['ev-from'][0])?$vars['ev-from'][0]:"");?>" />
    3 <label for="from-h"><?php echo __("Hour", "chronosly"); ?></label>
     1<div id="ev-date-box">
     2    <label for="from"><?php echo __("From", "chronosly"); ?></label>
     3    <input type="text" id="ev-from" name="ev-from" value="<?php echo (isset($vars['ev-from'][0])?$vars['ev-from'][0]:"");?>" />
     4    <label for="from-h"><?php echo __("Hour", "chronosly"); ?></label>
    45
    5 <input type="text" id="ev-from-h" name="ev-from-h"  value="<?php echo  (isset($vars['ev-from-h'][0])?$vars['ev-from-h'][0]:"");?>"  />:
    6 <input type="text" id="ev-from-m" name="ev-from-m"  value="<?php echo  (isset($vars['ev-from-m'][0])?$vars['ev-from-m'][0]:"")?>" />
    7 <br/>
    8 <label for="to"><?php echo __("To", "chronosly"); ?></label>
    9 <input type="text" id="ev-to" name="ev-to"  value="<?php echo  (isset($vars['ev-to'][0])?$vars['ev-to'][0]:"");?>"  />
    10 <label for="from-h"><?php echo __("Hour", "chronosly"); ?></label>
     6    <input type="text" id="ev-from-h" name="ev-from-h"  value="<?php echo  (isset($vars['ev-from-h'][0])?$vars['ev-from-h'][0]:"");?>"  />:
     7    <input type="text" id="ev-from-m" name="ev-from-m"  value="<?php echo  (isset($vars['ev-from-m'][0])?$vars['ev-from-m'][0]:"")?>" />
     8    <br/>
     9    <label for="to"><?php echo __("To", "chronosly"); ?></label>
     10    <input type="text" id="ev-to" name="ev-to"  value="<?php echo  (isset($vars['ev-to'][0])?$vars['ev-to'][0]:"");?>"  />
     11    <label for="from-h"><?php echo __("Hour", "chronosly"); ?></label>
    1112
    12 <input type="text" id="ev-to-h" name="ev-to-h"  value="<?php echo (isset($vars['ev-to-h'][0])?$vars['ev-to-h'][0]:"");?>" />:
    13 <input type="text" id="ev-to-m" name="ev-to-m"  value="<?php echo (isset($vars['ev-to-m'][0])?$vars['ev-to-m'][0]:"");?>" />
    14  <div >
    15     <label for="repeat" ><?php echo __("Repeat", "chronosly");?></label>
    16     <select id='repeat' name="ev-repeat">
    17         <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "") echo "selected";?> value=""><?php _e("Never (Not a recurring event)", "chronosly")?></option>
    18         <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "day") echo "selected";?> value="day"><?php _e("Every day", "chronosly")?></option>
    19         <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "week") echo "selected";?> value="week"><?php _e("Every week", "chronosly")?></option>
    20         <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "month") echo "selected";?> value="month"><?php _e("Every month", "chronosly")?></option>
    21         <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "year") echo "selected";?> value="year"><?php _e("Every year", "chronosly")?></option>
    22     </select>
    23 </div>
    24    
     13    <input type="text" id="ev-to-h" name="ev-to-h"  value="<?php echo (isset($vars['ev-to-h'][0])?$vars['ev-to-h'][0]:"");?>" />:
     14    <input type="text" id="ev-to-m" name="ev-to-m"  value="<?php echo (isset($vars['ev-to-m'][0])?$vars['ev-to-m'][0]:"");?>" />
     15    <div >
     16        <label for="repeat" ><?php echo __("Repeat", "chronosly");?></label>
     17        <select id='repeat' name="ev-repeat">
     18            <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "") echo "selected";?> value=""><?php _e("Never (Not a recurring event)", "chronosly")?></option>
     19            <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "day") echo "selected";?> value="day"><?php _e("Every day", "chronosly")?></option>
     20            <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "week") echo "selected";?> value="week"><?php _e("Every week", "chronosly")?></option>
     21            <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "month") echo "selected";?> value="month"><?php _e("Every month", "chronosly")?></option>
     22            <option <?php if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "year") echo "selected";?> value="year"><?php _e("Every year", "chronosly")?></option>
     23        </select>
     24    </div>
     25       
    2526
    26 <div class="end-repeat-section" >
    27     <div class="field-hide field1 <?php if(!isset($vars['ev-repeat'][0]) or $vars['ev-repeat'][0] == "") echo "hide";?>"  >
     27    <div class="end-repeat-section" >
     28        <div class="field-hide field1 <?php if(!isset($vars['ev-repeat'][0]) or $vars['ev-repeat'][0] == "") echo "hide";?>"  >
    2829
    29         <label><?php _e("Repeat every","chronosly");?></label>
    30         <input type="text" id="ev-repeat-every" name="ev-repeat-every"  value="<?php echo (isset($vars['ev-repeat-every'][0])?$vars['ev-repeat-every'][0]:"");?>" /><span id="ev-repat-name"><?php
     30            <label><?php _e("Repeat every","chronosly");?></label>
     31            <input type="text" id="ev-repeat-every" name="ev-repeat-every"  value="<?php echo (isset($vars['ev-repeat-every'][0])?$vars['ev-repeat-every'][0]:"");?>" /><span id="ev-repat-name"><?php
    3132
    32             if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "day") echo __("days", "chronosly");
    33             else if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "week") echo   __("weeks", "chronosly");
    34             else if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "month") echo  __("months", "chronosly");
    35             else if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "year") echo __("years", "chronosly");
    36         ?></span>
     33                if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "day") echo __("days", "chronosly");
     34                else if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "week") echo   __("weeks", "chronosly");
     35                else if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "month") echo  __("months", "chronosly");
     36                else if(isset($vars['ev-repeat'][0]) and $vars['ev-repeat'][0] == "year") echo __("years", "chronosly");
     37            ?></span>
    3738
    3839
    3940
    40         <label><?php _e("End of repeat","chronosly");?></label>
    41         <select id="repeat_end_type" name="ev-repeat-option" >
    42             <option <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] == "never") echo "selected";?> value="never"><?php _e("never", "chronosly");?></option>
    43             <option <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] == "until") echo "selected";?> value="until"><?php _e("by date", "chronosly");?></option>
    44             <option <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] == "count") echo "selected";?> value="count"><?php _e("by number", "chronosly");?></option>
    45         </select>
    46         <div class="ch-clear"></div>
     41            <label><?php _e("End of repeat","chronosly");?></label>
     42            <select id="repeat_end_type" name="ev-repeat-option" >
     43                <option <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] == "never") echo "selected";?> value="never"><?php _e("never", "chronosly");?></option>
     44                <option <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] == "until") echo "selected";?> value="until"><?php _e("by date", "chronosly");?></option>
     45                <option <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] == "count") echo "selected";?> value="count"><?php _e("by number", "chronosly");?></option>
     46            </select>
     47            <div class="ch-clear"></div>
     48        </div>
     49
     50        <div class="field-hide repeat_type_until <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] != "until") echo "hide";?> ">
     51
     52            <label><?php _e("End date","chronosly");?></label>
     53                <input id="rrule_until" type="text" name="ev-until"  value="<?php echo (isset($vars['ev-until'][0])?$vars['ev-until'][0]:"");?>" />
     54        </div>
     55
     56        <div class="field-hide repeat_type_count <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] != "count") echo "hide";?> ">
     57
     58            <label ><?php _e("Number of repeats","chronosly");?></label>
     59                <input id="fc_end_count" type="text" name="ev-end_count"  value="<?php echo (isset($vars['ev-end_count'][0])?$vars['ev-end_count'][0]:"");?>"  />
     60        </div>
    4761    </div>
    48 
    49     <div class="field-hide repeat_type_until <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] != "until") echo "hide";?> ">
    50 
    51         <label><?php _e("End date","chronosly");?></label>
    52             <input id="rrule_until" type="text" name="ev-until"  value="<?php echo (isset($vars['ev-until'][0])?$vars['ev-until'][0]:"");?>" />
    53     </div>
    54 
    55     <div class="field-hide repeat_type_count <?php if(isset($vars['ev-repeat-option'][0]) and $vars['ev-repeat-option'][0] != "count") echo "hide";?> ">
    56 
    57         <label ><?php _e("Number of repeats","chronosly");?></label>
    58             <input id="fc_end_count" type="text" name="ev-end_count"  value="<?php echo (isset($vars['ev-end_count'][0])?$vars['ev-end_count'][0]:"");?>"  />
    59     </div>
    60 </div>
    61 <span class="info"></span>
    62 <div class="info-hide">
    63     <?php _e("If you choose to repeat an event, more options will appear such as repeating the event over a period time, either in days, weeks or years. These new options will allow you to set the end of the repetitions, by setting an exact end date o a definite number of repetitions, for examples the event to be repeated twice.", "chronosly");?><br/><br/>
    64     <?php _e("Note: Chronosly does not allow certain repetitions to be set. If the number of days with events is over a week o a month, the system does not allow the event to be published. E.g. if you create 8-days events, these can not be repeated weekly. 32-days events can not be set with weekly or monthly repetition.", "chronosly");?><br/><br/>
    65     <?php _e("It is possible to set 2-days events with daily repetitions. In this case the event would be repeated every 2 days.", "chronosly");?><br/><br/>
     62    <span class="info"></span>
     63    <div class="info-hide">
     64        <?php _e("If you choose to repeat an event, more options will appear such as repeating the event over a period time, either in days, weeks or years. These new options will allow you to set the end of the repetitions, by setting an exact end date o a definite number of repetitions, for examples the event to be repeated twice.", "chronosly");?><br/><br/>
     65        <?php _e("Note: Chronosly does not allow certain repetitions to be set. If the number of days with events is over a week o a month, the system does not allow the event to be published. E.g. if you create 8-days events, these can not be repeated weekly. 32-days events can not be set with weekly or monthly repetition.", "chronosly");?><br/><br/>
     66        <?php _e("It is possible to set 2-days events with daily repetitions. In this case the event would be repeated every 2 days.", "chronosly");?><br/><br/>
    6667
    6768
    6869
     70    </div>
    6971</div>
    7072                   
  • chronosly-events-calendar/trunk/post-types/post_type_chronosly.php

    r1202016 r1233814  
    22362236                    $vars = @get_post_meta($post->ID);
    22372237                    require_once(CHRONOSLY_PATH.DIRECTORY_SEPARATOR."metaboxes".DIRECTORY_SEPARATOR.self::POST_TYPE."_date_metabox.php");
     2238                    do_action("chronosly_date_metabox", $vars);
    22382239
    22392240                } elseif ('ticket' == $metabox['args']['type']) {
  • chronosly-events-calendar/trunk/templates/calendar-chronosly.php

    r1202016 r1233814  
    350350                        }
    351351                        $month = date("n", $w);
    352                         if(!isset($_REQUEST["shortcode"])){
     352                         if(!isset($_REQUEST["shortcode"])){
    353353
    354354                            echo "<div class='ch-navigate'>
    355355                                <span class='ch-current'>".date("d", $w)." - ".date("d", strtotime("+6 day",$w))." ".__(date("F", strtotime("+6 day",$w))).", $year</span>
    356                                 <span class='ch-links'>
    357                                     <a href='".(get_option('permalink_structure')?$calendar_url."year_".date("Y", strtotime("+6 day",$next1))."/week_".date("W", $next1):"index.php?post_type=chronosly_calendar&y=".date("Y", strtotime("+6 day",$next))."&week=".date("W", $next1))."' class='ch-next'><div class='arrow-up'></div>".date("d", $next)." - ".date("d", strtotime("+6 day", $next))." ".__(date("F", strtotime("+6 day", $next))).", ".date("Y", strtotime("+6 day", $next))."</a>
    358                                     <a href='".(get_option('permalink_structure')?$calendar_url."year_".date("Y", $prev)."/week_".date("W", $prev1):"index.php?post_type=chronosly_calendar&y=".date("Y", $prev)."&week=".date("W", $prev1))."' class='ch-prev'><div class='arrow-down'></div>".date("d", $prev)." - ".date("d", strtotime("+6 day", $prev))." ".__(date("F", $prev)).", ".date("Y", $prev)."</a>
     356                                <span class='ch-links'>";
     357                                    if(date("W", $next1) < 10) echo "<a href='".(get_option('permalink_structure')?$calendar_url."year_".date("Y", strtotime("+6 day",$next1))."/week_".date("W", $next1):"index.php?post_type=chronosly_calendar&y=".date("Y", strtotime("+6 day",$next))."&week=".date("W", $next1))."' class='ch-next'><div class='arrow-up'></div>".date("d", $next)." - ".date("d", strtotime("+6 day", $next))." ".__(date("F", strtotime("+6 day", $next))).", ".date("Y", strtotime("+6 day", $next))."</a>";
     358                                    else echo "<a href='".(get_option('permalink_structure')?$calendar_url."year_".date("Y", $next1)."/week_".date("W", $next1):"index.php?post_type=chronosly_calendar&y=".date("Y", $next)."&week=".date("W", $next1))."' class='ch-next'><div class='arrow-up'></div>".date("d", $next)." - ".date("d", strtotime("+6 day", $next))." ".__(date("F", strtotime("+6 day", $next))).", ".date("Y", strtotime("+6 day", $next))."</a>";
     359                                    echo "<a href='".(get_option('permalink_structure')?$calendar_url."year_".date("Y", $prev)."/week_".date("W", $prev1):"index.php?post_type=chronosly_calendar&y=".date("Y", $prev)."&week=".date("W", $prev1))."' class='ch-prev'><div class='arrow-down'></div>".date("d", $prev)." - ".date("d", strtotime("+6 day", $prev))." ".__(date("F", $prev)).", ".date("Y", $prev)."</a>
    359360                                </span>
    360361                                <div class='ch-navigate-type'>
     
    370371                            echo "<div class='ch-navigate'>
    371372                                <span class='ch-current'>".date("d", $w)." - ".date("d", strtotime("+6 day",$w))." ".__(date("F", strtotime("+6 day",$w))).", $year</span>
    372                                 <span class='ch-links'>
    373                                     <a href='javascript:ch_load_calendar(\"". (stripos($calendar_url, "?") !== FALSE?"$calendar_url":"$calendar_url?"). "&y=".date("Y", strtotime("+6 day",$next))."&week=".date("W", $next1)."$params\", $calendarId)' class='ch-next'><div class='arrow-up'></div>".date("d", $next)." - ".date("d", strtotime("+6 day", $next))." ".__(date("F", strtotime("+6 day", $next))).", ".date("Y", strtotime("+6 day", $next))."</a>
    374                                     <a href='javascript:ch_load_calendar(\"". (stripos($calendar_url, "?") !== FALSE?"$calendar_url":"$calendar_url?"). "&y=".date("Y", $prev)."&week=".date("W", $prev1)."$params\", $calendarId)' class='ch-prev'><div class='arrow-down'></div>".date("d", $prev)." - ".date("d", strtotime("+6 day", $prev))." ".__(date("F", $prev)).", ".date("Y", $prev)."</a>
     373                                <span class='ch-links'>";
     374                                   if(date("W", $next1) < 10) echo "<a href='javascript:ch_load_calendar(\"". (stripos($calendar_url, "?") !== FALSE?"$calendar_url":"$calendar_url?"). "&y=".date("Y", strtotime("+6 day",$next))."&week=".date("W", $next1)."$params\", $calendarId)' class='ch-next'><div class='arrow-up'></div>".date("d", $next)." - ".date("d", strtotime("+6 day", $next))." ".__(date("F", strtotime("+6 day", $next))).", ".date("Y", strtotime("+6 day", $next))."</a>";
     375                                    else echo "<a href='javascript:ch_load_calendar(\"". (stripos($calendar_url, "?") !== FALSE?"$calendar_url":"$calendar_url?"). "&y=".date("Y",$next)."&week=".date("W", $next1)."$params\", $calendarId)' class='ch-next'><div class='arrow-up'></div>".date("d", $next)." - ".date("d", strtotime("+6 day", $next))." ".__(date("F", strtotime("+6 day", $next))).", ".date("Y", strtotime("+6 day", $next))."</a>";
     376                                    echo "<a href='javascript:ch_load_calendar(\"". (stripos($calendar_url, "?") !== FALSE?"$calendar_url":"$calendar_url?"). "&y=".date("Y", $prev)."&week=".date("W", $prev1)."$params\", $calendarId)' class='ch-prev'><div class='arrow-down'></div>".date("d", $prev)." - ".date("d", strtotime("+6 day", $prev))." ".__(date("F", $prev)).", ".date("Y", $prev)."</a>
    375377                                </span>
    376378                                <div class='ch-navigate-type'>
Note: See TracChangeset for help on using the changeset viewer.