File tree 7 files changed +15
-8
lines changed
7 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ if(isset($this->capabilities) && is_array($this->capabilities)) {
123
123
@capability [data-v-capability-value] = $value
124
124
@capability [data-v-capability-value]|name = < ?php echo " capabilities[$value]" ;?>
125
125
@capability [data-v-capability-value]|addNewAttribute = < ?php
126
- if (in_array($value , $this -> role [' permissions' ][' capabilities' ])) echo ' checked' ;
126
+ if (isset( $ this -> role [ ' permissions ' ][ ' capabilities ' ]) && in_array($value , $this -> role [' permissions' ][' capabilities' ])) echo ' checked' ;
127
127
?>
128
128
129
129
@capability|after = < ?php
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ $count = $notificationComponent['count'] ?? 0;
34
34
?>
35
35
36
36
37
- @notifications [data-v-group-notification-count]|addClass = <?php echo $notification[' badge' ];?>
38
- @notifications [data-v-group-icon]|class = <?php echo $notification[' icon' ];?>
37
+ @notifications [data-v-group-notification-count]|addClass = $notification[' badge' ]
38
+ @notifications [data-v-group-icon]|class = $notification[' icon' ]
39
39
40
40
41
41
@notifications [data-v-group-notification]|after = <?php
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ if (isset($this->filter[$text])) echo $this->filter[$text];
36
36
foreach ($options as $key => $option ){?>
37
37
38
38
@option|value = $key
39
- @option = < ?php echo ucfirst ($option );?>
39
+ @option = < ?php echo Vvveb\humanReadable ($option );?>
40
40
41
41
@option|after = < ?php
42
42
} }?>
Original file line number Diff line number Diff line change 1
1
import(crud.tpl, { " type" :" currency" } )
2
2
3
- [data-v-currency] select[data-v-currency-*] option|addNewAttribute = <?php if (isset($this->currency) && $this->currency['status'] == '@@__value__@@') echo 'selected';?>
3
+ [data-v-currency] select[data-v-currency-*] option|addNewAttribute = <?php if (isset($this->currency) && isset( $this->currency['status']) == '@@__value__@@') echo 'selected';?>
4
4
5
5
6
6
[data-v-currency] [data-v-image]|data-v-image = $this->currency['image_url']
Original file line number Diff line number Diff line change 1
1
import(common.tpl)
2
2
import(pagination.tpl)
3
3
4
+ [data-v-sites]|before = <?php
5
+ $count = $this->count;
6
+ ?>
7
+
4
8
@site = [data-v-sites] [data-v-site]
5
9
@site|deleteAllButFirstChild
6
10
7
11
@site|before = <?php
12
+
8
13
if(isset($this->sitesList) && is_array($this->sitesList)) {
9
14
//$pagination = $this -> sites [$_sites_idx ][' pagination' ];
10
15
foreach ($this -> sitesList as $index => $site ) {?>
@@ -21,4 +26,4 @@ if(isset($this->sitesList) && is_array($this->sitesList)) {
21
26
22
27
@site|after = < ?php
23
28
}
24
- }?>
29
+ }?>
Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ $language['language'] = empty($language['language']) ? $_default : $language['la
26
26
27
27
@language [data-v-language-name] = $lang [' name' ]
28
28
@language [data-v-language-img]|src = $lang [' img' ]
29
- @language [data-v-language-url]|href = < ?php echo $lang [' url' ];? >
29
+ @language [data-v-language-url]|href = $lang [' url' ]
30
30
31
- @language button|formaction = < ?php echo $lang [' url' ];? >
31
+ @language button|formaction =$lang [' url' ]
32
32
33
33
@language [data-v-language-code]|value = $lang [' code' ]
34
34
@language a[data-v-language-code]|href = $lang [' code' ]
Original file line number Diff line number Diff line change 1
1
import(common.tpl)
2
2
3
3
head > title = $this->product['name']
4
+ head > meta[name="keywords"]|content = $this->product['meta_keywords']
5
+ head > meta[name="description"]|content = $this->product['meta_description']
4
6
5
7
//body|append = <?php var_dump($this->product);?>
You can’t perform that action at this time.
0 commit comments