| @@ -91,13 +91,10 @@ | ||
| 91 | 91 | <strong>to</strong> (__To Date__, YYYYMMDD / __To Date Time__, YYYYMMDDHHMM)<br> |
| 92 | 92 | <strong>status_id</strong> (publish, draft)<br> |
| 93 | 93 | </p> |
| 94 | 94 | |
| 95 | +<?php if( class_exists('SH4_CFields_Model') ) : ?> | |
| 95 | 96 | <?php |
| 96 | -$cfields = array(); | |
| 97 | -?> | |
| 98 | -<?php if( class_exists('SH4_CFields_Model') or class_exists('SH4_CFields2_Model') ) : ?> | |
| 99 | -<?php | |
| 100 | 97 | $f = ShiftController4::$instance->root(); |
| 101 | 98 | $cfieldsQuery = $f->make('SH4_CFields_Query'); |
| 102 | 99 | $cfields = $cfieldsQuery->read(); |
| 103 | 100 | ?> |
| @@ -226,11 +223,8 @@ | ||
| 226 | 223 | <strong>start</strong> (__Start Date Time__, YYYYMMDDHHMM)<br> |
| 227 | 224 | <strong>end</strong> (__End Date Time__, YYYYMMDDHHMM)<br> |
| 228 | 225 | <strong>status_id</strong> (publish, draft)<br> |
| 229 | 226 | <strong>conflict</strong> (__Set to 1 to allow creation of shifts with conflicts__) <em>__optional__</em><br> |
| 230 | -<?php foreach( $cfields as $cfield ) : ?> | |
| 231 | -<strong><?php echo $cfield->getName(); ?></strong> (<?php echo $cfield->getLabel(); ?>)<br> | |
| 232 | -<?php endforeach; ?> | |
| 233 | 227 | </p> |
| 234 | 228 | |
| 235 | 229 | <p> |
| 236 | 230 | <strong>__Examples__</strong> |
| @@ -286,11 +280,8 @@ | ||
| 286 | 280 | <strong>start</strong> (__Start Date Time__, YYYYMMDDHHMM) <em>__optional__</em><br> |
| 287 | 281 | <strong>end</strong> (__End Date Time__, YYYYMMDDHHMM) <em>__optional__</em><br> |
| 288 | 282 | <strong>status_id</strong> (publish, draft) <em>__optional__</em><br> |
| 289 | 283 | <strong>conflict</strong> (__Set to 1 to allow creation of shifts with conflicts__) <em>__optional__</em><br> |
| 290 | -<?php foreach( $cfields as $cfield ) : ?> | |
| 291 | -<strong><?php echo $cfield->getName(); ?></strong> (<?php echo $cfield->getLabel(); ?>)<br> | |
| 292 | -<?php endforeach; ?> | |
| 293 | 284 | </p> |
| 294 | 285 | |
| 295 | 286 | <p> |
| 296 | 287 | <strong>__Examples__</strong> |