File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ class Posts extends ComponentBase {
50
50
'taxonomy_item_id ' => NULL ,
51
51
'taxonomy_item_slug ' => NULL ,
52
52
'search ' => NULL ,
53
+ 'like ' => NULL ,
53
54
'admin_id ' => NULL ,
54
55
//archive
55
56
'month ' => NULL ,
@@ -176,6 +177,7 @@ function results() {
176
177
177
178
//rfc
178
179
$ post ['pubDate ' ] = date ('r ' , strtotime ($ post ['created_at ' ]));
180
+ $ post ['modDate ' ] = date ('r ' , strtotime ($ post ['updated_at ' ]));
179
181
180
182
//url
181
183
$ url = ['slug ' => $ post ['slug ' ], 'post_id ' => $ post ['post_id ' ]] + $ language ;
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ class Products extends ComponentBase {
48
48
'product_image ' => true ,
49
49
'product_id ' => [],
50
50
'search ' => null ,
51
+ 'like ' => null ,
51
52
'slug ' => null ,
52
53
'related ' => null ,
53
54
'variant ' => null ,
@@ -63,7 +64,7 @@ function results() {
63
64
if ($ page = $ this ->options ['page ' ]) {
64
65
$ this ->options ['start ' ] = ($ page - 1 ) * $ this ->options ['limit ' ];
65
66
}
66
-
67
+
67
68
if ($ this ->options ['filter ' ]) {
68
69
foreach ($ this ->options ['filter ' ] as $ name => $ values ) {
69
70
if ($ name == 'manufacturer_id ' || $ name == 'vendor_id ' ) {
@@ -135,9 +136,10 @@ function results() {
135
136
136
137
//rfc
137
138
$ product ['pubDate ' ] = date ('r ' , strtotime ($ product ['created_at ' ]));
139
+ $ product ['modDate ' ] = date ('r ' , strtotime ($ product ['updated_at ' ]));
138
140
139
141
$ url = ['slug ' => $ product ['slug ' ], 'product_id ' => $ product ['product_id ' ]] + $ language ;
140
- $ product ['url ' ] = url ('product/product/index ' , $ url );
142
+ $ product ['url ' ] = url ('product/product/index ' , $ url );
141
143
$ product ['add_cart_url ' ] = url ('cart/cart/add ' , ['product_id ' => $ product ['product_id ' ]]);
142
144
$ product ['buy_url ' ] = url ('checkout/checkout/index ' , ['product_id ' => $ product ['product_id ' ]]);
143
145
$ product ['add_wishlist_url ' ] = url ('user/wishlist/add ' , ['product_id ' => $ product ['product_id ' ]]);
You can’t perform that action at this time.
0 commit comments