<?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>Computer und wie sie unser Leben 'vereinfachen'</title>
	<atom:link href="http://blog.kay-strobach.de/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.kay-strobach.de</link>
	<description>http://www.kay-strobach.de</description>
	<lastBuildDate>Wed, 02 May 2012 13:50:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Neues Design für meinen Blog – oder wie man TV-Framework Skins aus TYPO3 in WordPress nutzt – Teil 3</title>
		<link>http://blog.kay-strobach.de/index.php/2012/05/01/neues-design-fur-meinen-blog-oder-wie-man-tv-framework-skins-aus-typo3-in-wordpress-nutzt-teil-3/</link>
		<comments>http://blog.kay-strobach.de/index.php/2012/05/01/neues-design-fur-meinen-blog-oder-wie-man-tv-framework-skins-aus-typo3-in-wordpress-nutzt-teil-3/#comments</comments>
		<pubDate>Tue, 01 May 2012 20:35:25 +0000</pubDate>
		<dc:creator>Kay Strobach</dc:creator>
				<category><![CDATA[Computer]]></category>

		<guid isPermaLink="false">http://blog.kay-strobach.de/?p=368</guid>
		<description><![CDATA[Mittlerweile wurde eine frühe Version des Skins auf WordPress.org für das theme directory eingereicht. In der aktuellen Fassung wurde nun das ersetzen der jeweiligen Bereich noch vereinfacht. Wir haben drei kleine Schritte: 1. initialisieren der Klasse und laden der Default Ersetzungen (Styles, JavaScript für Plugins, etc.) 2. Wir definieren was wohin geschrieben werden soll, das [...]]]></description>
			<content:encoded><![CDATA[<p>Mittlerweile wurde eine frühe Version des Skins auf WordPress.org für das theme directory eingereicht.</p>
<p>In der aktuellen Fassung wurde nun das ersetzen der jeweiligen Bereich noch vereinfacht.</p>
<p>Wir haben drei kleine Schritte:</p>
<p>1. initialisieren der Klasse und laden der Default Ersetzungen (Styles, JavaScript für Plugins, etc.)</p>
<pre class="brush: php; title: ; notranslate">
$helper = new GrabIt_Xml_Helper($options['layoutUri']);
$helper-&gt;enableDefaultPostProcessingForWP();
</pre>
<p>2. Wir definieren was wohin geschrieben werden soll, das pre- und postProcessing wurde nun auf einen Funktionsaufruf gekürzt:</p>
<pre class="brush: php; title: ; notranslate">
$helper-&gt;setPlaceHolder(
  'contentBlock-1',
  GrabIt_Util_Functions::renderSiteContent('page')
);
$helper-&gt;setPlaceHolder(
  'contentBlock-2',
  GrabIt_Util_Functions::renderSiteContent('sidebar1')
);
$helper-&gt;setPlaceHolder(
  'contentBlock-3',
  GrabIt_Util_Functions::renderSiteContent('sidebar2')
);
</pre>
<p>3. Im letzten Schritt wird die Seite noch ausgegeben:</p>
<pre class="brush: php; title: ; notranslate">
echo $helper-&gt;parseDocument();
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.kay-strobach.de/index.php/2012/05/01/neues-design-fur-meinen-blog-oder-wie-man-tv-framework-skins-aus-typo3-in-wordpress-nutzt-teil-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Neues Design für meinen Blog – oder wie man TV-Framework Skins aus TYPO3 in WordPress nutzt – Teil 2</title>
		<link>http://blog.kay-strobach.de/index.php/2012/04/29/neues-design-fur-meinen-blog-oder-wie-man-tv-framework-skins-aus-typo3-in-wordpress-nutzt-teil-2/</link>
		<comments>http://blog.kay-strobach.de/index.php/2012/04/29/neues-design-fur-meinen-blog-oder-wie-man-tv-framework-skins-aus-typo3-in-wordpress-nutzt-teil-2/#comments</comments>
		<pubDate>Sun, 29 Apr 2012 20:22:08 +0000</pubDate>
		<dc:creator>Kay Strobach</dc:creator>
				<category><![CDATA[Computer]]></category>

		<guid isPermaLink="false">http://blog.kay-strobach.de/?p=358</guid>
		<description><![CDATA[Wie versprochen kommen nun noch einige Details zum &#8220;Grabben&#8221; des Themes. &#160; Dank dieser Klasse können einzelne XML Nodes ersetzt werden. Dabei gehe ich zwei Schrittig vor. Werden die Nodes mit Platzhaltern gefüllt, z.B. ###CONTENT-1### Im zweiten Schritt kann an die Stelle der Platzhalter normaler HTML Code gesetzt werden Die zwei Schritte sind nötig, da [...]]]></description>
			<content:encoded><![CDATA[<p>Wie versprochen kommen nun noch einige Details zum &#8220;Grabben&#8221; des Themes.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

class GrabIt_Xml_Helper {
	protected $prePlaceHolders = array(
		'contentBlock-1' =&gt; '##CONTENT-1###',
		'contentBlock-2' =&gt; '##CONTENT-2###',
		'contentBlock-3' =&gt; '##CONTENT-3###',
		'feature'        =&gt; '##FEATURE###',
	);
	protected $postPlaceHolders = array(
		'##CONTENT-1###' =&gt; 'content-1',
		'##CONTENT-2###' =&gt; 'content-2',
		'##CONTENT-3###' =&gt; 'content-3',
		'##FEATURE###'   =&gt; 'feature',
		'##FOOTER###'    =&gt; 'footer',
		'##MENU###'      =&gt; 'menu',
	);
	protected $debug = false;
	function __construct($url) {
		$this-&gt;setUrl($url);
	}
	function setUrl($url) {
		$this-&gt;url = $url;
	}
	function setPrePlaceHolders($array) {
		$this-&gt;prePlaceHolders = $array;
	}
	function setPrePlaceHolder($name, $value) {
		$this-&gt;prePlaceHolders[$name] = $value;
	}
	function setPostPlaceHolder($name, $value) {
		$this-&gt;postPlaceHolders[$name] = $value;
	}
	function parseDocument() {
		if(!$this-&gt;debug === true) {
			$display_errors = ini_get('display_errors');
			ini_set('display_errors', 0);
		}
		$this-&gt;dom = new DOMDocument();
		$this-&gt;dom-&gt;loadHTMLFile($this-&gt;url);
		foreach($this-&gt;prePlaceHolders as $newNodeId =&gt; $placeHolder) {
			$this-&gt;replaceNode($newNodeId, $placeHolder);
		}
		if(!$this-&gt;debug === true) {
			ini_set('display_errors', $display_errors);
		}
		return $this-&gt;getReadyDocumentAsString();
	}
	function replaceNode($newNodeId, $placeHolder) {
		$nodeToReplace = $this-&gt;dom-&gt;getElementById($newNodeId);
		if($nodeToReplace) {
			$nodeToReplaceParent = $nodeToReplace-&gt;parentNode;
			$newNode = new DOMElement('div', $placeHolder);
			$nodeToReplaceParent-&gt;replaceChild($newNode, $nodeToReplace);
			$newNode-&gt;setAttribute('id', $newNodeId);
		}
	}
	function getReadyDocumentAsString() {
		$buffer = $this-&gt;dom-&gt;saveHTML();
		foreach($this-&gt;postPlaceHolders as $newNodeId =&gt; $placeHolder) {
			$buffer = str_replace($newNodeId, $placeHolder, $buffer);
		}
		return $buffer;
	}
}
</pre>
<p>&nbsp;</p>
<p>Dank dieser Klasse können einzelne XML Nodes ersetzt werden. Dabei gehe ich zwei Schrittig vor.</p>
<ol>
<li>Werden die Nodes mit Platzhaltern gefüllt, z.B. ###CONTENT-1###</li>
<li>Im zweiten Schritt kann an die Stelle der Platzhalter normaler HTML Code gesetzt werden</li>
</ol>
<p>Die zwei Schritte sind nötig, da ansonsten der einzufügende HTML Code valides XML sein muss, da XMLDOM sonst Exceptions wirft.</p>
<p>Um die Klasse zu Verwenden ist dann noch folgender Code nötig:</p>
<pre class="brush: php; title: ; notranslate">
define('WP_DEBUG', true);

include_once('Classes/Util/Functions.php');

$options = GrabIt_Backend_Setup::getOptions();

$helper = new GrabIt_Xml_Helper($options['layoutUri']);

$helper-&gt;setPostPlaceHolder('##CONTENT-1###', UtilFunctions::renderSiteContent('page'));
$helper-&gt;setPostPlaceHolder('##CONTENT-2###', UtilFunctions::renderSiteContent('sidebar1'));
$helper-&gt;setPostPlaceHolder('##CONTENT-3###', UtilFunctions::renderSiteContent('sidebar2'));
$helper-&gt;setPostPlaceHolder('&amp;gt;/head&amp;lt;'        , UtilFunctions::renderSiteContent('head'));

echo $helper-&gt;parseDocument();
</pre>
<p>In den nächsten Tagen werde ich noch folgendes einbauen:</p>
<ul>
<li>Umwandlung relativer Links in absolute Links <img src='http://blog.kay-strobach.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
<li>Erlauben alternativer Settings zu TV Framework und den darauf basierenden Themes</li>
</ul>
<p>Cheers</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kay-strobach.de/index.php/2012/04/29/neues-design-fur-meinen-blog-oder-wie-man-tv-framework-skins-aus-typo3-in-wordpress-nutzt-teil-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Neues Design für meinen Blog &#8211; oder wie man TV-Framework Skins aus TYPO3 in WordPress nutzt &#8211; Teil 1</title>
		<link>http://blog.kay-strobach.de/index.php/2012/04/27/neues-design-fur-meinen-blog/</link>
		<comments>http://blog.kay-strobach.de/index.php/2012/04/27/neues-design-fur-meinen-blog/#comments</comments>
		<pubDate>Fri, 27 Apr 2012 06:13:21 +0000</pubDate>
		<dc:creator>Kay Strobach</dc:creator>
				<category><![CDATA[Computer]]></category>

		<guid isPermaLink="false">http://blog.kay-strobach.de/?p=342</guid>
		<description><![CDATA[Endlich ist meine Seite soweit umgestellt, dass ich auch meinen Blog umstellen kann. Dabei kommt eine interessante Technik zum Einsatz, ich nutze einfach die Ausgabe von meinem TYPO3 Dazu habe ich mir ein Theme geschrieben, mit dem ich das Layout von Webseiten, die mit TemplaVoilaFramework erstellt worden in WordPress importieren kann. Die &#8220;Generated Content&#8221; Bereiche [...]]]></description>
			<content:encoded><![CDATA[<p>Endlich ist meine Seite soweit umgestellt, dass ich auch meinen Blog umstellen kann.</p>
<p>Dabei kommt eine interessante Technik zum Einsatz, ich nutze einfach die Ausgabe von meinem TYPO3 <img src='http://blog.kay-strobach.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Dazu habe ich mir ein Theme geschrieben, mit dem ich das Layout von Webseiten, die mit TemplaVoilaFramework erstellt worden in WordPress importieren kann. Die &#8220;Generated Content&#8221; Bereiche werden dabei automatisch zu Sidebars umgewandelt. Das Prinzip läßt sich mit Sicherheit auch auf andere Layout Frameworks übertragen, da die Klassen sehr frei konfigurierbar sind.</p>
<p>Derzeit gibt es noch einige kleinere Probleme mit SubTemplates und dem BlogStructureCSS, aber das wird noch gelöst <img src='http://blog.kay-strobach.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Cheers</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kay-strobach.de/index.php/2012/04/27/neues-design-fur-meinen-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTPS mit SSL Proxy für WordPress</title>
		<link>http://blog.kay-strobach.de/index.php/2011/08/21/https-mit-ssl-proxy-fur-wordpress/</link>
		<comments>http://blog.kay-strobach.de/index.php/2011/08/21/https-mit-ssl-proxy-fur-wordpress/#comments</comments>
		<pubDate>Sun, 21 Aug 2011 09:35:26 +0000</pubDate>
		<dc:creator>Kay Strobach</dc:creator>
				<category><![CDATA[Computer]]></category>

		<guid isPermaLink="false">https://ssl.webpack.de/blog.kay-strobach.de/?p=307</guid>
		<description><![CDATA[So kann man WordPress mit SSL nutzen: öffnen der Datei wp-config.php einfügen des folgenden Codes vor dem Kommentar Stop editing Die Variable Domain gibt die Hauptdomain des Blogs an. und schon ist es erledigt &#8230;]]></description>
			<content:encoded><![CDATA[<p>So kann man WordPress mit SSL nutzen:</p>
<ol>
<li>öffnen der Datei wp-config.php</li>
<li>einfügen des folgenden Codes vor dem Kommentar Stop editing<br />
Die Variable Domain gibt die Hauptdomain des Blogs an.</p>
<pre class="brush: php; title: ; notranslate">
//ssl patch begin
	$domain = 'blog.kay-strobach.de';
	if($_SERVER['HTTP_X_FORWARDED_HOST']==&quot;ssl.webpack.de&quot;) {
				// mit SSL-oxy
			define('WP_SITEURL', 'https://ssl.webpack.de/' . $domain);
			define('WP_HOME', 'https://ssl.webpack.de/' . $domain);
			$_SERVER['HTTPS'] = 'on';
			$_SERVER['REQUEST_URI'] = '/' . $domain . $_SERVER['REQUEST_URI'];
	} else {
				// Ohne SSLroxy
			define('WP_SITEURL', 'http://' . $domain);
			define('WP_HOME', 'http://' . $domain);
	}
//ssl patch end
</pre>
<p>und schon ist es erledigt &#8230;</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.kay-strobach.de/index.php/2011/08/21/https-mit-ssl-proxy-fur-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aloha editor im TYPO3 Backend</title>
		<link>http://blog.kay-strobach.de/index.php/2011/07/04/aloha-editor-im-typo3-backend/</link>
		<comments>http://blog.kay-strobach.de/index.php/2011/07/04/aloha-editor-im-typo3-backend/#comments</comments>
		<pubDate>Mon, 04 Jul 2011 16:59:53 +0000</pubDate>
		<dc:creator>Kay Strobach</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[TYPO3]]></category>

		<guid isPermaLink="false">http://blog.kay-strobach.de/?p=275</guid>
		<description><![CDATA[Based on the discussion on the TYPO3v4 List: http://lists.typo3.org/pipermail/typo3-project-v4/2011-July/002519.html I started to implement an early prototype of aloha editor in the TYPO3 Backend: You may download the extension below. All other rte&#8217;s must be deactivated. T3X_aloha-0_1_0-z-201107041851 Please note, this software is an early alpha &#8211; Please do not use it in an production environment. I [...]]]></description>
			<content:encoded><![CDATA[<p>Based on the discussion on the TYPO3v4 List:</p>
<p><a href="http://lists.typo3.org/pipermail/typo3-project-v4/2011-July/002519.html">http://lists.typo3.org/pipermail/typo3-project-v4/2011-July/002519.html</a></p>
<p>I started to implement an early prototype of aloha editor in the TYPO3 Backend:</p>
<p><a href="http://blog.kay-strobach.de/wp-content/uploads/2011/07/04-07-2011-18-34-55.png"><img class="aligncenter size-thumbnail wp-image-276" title="04-07-2011 18-34-55" src="http://blog.kay-strobach.de/wp-content/uploads/2011/07/04-07-2011-18-34-55-150x150.png" alt="" width="150" height="150" /></a></p>
<p><a href="http://blog.kay-strobach.de/wp-content/uploads/2011/07/04-07-2011-18-36-141.png"><img class="aligncenter size-thumbnail wp-image-278" title="04-07-2011 18-36-14" src="http://blog.kay-strobach.de/wp-content/uploads/2011/07/04-07-2011-18-36-141-150x150.png" alt="" width="150" height="150" /></a></p>
<p>You may download the extension below. All other rte&#8217;s must be deactivated.</p>
<p><a href="http://blog.kay-strobach.de/wp-content/uploads/2011/07/T3X_aloha-0_1_0-z-201107041851.zip">T3X_aloha-0_1_0-z-201107041851</a></p>
<p>Please note, this software is an early alpha &#8211; Please do not use it in an production environment. I do not guarentee, that is works completly.</p>
<p>Current features:</p>
<ul>
<li>Basic Aloha editor in Backend</li>
<li>Saving works</li>
</ul>
<p>Must have features (currently missing):</p>
<ul>
<li>Optimizing code to be smaller (currently based on tinemce_rte)</li>
<li>Link Wizard</li>
<li>Table Wizard</li>
<li>CSS Class Wizard</li>
<li>other</li>
</ul>
<p>Regards</p>
<p>Kay</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kay-strobach.de/index.php/2011/07/04/aloha-editor-im-typo3-backend/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

