Readme Parser
Wer Plugins für WordPress programmiert, kommt an der “readme.txt” nicht vorbei. Diese wird auch durch das SVN verarbeitet und daraus eine ansprechende Seite für das Plugin erstellt.
Der “Readme Parser” macht das gleiche in der Lite-Version. So können die schon vorhandenen Informationen direkt auf der Plugin-Seite angezeigt werden.
Die Ausgabe sieht dann ungefähr so aus:
Readme Parser 0.2
Contributors: Tom BraiderDonate link: www.unicef.org
Tags: plugin, parse
Requires at least: 2.0
Tested up to: 2.7
Stable tag: 0.2
Shows any plugin readme.txt file on a page/post.
[readme-parser url="http://www.xyz.com/readme.txt"]Description
If you make Wordpress plugins you know the readme.txt.
With this plugin you can show this readme.txt in every post or page.
Installation
- unzip plugin directory into the
/wp-content/plugins/directory - activate the plugin through the
Pluginsmenu in WordPress - insert
[readme-parser url="http://domain/path/readme.txt"]in your page
Frequently Asked Questions
Who can i change the style?
You can change the Stylesheet in you own theme style.css.
.readme-parser is the main div..readme-parser-screenshots is the special <ol> with the screenshots,Screenshots
Arbitrary section
Filelist
- readme-parser.php
Changelog
0.2
- urls to links
- separate DIVs for every section, easier css access
0.1
- first release
created by Readme Parser
Ein Beispiel für mögliche Einträge in der style.css des Temlates.
/* Readme Parser */ .readme-parser { border: 1px #ccc dotted; padding: 10px; background: #fff url(images/readme.gif) right top no-repeat; } .readme-parser ul li { margin-left: 0 !important; } .readme-parser code { background-color: #eee; } .readme-parser-screenshots { list-style: none; } .readme-parser-screenshots li { margin: 0 !important; padding-bottom: 10px !important; overflow: hidden; }

[...] Readme Parser [...]
[...] Readme Parser [...]