File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 6
6
<meta name =" description" content =" { $Post -> Summary |default :$Post -> Title |escape } " />
7
7
8
8
<meta property =" og:site_name" content =" { Laddr::$siteName |escape } " />
9
- <meta property =" og:url" content =" http:// { Site::getConfig(primary_hostname) } { $Post -> getURL ()} " />
9
+ <meta property =" og:url" content =" { absolute_url $Post -> getURL ()} " />
10
10
<meta property =" og:type" content =" article" >
11
11
<meta property =" og:title" content =" { $Post -> Title |escape } " />
12
12
16
16
{ /if }
17
17
18
18
<meta property =" article:published_time" content =" { date($.const.DATE_W3C, $Post -> Published )} " />
19
- <meta property =" article:author" content =" http://{ Site::getConfig(primary_hostname)} { $Post -> Author -> getURL ()} " />
19
+
20
+ <meta property =" article:author" content =" { absolute_url $Post -> Author -> getURL ()} " />
20
21
21
22
<meta name =" twitter:card" content =" summary" />
22
23
<meta name =" twitter:title" content =" { $Post -> Title |escape } " />
30
31
{ /if }
31
32
32
33
<?php
33
-
34
+
34
35
// find best media in post
35
36
$imageUrl = null;
36
37
Original file line number Diff line number Diff line change 8
8
{ load_templates subtemplates/personName.tpl}
9
9
10
10
11
- <channel rdf:about =" http:// { $.server.HTTP_HOST } { $.server. REQUEST_URI|escape } " >
11
+ <channel rdf:about =" { $.server.REQUEST_URI|absolute_url |escape } " >
12
12
<title >{ if $Project } { $Project -> Title |escape } — ; { /if } { _ ' Project Updates' } </title >
13
- <link >http:// { Site::getConfig(primary_hostname) } /project-updates{ if $ Project } ?ProjectID={ $Project -> ID } { / if } </link >
13
+ <link >{ escape(absolute_url(tif( $ Project , " /project-updates?ProjectID=$Project->ID" , " /project-updates " ))) } </link >
14
14
{ capture assign= projectTitleText} { $Project -> Title |escape } { /capture }
15
15
{ capture assign= siteNameText} { Laddr::$siteName } { /capture }
16
16
{ if $Project }
22
22
<items >
23
23
<rdf:Seq >
24
24
{ foreach item= Update from= $data }
25
- <rdf:li rdf:resource =" http:// { Site::getConfig(primary_hostname) } { $Update -> getURL ()} " />
25
+ <rdf:li rdf:resource =" { $Update -> getURL ()|absolute_url |escape } " />
26
26
{ /foreach }
27
27
</rdf:Seq >
28
28
</items >
29
29
</channel >
30
30
31
31
{ foreach item= Update from= $data }
32
- <item rdf:about =" http:// { Site::getConfig(primary_hostname) } { $Update -> getURL ()} " >
32
+ <item rdf:about =" { $Update -> getURL ()|absolute_url |escape } " >
33
33
<title >{ $Update -> Project -> Title |escape } — ; { _(" Update #%u" )|sprintf:$Update -> Number } </title >
34
- <link >http:// { Site::getConfig(primary_hostname) } { $Update -> getURL ()} </link >
34
+ <link >{ $Update -> getURL ()|absolute_url |escape } </link >
35
35
<description >{ $Update -> Body |escape |markdown|escape } </description >
36
36
<dc:creator >{ personName $Update -> Creator } </dc:creator >
37
37
<dc:date >{ date($dwoo .const.DATE_W3C, $Update -> Created )} </dc:date >
You can’t perform that action at this time.
0 commit comments