Changeset 1674:00146501e490 for inc/public
- Timestamp:
- 09/01/13 03:16:29 (12 years ago)
- Branch:
- pingbacks
- Children:
- 1675:23613441b822, 1676:ae97601883d2
- Location:
- inc/public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/class.dc.template.php
r1611 r1674 70 70 $this->addValue('BlogID',array($this,'BlogID')); 71 71 $this->addValue('BlogURL',array($this,'BlogURL')); 72 $this->addValue('BlogXMLRPCURL',array($this,'BlogXMLRPCURL')); 72 73 $this->addValue('BlogPublicURL',array($this,'BlogPublicURL')); 73 74 $this->addValue('BlogQmarkURL',array($this,'BlogQmarkURL')); … … 906 907 907 908 /*dtd 909 <!ELEMENT tpl:BlogXMLRPCURL - O -- Blog XML-RPC URL --> 910 */ 911 public function BlogXMLRPCURL($attr) 912 { 913 $f = $this->getFilters($attr); 914 return '<?php echo '.sprintf($f,'$core->blog->url.$core->url->getURLFor(\'xmlrpc\',$core->blog->id)').'; ?>'; 915 } 916 917 /*dtd 908 918 <!ELEMENT tpl:BlogURL - O -- Blog URL --> 909 919 */ -
inc/public/default-templates/post.html
r932 r1674 25 25 <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" /> 26 26 <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" /> 27 <tpl:EntryIf pings_active="1"><link rel="pingback" href="{{tpl:BlogXMLRPCURL}}" /></tpl:EntryIf> 27 28 28 29 <tpl:EntryNext><link rel="next" href="{{tpl:EntryURL}}" -
inc/public/lib.urlhandlers.php
r1610 r1674 480 480 481 481 # The entry 482 if ($_ctx->posts->trackbacksActive()) { 483 header('X-Pingback: '.$core->blog->url.$core->url->getURLFor("xmlrpc",$core->blog->id)); 484 } 482 485 self::serveDocument('post.html'); 483 486 }
Note: See TracChangeset
for help on using the changeset viewer.