Changeset 2154014
- Timestamp:
- 09/10/2019 08:41:21 AM (7 years ago)
- Location:
- shiftcontroller/trunk
- Files:
-
- 9 edited
-
hc3/_wordpress/abstract/plugin.php (modified) (1 diff)
-
hc3/assets/css/hc.css (modified) (1 diff)
-
hc3/ui/element/table.php (modified) (4 diffs)
-
hc3/ui/filter.php (modified) (1 diff)
-
hc3/ui/filter/buttons.php (modified) (1 diff)
-
hc3/ui/filter/input/error.php (modified) (1 diff)
-
hc3/ui/filter/input/fill.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
shiftcontroller4.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shiftcontroller/trunk/hc3/_wordpress/abstract/plugin.php
r2074560 r2154014 1 1 <?php if (! defined('ABSPATH')) exit; // Exit if accessed directly 2 define( 'HC3_VERSION', 10 1);2 define( 'HC3_VERSION', 102 ); 3 3 4 4 abstract class HC3_Abstract_Plugin -
shiftcontroller/trunk/hc3/assets/css/hc.css
r2077277 r2154014 530 530 display: table-row; 531 531 } 532 .hc-table-header { 533 position: -webkit-sticky; position: sticky; top: 0; z-index: 5; 534 } 535 .hc-table-header-wpadmin { 536 top: 3em; 537 } 532 538 .hc-table-cell { 533 539 display: table-cell; -
shiftcontroller/trunk/hc3/ui/element/table.php
r1876339 r2154014 83 83 84 84 // header 85 $trHeader = NULL; 85 86 if( $show_header ){ 86 87 $grid = array(); … … 116 117 } 117 118 118 $tr = $this->htmlFactory->makeGrid( $grid )->gutter(0);119 $trHeader = $this->htmlFactory->makeGrid( $grid )->gutter(0); 119 120 120 121 if( $this->bordered ){ 121 $tr->setBordered( $this->bordered );122 // $trHeader->setBordered( $this->bordered ); 122 123 } 123 124 if( $this->segments ){ 124 $tr ->setSegments( $this->segments );125 $trHeader->setSegments( $this->segments ); 125 126 } 126 127 127 128 if( ! $this->bordered ){ 128 $tr = $this->htmlFactory->makeBlock($tr)129 $trHeader = $this->htmlFactory->makeBlock($trHeader) 129 130 ->addAttr('class', 'hc-xs-hide') 130 131 ->addAttr('class', 'hc-fs4') … … 136 137 if( $this->striped ){ 137 138 if( defined('WPINC') ){ 138 $tr->addAttr('class', 'hc-bg-white'); 139 } 140 } 141 142 $tr = $tr->render(); 143 144 if( is_object($tr) && method_exists($tr, 'addAttr') ){ 145 $tr->addAttr('class', 'hc-xs-hide'); 146 } 147 148 $show[] = $tr; 139 $trHeader->addAttr('class', 'hc-bg-white'); 140 } 141 } 142 143 $trHeader = $trHeader->render(); 144 // echo $trHeader; 145 // exit; 146 if( is_object($trHeader) && method_exists($trHeader, 'addAttr') ){ 147 $trHeader 148 ->addAttr('class', 'hc-xs-hide') 149 ; 150 } 151 152 // $show[] = $trHeader; 149 153 } 150 154 … … 236 240 } 237 241 242 if( $trHeader ){ 243 $trHeader = $this->htmlFactory->makeBlock( $trHeader ) 244 ->addAttr('class', 'hc-full-width') 245 ->addAttr('class', 'hc-table-header') 246 ->addAttr('class', 'hc-bg-white') 247 ; 248 249 if( defined('WPINC') && is_admin() ){ 250 $trHeader 251 ->addAttr('class', 'hc-table-header-wpadmin') 252 ; 253 } 254 255 if( $this->bordered ){ 256 $trHeader 257 ->addAttr('class', 'hc-border') 258 ; 259 260 if( $this->bordered !== TRUE ){ 261 $trHeader 262 ->addAttr('class', 'hc-border-'. $this->bordered) 263 ; 264 } 265 } 266 267 $out = $this->htmlFactory->makeCollection( array($trHeader, $out) ); 268 } 269 238 270 return $out; 239 271 } -
shiftcontroller/trunk/hc3/ui/filter.php
r2149207 r2154014 84 84 reset( $this->filters ); 85 85 foreach( $this->filters as $filter ){ 86 if( ! is_object($element) ){ 87 continue; 88 } 86 89 $element = $filter->process($element); 87 90 if( $element === NULL ){ -
shiftcontroller/trunk/hc3/ui/filter/buttons.php
r1912260 r2154014 11 11 public function process( $element ) 12 12 { 13 if( ! method_exists($element, 'getUiType') ){ 14 return $element; 15 } 16 13 17 $uiType = $element->getUiType(); 14 18 $tags = $element->getTags(); -
shiftcontroller/trunk/hc3/ui/filter/input/error.php
r1851180 r2154014 13 13 public function process( $element ) 14 14 { 15 $uiType = $element->getUiType();15 $uiType = ( method_exists($element, 'getUiType') ) ? $element->getUiType() : ''; 16 16 if( substr($uiType, 0, strlen('input/')) != 'input/' ){ 17 17 return $element; -
shiftcontroller/trunk/hc3/ui/filter/input/fill.php
r1851180 r2154014 11 11 public function process( $element ) 12 12 { 13 $uiType = $element->getUiType();13 $uiType = ( method_exists($element, 'getUiType') ) ? $element->getUiType() : ''; 14 14 if( substr($uiType, 0, strlen('input/')) != 'input/' ){ 15 15 return $element; -
shiftcontroller/trunk/readme.txt
r2149207 r2154014 60 60 61 61 == Changelog == 62 63 = 4.4.7 = 64 * Schedule header with date labels now sticks to the top when scrolling down the schedule view. 65 * BUG: Anothe attempt to fix a fatal error in print view in some configurations. 62 66 63 67 = 4.4.6 = -
shiftcontroller/trunk/shiftcontroller4.php
r2149207 r2154014 4 4 * Plugin URI: http://www.shiftcontroller.com/ 5 5 * Description: Staff scheduling plugin 6 * Version: 4.4. 66 * Version: 4.4.7 7 7 * Author: hitcode.com 8 8 * Author URI: http://www.shiftcontroller.com/ … … 11 11 */ 12 12 13 define( 'SH4_VERSION', 44 6);13 define( 'SH4_VERSION', 447 ); 14 14 15 15 if (! defined('ABSPATH')) exit; // Exit if accessed directly
Note: See TracChangeset
for help on using the changeset viewer.