@@ -262,7 +262,7 @@ |
||
262 | 262 | "$this->root/license.txt", |
263 | 263 | "$this->root/Storage.php" |
264 | 264 | ]; |
265 | - $files = []; |
|
265 | + $files = []; |
|
266 | 266 | foreach ($files_to_include as $s) { |
267 | 267 | if (is_file($s)) { |
268 | 268 | $files[] = $s; |
@@ -22,7 +22,7 @@ |
||
22 | 22 | use |
23 | 23 | Singleton; |
24 | 24 | |
25 | - protected $data_model = [ |
|
25 | + protected $data_model = [ |
|
26 | 26 | 'id' => 'int', |
27 | 27 | 'amount' => 'float:0', |
28 | 28 | 'currency' => 'text', |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | @$_GET['asc'] |
54 | 54 | ) |
55 | 55 | ); |
56 | -$transactions_total = $Transactions->search( |
|
56 | +$transactions_total = $Transactions->search( |
|
57 | 57 | [ |
58 | 58 | 'total_count' => 1 |
59 | 59 | ] + (array)$_GET, |
@@ -79,12 +79,12 @@ discard block |
||
79 | 79 | h::tr( |
80 | 80 | array_map( |
81 | 81 | function ($transaction) use ($L, $Language) { |
82 | - $created = $transaction['created'] |
|
82 | + $created = $transaction['created'] |
|
83 | 83 | ? $L->to_locale( |
84 | 84 | date($Language->{TIME - $transaction['created'] < 24 * 3600 ? '_time' : '_datetime_long'}, $transaction['created']) |
85 | 85 | ) |
86 | 86 | : '-'; |
87 | - $paid = $transaction['paid'] |
|
87 | + $paid = $transaction['paid'] |
|
88 | 88 | ? $L->to_locale( |
89 | 89 | date($Language->{TIME - $transaction['paid'] < 24 * 3600 ? '_time' : '_datetime_long'}, $transaction['paid']) |
90 | 90 | ) |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | use |
25 | 25 | CRUD, |
26 | 26 | Singleton; |
27 | - protected $data_model = [ |
|
27 | + protected $data_model = [ |
|
28 | 28 | 'id' => 'int:0', |
29 | 29 | 'user' => 'int:0', |
30 | 30 | 'date' => 'int:0', |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | FROM `$this->table_sections` |
85 | 85 | WHERE `id` = $id" |
86 | 86 | ); |
87 | - $data['tags'] = $this->db()->qfas( |
|
87 | + $data['tags'] = $this->db()->qfas( |
|
88 | 88 | "SELECT DISTINCT `tag` |
89 | 89 | FROM `$this->table_tags` |
90 | 90 | WHERE |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | `lang` = '$L->clang'" |
93 | 93 | ); |
94 | 94 | if (!$data['tags']) { |
95 | - $l = $this->db()->qfs( |
|
95 | + $l = $this->db()->qfs( |
|
96 | 96 | "SELECT `lang` |
97 | 97 | FROM `$this->table_tags` |
98 | 98 | WHERE `id` = $id |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | * @return array|false |
139 | 139 | */ |
140 | 140 | function get_as_json_ld ($id) { |
141 | - $post = $this->get($id);; |
|
141 | + $post = $this->get($id); ; |
|
142 | 142 | if (!$post) { |
143 | 143 | return false; |
144 | 144 | } |
@@ -106,7 +106,7 @@ |
||
106 | 106 | ] |
107 | 107 | ); |
108 | 108 | } |
109 | - $sections = $this->db()->qfa( |
|
109 | + $sections = $this->db()->qfa( |
|
110 | 110 | [ |
111 | 111 | "SELECT |
112 | 112 | `id`, |
@@ -35,8 +35,7 @@ |
||
35 | 35 | ). |
36 | 36 | h::label($L->section_title). |
37 | 37 | h::{'input[is=cs-input-text][name=title]'}(). |
38 | - ($Config->core['simple_admin_mode'] ? false : |
|
39 | - h::{'label info'}('section_path'). |
|
38 | + ($Config->core['simple_admin_mode'] ? false : h::{'label info'}('section_path'). |
|
40 | 39 | h::{'input[is=cs-input-text][name=path]'}() |
41 | 40 | ). |
42 | 41 | h::{'input[type=hidden][name=mode][value=add_section]'}(). |
@@ -15,10 +15,10 @@ |
||
15 | 15 | cs\Language, |
16 | 16 | cs\Page, |
17 | 17 | cs\Route; |
18 | -$Config = Config::instance(); |
|
19 | -$Index = Index::instance(); |
|
20 | -$L = Language::instance(); |
|
21 | -$Index->buttons = false; |
|
18 | +$Config = Config::instance(); |
|
19 | +$Index = Index::instance(); |
|
20 | +$L = Language::instance(); |
|
21 | +$Index->buttons = false; |
|
22 | 22 | Page::instance()->title($L->browse_posts); |
23 | 23 | $Route = Route::instance(); |
24 | 24 | $page = isset($Route->route[1]) ? (int)$Route->route[1] : 1; |
@@ -12,9 +12,9 @@ |
||
12 | 12 | cs\Index, |
13 | 13 | cs\Language, |
14 | 14 | cs\Page; |
15 | -$Index = Index::instance(); |
|
16 | -$L = Language::instance(); |
|
17 | -$Index->buttons = false; |
|
15 | +$Index = Index::instance(); |
|
16 | +$L = Language::instance(); |
|
17 | +$Index->buttons = false; |
|
18 | 18 | Page::instance()->title($L->browse_sections); |
19 | 19 | $Index->content( |
20 | 20 | h::{'table.cs-table[list]'}( |
@@ -13,13 +13,13 @@ |
||
13 | 13 | cs\Language, |
14 | 14 | cs\Page, |
15 | 15 | cs\Route; |
16 | -$post = Posts::instance()->get(Route::instance()->route[1]); |
|
17 | -$Index = Index::instance(); |
|
18 | -$L = Language::instance(); |
|
16 | +$post = Posts::instance()->get(Route::instance()->route[1]); |
|
17 | +$Index = Index::instance(); |
|
18 | +$L = Language::instance(); |
|
19 | 19 | Page::instance()->title($L->deletion_of_post($post['title'])); |
20 | -$Index->buttons = false; |
|
21 | -$Index->cancel_button_back = true; |
|
22 | -$Index->action = 'admin/Blogs/browse_posts'; |
|
20 | +$Index->buttons = false; |
|
21 | +$Index->cancel_button_back = true; |
|
22 | +$Index->action = 'admin/Blogs/browse_posts'; |
|
23 | 23 | $Index->content( |
24 | 24 | h::{'h2.cs-text-center'}( |
25 | 25 | $L->sure_to_delete_post($post['title']) |