@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | class Template extends Html { |
3 | - public function __construct( $_parameters ) { |
|
4 | - parent::__construct( $_parameters ); |
|
3 | + public function __construct($_parameters) { |
|
4 | + parent::__construct($_parameters); |
|
5 | 5 | $this->makeConnection(); |
6 | 6 | $this->tags["brand"] = "JATE"; |
7 | 7 | $this->tags["brandImg"] = ""; |
@@ -12,22 +12,22 @@ discard block |
||
12 | 12 | , "https://code.jquery.com/jquery-1.11.3.min.js" |
13 | 13 | , "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" |
14 | 14 | ]); |
15 | - $this->tags["metaDescription"] = "Beautiful description ."; |
|
16 | - $this->tags["metaKeywords"] = "JATE,PHP,JS,CSS"; |
|
17 | - $this->tags["metaAuthor"] = "XaBerr"; |
|
18 | - $this->tags["menu"] = $this->makeMenu(); |
|
15 | + $this->tags["metaDescription"] = "Beautiful description ."; |
|
16 | + $this->tags["metaKeywords"] = "JATE,PHP,JS,CSS"; |
|
17 | + $this->tags["metaAuthor"] = "XaBerr"; |
|
18 | + $this->tags["menu"] = $this->makeMenu(); |
|
19 | 19 | } |
20 | 20 | public function makeConnection() { |
21 | 21 | $jConfig = $this->parameters["app"]; |
22 | 22 | $connection = null; |
23 | - if( $jConfig != null && $jConfig->connection["enable"]) |
|
23 | + if ($jConfig != null && $jConfig->connection["enable"]) |
|
24 | 24 | $connection = new Connection( |
25 | 25 | $jConfig->connection["server"] |
26 | 26 | , $jConfig->connection["database"] |
27 | 27 | , $jConfig->connection["user"] |
28 | 28 | , $jConfig->connection["password"] |
29 | 29 | ); |
30 | - $this->addConnection("base",$connection); |
|
30 | + $this->addConnection("base", $connection); |
|
31 | 31 | } |
32 | 32 | public function makeMenu() { |
33 | 33 | jBlock(); |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | class Template extends Html { |
3 | - public function __construct( $_parameters ) { |
|
4 | - parent::__construct( $_parameters ); |
|
3 | + public function __construct($_parameters) { |
|
4 | + parent::__construct($_parameters); |
|
5 | 5 | $this->makeConnection(); |
6 | 6 | $this->tags["brand"] = "JATE"; |
7 | 7 | $this->tags["brandImg"] = ""; |
@@ -12,22 +12,22 @@ discard block |
||
12 | 12 | , "https://code.jquery.com/jquery-1.11.3.min.js" |
13 | 13 | , "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" |
14 | 14 | ]); |
15 | - $this->tags["metaDescription"] = "Beautiful description ."; |
|
16 | - $this->tags["metaKeywords"] = "JATE,PHP,JS,CSS"; |
|
17 | - $this->tags["metaAuthor"] = "XaBerr"; |
|
18 | - $this->tags["menu"] = $this->makeMenu(); |
|
15 | + $this->tags["metaDescription"] = "Beautiful description ."; |
|
16 | + $this->tags["metaKeywords"] = "JATE,PHP,JS,CSS"; |
|
17 | + $this->tags["metaAuthor"] = "XaBerr"; |
|
18 | + $this->tags["menu"] = $this->makeMenu(); |
|
19 | 19 | } |
20 | 20 | public function makeConnection() { |
21 | 21 | $jConfig = $this->parameters["app"]; |
22 | 22 | $connection = null; |
23 | - if( $jConfig != null && $jConfig->connection["enable"]) |
|
23 | + if ($jConfig != null && $jConfig->connection["enable"]) |
|
24 | 24 | $connection = new Connection( |
25 | 25 | $jConfig->connection["server"] |
26 | 26 | , $jConfig->connection["database"] |
27 | 27 | , $jConfig->connection["user"] |
28 | 28 | , $jConfig->connection["password"] |
29 | 29 | ); |
30 | - $this->addConnection("base",$connection); |
|
30 | + $this->addConnection("base", $connection); |
|
31 | 31 | } |
32 | 32 | public function makeMenu() { |
33 | 33 | jBlock(); |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | class Home extends Template { |
3 | - public function __construct( $_parameters ) { |
|
4 | - parent::__construct( $_parameters ); |
|
5 | - $this->tags["title"] = "JATE - Home"; |
|
3 | + public function __construct($_parameters) { |
|
4 | + parent::__construct($_parameters); |
|
5 | + $this->tags["title"] = "JATE - Home"; |
|
6 | 6 | $this->tags["content"] = $this->makePage(); |
7 | 7 | } |
8 | 8 | public function makePage() { |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | class Page01 extends Template { |
3 | - public function __construct( $_parameters ) { |
|
4 | - parent::__construct( $_parameters ); |
|
5 | - $this->tags["title"] = "JATE - Page01"; |
|
3 | + public function __construct($_parameters) { |
|
4 | + parent::__construct($_parameters); |
|
5 | + $this->tags["title"] = "JATE - Page01"; |
|
6 | 6 | $this->tags["content"] = $this->makePage(); |
7 | 7 | } |
8 | 8 | public function makePage() { |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | class Page404 extends Template { |
3 | - public function __construct( $_parameters ) { |
|
4 | - parent::__construct( $_parameters ); |
|
5 | - $this->tags["title"] = "JATE - 404"; |
|
3 | + public function __construct($_parameters) { |
|
4 | + parent::__construct($_parameters); |
|
5 | + $this->tags["title"] = "JATE - 404"; |
|
6 | 6 | $this->tags["content"] = $this->makePage(); |
7 | 7 | } |
8 | 8 | public function makePage() { |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | class Template extends Html { |
3 | - public function __construct( $_parameters ) { |
|
4 | - parent::__construct( $_parameters ); |
|
3 | + public function __construct($_parameters) { |
|
4 | + parent::__construct($_parameters); |
|
5 | 5 | $this->addModule(new Menu()); |
6 | 6 | $this->makeConnection(); |
7 | 7 | $this->tags["brand"] = "JATE"; |
@@ -13,29 +13,29 @@ discard block |
||
13 | 13 | , "https://code.jquery.com/jquery-1.11.3.min.js" |
14 | 14 | , "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" |
15 | 15 | ]); |
16 | - $this->tags["metaDescription"] = "Beautiful description ."; |
|
17 | - $this->tags["metaKeywords"] = "JATE,PHP,JS,CSS"; |
|
18 | - $this->tags["metaAuthor"] = "XaBerr"; |
|
19 | - $this->tags["menu"] = $this->makeMenu(); |
|
16 | + $this->tags["metaDescription"] = "Beautiful description ."; |
|
17 | + $this->tags["metaKeywords"] = "JATE,PHP,JS,CSS"; |
|
18 | + $this->tags["metaAuthor"] = "XaBerr"; |
|
19 | + $this->tags["menu"] = $this->makeMenu(); |
|
20 | 20 | } |
21 | 21 | public function makeConnection() { |
22 | 22 | $jConfig = $this->parameters["app"]; |
23 | 23 | $connection = null; |
24 | - if( $jConfig != null && $jConfig->connection["enable"]) |
|
24 | + if ($jConfig != null && $jConfig->connection["enable"]) |
|
25 | 25 | $connection = new Connection( |
26 | 26 | $jConfig->connection["server"] |
27 | 27 | , $jConfig->connection["database"] |
28 | 28 | , $jConfig->connection["user"] |
29 | 29 | , $jConfig->connection["password"] |
30 | 30 | ); |
31 | - $this->addConnection("base",$connection); |
|
31 | + $this->addConnection("base", $connection); |
|
32 | 32 | } |
33 | 33 | public function makeMenu() { |
34 | 34 | $this->modules["Menu"]->tags["menu"] = [ |
35 | - ["label"=>"Home", "link"=>"/Home", "submenu"=>[], "relative"=>true] |
|
36 | - , ["label"=>"Items 1", "link"=>"/Items/1", "submenu"=>[], "relative"=>true] |
|
37 | - , ["label"=>"Items 2", "link"=>"/Items/2", "submenu"=>[], "relative"=>true] |
|
38 | - , ["label"=>"Items 3", "link"=>"/Items/3", "submenu"=>[], "relative"=>true] |
|
35 | + ["label"=>"Home", "link"=>"/Home", "submenu"=>[], "relative"=>true] |
|
36 | + , ["label"=>"Items 1", "link"=>"/Items/1", "submenu"=>[], "relative"=>true] |
|
37 | + , ["label"=>"Items 2", "link"=>"/Items/2", "submenu"=>[], "relative"=>true] |
|
38 | + , ["label"=>"Items 3", "link"=>"/Items/3", "submenu"=>[], "relative"=>true] |
|
39 | 39 | ]; |
40 | 40 | $temp = $this->modules["Menu"]->draw(); |
41 | 41 | return $temp; |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | class Page404 extends Template { |
3 | - public function __construct( $_parameters ) { |
|
4 | - parent::__construct( $_parameters ); |
|
5 | - $this->tags["title"] = "JATE - 404"; |
|
3 | + public function __construct($_parameters) { |
|
4 | + parent::__construct($_parameters); |
|
5 | + $this->tags["title"] = "JATE - 404"; |
|
6 | 6 | $this->tags["content"] = $this->makePage(); |
7 | 7 | } |
8 | 8 | public function makePage() { |