Changeset 2149207
- Timestamp:
- 09/01/2019 04:47:27 PM (6 years ago)
- Location:
- shiftcontroller/trunk
- Files:
-
- 14 edited
-
hc3/ui/filter.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
sh4/calendars/html/admin/view/edit.php (modified) (1 diff)
-
sh4/calendars/html/admin/view/new.php (modified) (1 diff)
-
sh4/calendars/presenter.php (modified) (1 diff)
-
sh4/new/controller/confirm.php (modified) (1 diff)
-
sh4/new/view/calendar.php (modified) (3 diffs)
-
sh4/new/view/confirm.php (modified) (1 diff)
-
sh4/schedule/assets/js/calendar.js (modified) (1 diff)
-
sh4/schedule/html/view/day.php (modified) (2 diffs)
-
sh4/schedule/html/view/month.php (modified) (2 diffs)
-
sh4/schedule/html/view/week.php (modified) (2 diffs)
-
sh4/shifts/view/zoom.php (modified) (1 diff)
-
shiftcontroller4.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shiftcontroller/trunk/hc3/ui/filter.php
r1855340 r2149207 90 90 91 91 // restore tags 92 foreach( $tags as $tag => $param ){ 93 $element->tag( $tag, $param ); 94 } 92 // foreach( $tags as $tag => $param ){ 93 // if( is_object($element) ){ 94 // $element->tag( $tag, $param ); 95 // } 96 // } 95 97 } 96 98 -
shiftcontroller/trunk/readme.txt
r2134277 r2149207 60 60 61 61 == Changelog == 62 63 = 4.4.6 = 64 * Changed calendar description field to a wysiwyg editor. Also WordPress shortcodes are now processed in this field. 65 * A small change when creating multiple shifts: for example if there are 2 new shifts for 1 Sep and 1 Oct, after submit you return back to 1 Sep calendar, rather jumping forward to 1 Oct. 66 * BUG: Attempted to fix a fatal error in print view in some configurations. 62 67 63 68 = 4.4.5 = -
shiftcontroller/trunk/sh4/calendars/html/admin/view/edit.php
r1912260 r2149207 66 66 $inputs[] = $idView; 67 67 $inputs[] = $this->ui->makeInputText( 'title', '__Title__', $model->getTitle() )->bold(); 68 $inputs[] = $this->ui->makeInput Textarea( 'description', '__Description__', $model->getDescription());68 $inputs[] = $this->ui->makeInputRichTextarea( 'description', '__Description__', $model->getDescription() )->setRows(6); 69 69 70 70 $typeOptions = array( -
shiftcontroller/trunk/sh4/calendars/html/admin/view/new.php
r1909721 r2149207 56 56 $inputs = array(); 57 57 $inputs[] = $this->ui->makeInputText( 'title', '__Title__' )->bold(); 58 $inputs[] = $this->ui->makeInput Textarea( 'description', '__Description__');58 $inputs[] = $this->ui->makeInputRichTextarea( 'description', '__Description__' )->setRows(6); 59 59 60 60 $typeOptions = array( -
shiftcontroller/trunk/sh4/calendars/presenter.php
r1909721 r2149207 5 5 { 6 6 $this->ui = $ui; 7 } 8 9 public function presentDescription( SH4_Calendars_Model $calendar ) 10 { 11 $return = $calendar->getDescription(); 12 13 if( defined('WPINC') ){ 14 $return = do_shortcode( $return ); 15 } 16 17 return $return; 7 18 } 8 19 -
shiftcontroller/trunk/sh4/new/controller/confirm.php
r1992902 r2149207 166 166 $scheduleLink = array( 'schedule', array() ); 167 167 } 168 $scheduleLink[1]['start'] = $date;169 168 169 $returnToDate = $dates[0]; 170 $scheduleLink[1]['start'] = $returnToDate; 170 171 171 172 $return = array( $scheduleLink, '__New Created__' . ' [' . count($ids) . ']' ); -
shiftcontroller/trunk/sh4/new/view/calendar.php
r2053890 r2149207 26 26 SH4_App_Query $appQuery, 27 27 SH4_New_Query $newQuery, 28 SH4_Calendars_Presenter $calendarsPresenter, 28 29 29 30 SH4_ShiftTypes_Presenter $shiftTypesPresenter … … 38 39 $this->appQuery = $hooks->wrap( $appQuery ); 39 40 $this->newQuery = $hooks->wrap( $newQuery ); 41 $this->calendarsPresenter = $hooks->wrap( $calendarsPresenter ); 40 42 $this->shiftTypesPresenter = $hooks->wrap( $shiftTypesPresenter ); 41 43 … … 162 164 ->tag('font-size', 4) 163 165 ; 164 $description = $e->getDescription(); 166 167 $description = $this->calendarsPresenter->presentDescription( $e ); 165 168 if( strlen($description) ){ 166 169 $thisLabel = $this->ui->makeList( array($thisLabel, $description) ) -
shiftcontroller/trunk/sh4/new/view/confirm.php
r2053890 r2149207 160 160 $out = array(); 161 161 $calendarView = $this->calendarsPresenter->presentTitle( $calendar ); 162 $description = $calendar->getDescription(); 162 163 $description = $this->calendarsPresenter->presentDescription( $calendar ); 163 164 if( strlen($description) ){ 164 165 $calendarView = $this->ui->makeList( array($calendarView, $description) ) -
shiftcontroller/trunk/sh4/schedule/assets/js/calendar.js
r2134277 r2149207 71 71 } 72 72 73 // kind of trick, if it doesn't contain our 'hca=' part then skip 74 if( ! href.includes('hca=') ){ 75 return true; 76 } 77 73 78 var $waiter = $details; 74 79 hc2_set_loader( $waiter ); 75 80 76 81 href = hc2MakeAjaxHref( href ); 77 78 82 79 83 jQuery.ajax({ -
shiftcontroller/trunk/sh4/schedule/html/view/day.php
r2134277 r2149207 217 217 // $calendarView = $this->calendarsPresenter->presentTitle( $calendar ); 218 218 $calendarView = $calendar->getTitle(); 219 220 $description = $calendar->getDescription(); 221 $description = htmlspecialchars( $description ); 222 223 $calendarView = $this->ui->makeSpan( $calendarView ) 224 // ->tag('font-size', 4) 225 ->addAttr( 'title', $description ) 226 ; 227 219 228 $viewCalendars[ $calendarId ] = $calendarView; 220 229 } … … 390 399 foreach( $employees as $employee ){ 391 400 $label = $employee->getTitle(); 401 402 $description = $employee->getDescription(); 403 $description = htmlspecialchars( $description ); 404 392 405 $label = $this->ui->makeSpan( $label ) 393 406 ->tag('font-size', 4) 407 ->addAttr( 'title', $description ) 394 408 ; 395 409 $viewEmployees[ $employee->getId() ] = $label; -
shiftcontroller/trunk/sh4/schedule/html/view/month.php
r2134277 r2149207 237 237 // $label = $this->calendarsPresenter->presentTitle( $calendar ); 238 238 $label = $calendar->getTitle(); 239 240 $description = $calendar->getDescription(); 241 $description = htmlspecialchars( $description ); 242 243 $label = $this->ui->makeSpan( $label ) 244 // ->tag('font-size', 4) 245 ->addAttr( 'title', $description ) 246 ; 247 239 248 $viewCalendars[ $calendar->getId() ] = $label; 240 249 } … … 465 474 foreach( $employees as $employee ){ 466 475 $label = $employee->getTitle(); 476 477 $description = $employee->getDescription(); 478 $description = htmlspecialchars( $description ); 479 467 480 $label = $this->ui->makeSpan( $label ) 468 481 ->tag('font-size', 4) 482 ->addAttr( 'title', $description ) 469 483 ; 470 484 $viewEmployees[ $employee->getId() ] = $label; -
shiftcontroller/trunk/sh4/schedule/html/view/week.php
r2134277 r2149207 267 267 // $calendarView = $this->calendarsPresenter->presentTitle( $calendar ); 268 268 $calendarView = $calendar->getTitle(); 269 270 $description = $calendar->getDescription(); 271 $description = htmlspecialchars( $description ); 272 273 $calendarView = $this->ui->makeSpan( $calendarView ) 274 // ->tag('font-size', 4) 275 ->addAttr( 'title', $description ) 276 ; 277 269 278 $view_calendars[ $calendarId ] = $calendarView; 270 279 } … … 503 512 $view_employees = array(); 504 513 foreach( $employees as $employee ){ 514 $description = $employee->getDescription(); 515 $description = htmlspecialchars( $description ); 516 505 517 $label = $employee->getTitle(); 506 518 $label = $this->ui->makeSpan( $label ) 507 519 ->tag('font-size', 4) 508 ; 520 ->addAttr( 'title', $description ) 521 ; 522 509 523 $view_employees[ $employee->getId() ] = $label; 510 524 } -
shiftcontroller/trunk/sh4/shifts/view/zoom.php
r2134277 r2149207 176 176 ->tag('font-size', 4) 177 177 ; 178 $calendarDescription = $calendar->getDescription(); 178 179 // $calendarDescription = $calendar->getDescription(); 180 $calendarDescription = $this->calendarsPresenter->presentDescription( $calendar ); 179 181 if( strlen($calendarDescription) ){ 180 182 $thisView = $this->ui->makeList( array($thisView, $calendarDescription) ) -
shiftcontroller/trunk/shiftcontroller4.php
r2134277 r2149207 4 4 * Plugin URI: http://www.shiftcontroller.com/ 5 5 * Description: Staff scheduling plugin 6 * Version: 4.4. 56 * Version: 4.4.6 7 7 * Author: hitcode.com 8 8 * Author URI: http://www.shiftcontroller.com/ … … 11 11 */ 12 12 13 define( 'SH4_VERSION', 44 5);13 define( 'SH4_VERSION', 446 ); 14 14 15 15 if (! defined('ABSPATH')) exit; // Exit if accessed directly
Note: See TracChangeset
for help on using the changeset viewer.