Changeset 1233814
- Timestamp:
- 08/29/2015 06:14:07 PM (11 years ago)
- Location:
- chronosly-events-calendar
- Files:
-
- 11 edited
- 26 copied
-
tags/2.2.0 (copied) (copied from chronosly-events-calendar/trunk)
-
tags/2.2.0/README.txt (copied) (copied from chronosly-events-calendar/trunk/README.txt) (1 diff)
-
tags/2.2.0/chronosly.php (copied) (copied from chronosly-events-calendar/trunk/chronosly.php) (2 diffs)
-
tags/2.2.0/classes/chronosly_dad_elements.php (copied) (copied from chronosly-events-calendar/trunk/classes/chronosly_dad_elements.php) (9 diffs)
-
tags/2.2.0/classes/chronosly_extend.php (copied) (copied from chronosly-events-calendar/trunk/classes/chronosly_extend.php) (2 diffs)
-
tags/2.2.0/classes/chronosly_settings.php (copied) (copied from chronosly-events-calendar/trunk/classes/chronosly_settings.php)
-
tags/2.2.0/classes/chronosly_shortcode.php (modified) (1 diff)
-
tags/2.2.0/classes/chronosly_templates.php (copied) (copied from chronosly-events-calendar/trunk/classes/chronosly_templates.php) (2 diffs)
-
tags/2.2.0/css/admin_template1.css (copied) (copied from chronosly-events-calendar/trunk/css/admin_template1.css)
-
tags/2.2.0/custom-templates/css/default.css (copied) (copied from chronosly-events-calendar/trunk/custom-templates/css/default.css)
-
tags/2.2.0/custom-templates/dad1/default.php (copied) (copied from chronosly-events-calendar/trunk/custom-templates/dad1/default.php)
-
tags/2.2.0/custom-templates/dad2/default.html (copied) (copied from chronosly-events-calendar/trunk/custom-templates/dad2/default.html)
-
tags/2.2.0/custom-templates/dad2/default.php (copied) (copied from chronosly-events-calendar/trunk/custom-templates/dad2/default.php)
-
tags/2.2.0/custom-templates/dad2/default_featured.html (copied) (copied from chronosly-events-calendar/trunk/custom-templates/dad2/default_featured.html)
-
tags/2.2.0/custom-templates/dad4/default.php (copied) (copied from chronosly-events-calendar/trunk/custom-templates/dad4/default.php)
-
tags/2.2.0/js/admin.js (copied) (copied from chronosly-events-calendar/trunk/js/admin.js)
-
tags/2.2.0/js/front.js (copied) (copied from chronosly-events-calendar/trunk/js/front.js) (3 diffs)
-
tags/2.2.0/languages/chronosly-nl_NL.mo (copied) (copied from chronosly-events-calendar/trunk/languages/chronosly-nl_NL.mo)
-
tags/2.2.0/languages/chronosly-nl_NL.po (copied) (copied from chronosly-events-calendar/trunk/languages/chronosly-nl_NL.po)
-
tags/2.2.0/metaboxes/chronosly_dad_framework_metabox.php (copied) (copied from chronosly-events-calendar/trunk/metaboxes/chronosly_dad_framework_metabox.php) (1 diff)
-
tags/2.2.0/metaboxes/chronosly_date_metabox.php (modified) (1 diff)
-
tags/2.2.0/metaboxes/chronosly_tickets_metabox.php (copied) (copied from chronosly-events-calendar/trunk/metaboxes/chronosly_tickets_metabox.php)
-
tags/2.2.0/metaboxes/settings/settings.php (copied) (copied from chronosly-events-calendar/trunk/metaboxes/settings/settings.php)
-
tags/2.2.0/metaboxes/settings/support.php (copied) (copied from chronosly-events-calendar/trunk/metaboxes/settings/support.php)
-
tags/2.2.0/post-types/post_type_chronosly.php (copied) (copied from chronosly-events-calendar/trunk/post-types/post_type_chronosly.php) (1 diff)
-
tags/2.2.0/post-types/post_type_chronosly_calendar.php (copied) (copied from chronosly-events-calendar/trunk/post-types/post_type_chronosly_calendar.php)
-
tags/2.2.0/post-types/post_type_chronosly_category.php (copied) (copied from chronosly-events-calendar/trunk/post-types/post_type_chronosly_category.php)
-
tags/2.2.0/templates/calendar-chronosly.php (copied) (copied from chronosly-events-calendar/trunk/templates/calendar-chronosly.php) (2 diffs)
-
trunk/README.txt (modified) (1 diff)
-
trunk/chronosly.php (modified) (2 diffs)
-
trunk/classes/chronosly_dad_elements.php (modified) (6 diffs)
-
trunk/classes/chronosly_templates.php (modified) (2 diffs)
-
trunk/js/front.js (modified) (1 diff)
-
trunk/metaboxes/chronosly_dad_framework_metabox.php (modified) (1 diff)
-
trunk/metaboxes/chronosly_date_metabox.php (modified) (1 diff)
-
trunk/post-types/post_type_chronosly.php (modified) (1 diff)
-
trunk/templates/calendar-chronosly.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
chronosly-events-calendar/tags/2.2.0/README.txt
r1202019 r1233814 6 6 Requires at least: 3.1 7 7 Tested up to: 4.2 8 Stable tag: 2. 1.98 Stable tag: 2.2.0 9 9 License: GPLv2 10 10 -
chronosly-events-calendar/tags/2.2.0/chronosly.php
r1202016 r1233814 4 4 * Plugin URI: http://www.chronosly.com 5 5 * 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.96 * Version: 2.2.0 7 7 * Author: Heimsveld IPBN 8 8 * Author URI: http://www.heimsveld.com … … 26 26 define('CHRONOSLY_TEMPLATES_URL', plugins_url()."/chronosly-templates"); //path para incluir scripts o css 27 27 define('CHRONOSLY_DEBUG', false); //debug mode 28 define('CHRONOSLY_VERSION', "2. 1.9"); //debug mode28 define('CHRONOSLY_VERSION', "2.2.0"); //debug mode 29 29 define('CHRONOSLY_ADMIN_INTERFACE', 1); //Todo: hacer diferentes interficies de admin simple o varios event 30 30 define('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 143 143 else if(trim($cont) and stripos($cont, "{{notprev}}") === FALSE ){ 144 144 145 $value = __($value , "chronosly"); 145 $value2 = __($value , "chronosly"); 146 $value = str_replace(trim($value), $value2, $value); 146 147 return "<span class='before'>" . $value . "</span> " . $cont; 147 148 } … … 221 222 } 222 223 else if(trim($cont)) { 223 $value = __($value , "chronosly"); 224 $value2 = __(trim($value) , "chronosly"); 225 $value = str_replace(trim($value), $value2, $value); 224 226 return $cont . "<span class='after'>" . $value . "</span> "; 225 227 } … … 647 649 $id = 0; 648 650 $repe = ""; 649 $variable = "{{id }}";651 $variable = "{{idurl}}"; 650 652 $postype = "chronosly"; 651 653 if ($ini = stripos($cont, "ch-organizer-")) { … … 1333 1335 $s = json_decode($vars->metas["ev-from-h"][0]); 1334 1336 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; 1337 1339 } 1338 1340 } … … 1359 1361 1360 1362 $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; 1362 1365 } 1363 1366 } … … 1437 1440 1438 1441 $s = json_decode($vars->metas["ev-from-h"][0]); 1442 1439 1443 // $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 } 1442 1455 // print_r($vars->metas["ev-from-h"][0]); 1443 1456 } … … 2086 2099 function chronosly_create_custom_code($value, $vars, $html = 0) 2087 2100 { 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; 2090 2106 } 2091 2107 … … 5054 5070 $settings = unserialize(get_option("chronosly-settings")); 5055 5071 $soldout = ""; 5072 $soldoutClass = "solded"; 5056 5073 if (!$settings["chronosly_tickets"]) return; 5057 5074 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 5058 5084 $currency_type = ""; 5059 5085 $length = strlen(utf8_decode(html_entity_decode($settings["chronosly_currency"], ENT_COMPAT, 'utf-8'))); 5060 5086 if ($length > 1) $currency_type = "$length"; 5061 5087 $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 } 5063 5102 if($vars->metas['tickets_vars'][$value]["sale"] && $vars->metas['tickets_vars'][$value]["sales-price"]) { 5064 5103 $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>"; 5066 5105 } 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>"; 5068 5107 } 5069 5108 … … 5758 5797 } // END 5759 5798 } // END 5799 -
chronosly-events-calendar/tags/2.2.0/classes/chronosly_extend.php
r1202016 r1233814 114 114 "dw":1, 115 115 "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 116 132 } 117 133 }'); … … 605 621 } // END 606 622 623 -
chronosly-events-calendar/tags/2.2.0/classes/chronosly_shortcode.php
r1157813 r1233814 205 205 } 206 206 if($args["featured"]) { 207 if($args["featured"] == "yes") $feat = 1;207 if($args["featured"] == "yes" || $args["featured"] == "1") $feat = 1; 208 208 else $feat = ""; 209 209 $q['post_meta_like']["featured"] = $feat; -
chronosly-events-calendar/tags/2.2.0/classes/chronosly_templates.php
r1202016 r1233814 1941 1941 switch(trim($var)){ 1942 1942 case "id": 1943 return $vars->pid; 1943 $repeat =""; 1944 if($vars->metas['repeat']) $repeat = "&repeat=" . $vars->metas['repeat']; 1945 return $vars->pid.$repeat; 1944 1946 break; 1945 1947 case "size": … … 2064 2066 2065 2067 $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 } 2067 2077 switch(trim($func)){ 2068 2078 case "filter": -
chronosly-events-calendar/tags/2.2.0/js/front.js
r1202016 r1233814 178 178 // console.log("entra"); 179 179 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]); 181 181 } 182 182 }); … … 203 203 ); 204 204 } 205 onload_calendar(); 206 207 }); 205 onload_calendar();}); 208 206 209 207 function ch_load_calendar(url, id){ … … 377 375 if(dir == "next") element.next().toggleClass("show"); 378 376 else element.prev().toggleClass("show"); 377 scrollToAnchor(jQuery(".ev-data.seasons_list"), -10); 379 378 } 380 379 381 380 382 381 function js_post_pagination(){ 383 console.log("sadsa");384 382 385 383 jQuery(".chronosly-content-block .chronosly script").each(function(){ -
chronosly-events-calendar/tags/2.2.0/metaboxes/chronosly_dad_framework_metabox.php
r1202016 r1233814 83 83 if($this->settings["chronosly_template_min"] and !in_array($vista, $sinmin)) $stilo .= "min-width:".$this->settings["chronosly_template_min"]."px;"; 84 84 ?> 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";?>"> 86 86 <?php } else { ?> 87 87 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}} "> 89 89 <?php 90 90 } //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> 4 5 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> 11 12 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 25 26 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";?>" > 28 29 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"><?php30 <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 31 32 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> 37 38 38 39 39 40 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> 47 61 </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/> 66 67 67 68 68 69 70 </div> 69 71 </div> 70 72 -
chronosly-events-calendar/tags/2.2.0/post-types/post_type_chronosly.php
r1202016 r1233814 2236 2236 $vars = @get_post_meta($post->ID); 2237 2237 require_once(CHRONOSLY_PATH.DIRECTORY_SEPARATOR."metaboxes".DIRECTORY_SEPARATOR.self::POST_TYPE."_date_metabox.php"); 2238 do_action("chronosly_date_metabox", $vars); 2238 2239 2239 2240 } elseif ('ticket' == $metabox['args']['type']) { -
chronosly-events-calendar/tags/2.2.0/templates/calendar-chronosly.php
r1202016 r1233814 354 354 echo "<div class='ch-navigate'> 355 355 <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> 359 360 </span> 360 361 <div class='ch-navigate-type'> … … 370 371 echo "<div class='ch-navigate'> 371 372 <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> 375 377 </span> 376 378 <div class='ch-navigate-type'> -
chronosly-events-calendar/trunk/README.txt
r1202019 r1233814 6 6 Requires at least: 3.1 7 7 Tested up to: 4.2 8 Stable tag: 2. 1.98 Stable tag: 2.2.0 9 9 License: GPLv2 10 10 -
chronosly-events-calendar/trunk/chronosly.php
r1202016 r1233814 4 4 * Plugin URI: http://www.chronosly.com 5 5 * 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.96 * Version: 2.2.0 7 7 * Author: Heimsveld IPBN 8 8 * Author URI: http://www.heimsveld.com … … 26 26 define('CHRONOSLY_TEMPLATES_URL', plugins_url()."/chronosly-templates"); //path para incluir scripts o css 27 27 define('CHRONOSLY_DEBUG', false); //debug mode 28 define('CHRONOSLY_VERSION', "2. 1.9"); //debug mode28 define('CHRONOSLY_VERSION', "2.2.0"); //debug mode 29 29 define('CHRONOSLY_ADMIN_INTERFACE', 1); //Todo: hacer diferentes interficies de admin simple o varios event 30 30 define('CHRONOSLY_ADMIN_MODALITY', 1); //Todo: hacer diferentes modalidades segun la tematica -
chronosly-events-calendar/trunk/classes/chronosly_dad_elements.php
r1202016 r1233814 143 143 else if(trim($cont) and stripos($cont, "{{notprev}}") === FALSE ){ 144 144 145 $value = __($value , "chronosly"); 145 $value2 = __(trim($value) , "chronosly"); 146 $value = str_replace(trim($value), $value2, $value); 146 147 return "<span class='before'>" . $value . "</span> " . $cont; 147 148 } … … 221 222 } 222 223 else if(trim($cont)) { 223 $value = __($value , "chronosly"); 224 $value2 = __(trim($value) , "chronosly"); 225 $value = str_replace(trim($value), $value2, $value); 224 226 return $cont . "<span class='after'>" . $value . "</span> "; 225 227 } … … 1333 1335 $s = json_decode($vars->metas["ev-from-h"][0]); 1334 1336 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; 1337 1339 } 1338 1340 } … … 1359 1361 1360 1362 $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; 1362 1365 } 1363 1366 } … … 1438 1441 $s = json_decode($vars->metas["ev-from-h"][0]); 1439 1442 // $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); 1441 1444 else $cont .= $s; 1442 1445 // print_r($vars->metas["ev-from-h"][0]); … … 5060 5063 if ($length > 1) $currency_type = "$length"; 5061 5064 $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 } 5063 5079 if($vars->metas['tickets_vars'][$value]["sale"] && $vars->metas['tickets_vars'][$value]["sales-price"]) { 5064 5080 $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 1941 1941 switch(trim($var)){ 1942 1942 case "id": 1943 return $vars->pid; 1943 $repeat =""; 1944 if($vars->metas['repeat']) $repeat = "&repeat=" . $vars->metas['repeat']; 1945 return $vars->pid.$repeat; 1944 1946 break; 1945 1947 case "size": … … 2064 2066 2065 2067 $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 } 2067 2077 switch(trim($func)){ 2068 2078 case "filter": -
chronosly-events-calendar/trunk/js/front.js
r1202016 r1233814 178 178 // console.log("entra"); 179 179 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]); 181 181 } 182 182 }); -
chronosly-events-calendar/trunk/metaboxes/chronosly_dad_framework_metabox.php
r1202016 r1233814 83 83 if($this->settings["chronosly_template_min"] and !in_array($vista, $sinmin)) $stilo .= "min-width:".$this->settings["chronosly_template_min"]."px;"; 84 84 ?> 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";?>"> 86 86 <?php } else { ?> 87 87 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}} "> 89 89 <?php 90 90 } //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> 4 5 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> 11 12 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 25 26 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";?>" > 28 29 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"><?php30 <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 31 32 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> 37 38 38 39 39 40 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> 47 61 </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/> 66 67 67 68 68 69 70 </div> 69 71 </div> 70 72 -
chronosly-events-calendar/trunk/post-types/post_type_chronosly.php
r1202016 r1233814 2236 2236 $vars = @get_post_meta($post->ID); 2237 2237 require_once(CHRONOSLY_PATH.DIRECTORY_SEPARATOR."metaboxes".DIRECTORY_SEPARATOR.self::POST_TYPE."_date_metabox.php"); 2238 do_action("chronosly_date_metabox", $vars); 2238 2239 2239 2240 } elseif ('ticket' == $metabox['args']['type']) { -
chronosly-events-calendar/trunk/templates/calendar-chronosly.php
r1202016 r1233814 350 350 } 351 351 $month = date("n", $w); 352 if(!isset($_REQUEST["shortcode"])){352 if(!isset($_REQUEST["shortcode"])){ 353 353 354 354 echo "<div class='ch-navigate'> 355 355 <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> 359 360 </span> 360 361 <div class='ch-navigate-type'> … … 370 371 echo "<div class='ch-navigate'> 371 372 <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> 375 377 </span> 376 378 <div class='ch-navigate-type'>
Note: See TracChangeset
for help on using the changeset viewer.