@@ -1,32 +1,32 @@ |
||
1 | 1 | <?php |
2 | 2 | requireComponent("../Query/Query.php"); |
3 | 3 | class Html extends Query { |
4 | - public function __construct( $_parameters = [ "app" => null, "page" => null] ) { |
|
4 | + public function __construct($_parameters = ["app" => null, "page" => null]) { |
|
5 | 5 | parent::__construct(); |
6 | 6 | $this->data["template"] = ""; |
7 | 7 | $this->tags["brand"] = ""; |
8 | 8 | $this->tags["brandImg"] = ""; |
9 | 9 | $this->tags["menu"] = ""; |
10 | 10 | $this->tags["title"] = ""; |
11 | - $this->tags["subtitle"] = ""; |
|
11 | + $this->tags["subtitle"] = ""; |
|
12 | 12 | $this->tags["content"] = ""; |
13 | - $this->tags["outContent"] = ""; |
|
13 | + $this->tags["outContent"] = ""; |
|
14 | 14 | $this->tags["footer"] = ""; |
15 | 15 | $this->tags["pagePath"] = []; |
16 | - $this->tags["css"] = []; |
|
17 | - $this->tags["js"] = []; |
|
16 | + $this->tags["css"] = []; |
|
17 | + $this->tags["js"] = []; |
|
18 | 18 | $this->tags["jsVariables"] = []; |
19 | - $this->tags["metaDescription"] = []; |
|
20 | - $this->tags["metaKeywords"] = []; |
|
19 | + $this->tags["metaDescription"] = []; |
|
20 | + $this->tags["metaKeywords"] = []; |
|
21 | 21 | $this->tags["metaAuthor"] = []; |
22 | - $this->parameters = $_parameters; |
|
23 | - $this->tags["base"] = $_parameters["app"]->server["RELATIVE"]."/"; |
|
22 | + $this->parameters = $_parameters; |
|
23 | + $this->tags["base"] = $_parameters["app"]->server["RELATIVE"]."/"; |
|
24 | 24 | } |
25 | 25 | public function uniforma() { |
26 | 26 | $this->addDipendences(); |
27 | 27 | $this->tags["css"] = array_unique($this->tags["css"]); |
28 | 28 | $this->tags["js"] = array_unique($this->tags["js"]); |
29 | - $this->tags["pagePath"] = json_encode($this->tags["pagePath"]); |
|
29 | + $this->tags["pagePath"] = json_encode($this->tags["pagePath"]); |
|
30 | 30 | $tempStr = ""; |
31 | 31 | foreach ($this->tags["css"] as $i) |
32 | 32 | $tempStr .= "<link rel='stylesheet' href='$i'>"; |
@@ -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(); |