Changeset 1149448
- Timestamp:
- 04/29/2015 08:00:22 PM (11 years ago)
- Location:
- vacancy-personal-edition
- Files:
-
- 61 added
- 1 deleted
- 3 edited
-
tags/1.2.2 (added)
-
tags/1.2.2/css (added)
-
tags/1.2.2/css/Font Awesome Cheatsheet.pdf (added)
-
tags/1.2.2/css/FontAwesome.otf (added)
-
tags/1.2.2/css/fontawesome-webfont.eot (added)
-
tags/1.2.2/css/fontawesome-webfont.svg (added)
-
tags/1.2.2/css/fontawesome-webfont.ttf (added)
-
tags/1.2.2/css/fontawesome-webfont.woff (added)
-
tags/1.2.2/css/fonts.css (added)
-
tags/1.2.2/css/va-admin.css (added)
-
tags/1.2.2/css/va-datepicker.css (added)
-
tags/1.2.2/css/va.css (added)
-
tags/1.2.2/images (added)
-
tags/1.2.2/images/arrow.png (added)
-
tags/1.2.2/images/dark_leather.png (added)
-
tags/1.2.2/images/darkdenim3.png (added)
-
tags/1.2.2/images/loading.gif (added)
-
tags/1.2.2/js (added)
-
tags/1.2.2/js/chosen_v1.2.0 (added)
-
tags/1.2.2/js/chosen_v1.2.0/chosen-sprite.png (added)
-
tags/1.2.2/js/chosen_v1.2.0/chosen-sprite@2x.png (added)
-
tags/1.2.2/js/chosen_v1.2.0/chosen.css (added)
-
tags/1.2.2/js/chosen_v1.2.0/chosen.jquery.js (added)
-
tags/1.2.2/js/chosen_v1.2.0/chosen.jquery.min.js (added)
-
tags/1.2.2/js/chosen_v1.2.0/chosen.min.css (added)
-
tags/1.2.2/js/chosen_v1.2.0/chosen.proto.js (added)
-
tags/1.2.2/js/chosen_v1.2.0/chosen.proto.min.js (added)
-
tags/1.2.2/js/chosen_v1.2.0/docsupport (added)
-
tags/1.2.2/js/chosen_v1.2.0/docsupport/chosen.png (added)
-
tags/1.2.2/js/chosen_v1.2.0/docsupport/oss-credit.png (added)
-
tags/1.2.2/js/chosen_v1.2.0/docsupport/prism.css (added)
-
tags/1.2.2/js/chosen_v1.2.0/docsupport/prism.js (added)
-
tags/1.2.2/js/chosen_v1.2.0/docsupport/style.css (added)
-
tags/1.2.2/js/chosen_v1.2.0/index.html (added)
-
tags/1.2.2/js/chosen_v1.2.0/index.proto.html (added)
-
tags/1.2.2/js/chosen_v1.2.0/options.html (added)
-
tags/1.2.2/js/floatThead (added)
-
tags/1.2.2/js/floatThead/.gitignore (added)
-
tags/1.2.2/js/floatThead/CONTRIBUTING.md (added)
-
tags/1.2.2/js/floatThead/Gruntfile.coffee (added)
-
tags/1.2.2/js/floatThead/README.md (added)
-
tags/1.2.2/js/floatThead/bower.json (added)
-
tags/1.2.2/js/floatThead/demo (added)
-
tags/1.2.2/js/floatThead/demo/README.md (added)
-
tags/1.2.2/js/floatThead/dist (added)
-
tags/1.2.2/js/floatThead/dist/jquery.floatThead-slim.js (added)
-
tags/1.2.2/js/floatThead/dist/jquery.floatThead-slim.min.js (added)
-
tags/1.2.2/js/floatThead/dist/jquery.floatThead.js (added)
-
tags/1.2.2/js/floatThead/dist/jquery.floatThead.min.js (added)
-
tags/1.2.2/js/floatThead/jquery.floatThead._.js (added)
-
tags/1.2.2/js/floatThead/jquery.floatThead.js (added)
-
tags/1.2.2/js/floatThead/license.txt (added)
-
tags/1.2.2/js/floatThead/package.json (added)
-
tags/1.2.2/js/jquery.ui.touch-punch.min.js (added)
-
tags/1.2.2/readme.txt (added)
-
tags/1.2.2/va-admin-calendar.php (added)
-
tags/1.2.2/va-location-meta.php (added)
-
tags/1.2.2/va-reservation-meta.php (added)
-
tags/1.2.2/va-settings.php (added)
-
tags/1.2.2/va-venue-meta.php (added)
-
tags/1.2.2/vacancy.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/sftp-config.json (deleted)
-
trunk/va-settings.php (modified) (3 diffs)
-
trunk/vacancy.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vacancy-personal-edition/trunk/readme.txt
r1148497 r1149448 52 52 == Changelog == 53 53 54 = 1.2.3 = 55 * Feature ADD! The reservation intervals can now be reflected on your calendar 56 54 57 = 1.2.2 = 55 58 * Feature ADD! You now have the ability to pick which type of reservation length to use; Standard (any length), Fixed Length, or Min/Max Length with custom Intervals … … 94 97 == Upgrade Notice == 95 98 99 = 1.2.3 = 100 * Feature ADD! The reservation intervals can now be reflected on your calendar 101 96 102 = 1.2.2 = 97 103 * Feature ADD! You now have the ability to pick which type of reservation length to use; Standard (any length), Fixed Length, or Min/Max Length with custom Intervals -
vacancy-personal-edition/trunk/va-settings.php
r1148497 r1149448 97 97 <div class="reservation-end-time-type"> 98 98 <p> 99 <label style="width:auto;"><input id="va-standard-end-time" type="radio" name="va_end_time_type" value="standard" <?php if($this->va_settings['end_time_type'] == 'standard'){echo 'checked';};?> /> Standard End Time Selection </label><br/>99 <label style="width:auto;"><input id="va-standard-end-time" type="radio" name="va_end_time_type" value="standard" <?php if($this->va_settings['end_time_type'] == 'standard'){echo 'checked';};?> /> Standard End Time Selection (any length)</label><br/> 100 100 <label style="width:auto;"><input id="va-fixed-end-time" type="radio" name="va_end_time_type" value="fixed" <?php if($this->va_settings['end_time_type'] == 'fixed'){echo 'checked';};?> /> Fixed <?php echo $this->va_settings['reservation_single']; ?> Length</label><br/> 101 101 <label style="width:auto;"><input id="va-minmax-end-time" type="radio" name="va_end_time_type" value="minmax" <?php if($this->va_settings['end_time_type'] == 'minmax'){echo 'checked';};?> /> Min/Max <?php echo $this->va_settings['reservation_single']; ?> Length Selection</label> … … 174 174 </select> 175 175 </p> 176 <p> 177 Match Interval to Calendar Intervals<br/> 178 <select name="va_match_minmax_interval"> 179 <option value="no" <?php if($this->va_settings['match_minmax_interval'] == 'no'){echo 'selected';};?>>No</option> 180 <option value="yes" <?php if($this->va_settings['match_minmax_interval'] == 'yes'){echo 'selected';};?>>Yes</option> 181 </select> 182 </p> 176 183 </div> 177 184 </div> … … 179 186 <h2 class="va-tab-title">Form Field Visibility</h2><hr/> 180 187 <div id="va-show-form-fields"> 181 <p>Display these fields on the <?php echo $this->va_settings['reservation_single']; ?> form:</p> 188 <p> 189 Display these fields on the <?php echo $this->va_settings['reservation_single']; ?> form:<br/> 190 <span class="description">(Name, Email, Date, Start Time & End Time are always required and cannot be hidden)</span> 191 </p> 192 182 193 <ul> 183 194 <?php 195 if(!empty($this->va_settings['title_label'])){ 196 $title = $this->va_settings['title_label']; 197 }else{ 198 $title = $this->va_settings['reservation_single'] . ' Title'; 199 } 200 if(!empty($this->va_settings['phone_label'])){ 201 $phone = $this->va_settings['phone_label']; 202 }else{ 203 $phone = 'Phone'; 204 } 205 if(!empty($this->va_settings['reservation_type_label'])){ 206 $type = $this->va_settings['reservation_type_label']; 207 }else{ 208 $type = $this->va_settings['reservation_single'] . ' Type'; 209 } 210 if(!empty($this->va_settings['description_label'])){ 211 $description = $this->va_settings['description_label']; 212 }else{ 213 $description = $this->va_settings['reservation_single'] . ' Description'; 214 } 215 if(!empty($this->va_settings['setup_needs_label'])){ 216 $setup = $this->va_settings['setup_needs_label']; 217 }else{ 218 $setup = 'Setup Needs'; 219 } 220 if(!empty($this->va_settings['av_needs_label'])){ 221 $av = $this->va_settings['av_needs_label']; 222 }else{ 223 $av = 'A/V Tech Needs: (ie. Screen, Projector, Speakers, Microphone, etc.)'; 224 } 184 225 $fields = array( 185 226 //'end_time' => 'End Time', 186 227 'setup_time' => 'Setup Time', 187 228 'cleanup_time' => 'Cleanup Time', 188 'title' => 'Title',229 'title' => $title, 189 230 'venue' => $this->va_settings['venue_single'], 190 231 'location' => $this->va_settings['location_single'], 191 'phone' => 'Phone',192 'type' => $t his->va_settings['reservation_single'] . ' type',193 'description' => 'Description',194 'setup_needs' => 'Setup Needs',195 'av_needs' => 'A/V Needs'232 'phone' => $phone, 233 'type' => $type, 234 'description' => $description, 235 'setup_needs' => $setup, 236 'av_needs' => $av 196 237 ); 197 238 ?> -
vacancy-personal-edition/trunk/vacancy.php
r1148497 r1149448 4 4 Plugin URI: http://kraftpress.it 5 5 Description: A full featured appointment and reservation booking solution 6 Version: 1.2. 26 Version: 1.2.3 7 7 Author: kraftpress 8 8 Author URI: http://kraftpress.it … … 21 21 // vars 22 22 $this->va_settings = array( 23 'version' => '1.2. 2',23 'version' => '1.2.3', 24 24 'path' => apply_filters('va_get_path', __FILE__), 25 25 'dir' => apply_filters('va_get_dir', __FILE__), … … 35 35 'day_end_time' => '22:00', 36 36 'end_time_length_hr' => '0', 37 'end_time_length_min' => '0 ',37 'end_time_length_min' => '00', 38 38 'end_time_min_length_hr' => '0', 39 'end_time_min_length_min' => '0 ',39 'end_time_min_length_min' => '00', 40 40 'end_time_max_length_hr' => '0', 41 'end_time_max_length_min' => '0 ',41 'end_time_max_length_min' => '00', 42 42 'end_time_minmax_interval' => 0.25, 43 43 'end_time_type' => 'standard', 44 'match_minmax_interval' => 'no', 44 45 'require_login' => 'yes', 45 46 'admin_new_notification' => 'yes', … … 131 132 132 133 if(!empty($_POST['va_end_time_type'])){update_option('va_end_time_type', sanitize_text_field($_POST['va_end_time_type']));} 133 if(!empty($_POST['va_end_time_length_hr'])){update_option('va_end_time_length_hr', sanitize_text_field($_POST['va_end_time_length_hr']));} 134 if(!empty($_POST['va_end_time_length_min'])){update_option('va_end_time_length_min', sanitize_text_field($_POST['va_end_time_length_min']));} 135 if(!empty($_POST['va_end_time_min_length_hr'])){update_option('va_end_time_min_length_hr', sanitize_text_field($_POST['va_end_time_min_length_hr']));} 136 if(!empty($_POST['va_end_time_min_length_min'])){update_option('va_end_time_min_length_min', sanitize_text_field($_POST['va_end_time_min_length_min']));} 137 if(!empty($_POST['va_end_time_max_length_hr'])){update_option('va_end_time_max_length_hr', sanitize_text_field($_POST['va_end_time_max_length_hr']));} 138 if(!empty($_POST['va_end_time_max_length_min'])){update_option('va_end_time_max_length_min', sanitize_text_field($_POST['va_end_time_max_length_min']));} 139 if(!empty($_POST['va_end_time_minmax_interval'])){update_option('va_end_time_minmax_interval', sanitize_text_field($_POST['va_end_time_minmax_interval']));} 134 if(isset($_POST['va_end_time_length_hr'])){update_option('va_end_time_length_hr', sanitize_text_field($_POST['va_end_time_length_hr']));} 135 if(isset($_POST['va_end_time_length_min'])){update_option('va_end_time_length_min', sanitize_text_field($_POST['va_end_time_length_min']));} 136 if(isset($_POST['va_end_time_min_length_hr'])){update_option('va_end_time_min_length_hr', sanitize_text_field($_POST['va_end_time_min_length_hr']));} 137 if(isset($_POST['va_end_time_min_length_min'])){update_option('va_end_time_min_length_min', sanitize_text_field($_POST['va_end_time_min_length_min']));} 138 if(isset($_POST['va_end_time_max_length_hr'])){update_option('va_end_time_max_length_hr', sanitize_text_field($_POST['va_end_time_max_length_hr']));} 139 if(isset($_POST['va_end_time_max_length_min'])){update_option('va_end_time_max_length_min', sanitize_text_field($_POST['va_end_time_max_length_min']));} 140 if(isset($_POST['va_end_time_minmax_interval'])){update_option('va_end_time_minmax_interval', sanitize_text_field($_POST['va_end_time_minmax_interval']));} 141 if(!empty($_POST['va_match_minmax_interval'])){update_option('va_match_minmax_interval', sanitize_text_field($_POST['va_match_minmax_interval']));} 140 142 141 143 if(!empty($_POST['va_require_login'])){update_option('va_require_login', sanitize_text_field($_POST['va_require_login']));} … … 236 238 $end_time_minmax_interval = get_option('va_end_time_minmax_interval'); 237 239 if(!empty($end_time_minmax_interval)){$this->va_settings['end_time_minmax_interval'] = $end_time_minmax_interval;} 240 $match_minmax_interval = get_option('va_match_minmax_interval'); 241 if(!empty($match_minmax_interval)){$this->va_settings['match_minmax_interval'] = $match_minmax_interval;} 238 242 239 243 $require_login = get_option('va_require_login'); … … 1504 1508 ?> 1505 1509 <?php $reservations = new WP_Query($args); ?> 1506 <?php $times = $this->va_get_times($this->va_settings['day_start_time'],$this->va_settings['day_end_time'],0.25); ?> 1510 <?php if($this->va_settings['match_minmax_interval'] == 'yes') : ?> 1511 <?php $interval = $this->va_settings['end_time_minmax_interval']; ?> 1512 <?php else : ?> 1513 <?php $interval = 0.25; ?> 1514 <?php endif; ?> 1515 <?php $times = $this->va_get_times($this->va_settings['day_start_time'],$this->va_settings['day_end_time'],$interval); ?> 1507 1516 <?php if($times) : ?> 1517 <?php $reservation_displayed = ''; ?> 1508 1518 <?php foreach($times as $time) : ?> 1509 1519 <tr> … … 1547 1557 <?php $end = get_post_meta($reservation->ID, 'va_end_cleanup_time', true); ?> 1548 1558 <?php $diff = (strtotime($end) - strtotime($start))/60; ?> 1549 <?php $height = ($diff/15) * 30; ?> 1559 <?php $int_minutes = $this->va_decimal_to_minutes($interval); ?> 1560 <?php $height = ($diff/$int_minutes) * 30; ?> 1550 1561 <?php $status = get_post_meta($reservation->ID, 'va_reservation_status', true); ?> 1551 1562 <?php if($status != 'denied' && $status != 'private') : ?> 1552 <?php if($start == $time) : ?> 1563 <?php if($start <= $time && $end >= $time && ($reservation_displayed != $reservation->ID)) : ?> 1564 <?php $reservation_displayed = $reservation->ID; ?> 1553 1565 <div class="reservation <?php echo $status; ?>" style="height:<?php echo $height; ?>px;<?php echo apply_filters('va_reservation_background', '', $status); ?>"> 1554 1566 <?php if($this->va_settings['show_reservation_details'] == 'yes') : ?> … … 2331 2343 return $decimal; 2332 2344 } 2345 2346 function va_decimal_to_minutes($decimal){ 2347 return $decimal * 60; 2348 } 2333 2349 2334 2350 function va_get_time_select($name, $value = null, $id = null, $required = false, $start = false, $end = false, $interval = 0.25, $reverse = false){
Note: See TracChangeset
for help on using the changeset viewer.