pmoralesgarcia / yellow-webmention

A simple webmentions implemention for Datenstrom Yellow.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yellow-webmention

More changes to come!

Screenshot

How to install an extension

Download ZIP file and copy it into your system/extensions folder. Learn more about extensions.

How to show webmentions

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() ?>.

Examples

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") ?>

Settings

The following settings can be configured in file system/extensions/yellow-system.ini:

webmentionEndpoint: PUT_YOUR_WEBMENTION_ENDPOINT_HERE

Acknowledgements

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!

Developer

Pablo Morales. Get help.

About

A simple webmentions implemention for Datenstrom Yellow.


Languages

Language:PHP 41.7%Language:CSS 30.8%Language:JavaScript 27.5%