@@ -22,17 +22,17 @@ discard block |
||
22 | 22 | $percent; |
23 | 23 | foreach (getGitLog() as $i) { |
24 | 24 | $cont++; |
25 | - if($cont % $nPerCol == 1) |
|
25 | + if ($cont % $nPerCol == 1) |
|
26 | 26 | echo '<div class="row">'; |
27 | - if(isset($i["tag"])) { |
|
28 | - $percent = explode(".",$i["tag"]); |
|
27 | + if (isset($i["tag"])) { |
|
28 | + $percent = explode(".", $i["tag"]); |
|
29 | 29 | $percent = 100 * intval($percent[0]) + 10 * intval($percent[1]) + intval($percent[2]); |
30 | 30 | } |
31 | 31 | ?> |
32 | 32 | <div class="col-lg-<?=$dim?>"> |
33 | 33 | <div class="well well-sm miniblock"> |
34 | 34 | <div class="autor"><b>Autor:</b> <?=$i["author"]?><br></div> |
35 | - <div class="tag"><b>Tag:</b> <?php if(isset($i["tag"])) echo $i["tag"]?><br></div> |
|
35 | + <div class="tag"><b>Tag:</b> <?php if (isset($i["tag"])) echo $i["tag"]?><br></div> |
|
36 | 36 | <div class="date"><b>Date:</b> <?=$i["date"]?><br></div> |
37 | 37 | <div class="message"><b>Message:</b> <?=$i["message"]?><br></div> |
38 | 38 | <div class="progress"> |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | </div> |
45 | 45 | </div> |
46 | 46 | <?php |
47 | - if($cont % $nPerCol == 0) |
|
47 | + if ($cont % $nPerCol == 0) |
|
48 | 48 | echo '</div>'; |
49 | 49 | } ?> |
50 | 50 | </div> |
@@ -22,8 +22,9 @@ discard block |
||
22 | 22 | $percent; |
23 | 23 | foreach (getGitLog() as $i) { |
24 | 24 | $cont++; |
25 | - if($cont % $nPerCol == 1) |
|
26 | - echo '<div class="row">'; |
|
25 | + if($cont % $nPerCol == 1) { |
|
26 | + echo '<div class="row">'; |
|
27 | + } |
|
27 | 28 | if(isset($i["tag"])) { |
28 | 29 | $percent = explode(".",$i["tag"]); |
29 | 30 | $percent = 100 * intval($percent[0]) + 10 * intval($percent[1]) + intval($percent[2]); |
@@ -32,7 +33,8 @@ discard block |
||
32 | 33 | <div class="col-lg-<?=$dim?>"> |
33 | 34 | <div class="well well-sm miniblock"> |
34 | 35 | <div class="autor"><b>Autor:</b> <?=$i["author"]?><br></div> |
35 | - <div class="tag"><b>Tag:</b> <?php if(isset($i["tag"])) echo $i["tag"]?><br></div> |
|
36 | + <div class="tag"><b>Tag:</b> <?php if(isset($i["tag"])) { |
|
37 | + echo $i["tag"]?><br></div> |
|
36 | 38 | <div class="date"><b>Date:</b> <?=$i["date"]?><br></div> |
37 | 39 | <div class="message"><b>Message:</b> <?=$i["message"]?><br></div> |
38 | 40 | <div class="progress"> |
@@ -46,6 +48,7 @@ discard block |
||
46 | 48 | <?php |
47 | 49 | if($cont % $nPerCol == 0) |
48 | 50 | echo '</div>'; |
51 | +} |
|
49 | 52 | } ?> |
50 | 53 | </div> |
51 | 54 | </div> |
@@ -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 | $timeParameter = "?t=".time(); |
32 | 32 | $time = ($this->parameters["app"]->cache->css == true) ? "" : $timeParameter; |
@@ -30,18 +30,21 @@ |
||
30 | 30 | $tempStr = ""; |
31 | 31 | $timeParameter = "?t=".time(); |
32 | 32 | $time = ($this->parameters["app"]->cache->css == true) ? "" : $timeParameter; |
33 | - foreach ($this->tags["css"] as $i) |
|
34 | - $tempStr .= "<link rel='stylesheet' href='$i$time'>"; |
|
33 | + foreach ($this->tags["css"] as $i) { |
|
34 | + $tempStr .= "<link rel='stylesheet' href='$i$time'>"; |
|
35 | + } |
|
35 | 36 | $this->tags["css"] = $tempStr; |
36 | 37 | $tempStr = ""; |
37 | 38 | $time = ($this->parameters["app"]->cache->js == true) ? "" : $timeParameter; |
38 | - foreach ($this->tags["js"] as $i) |
|
39 | - $tempStr .= "<script src='$i$time'></script>"; |
|
39 | + foreach ($this->tags["js"] as $i) { |
|
40 | + $tempStr .= "<script src='$i$time'></script>"; |
|
41 | + } |
|
40 | 42 | $this->tags["js"] = $tempStr; |
41 | 43 | $tempStr = ""; |
42 | 44 | $tempStr .= "<script type='text/javascript'>"; |
43 | - foreach ($this->tags["jsVariables"] as $i) |
|
44 | - $tempStr .= " $i[0] = $i[1];\n"; |
|
45 | + foreach ($this->tags["jsVariables"] as $i) { |
|
46 | + $tempStr .= " $i[0] = $i[1];\n"; |
|
47 | + } |
|
45 | 48 | $tempStr .= "</script>"; |
46 | 49 | $this->tags["jsVariables"] = $tempStr; |
47 | 50 | } |