More changes to come!
Download ZIP file and copy it into your system/extensions
folder. Learn more about extensions.
The extension adds a webmention section on blog pages.
To add webmentions on other pages create a [webmention]
shortcut. The following optional argument is available:
To put webmentions on every page of the site, add <?php echo $this->yellow->page->getExtraHtml("webmention") ?>
in system/layouts/default.html
, after the line <?php echo $this->yellow->page->getContentHtml() ?>
.
Content file with webmentions:
---
Title: Example page
---
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna pizza. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt
in culpa qui officia deserunt mollit anim id est laborum.
[webmention]
Layout file with webmentions:
<?php $this->yellow->layout("header") ?>
<div class="content">
<div class="main" role="main">
<h1><?php echo $this->yellow->page->getHtml("titleContent") ?></h1>
<?php echo $this->yellow->page->getContentHtml() ?>
<?php echo $this->yellow->page->getExtraHtml("webmention") ?>
</div>
</div>
<?php $this->yellow->layout("footer") ?>
The following settings can be configured in file system/extensions/yellow-system.ini
:
webmentionEndpoint: PUT_YOUR_WEBMENTION_ENDPOINT_HERE
This extension was created by following examples in the Datenstrom API for Developers Guide. Thank you fo the great work!
This guide was based on GiovanniSalmeri's yellow-comments documentation. Thank you for the great work!
Pablo Morales. Get help.