File tree 15 files changed +23
-22
lines changed
15 files changed +23
-22
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ $breadcrumb = $current_component = $this->_component['breadcrumb'][$_breadcrumb_
12
12
13
13
$_pagination_count = $breadcrumb['count'] ?? 0;
14
14
$_pagination_limit = isset($breadcrumb['limit']) ? $breadcrumb['limit'] : 5;
15
-
15
+ $index = 0;
16
16
?>
17
17
18
18
@@ -21,7 +21,7 @@ $_default = (isset($vvveb_is_page_edit) && $vvveb_is_page_edit ) ? [0 => []] : f
21
21
$breadcrumb['breadcrumb'] = empty($breadcrumb['breadcrumb']) ? $_default : $breadcrumb['breadcrumb'];
22
22
23
23
if($breadcrumb && is_array($breadcrumb['breadcrumb'])) {
24
- foreach ($breadcrumb [' breadcrumb' ] as $index => $breadcrumb ) {?>
24
+ foreach ($breadcrumb [' breadcrumb' ] as $index => $breadcrumb ) {$ index ++; ?>
25
25
26
26
@item [data-v-breadcrumb-item-*]|innerText = $breadcrumb [' @@__data-v-breadcrumb-item-(*)__@@' ]
27
27
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ if($_comments && is_array($_comments)) {
28
28
29
29
@comment|id = < ?php echo ' comment-' . $comment [' comment_id' ];?>
30
30
31
- @comment [data-v-comment-content] = < ?php echo $comment [' content' ];?>
31
+ @comment [data-v-comment-content] = < ?php echo( $comment [' content' ]) ;?>
32
32
33
33
@comment img[data-v-comment-*]|src = $comment [' @@__data-v-comment-(*)__@@' ]
34
34
@comment img[data-v-comment-*]|width = < ?php echo $comment [' size' ] ?? ' 60' ;?>
Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ if (isset($this->_component['menu']) && isset($this->_component['menu'][$_menu_i
42
42
43
43
//catch all data attributes
44
44
@category [data-v-menu-item-*]|innerText = $category [' @@__data-v-menu-item-(*)__@@' ]
45
- @category [data-v-menu-item-content] = < ?php echo $category [' content' ] ?? ' ' ;?>
45
+ @category [data-v-menu-item-content] = < ?php echo( $category [' content' ] ?? ' ' ) ;?>
46
46
47
47
@category [data-v-menu-item-url]|href = < ?php if (isset($category [' url' ])) echo Vvveb\System\Sites::url($category [' url' ]);?>
48
48
@category [data-v-menu-item-img]|src = $category [' images' ][0]
49
49
50
50
@category|append = < ?php
51
- if ($category [' children' ] > 0 && $generate_menu ) {
51
+ if ($category [' children' ] > 0 && isset( $generate_menu ) ) {
52
52
$parents ++;
53
53
$generate_menu ($category [' menu_item_id' ], $_categories );
54
54
}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ $_pagination_limit = isset($product['limit']) ? $product['limit'] : 5;
34
34
@product a[data-v-product-*]|href = $product['@@__data-v-product-(*)__@@']
35
35
36
36
37
- @product img[data-v-product-main-image]|src = <?php echo $product['image'];?>
37
+ @product img[data-v-product-main-image]|src = <?php echo( $product['image']) ;?>
38
38
@product [data-v-product-main-image-background-image]|style = <?php echo 'background-image: url(\'' . $product['image'] . '\');';?>
39
39
@product a[data-v-product-main-image]|href = <?php echo reset($product['images'])['image'];?>
40
40
@@ -51,6 +51,8 @@ if($_images) {
51
51
52
52
@images [data-bs-slide-to]|data-bs-slide-to = < ?php echo $i ;?>
53
53
@images img[data-v-product-image-src]|src = $_image [' image' ]
54
+ @images [data-v-product-image-src] = $_image [' image' ]
55
+ [data-v-product-image-src]@images = $_image [' image' ]
54
56
@images [data-v-product-image-background-image]|style = < ?php echo ' background-image: url(\' ' . $_image [' image' ] . ' \' );' ;?>
55
57
@images a[data-v-product-image-src]|href = $_image [' image' ]
56
58
@images img[data-v-product-image-src]|data-v-id = $_image [' product_image_id' ]
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ if($attributes && is_array($attributes['attribute'])) {
34
34
35
35
@attribute|id = <?php echo 'attribute-' . $attribute['attribute_id'];?>
36
36
37
- @attribute [data-v-attribute-content] = <?php echo $attribute['content'];?>
37
+ @attribute [data-v-attribute-content] = <?php echo( $attribute['content']) ;?>
38
38
39
39
@attribute img[data-v-attribute-*]|src = $attribute['@@__data-v-attribute-(*)__@@']
40
40
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ if($manufacturers && is_array($manufacturers['manufacturer'])) {
25
25
26
26
@manufacturer|id = < ?php echo ' manufacturer-' . $manufacturer [' manufacturer_id' ];?>
27
27
28
- @manufacturer [data-v-manufacturer-content] = < ?php echo $manufacturer [' content' ];?>
28
+ @manufacturer [data-v-manufacturer-content] = < ?php echo( $manufacturer [' content' ]) ;?>
29
29
30
30
@manufacturer img[data-v-manufacturer-*]|src = $manufacturer [' @@__data-v-manufacturer-(*)__@@' ]
31
31
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ if($options && is_array($options)) {
48
48
49
49
@option|id = < ?php echo ' option-' . ($option [' product_option_id' ] ?? 0);?>
50
50
51
- @option [data-v-option-content] = < ?php echo $option [' content' ] ?? ' ' ;?>
51
+ @option [data-v-option-content] = < ?php echo( $option [' content' ] ?? ' ' ) ;?>
52
52
53
53
@option img[data-v-option-*]|src = $option [' @@__data-v-option-(*)__@@' ]
54
54
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ if($vendors && is_array($vendors['vendor'])) {
25
25
26
26
@vendor|id = < ?php echo ' vendor-' . $vendor [' vendor_id' ];?>
27
27
28
- @vendor [data-v-vendor-content] = < ?php echo $vendor [' content' ];?>
28
+ @vendor [data-v-vendor-content] = < ?php echo( $vendor [' content' ]) ;?>
29
29
30
30
@vendor img[data-v-vendor-*]|src = $vendor [' @@__data-v-vendor-(*)__@@' ]
31
31
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ if ($_products) {
116
116
//catch all data attributes
117
117
@product [data-v-product-*]|innerText = $_product['@@__data-v-product-(*)__@@']
118
118
//echo description directly to avoid htmlentities escape
119
- @product [data-v-product-content] = <?php echo $_product['content'];?>
119
+ @product [data-v-product-content] = <?php echo( $_product['content']) ;?>
120
120
121
121
@product|after = <?php
122
122
}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ if($questions && is_array($questions)) {
28
28
29
29
@question|id = < ?php echo ' question-' . $question [' product_question_id' ];?>
30
30
31
- @question [data-v-question-content] = < ?php echo $question [' content' ];?>
31
+ @question [data-v-question-content] = < ?php echo( $question [' content' ]) ;?>
32
32
33
33
@question img[data-v-question-*]|src = $question [' @@__data-v-question-(*)__@@' ]
34
34
@question img[data-v-question-avatar]|width = < ?php echo $question [' size' ] ?? ' 60' ;?>
Original file line number Diff line number Diff line change 27
27
?>
28
28
29
29
@wishlist [data-v-wishlist-category] = <?php $_category = current($wishlist);echo $_category['category'];?>
30
- @wishlist [data-v-wishlist-count] = <?php echo $wishlist['count'] ?? ''?>
30
+ @wishlist [data-v-wishlist-count] = <?php echo( $wishlist['count'] ?? '') ?>
31
31
@wishlist [data-v-wishlist-manufacturer] = <?php $_manufacturer = current($wishlist);echo $_manufacturer['manufacturer'];?>
32
32
33
33
@@ -118,7 +118,7 @@ if ($_wishlist) {
118
118
//catch all data attributes
119
119
@product [data-v-product-*]|innerText = $_product['@@__data-v-product-(*)__@@']
120
120
//echo description directly to avoid htmlentities escape
121
- @product [data-v-product-content] = <?php echo $_product['content'];?>
121
+ @product [data-v-product-content] = <?php echo( $_product['content']) ;?>
122
122
123
123
@product|after = <?php
124
124
}
Original file line number Diff line number Diff line change 1
1
import(components.tpl)
2
- import(ifmacros.tpl)
3
-
2
+ import(ifmacros.tpl)
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ if (isset($this->errors) && is_array($this->errors)) {
12
12
foreach ($list as $message) {
13
13
?>
14
14
15
- @error [data-v-notification-text] = < ?php echo $message ;?>
15
+ @error [data-v-notification-text] = < ?php echo( $message ) ;?>
16
16
17
17
@error|after = < ?php
18
18
}
@@ -34,7 +34,7 @@ if (isset($this->success) && is_array($this->success)) {
34
34
foreach ($list as $message) {
35
35
?>
36
36
37
- @success [data-v-notification-text] = < ?php echo $message ;?>
37
+ @success [data-v-notification-text] = < ?php echo( $message ) ;?>
38
38
39
39
@success|after = < ?php
40
40
}
@@ -47,7 +47,7 @@ if (isset($this->success) && is_array($this->success)) {
47
47
@info|before = <?php
48
48
if (isset($this->info) && is_array($this->info)) foreach($this->info as $message) { ?>
49
49
50
- @info [data-v-notification-text] = < ?php echo $message ;?>
50
+ @info [data-v-notification-text] = < ?php echo( $message ) ;?>
51
51
52
52
@info|after = < ?php
53
53
}
@@ -66,7 +66,7 @@ if (isset($this->message) && is_array($this->message)) {
66
66
foreach ($list as $message) {
67
67
?>
68
68
69
- @message [data-v-notification-text] = < ?php echo $message ;?>
69
+ @message [data-v-notification-text] = < ?php echo( $message ) ;?>
70
70
71
71
@message|after = < ?php
72
72
}
Original file line number Diff line number Diff line change 1
1
import(common.tpl)
2
2
3
- [data-v-user_address-*] = <?php echo $this->user_address['@@__data-v-user_address-(*)__@@'] ?? '';?>
3
+ [data-v-user_address-*] = <?php echo( $this->user_address['@@__data-v-user_address-(*)__@@'] ?? '') ;?>
4
4
5
5
[data-v-countries]|data-v-region-id = $this->user_address['region_id']
6
6
Original file line number Diff line number Diff line change 1
1
import(common.tpl)
2
2
3
- [data-v-user-*] = <?php echo $this->user['@@__data-v-user-(*)__@@'] ?? '';?>
3
+ [data-v-user-*] = <?php echo( $this->user['@@__data-v-user-(*)__@@'] ?? '') ;?>
You can’t perform that action at this time.
0 commit comments