PluginProbe
ShiftController Employee Shift Scheduling / 4.9.24
ShiftController Employee Shift Scheduling v4.9.24
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
shiftcontroller / sh4 / app / html / view / admin / about.php

about.php in ShiftController Employee Shift Scheduling 4.9.24, at sh4/app/html/view/admin/about.php

92 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if (! defined('ABSPATH')) exit; // Exit if accessed directly
2 class SH4_App_Html_View_Admin_About
3 {
4 public function __construct(
5 HC3_Hooks $hooks,
6
7 HC3_Ui $ui,
8 HC3_Ui_Layout1 $layout
9 )
10 {
11 $this->ui = $ui;
12 $this->layout = $layout;
13
14 $this->self = $hooks->wrap($this);
15 }
16
17 public function render()
18 {
19 $out = array();
20
21 $version = substr(SH4_VERSION, 0, 1) . '.' . substr(SH4_VERSION, 1, 1) . '.' . substr(SH4_VERSION, 2);
22 $version = $this->ui->makeBlock( $version )
23 ->tag('font-size', 5)
24 ;
25 $version = $this->ui->makeLabelled( '__Version__', $version );
26 $out[] = $version;
27
28 $addons = array();
29 if( defined('SH4_PRO_VERSION') ){
30 $version = substr(SH4_PRO_VERSION, 0, 1) . '.' . substr(SH4_PRO_VERSION, 1, 1) . '.' . substr(SH4_PRO_VERSION, 2);
31 $version = 'Pro' . ' ' . $version;
32 $version = $this->ui->makeBlock( $version )
33 ->tag('font-size', 5)
34 ;
35 $addons[] = $version;
36 }
37
38 if( ! $addons ){
39 $addons[] = '__None__';
40 }
41
42 $addons = $this->ui->makeList( $addons );
43 $addons = $this->ui->makeLabelled( '__Addons__', $addons );
44 $out[] = $addons;
45
46 // resinstall
47 $buttons = array();
48 $buttons[] = $this->ui->makeInputSubmit( '__Delete All Shifts__')
49 ->setFormAction( 'admin/reinstall/shifts' )
50 ->tag('secondary')
51 ->tag('confirm')
52 ;
53 $buttons[] = $this->ui->makeInputSubmit( '__Complete Reinstall__')
54 ->setFormAction( 'admin/reinstall' )
55 ->tag('secondary')
56 ->tag('confirm')
57 ;
58 $buttons = $this->ui->makeListInline( $buttons );
59 $form = $this->ui->makeForm(
60 'admin/reinstall',
61 $buttons
62 );
63
64 $reinstall = $this->ui->makeLabelled( '__Reinstall__', $form );
65
66 $out[] = $reinstall;
67
68 $out = $this->ui->makeList( $out );
69
70 $this->layout
71 ->setContent( $out )
72 ->setHeader( $this->self->header() )
73 ->setBreadcrumb( $this->self->breadcrumb() )
74 ;
75
76 $out = $this->layout->render();
77 return $out;
78 }
79
80 public function header()
81 {
82 $out = '__About__';
83 return $out;
84 }
85
86 public function breadcrumb()
87 {
88 $return = array();
89 $return['admin'] = array( 'admin', '__Administration__' );
90 return $return;
91 }
92 }