File tree 7 files changed +18
-6
lines changed
public/themes/default/feed
7 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,10 @@ function results() {
73
73
$ results ['author-url ' ] = url ('content/user/index ' , $ results );
74
74
$ results ['comments-url ' ] = $ results ['url ' ] . '#comments ' ;
75
75
76
+ //rfc
77
+ $ results ['pubDate ' ] = date ('r ' , strtotime ($ results ['created_at ' ]));
78
+ $ results ['modDate ' ] = date ('r ' , strtotime ($ results ['updated_at ' ]));
79
+
76
80
list ($ results ) = Event :: trigger (__CLASS__ ,__FUNCTION__ , $ results );
77
81
78
82
return $ results ;
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ function results() {
178
178
//rfc
179
179
$ post ['pubDate ' ] = date ('r ' , strtotime ($ post ['created_at ' ]));
180
180
$ post ['modDate ' ] = date ('r ' , strtotime ($ post ['updated_at ' ]));
181
+ $ post ['lastMod ' ] = date ('Y-m-d\TH:i:sP ' , strtotime ($ post ['updated_at ' ]));
181
182
182
183
//url
183
184
$ url = ['slug ' => $ post ['slug ' ], 'post_id ' => $ post ['post_id ' ]] + $ language ;
Original file line number Diff line number Diff line change 22
22
23
23
namespace Vvveb \Component ;
24
24
25
+ use function Vvveb \getCurrency ;
25
26
use function Vvveb \model ;
26
27
use function Vvveb \sanitizeHTML ;
27
28
use Vvveb \Sql \ProductSQL ;
@@ -73,6 +74,7 @@ function results() {
73
74
74
75
$ tax = Tax::getInstance ();
75
76
$ currency = Currency::getInstance ();
77
+ $ results ['price_currency ' ] = getCurrency ();
76
78
$ results ['price_tax ' ] = $ tax ->addTaxes ($ results ['price ' ], $ results ['tax_type_id ' ]);
77
79
$ results ['price_tax_formatted ' ] = $ currency ->format ($ results ['price_tax ' ]);
78
80
$ results ['price_formatted ' ] = $ currency ->format ($ results ['price ' ]);
@@ -84,6 +86,10 @@ function results() {
84
86
$ results ['promotion_discount ' ] = 100 - ceil ($ results ['promotion ' ] * 100 / $ results ['price ' ]);
85
87
}
86
88
89
+ //rfc
90
+ $ results ['pubDate ' ] = date ('r ' , strtotime ($ results ['created_at ' ]));
91
+ $ results ['modDate ' ] = date ('r ' , strtotime ($ results ['updated_at ' ]));
92
+
87
93
list ($ results ) = Event :: trigger (__CLASS__ ,__FUNCTION__ , $ results );
88
94
89
95
return $ results ;
Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ function results() {
137
137
//rfc
138
138
$ product ['pubDate ' ] = date ('r ' , strtotime ($ product ['created_at ' ]));
139
139
$ product ['modDate ' ] = date ('r ' , strtotime ($ product ['updated_at ' ]));
140
+ $ product ['lastMod ' ] = date ('Y-m-d\TH:i:sP ' , strtotime ($ product ['updated_at ' ]));
140
141
141
142
$ url = ['slug ' => $ product ['slug ' ], 'product_id ' => $ product ['product_id ' ]] + $ language ;
142
143
$ product ['url ' ] = url ('product/product/index ' , $ url );
Original file line number Diff line number Diff line change 14
14
>
15
15
<url data-v-post =" post" >
16
16
<loc data-v-post-full-url =" name" >https://vvveb.com/page/about</loc >
17
- <lastmod data-v-post-pubDate =" date" >2023-05-26T12:37:22+00:00</lastmod >
17
+ <lastmod data-v-post-lastMod =" date" >2023-05-26T12:37:22+00:00</lastmod >
18
18
<changefreq >weekly</changefreq >
19
19
<priority >0.7</priority >
20
20
</url >
21
21
<url data-v-post =" post" >
22
22
<loc data-v-post-full-url =" name" >https://vvveb.com/page/services</loc >
23
- <lastmod data-v-post-pubDate =" date" >2023-05-26T12:37:22+00:00</lastmod >
23
+ <lastmod data-v-post-lastMod =" date" >2023-05-26T12:37:22+00:00</lastmod >
24
24
<changefreq >weekly</changefreq >
25
25
<priority >0.7</priority >
26
26
</url >
Original file line number Diff line number Diff line change 14
14
>
15
15
<url data-v-post =" post" >
16
16
<loc data-v-post-full-url =" name" >https://vvveb.com/page/about</loc >
17
- <lastmod data-v-post-pubDate =" date" >2023-05-26T12:37:22+00:00</lastmod >
17
+ <lastmod data-v-post-lastMod =" date" >2023-05-26T12:37:22+00:00</lastmod >
18
18
<changefreq >weekly</changefreq >
19
19
<priority >0.7</priority >
20
20
</url >
21
21
<url data-v-post =" post" >
22
22
<loc data-v-post-full-url =" name" >https://vvveb.com/page/services</loc >
23
- <lastmod data-v-post-pubDate =" date" >2023-05-26T12:37:22+00:00</lastmod >
23
+ <lastmod data-v-post-lastMod =" date" >2023-05-26T12:37:22+00:00</lastmod >
24
24
<changefreq >weekly</changefreq >
25
25
<priority >0.7</priority >
26
26
</url >
Original file line number Diff line number Diff line change 14
14
>
15
15
<url data-v-product =" product" >
16
16
<loc data-v-product-full-url =" name" >https://vvveb.com/page/about</loc >
17
- <lastmod data-v-product-pubDate =" date" >2023-05-26T12:37:22+00:00</lastmod >
17
+ <lastmod data-v-product-lastMod =" date" >2023-05-26T12:37:22+00:00</lastmod >
18
18
<changefreq >weekly</changefreq >
19
19
<priority >0.7</priority >
20
20
</url >
21
21
<url data-v-product =" product" >
22
22
<loc data-v-product-full-url =" name" >https://vvveb.com/page/services</loc >
23
- <lastmod data-v-product-pubDate =" date" >2023-05-26T12:37:22+00:00</lastmod >
23
+ <lastmod data-v-product-lastMod =" date" >2023-05-26T12:37:22+00:00</lastmod >
24
24
<changefreq >weekly</changefreq >
25
25
<priority >0.7</priority >
26
26
</url >
You can’t perform that action at this time.
0 commit comments