<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>El Tramo &#187; PHP</title>
	<atom:link href="http://el-tramo.be/blog/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://el-tramo.be</link>
	<description>Remko Tronçon&#039;s Homepage</description>
	<lastBuildDate>Fri, 11 Jun 2010 19:08:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Integrating DocBook with WordPress</title>
		<link>http://el-tramo.be/blog/integrating-docbook-with-wordpress</link>
		<comments>http://el-tramo.be/blog/integrating-docbook-with-wordpress#comments</comments>
		<pubDate>Sat, 27 Jun 2009 18:28:36 +0000</pubDate>
		<dc:creator>Remko Tronçon</dc:creator>
				<category><![CDATA[Writing]]></category>
		<category><![CDATA[DocBook]]></category>
		<category><![CDATA[DocBook Kit]]></category>
		<category><![CDATA[DocBook XSL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://el-tramo.be/?p=409</guid>
		<description><![CDATA[I added a DocBook XSL customization layer to my DocBook Kit that outputs an HTML/PHP version of the document that automatically integrates with a WordPress blog. The stylesheet also (optionally) adds a link to the downloadable PDF of the document. An example document integrating with this blog can be seen here.
The custom stylesheet is based [...]]]></description>
			<content:encoded><![CDATA[<p>I added a DocBook XSL <a href="/git/docbook-kit/tree/style/wordpress">customization layer</a> to my <a href="/blog/docbook-kit">DocBook Kit</a> that outputs an HTML/PHP version of the document that automatically integrates with a WordPress blog. The stylesheet also (optionally) adds a link to the downloadable PDF of the document. An example document integrating with this blog can be seen <a href="/documents/example/index.php">here</a>.</p>
<p><span id="more-409"></span>The custom stylesheet is based on the standard DocBook XSL XHTML stylesheet. However, instead of inserting an HTML header, it inserts PHP calls to include the WordPress headers and footers. The only tricky part of this is to tell WordPress what the title of the resulting page should be. I hacked this in by creating a class with the bare minimum fields required by <code>wp_title() </code>(which is used by WordPress to print the title of the document). The resulting template looks like this:</p>
<blockquote>
<pre>&lt;?php
  require('../wordpress/wp-blog-header.php');
  class MyPost { var $post_title = "My Title"; }
  $wp_query-&gt;is_home = false;
  $wp_query-&gt;is_single = true;
  $wp_query-&gt;queried_object = new MyPost();
  get_header();
?&gt;
&lt;div id="content" class="narrowcolumn" role="main"&gt;
  ...
&lt;/div&gt;
&lt;?php
  get_sidebar();
  get_footer();
?&gt;</pre>
</blockquote>
<p>The DocBook kit is available from my <a href="/git/docbook-kit">Git repository</a> (or on <a href="http://github.com/remko/docbook-kit">GitHub</a>, or as a <a href="/git/docbook-kit/snapshot/docbook-kit-master.zip">ZIP</a> file). More information about the kit can be found <a href="/blog/docbook-kit">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://el-tramo.be/blog/integrating-docbook-with-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WiGit: A Simple Git-based Wiki</title>
		<link>http://el-tramo.be/blog/wigit-intro</link>
		<comments>http://el-tramo.be/blog/wigit-intro#comments</comments>
		<pubDate>Mon, 21 Jul 2008 10:34:08 +0000</pubDate>
		<dc:creator>Remko Tronçon</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[git-wiki]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Textile]]></category>
		<category><![CDATA[TipiWiki]]></category>
		<category><![CDATA[WiGit]]></category>
		<category><![CDATA[Wiki]]></category>

		<guid isPermaLink="false">http://el-tramo.be/?p=128</guid>
		<description><![CDATA[For a while now, I&#8217;ve been looking for a simple wiki to manage my personal notes and to do some basic shared editing. After looking through the vast number of wikis on WikiMatrix and still not finding what I was looking for, I ended up doing what hundreds have done before me: wrote my own wiki, [...]]]></description>
			<content:encoded><![CDATA[<p>For a while now, I&#8217;ve been looking for a simple wiki to manage my personal notes and to do some basic shared editing. After looking through the vast number of wikis on <a href="http://www.wikimatrix.org/">WikiMatrix</a> and still not finding what I was looking for, I ended up doing what hundreds have done before me: wrote <a href="http://el-tramo.be/software/wigit">my own wiki</a>, and threw it on the pile of exitsing ones.</p>
<p><span id="more-128"></span>Up until recently, I&#8217;ve been using <a href="http://tipiwiki.sourceforge.net">TipiWiki</a> as my notebook, which is very light, simple, and easy to deploy. However, recently started running into its limitations, including limited markup possibilities (e.g. no multi-level lists), the lack of decent history (seeing who changed what, when), &#8230; I liked the idea of <a href="http://atonie.org/2008/02/git-wiki">git-wiki</a>, which used <a href="http://git.or.cz">Git</a> as its backend, giving it good history support, and the fact that all documents are in a real repository. However, git-wiki uses <a href="http://sinatra.rubyforge.org/">Sinatra</a>, which requires way too much valuable resources than I want to spend on a simple wiki.</p>
<p>So, I took the idea of using Git as a backend, threw in the <a href="http://textile.thresholdstate.com/">Textile</a> PHP class for marking up text, and wrote <a href="http://el-tramo.be/software/wigit">WiGit</a>: a simple, themable wiki in PHP (which is less cool, but also less heavy than Ruby/Sinatra), built upon Git, with history support, basic user support (from HTTP authentication), and pretty URLs. The default theme is still rough, and there are still a bunch of features coming up, but it should function properly already as a simple wiki for your everyday needs.</p>
]]></content:encoded>
			<wfw:commentRss>http://el-tramo.be/blog/wigit-intro/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
