Plugin Directory

Changeset 2154014


Ignore:
Timestamp:
09/10/2019 08:41:21 AM (7 years ago)
Author:
hitcode
Message:

4.4.7

Location:
shiftcontroller/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • shiftcontroller/trunk/hc3/_wordpress/abstract/plugin.php

    r2074560 r2154014  
    11<?php if (! defined('ABSPATH')) exit; // Exit if accessed directly
    2 define( 'HC3_VERSION', 101 );
     2define( 'HC3_VERSION', 102 );
    33
    44abstract class HC3_Abstract_Plugin
  • shiftcontroller/trunk/hc3/assets/css/hc.css

    r2077277 r2154014  
    530530    display: table-row;
    531531}
     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}
    532538.hc-table-cell {
    533539    display: table-cell;
  • shiftcontroller/trunk/hc3/ui/element/table.php

    r1876339 r2154014  
    8383
    8484        // header
     85        $trHeader = NULL;
    8586        if( $show_header ){
    8687            $grid = array();
     
    116117            }
    117118
    118             $tr = $this->htmlFactory->makeGrid( $grid )->gutter(0);
     119            $trHeader = $this->htmlFactory->makeGrid( $grid )->gutter(0);
    119120
    120121            if( $this->bordered ){
    121                 $tr->setBordered( $this->bordered );
     122                // $trHeader->setBordered( $this->bordered );
    122123            }
    123124            if( $this->segments ){
    124                 $tr->setSegments( $this->segments );
     125                $trHeader->setSegments( $this->segments );
    125126            }
    126127
    127128            if( ! $this->bordered ){
    128                 $tr = $this->htmlFactory->makeBlock($tr)
     129                $trHeader = $this->htmlFactory->makeBlock($trHeader)
    129130                    ->addAttr('class', 'hc-xs-hide')
    130131                    ->addAttr('class', 'hc-fs4')
     
    136137            if( $this->striped ){
    137138                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;
    149153        }
    150154
     
    236240        }
    237241
     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
    238270        return $out;
    239271    }
  • shiftcontroller/trunk/hc3/ui/filter.php

    r2149207 r2154014  
    8484        reset( $this->filters );
    8585        foreach( $this->filters as $filter ){
     86            if( ! is_object($element) ){
     87                continue;
     88            }
    8689            $element = $filter->process($element);
    8790            if( $element === NULL ){
  • shiftcontroller/trunk/hc3/ui/filter/buttons.php

    r1912260 r2154014  
    1111    public function process( $element )
    1212    {
     13        if( ! method_exists($element, 'getUiType') ){
     14            return $element;
     15        }
     16
    1317        $uiType = $element->getUiType();
    1418        $tags = $element->getTags();
  • shiftcontroller/trunk/hc3/ui/filter/input/error.php

    r1851180 r2154014  
    1313    public function process( $element )
    1414    {
    15         $uiType = $element->getUiType();
     15        $uiType = ( method_exists($element, 'getUiType') ) ? $element->getUiType() : '';
    1616        if( substr($uiType, 0, strlen('input/')) != 'input/' ){
    1717            return $element;
  • shiftcontroller/trunk/hc3/ui/filter/input/fill.php

    r1851180 r2154014  
    1111    public function process( $element )
    1212    {
    13         $uiType = $element->getUiType();
     13        $uiType = ( method_exists($element, 'getUiType') ) ? $element->getUiType() : '';
    1414        if( substr($uiType, 0, strlen('input/')) != 'input/' ){
    1515            return $element;
  • shiftcontroller/trunk/readme.txt

    r2149207 r2154014  
    6060
    6161== 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.
    6266
    6367= 4.4.6 =
  • shiftcontroller/trunk/shiftcontroller4.php

    r2149207 r2154014  
    44 * Plugin URI: http://www.shiftcontroller.com/
    55 * Description: Staff scheduling plugin
    6  * Version: 4.4.6
     6 * Version: 4.4.7
    77 * Author: hitcode.com
    88 * Author URI: http://www.shiftcontroller.com/
     
    1111*/
    1212
    13 define( 'SH4_VERSION', 446 );
     13define( 'SH4_VERSION', 447 );
    1414
    1515if (! defined('ABSPATH')) exit; // Exit if accessed directly
Note: See TracChangeset for help on using the changeset viewer.