This is a Plugin for the Flat File Based CMS named Pico.
Copy the at_opengraph.php
File to the plugins
Folder in the Root of your Pico Project. Every Plugin in this Folder is activated automatically.
This Plugin was coded at 5 in the morning only to test the Plugin API of Pico, so maybe it has some bugs - but..
Fixed some? Feel free to push a request ;)
This Plugin is enabling the Open Graph Protocol to your site the right way. The Frontpage is mentioned as a "website" Object, every sub Page as "article". So it meta properties like:
- og:type website or article, mentioned as above.
- og:title the title of each of your content files
- og:description the description of each of your content files
- og:url the url generated by base url and actual url
- og:site_name the site name set in config
- og:image if the article has an image so it takes the first image of each article
only if the requested site exists (not 404).
Read more about the Open Graph Protocol here.
CreativeCommons2.0 licence: CC BY-SA
You are free to share & remix this code only if you mention me as coder of this base.
Copyright © Ahmet Topal 2013. All rights reserved.