<?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>Hiranthi&#039;s weblog &#187; PHP - Hiranthi&#039;s weblog - Weblog van een ondernemende vrouw</title> <atom:link href="http://hiranthi.nl/tag/php/feed/" rel="self" type="application/rss+xml" /><link>http://hiranthi.nl</link> <description>Weblog van een ondernemende vrouw</description> <lastBuildDate>Sat, 19 May 2012 19:37:38 +0000</lastBuildDate> <language>nl</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>Maatwerk product aan winkelwagen toevoegen (Shopp 1.1.x)</title><link>http://hiranthi.nl/tutorials/maatwerk-product-aan-winkelwagen-toevoegen/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=maatwerk-product-aan-winkelwagen-toevoegen</link> <comments>http://hiranthi.nl/tutorials/maatwerk-product-aan-winkelwagen-toevoegen/#comments</comments> <pubDate>Thu, 28 Jul 2011 09:06:55 +0000</pubDate> <dc:creator>famire</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[E-commerce]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Shopp]]></category> <category><![CDATA[webshop]]></category> <category><![CDATA[winkelwagen]]></category><guid
isPermaLink="false">http://hiranthi.nl/?p=3256</guid> <description><![CDATA[Het kan voorkomen dat je Shopp wilt gebruiken voor de afhandeling van de bestelling/betaling, maar dat je de daadwerkelijke producten niet (allemaal) als product wilt toevoegen. In zo&#8217;n geval is het natuurlijk handig om te weten hoe je producten via PHP in de winkelwagen krijgt. In dit deel van de &#8220;Shopp: maatwerk product in winkelwagen&#8221;-serie [...]]]></description> <content:encoded><![CDATA[<p>Het kan voorkomen dat je Shopp wilt gebruiken voor de afhandeling van de bestelling/betaling, maar dat je de daadwerkelijke producten niet (allemaal) als product wilt toevoegen. In zo&#8217;n geval is het natuurlijk handig om te weten hoe je producten via PHP in de winkelwagen krijgt.<span
id="more-3256"></span></p><p>In dit deel van de &#8220;Shopp: maatwerk product in winkelwagen&#8221;-serie laat ik zien hoe je met een eigen formulier een product aan de winkelwagen kan toevoegen. Met deze code kun je dan inhaken op andere plugins.</p><h2>Het formulier</h2><p>Als eerste maken we het formulier. Je kunt hier het beste een aparte pagina-template voor gebruiken.</p><pre><pre lang="php" class="brush: php; gutter: true">
&lt;form action=&quot;&quot; method=&quot;post&quot;&gt;
&lt;input type=&quot;hidden&quot; name=&quot;ProductName&quot; value=&quot;Naam van Product&quot; &gt;
&lt;input type=&quot;hidden&quot; name=&quot;ProductPrice&quot; value=&quot;10.00&quot; &gt;
&lt;h2&gt;Naam van Product&lt;/h2&gt;

  &lt;big&gt;Prijs:
&lt;php echo money(10.00); ?&gt;&lt;/big&gt;

&lt;label for=&quot;ProductQuantity&quot;&gt;Aantal&lt;/label&gt;
&lt;input type=&quot;text&quot; name=&quot;ProductQuantity&quot; id=&quot;ProductQuantity&quot; value=&quot;1&quot; /&gt;
&lt;input type=&quot;submit&quot; name=&quot;addtocart&quot; value=&quot;In winkelwagen&quot; /&gt;
&lt;/form&gt;
</pre></pre><h3>Uitleg formulier code</h3><p>Zoals je kan zien is de <code>action</code> van dit formulier leeg, hierdoor wordt het formulier verzonden naar de huidige pagina. Vandaar de aparte pagina-template, je kunt de code voor het afhandelen van het verzonden formulier dan bij het formulier zelf houden.</p><pre><pre lang="html" class="brush: php; gutter: true">
&lt;input type=&quot;hidden&quot; name=&quot;ProductName&quot; value=&quot;Naam van Product&quot; &gt;
&lt;input type=&quot;hidden&quot; name=&quot;ProductPrice&quot; value=&quot;10.00&quot; &gt;</pre></pre><p>Deze verborgen velden zijn voor het opgeven van de benodigde gegevens, de naam en de prijs. De prijs wordt hier niet &#8220;op z&#8217;n Nederlands&#8221; neergezet, maar met een punt als scheiding tussen de decimalen en hele getallen. Dit om te verzekeren dat het bedrag juist wordt overgenomen als het product in de winkelwagen wordt gestopt.</p><pre><pre lang="html" class="brush: php; gutter: true">
&lt;h2&gt;Naam van Product&lt;/h2&gt;
</pre></pre><p>Dit lijkt me voor zich spreken. Je geeft de naam van het product wel mee in een verborgen veld, maar voor je bezoekers/klanten is het ook wel zo handig om te weten hoe het product heet.</p><pre><pre lang="php" class="brush: php; gutter: true">&lt;big&gt;Prijs:
&lt;php echo money(10.00); ?&gt;&lt;/big&gt;</pre></pre><p>Je klanten willen natuurlijk ook wel graag weten wat een product dan kost, voor ze het in de winkelwagen stoppen. De <code>money()</code> functie is een Shopp-functie die ervoor zorgt dat de weergave van het bedrag overeenkomt met de valuta van je webshop. In Euro&#8217;s wordt dit dan <code>&amp;euro;10,00</code>.</p><pre><pre lang="html" class="brush: php; gutter: true">

&lt;label for=&quot;ProductQuantity&quot;&gt;Aantal&lt;/label&gt;
&lt;input type=&quot;text&quot; name=&quot;ProductQuantity&quot; id=&quot;ProductQuantity&quot; value=&quot;1&quot; /&gt;
</pre></pre><p>Een invoerveld voor het aantal dat toegevoegd moet worden aan de winkelwagen. Hier kun je uiteraard ook een verborgen veld voor gebruiken waarmee je het aantal dat wordt toegevoegd vastzet.</p><pre><pre lang="html" class="brush: php; gutter: true">
&lt;input type=&quot;submit&quot; name=&quot;addtocart&quot; value=&quot;In winkelwagen&quot; /&gt;
</pre></pre><p>De button die het formulier verzend.</p><h2>Aan winkelwagen toevoegen</h2><p>Met bovenstaande code heb je een leuk formuliertje, maar verder eigenlijk ook niet. We hebben nog code nodig die de verzonden gegevens gaan verwerken.</p><pre><pre lang="php" class="brush: php; gutter: true">&lt;?php

// is het formulier gepost?
if ( isset($_POST[&#039;addtocart&#039;]) )
{
  global $Shopp;
  $Order  =&amp;#038; ShoppOrder();
  $Cart  =&amp;#038; $Order-&gt;Cart;

  $Product          = new Product((time()-1));
  $NewProduct    = new Item($Product,time());

  $NewProduct-&gt;name  = esc_attr($_POST[&#039;ProductName&#039;]); // productnaam
  $NewProduct-&gt;unitprice  = intval($_POST[&#039;ProductPrice&#039;]); // de prijs per product
  $NewProduct-&gt;quantity  = intval($_POST[&#039;ProductQuantity&#039;]); // aantal van het product
  $NewProduct-&gt;taxrate  = shopp_taxrate(); // haal het BTW-percentage uit de Shopp instellingen
  $NewProduct-&gt;taxable  = true; // of het product met BTW belast moet worden of niet (true|false)

  $Cart-&gt;contents[]  = $NewProduct; // voeg het nieuwe product aan de winkelwagen toe
  $Cart-&gt;changed(true); // laat Shopp weten dat de winkelwagen is verandert
}

?&gt;</pre></pre><p>Shopp heeft ook een speciale functie om producten aan de winkelwagen toe te voegen, Adam heeft daar een voorbeeld van in <a
rel="nofollow" target="_blank" href="http://www.mygeeknc.com/shopp/programmatically-adding-items-to-shopps-cart/" title="Programmatically adding items to Shopp’s Cart">een van zijn tutorials</a>, maar ik vind deze manier zelf fijner. Zo heb je meer controle over waar het item in de winkelwagen geplaatst wordt.</p><h2>Custom data per product</h2><p>Wil je graag custom data toevoegen aan je product(en)? Dat kan uiteraard en dat doe je zo (moet boven <code>$Cart-&gt;contents[] = $NewProduct;</code> geplaatst worden):</p><pre><pre lang="php" class="brush: php; gutter: true">&lt;?php
  $NewProduct-&gt;data[&#039;Naam specifiek veld 1&#039;] = esc_attr($_POST[&#039;SpecificField1&#039;]);
  $NewProduct-&gt;data[&#039;Naam specifiek veld 2&#039;] = esc_attr($_POST[&#039;SpecificField2&#039;]);
?&gt;</pre></pre><p>Vergeet niet om de inputs voor deze velden ook toe te voegen aan het formulier (al dan niet met verborgen velden).</p><h2>Verwijderen uit winkelwagen</h2><p>Om het product uit de winkelwagen te verwijderen heb je geen extra code nodig, hier zorgt Shopp zelf voor.</p><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/wijzig-titel-n-a-v-shopp-pagina/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Wijzig titel n.a.v. (Shopp) pagina" title="Wijzig titel n.a.v. (Shopp) pagina" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/wijzig-titel-n-a-v-shopp-pagina/" rel="bookmark">Wijzig titel n.a.v. (Shopp) pagina</a></h3><p>De code in kun je in veel meer situaties dan alleen een aparte header/sidebar/footer gebruiken. Bijvoorbeeld om de titel van de pagina aan te passen. ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/producten-op-je-catalog-php/" rel="bookmark"><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2009/11/producten-catalog-412x200.jpg" alt="Producten op je catalog.php" title="Producten op je catalog.php" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/producten-op-je-catalog-php/" rel="bookmark">Producten op je catalog.php</a></h3><p>Een vraag die ik steeds meer tegenkom op de Shopp forums is de volgende: "Hoe geef ik al mijn producten weer op de Shopp indexpagina?". ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/productenwidget-met-thumbnails/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Productenwidget met thumbnails" title="Productenwidget met thumbnails" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/productenwidget-met-thumbnails/" rel="bookmark">Productenwidget met thumbnails</a></h3><p>Bij Shopp zitten een aantal standaard widgets geleverd, inclusief een producten widget. Maar wat deze widget mist is eigenlijk cruciaal voor je webshop: visuele ondersteuning, ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fmaatwerk-product-aan-winkelwagen-toevoegen%2F&amp;t=Maatwerk+product+aan+winkelwagen+toevoegen+%28Shopp+1.1.x%29" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Maatwerk+product+aan+winkelwagen+toevoegen+%28Shopp+1.1.x%29%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D3256%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fmaatwerk-product-aan-winkelwagen-toevoegen%2F&amp;title=Maatwerk+product+aan+winkelwagen+toevoegen+%28Shopp+1.1.x%29&amp;notes=Het+kan+voorkomen+dat+je+Shopp+wilt+gebruiken+voor+de+afhandeling+van+de+bestelling%2Fbetaling%2C+maar+dat+je+de+daadwerkelijke+producten+niet+%28allemaal%29+als+product+wilt+toevoegen.+In+zo%27n+geval+is+het+natuurlijk+handig+om+te+weten+hoe+je+producten+via+" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fmaatwerk-product-aan-winkelwagen-toevoegen%2F&amp;title=Maatwerk+product+aan+winkelwagen+toevoegen+%28Shopp+1.1.x%29&amp;bodytext=Het+kan+voorkomen+dat+je+Shopp+wilt+gebruiken+voor+de+afhandeling+van+de+bestelling%2Fbetaling%2C+maar+dat+je+de+daadwerkelijke+producten+niet+%28allemaal%29+als+product+wilt+toevoegen.+In+zo%27n+geval+is+het+natuurlijk+handig+om+te+weten+hoe+je+producten+via+" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fmaatwerk-product-aan-winkelwagen-toevoegen%2F&amp;title=Maatwerk+product+aan+winkelwagen+toevoegen+%28Shopp+1.1.x%29" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/maatwerk-product-aan-winkelwagen-toevoegen/" onclick="addBookmark(event);" title="Maatwerk product aan winkelwagen toevoegen (Shopp 1.1.x)" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=Maatwerk product aan winkelwagen toevoegen (Shopp 1.1.x)&amp;body=Het kan voorkomen dat je Shopp wilt gebruiken voor de afhandeling van de bestelling/betaling, maar dat je de daadwerkelijke producten niet (allemaal) als product wilt toevoegen. In zo'n geval is het natuurlijk handig om te weten hoe je producten via  - http://hiranthi.nl/tutorials/maatwerk-product-aan-winkelwagen-toevoegen/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/maatwerk-product-aan-winkelwagen-toevoegen/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>Code in posts hersteld</title><link>http://hiranthi.nl/wordpress/code-in-posts-hersteld/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=code-in-posts-hersteld</link> <comments>http://hiranthi.nl/wordpress/code-in-posts-hersteld/#comments</comments> <pubDate>Wed, 22 Jun 2011 18:16:47 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[code]]></category> <category><![CDATA[formatting]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[pre]]></category> <category><![CDATA[tutorials]]></category><guid
isPermaLink="false">http://hiranthi.nl/?p=3230</guid> <description><![CDATA[Een tijdje terug heb ik deze site van een losstaande WordPress installatie naar een Multisite omgeving verhuisd. Na die verhuizing kwam ik er achter dat alle code tussen de pre-tags uit was gestript en alle tutorial posts dus eigenlijk gewoon waardeloos waren. HTML behouden bij import Remkus wees me toen op een plugin &#8220;Unfiltered MU&#8220;, [...]]]></description> <content:encoded><![CDATA[<p>Een <a
title="Website verhuisd" href="http://hiranthi.nl/overig/website-verhuisd/">tijdje terug</a> heb ik deze site van een losstaande WordPress installatie naar een Multisite omgeving verhuisd. Na die verhuizing kwam ik er achter dat alle code tussen de pre-tags uit was gestript en alle tutorial posts dus eigenlijk gewoon waardeloos waren.<span
id="more-3230"></span></p><h2>HTML behouden bij import</h2><p><a
rel="nofollow" target="_blank" href="http://wpdimensie.nl">Remkus</a> wees me toen op een plugin &#8220;<a
rel="nofollow" target="_blank" href="http://wordpress.org/extend/plugins/unfiltered-mu/">Unfiltered MU</a>&#8220;, die zou ervoor zorgen dat alle HTML-code in de export (nog van de losstaande installatie) behouden zou blijven bij het importeren. Dus: alle oude posts verwijdert en &#8211; met die plugin geactiveerd &#8211; het export-bestand opnieuw geïmporteerd.<br
/> Resultaat: precies hetzelfde als voor de nieuwe import. De code van de tutorials was er nog steeds uit gehaald.</p><p>Toen bedacht ik me dat de gebruiker waar ik alle posts aan had gekoppeld, tijdens de import, geen beheerder was. Misschien dat dat ervoor zorgde dat de code er toch uit gehaald werd (te lage rol). Dus: weer alle oude posts verwijdert, gebruiker de beheerder-rol gegeven, posts weer importeren.<br
/> Resultaat: precies hetzelfde als met een lagere rol.</p><p>Toen via de Unfiltered MU pagina (op WP.org) naar de forum-berichten over die plugin gekeken. In een van de posts las ik dat er meer mensen waren die deze plugin niet werkend kregen op een WP3.1 Multisite omgeving. In een van de posts werd de <a
rel="nofollow" target="_blank" href="http://wordpress.org/extend/plugins/extend-kses/">Extend KSES</a> plugin genoemd.</p><p>De Extend KSES plugin geïnstalleerd en geactiveerd, alle oude posts weer verwijdert en de posts opnieuw ingeladen. Toen bedacht ik me dat deze plugin natuurlijk opties had en ik daar niet naar had gekeken. En inderdaad: je moet eerst de te bewaren tags selecteren in de instellingen. Dus alle posts weer verwijdert, die instelling (voor de pre-tags) geactiveerd en alle posts opnieuw ingeladen.<br
/> Nu werd de class van de pre-tags ook bewaard, maar de inhoud (de daadwerkelijke code) werd er nog steeds uitgehaald.</p><h2>Na veel proberen eindelijk resultaat</h2><p>Toen via Google gezocht en daar kwam ik de <a
rel="nofollow" target="_blank" href="http://wordpress.org/extend/plugins/preserve-code-formatting/">Preserve Code Formatting</a> tegen en ik besloot om het nog een keer uit te proberen. Dus snel die plugin geïnstalleerd en geactiveerd. Voor de zekerheid de Extend KSES plugin actief gelaten (je weet immers maar nooit), alle oude posts weer verwijdert en weer opnieuw ingeladen. En ja hoor! Eindelijk de code daar waar die hoort! <img
src='http://hiranthi.nl/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p><p>Mocht jij dus een blog moeten verhuizen waarin HTML wordt gebruikt die WP zelf normaal niet toestaat? Dan kan ik je de Preserve Code Formatting plugin van harte aanraden! <img
src='http://hiranthi.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>Nu alleen nog ff wat aan de weergave van die code doen <img
src='http://hiranthi.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/wordpress/plugins-data-importeren-exporteren/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Plugins om data te importeren/exporteren" title="Plugins om data te importeren/exporteren" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/wordpress/plugins-data-importeren-exporteren/" rel="bookmark">Plugins om data te importeren/exporteren</a></h3><p>Soms moet je gegevens van je WordPess site im-/exporteren, bijvoorbeeld als je een site (gedeeltelijk) moet kopiëren. In deze post noem ik een paar WordPress ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/wordpress/cpt-moeder-pagina/" rel="bookmark"><img
src="http://hiranthi.nl/files/2011/10/Schermafbeelding-2011-10-12-om-10.28.51-150x150.png" alt="CPT &#8220;moeder-pagina&#8221;" title="CPT &#8220;moeder-pagina&#8221;" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/wordpress/cpt-moeder-pagina/" rel="bookmark">CPT &#8220;moeder-pagina&#8221;</a></h3><p>Bijna een half jaar geleden heb ik op WordPress.org een idee ingestuurd: om een moeder-pagina te kunnen selecteren voor je custom post types, net zoals ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/wordpress-verhuizen-subdomein-domein/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="WordPress verhuizen van (sub)domein naar ander domein" title="WordPress verhuizen van (sub)domein naar ander domein" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/wordpress-verhuizen-subdomein-domein/" rel="bookmark">WordPress verhuizen van (sub)domein naar ander domein</a></h3><p>Afgelopen zaterdag (6 februari) heb ik deze blog verhuisd van een subdomein (hiranthi.illutic.nl) naar z'n eigen domein (hiranthi.nl). In deze post ga ik uitleggen hoe ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fcode-in-posts-hersteld%2F&amp;t=Code+in+posts+hersteld" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Code+in+posts+hersteld%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D3230%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fcode-in-posts-hersteld%2F&amp;title=Code+in+posts+hersteld&amp;notes=Een+tijdje+terug+heb+ik+deze+site+van+een+losstaande+WordPress+installatie+naar+een+Multisite+omgeving+verhuisd.+Na+die+verhuizing+kwam+ik+er+achter+dat+alle+code+tussen+de+pre-tags+uit+was+gestript+en+alle+tutorial+posts+dus+eigenlijk+gewoon+waardel" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fcode-in-posts-hersteld%2F&amp;title=Code+in+posts+hersteld&amp;bodytext=Een+tijdje+terug+heb+ik+deze+site+van+een+losstaande+WordPress+installatie+naar+een+Multisite+omgeving+verhuisd.+Na+die+verhuizing+kwam+ik+er+achter+dat+alle+code+tussen+de+pre-tags+uit+was+gestript+en+alle+tutorial+posts+dus+eigenlijk+gewoon+waardel" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fcode-in-posts-hersteld%2F&amp;title=Code+in+posts+hersteld" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/wordpress/code-in-posts-hersteld/" onclick="addBookmark(event);" title="Code in posts hersteld" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=Code in posts hersteld&amp;body=Een tijdje terug heb ik deze site van een losstaande WordPress installatie naar een Multisite omgeving verhuisd. Na die verhuizing kwam ik er achter dat alle code tussen de pre-tags uit was gestript en alle tutorial posts dus eigenlijk gewoon waardel - http://hiranthi.nl/wordpress/code-in-posts-hersteld/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/wordpress/code-in-posts-hersteld/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Colorbox uitschakelen in Shopp</title><link>http://hiranthi.nl/shopp-faq/colorbox-uitschakelen-shopp/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=colorbox-uitschakelen-shopp</link> <comments>http://hiranthi.nl/shopp-faq/colorbox-uitschakelen-shopp/#comments</comments> <pubDate>Fri, 03 Dec 2010 13:00:01 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[Shopp FAQ]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[Colorbox]]></category> <category><![CDATA[E-commerce]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Shopp]]></category> <category><![CDATA[webshop]]></category> <category><![CDATA[zoom]]></category> <category><![CDATA[zoomfx]]></category><guid
isPermaLink="false">http://www.hiranthi.nl/?p=1980</guid> <description><![CDATA[Met Shopp kun je ook andere Lightbox-varianten gebruiken dan de standaard meegeleverde Colorbox (in het verleden was dat Thickbox), maar voor veel mensen is het niet duidelijk hoe je dat dan precies doet. Het is niet zo heel moeilijk, het enige dat je hoeft te doen is de volgende code aan je functions.php toevoegen: &#60;?php [...]]]></description> <content:encoded><![CDATA[<p>Met Shopp kun je ook andere Lightbox-varianten gebruiken dan de standaard meegeleverde Colorbox (in het verleden was dat Thickbox), maar voor veel mensen is het niet duidelijk hoe je dat dan precies doet.<span
id="more-1980"></span></p><p>Het is niet zo heel moeilijk, het enige dat je hoeft te doen is de volgende code aan je functions.php toevoegen:</p><pre><pre lang="php">&lt;?php
if ( is_plugin_active(&#039;shopp/Shopp.php&#039;) )
{
    shopp_deregister_script(&#039;colorbox&#039;); // het script niet meer laden
    wp_deregister_style(&#039;shopp.colorbox&#039;); // het css bestand is dan uiteraard ook niet meer nodig
}
?&gt;</pre></pre><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/bankoverschrijving-met-shopp/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Bankoverschrijving met Shopp" title="Bankoverschrijving met Shopp" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/bankoverschrijving-met-shopp/" rel="bookmark">Bankoverschrijving met Shopp</a></h3><p>Op de Shopp forums is meerdere malen aangegeven dat mensen toch echt wel graag een handmatige betaling (manual payment - standaard bankoverschrijving) willen hebben. Dit ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/adresgegevens-in-de-account-opslaan/" rel="bookmark"><img
src="http://hiranthi.nl/files/2010/11/1071220_supermarket_pushcart_021.jpg" alt="Adresgegevens in de account opslaan" title="Adresgegevens in de account opslaan" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/adresgegevens-in-de-account-opslaan/" rel="bookmark">Adresgegevens in de account opslaan</a></h3><p>Een opdrachtgever van me wilde graag geen adres-velden op de checkout, maar alleen op de account-pagina. Op zich was dat niet zo heel erg moeilijk, ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/aparte-header-sidebar-footer-shopp-paginas/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Aparte header/sidebar/footer voor Shopp pagina&#8217;s" title="Aparte header/sidebar/footer voor Shopp pagina&#8217;s" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/aparte-header-sidebar-footer-shopp-paginas/" rel="bookmark">Aparte header/sidebar/footer voor Shopp pagina&#8217;s</a></h3><p>Shopp gebruikt het [wp]the_content[/wp] gedeelte om de templates (dus de inhoud van de webshop pagina) weer te geven. Aangezien de Shop-pagina een WordPress pagina is ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Fshopp-faq%2Fcolorbox-uitschakelen-shopp%2F&amp;t=Colorbox+uitschakelen+in+Shopp" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Colorbox+uitschakelen+in+Shopp%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D1980%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Fshopp-faq%2Fcolorbox-uitschakelen-shopp%2F&amp;title=Colorbox+uitschakelen+in+Shopp&amp;notes=Met+Shopp+kun+je+ook+andere+Lightbox-varianten+gebruiken+dan+de+standaard+meegeleverde+Colorbox+%28in+het+verleden+was+dat+Thickbox%29%2C+maar+voor+veel+mensen+is+het+niet+duidelijk+hoe+je+dat+dan+precies+doet.%0AHet+is+niet+zo+heel+moeilijk%2C+het+enige+dat+j" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Fshopp-faq%2Fcolorbox-uitschakelen-shopp%2F&amp;title=Colorbox+uitschakelen+in+Shopp&amp;bodytext=Met+Shopp+kun+je+ook+andere+Lightbox-varianten+gebruiken+dan+de+standaard+meegeleverde+Colorbox+%28in+het+verleden+was+dat+Thickbox%29%2C+maar+voor+veel+mensen+is+het+niet+duidelijk+hoe+je+dat+dan+precies+doet.%0AHet+is+niet+zo+heel+moeilijk%2C+het+enige+dat+j" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Fshopp-faq%2Fcolorbox-uitschakelen-shopp%2F&amp;title=Colorbox+uitschakelen+in+Shopp" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/shopp-faq/colorbox-uitschakelen-shopp/" onclick="addBookmark(event);" title="Colorbox uitschakelen in Shopp" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=Colorbox uitschakelen in Shopp&amp;body=Met Shopp kun je ook andere Lightbox-varianten gebruiken dan de standaard meegeleverde Colorbox (in het verleden was dat Thickbox), maar voor veel mensen is het niet duidelijk hoe je dat dan precies doet.
Het is niet zo heel moeilijk, het enige dat j - http://hiranthi.nl/shopp-faq/colorbox-uitschakelen-shopp/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/shopp-faq/colorbox-uitschakelen-shopp/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Voeg datum toe aan post inhoud</title><link>http://hiranthi.nl/tutorials/voeg-datum-toe-aan-post-inhoud/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=voeg-datum-toe-aan-post-inhoud</link> <comments>http://hiranthi.nl/tutorials/voeg-datum-toe-aan-post-inhoud/#comments</comments> <pubDate>Mon, 29 Nov 2010 13:00:39 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[datum]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[post]]></category><guid
isPermaLink="false">http://www.hiranthi.nl/?p=1959</guid> <description><![CDATA[Soms wil je graag de datum van een post toevoegen aan de inhoud van de post in plaats van in een eigen paragraaf erboven. Meestal omdat dit in die gevallen gewoon mooier staat. Een tijdje geleden wilde ik dit ook bij een klant en dit is de code dat ik ervoor gebruikt heb: &#60;?php add_filter( [...]]]></description> <content:encoded><![CDATA[<p>Soms wil je graag de datum van een post toevoegen aan de inhoud van de post in plaats van in een eigen paragraaf erboven. Meestal omdat dit in die gevallen gewoon mooier staat.<span
id="more-1959"></span></p><p>Een tijdje geleden wilde ik dit ook bij een klant en dit is de code dat ik ervoor gebruikt heb:</p><pre><pre lang="php">&lt;?php
add_filter( &quot;the_content&quot;, &quot;add_date_content&quot; );
function add_date_content ( $content )
{
  if (is_single())
  {
    $content = &#039;

&lt;span class=&quot;date&quot;&gt;&#039;.get_the_date(get_option(&#039;date_format&#039;)).&#039;&lt;/span&gt;&#039; . substr($content, 3);
  }
  return $content;
}
?&gt;</pre></pre><p>De <code>substr</code> functie haalt de eerste drie chars weg, wat over het algemeen de <code>p</code> tag is. Vandaar dus ook de <code>p</code> tag voor de <code>span</code> voor de datum.</p><p>De <code>[wp]get_option[/wp](&#039;date_format&#039;)</code> functie zorgt ervoor dat de datum die wordt weergegeven het format gebruikt dat in de WordPress instellingen is opgegeven.</p><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/custom-fields/" rel="bookmark"><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2010/08/custom-fields-618x200.jpg" alt="Custom fields" title="Custom fields" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/custom-fields/" rel="bookmark">Custom fields</a></h3><p>Veel plugins en themes maken gebruik van custom fields voor extra functionaliteiten. Maar om die te kunnen gebruiken moet je wel weten hoe je custom ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/wordpress-plugin-vertaalbaar/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Je WordPress plugin vertaalbaar maken" title="Je WordPress plugin vertaalbaar maken" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/wordpress-plugin-vertaalbaar/" rel="bookmark">Je WordPress plugin vertaalbaar maken</a></h3><p>Als je een WordPress plugin maakt - voor jezelf, een klant of om in de WordPress Repository op te nemen - dan is het wel ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/producten-op-je-catalog-php/" rel="bookmark"><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2009/11/producten-catalog-412x200.jpg" alt="Producten op je catalog.php" title="Producten op je catalog.php" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/producten-op-je-catalog-php/" rel="bookmark">Producten op je catalog.php</a></h3><p>Een vraag die ik steeds meer tegenkom op de Shopp forums is de volgende: "Hoe geef ik al mijn producten weer op de Shopp indexpagina?". ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fvoeg-datum-toe-aan-post-inhoud%2F&amp;t=Voeg+datum+toe+aan+post+inhoud" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Voeg+datum+toe+aan+post+inhoud%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D1959%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fvoeg-datum-toe-aan-post-inhoud%2F&amp;title=Voeg+datum+toe+aan+post+inhoud&amp;notes=Soms+wil+je+graag+de+datum+van+een+post+toevoegen+aan+de+inhoud+van+de+post+in+plaats+van+in+een+eigen+paragraaf+erboven.+Meestal+omdat+dit+in+die+gevallen+gewoon+mooier+staat.%0A%0AEen+tijdje+geleden+wilde+ik+dit+ook+bij+een+klant+en+dit+is+de+code+dat+" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fvoeg-datum-toe-aan-post-inhoud%2F&amp;title=Voeg+datum+toe+aan+post+inhoud&amp;bodytext=Soms+wil+je+graag+de+datum+van+een+post+toevoegen+aan+de+inhoud+van+de+post+in+plaats+van+in+een+eigen+paragraaf+erboven.+Meestal+omdat+dit+in+die+gevallen+gewoon+mooier+staat.%0A%0AEen+tijdje+geleden+wilde+ik+dit+ook+bij+een+klant+en+dit+is+de+code+dat+" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fvoeg-datum-toe-aan-post-inhoud%2F&amp;title=Voeg+datum+toe+aan+post+inhoud" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/voeg-datum-toe-aan-post-inhoud/" onclick="addBookmark(event);" title="Voeg datum toe aan post inhoud" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=Voeg datum toe aan post inhoud&amp;body=Soms wil je graag de datum van een post toevoegen aan de inhoud van de post in plaats van in een eigen paragraaf erboven. Meestal omdat dit in die gevallen gewoon mooier staat.Een tijdje geleden wilde ik dit ook bij een klant en dit is de code dat  - http://hiranthi.nl/tutorials/voeg-datum-toe-aan-post-inhoud/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/voeg-datum-toe-aan-post-inhoud/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>TimThumb gebruiken in je theme</title><link>http://hiranthi.nl/tutorials/timthumb-gebruiken-wordpress-theme/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=timthumb-gebruiken-wordpress-theme</link> <comments>http://hiranthi.nl/tutorials/timthumb-gebruiken-wordpress-theme/#comments</comments> <pubDate>Wed, 18 Aug 2010 12:00:42 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[TimThumb]]></category><guid
isPermaLink="false">http://www.hiranthi.nl/?p=1833</guid> <description><![CDATA[Je hebt vast wel eens gehoord van TimThumb: een script waarmee je afbeeldingen makkelijk kunt verkleinen/croppen. Allereerst moet je timthumb.php downloaden en deze voeg je in de map van je theme (makkelijkst is om deze in een map scripts toe te voegen). In die map voeg je ook de map cache toe, in die map [...]]]></description> <content:encoded><![CDATA[<p>Je hebt vast wel eens gehoord van TimThumb: een script waarmee je afbeeldingen makkelijk kunt verkleinen/croppen.<span
id="more-1833"></span></p><p>Allereerst moet je <a
rel="nofollow" target="_blank" href="http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/"><code>timthumb.php</code> downloaden</a> en deze voeg je in de map van je theme (makkelijkst is om deze in een map <em>scripts</em> toe te voegen). In die map voeg je ook de map <em>cache</em> toe, in die map worden de afbeeldingen die <code>timthumb.php</code> maakt opgeslagen.</p><p>Dat ziet er dus uit als volgt:</p><ul><li>/scripts<ul><li>/cache</li><li>timthumb.php</li></ul></li></ul><h2>TimThumb gebruiken</h2><p>Het gebruiken van TimThumb is net zo moeilijk als de &#8216;installatie&#8217; ervan:</p><pre><pre lang="php">&lt;img src=&quot;&lt;?php bloginfo(&#039;template_directory&#039;); ?&gt;/scripts/timthumb.php?src=http://url/images/whatever.jpg&amp;amp;h=150&amp;amp;w=150&amp;amp;zc=1&quot; alt=&quot;&quot; /&gt;
</pre></pre><p>In de plaats van de URL zet je dan bijvoorbeeld de code voor het ophalen van een <a
href="http://hiranthi.nl/tutorials/custom-fields/">custom field</a> neer:</p><pre lang="php">&lt;img src=&quot;&lt;?php bloginfo(&#039;template_directory&#039;); ?&gt;/scripts/timthumb.php?src=&lt;?php get_post_meta($post_id, &#039;thumbnail&#039;, true) ?&gt;&amp;amp;h=150&amp;amp;w=150&amp;amp;zc=1&quot; alt=&quot;&quot; /&gt;</pre><h3>Variabelen</h3><p>Je kunt TimThumb meerdere variabelen meegeven:</p><ul><li><strong>src</strong> &#8211; de URL naar de afbeelding</li><li><strong>h</strong> &#8211; height (hoogte) van de afbeelding &#8211; wordt automatisch berekend al height wel is opgegeven en width niet</li><li><strong>w</strong> &#8211; width (breedte) van de afbeelding &#8211; wordt automatisch berekend al width wel is opgegeven en height niet</li><li><strong>q</strong> &#8211; kwaliteit van de afbeelding (standaard 75, 100 is max)</li><li><strong>zc</strong> &#8211; zoomcrop (0 = nee, 1 = ja)</li></ul><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/wordpress/laadtijden-versnellen-wordpress-website/" rel="bookmark"><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2010/07/hiranthi-media-bibliotheek-618x200.jpg" alt="Laadtijden versnellen van je WordPress website" title="Laadtijden versnellen van je WordPress website" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/wordpress/laadtijden-versnellen-wordpress-website/" rel="bookmark">Laadtijden versnellen van je WordPress website</a></h3><p>Google gebruikt nu ook de laadtijd van je website om te calculeren op welke plaats je in de zoekresultaten terecht komt. Om ervoor te zorgen ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/wordpress/magazeen-theme/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Magazeen theme" title="Magazeen theme" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/wordpress/magazeen-theme/" rel="bookmark">Magazeen theme</a></h3><p>Ik weet het.. Het was de bedoeling om m'n eigen theme te gebruiken en door te ontwikkelen. Helaas heb ik daar nu gewoon geen tijd ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/wordpress/gemakkelijk-psd-omzetten-wordpress-theme/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Gemakkelijk je PSD omzetten naar WordPress theme" title="Gemakkelijk je PSD omzetten naar WordPress theme" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/wordpress/gemakkelijk-psd-omzetten-wordpress-theme/" rel="bookmark">Gemakkelijk je PSD omzetten naar WordPress theme</a></h3><p>Om gemakkelijk (en snel) een WordPress theme aan te maken hoef je niet persé kennis te hebben van HTML. Hiervoor kun je Artisteer gebruiken.Nou heb ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Ftimthumb-gebruiken-wordpress-theme%2F&amp;t=TimThumb+gebruiken+in+je+theme" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=TimThumb+gebruiken+in+je+theme%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D1833%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Ftimthumb-gebruiken-wordpress-theme%2F&amp;title=TimThumb+gebruiken+in+je+theme&amp;notes=Je+hebt+vast+wel+eens+gehoord+van+TimThumb%3A+een+script+waarmee+je+afbeeldingen+makkelijk+kunt+verkleinen%2Fcroppen.%0AAllereerst+moet+je+timthumb.php+downloaden+en+deze+voeg+je+in+de+map+van+je+theme+%28makkelijkst+is+om+deze+in+een+map+scripts+toe+te+voeg" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Ftimthumb-gebruiken-wordpress-theme%2F&amp;title=TimThumb+gebruiken+in+je+theme&amp;bodytext=Je+hebt+vast+wel+eens+gehoord+van+TimThumb%3A+een+script+waarmee+je+afbeeldingen+makkelijk+kunt+verkleinen%2Fcroppen.%0AAllereerst+moet+je+timthumb.php+downloaden+en+deze+voeg+je+in+de+map+van+je+theme+%28makkelijkst+is+om+deze+in+een+map+scripts+toe+te+voeg" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Ftimthumb-gebruiken-wordpress-theme%2F&amp;title=TimThumb+gebruiken+in+je+theme" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/timthumb-gebruiken-wordpress-theme/" onclick="addBookmark(event);" title="TimThumb gebruiken in je theme" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=TimThumb gebruiken in je theme&amp;body=Je hebt vast wel eens gehoord van TimThumb: een script waarmee je afbeeldingen makkelijk kunt verkleinen/croppen.
Allereerst moet je timthumb.php downloaden en deze voeg je in de map van je theme (makkelijkst is om deze in een map scripts toe te voeg - http://hiranthi.nl/tutorials/timthumb-gebruiken-wordpress-theme/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/timthumb-gebruiken-wordpress-theme/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>De WYSIWYG editor bij je theme laten passen</title><link>http://hiranthi.nl/tutorials/wysiwyg-editor-theme/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wysiwyg-editor-theme</link> <comments>http://hiranthi.nl/tutorials/wysiwyg-editor-theme/#comments</comments> <pubDate>Fri, 19 Feb 2010 14:45:15 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[WYSIWYG]]></category><guid
isPermaLink="false">http://www.hiranthi.nl/?p=1474</guid> <description><![CDATA[De WYSIWYG-editor (TinyMCE) van WordPress wil klanten nog weleens in de war brengen. Het gebruikte lettertype (en tekstkleur) kunnen namelijk sterk afwijken van hetgeen op de voorkant van de website wordt gebruikt. Aangeven bij de klant dat dit &#8216;automatisch wordt omgezet&#8217; helpt vaak niet, omdat zij nu eenmaal geen kennis hebben van CSS en dus [...]]]></description> <content:encoded><![CDATA[<p>De WYSIWYG-editor (TinyMCE) van WordPress wil klanten nog weleens in de war brengen. Het gebruikte lettertype (en tekstkleur) kunnen namelijk sterk afwijken van hetgeen op de voorkant van de website wordt gebruikt.<span
id="more-1474"></span> Aangeven bij de klant dat dit &#8216;automatisch wordt omgezet&#8217; helpt vaak niet, omdat zij nu eenmaal geen kennis hebben van CSS en dus ook niet begrijpen hoe dat werkt.</p><p>Gelukkig kun je heel makkelijk een stylesheet koppelen aan de WYSIWYG-editor en dat ga ik in een voorbeeld laten zien.</p><h2>Editor stylesheet</h2><p>Allereerst maken we een nieuwe stylesheet aan. Het laten inladen van de standaard theme-css heeft namelijk geen zin, hier zitten namelijk veel stijlen in die de klant nooit zal gebruiken.</p><pre><pre lang="css">html .mceContentBody { font-family:Arial, Helvetica, sans-serif; font-weight:normal; color:#000; font-size:1em; }

a { color:#000; font-weight:bold; }
a:hover { color:#ea1e25; }

h1, h2 { color:#365eab; font-size:200%; line-height:normal; margin-bottom:10px; }
h2 { font-size:160%; }
h3 { font-size:140%; }
h4 { font-size:120%; }

p { margin:0 0 20px; font-weight:normal; color:#000; font-size:1em; }
</pre></pre><p>Bovenstaande CSS slaan we op in een nieuw CSS bestand, <code>style-editor.css</code> genaamd. En dit is uiteraard alleen maar een voorbeeld van standaard stijling die je er in kunt zetten.</p><h2>Stylesheet koppelen aan de WYSIWYG-editor</h2><p>Om de stylesheet ook daadwerkelijk te koppelen aan de WYSIWYG-editor voegen we de volgende code toe aan de functions.php van onze theme:</p><pre><pre lang="php">
&lt;?php

add_filter(&#039;mce_css&#039;, &#039;my_editor_style&#039;);
function my_editor_style($url)
{
  if ( !empty($url) )
    $url .= &#039;,&#039;;

  // Change the path here if using sub-directory
  $url .= trailingslashit( get_stylesheet_directory_uri() ) . &#039;style-editor.css&#039;;

  return $url;
}

?&gt;
</pre></pre><p><em>Bovenstaande code heb ik gevonden, toen ik het zocht voor een klant, op <a
rel="nofollow" target="_blank" href="http://azaozz.wordpress.com/2010/01/02/can-themes-style-the-visual-editor/">Andrew Ozz z&#8217;n website</a>. Hij linkt er ook naar een voorbeeld-pakket die je kunt gebruiken voor in je theme.</em></p><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/meerdere-stylesheets-in-een/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Meerdere stylesheets in één" title="Meerdere stylesheets in één" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/meerdere-stylesheets-in-een/" rel="bookmark">Meerdere stylesheets in één</a></h3><p>Ben je, net als ik, gewend aan het gebruiken van meerdere stylesheets en heb je geen zin om ze telkens handmatig onder elkaar te plakken ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/wordpress/gemakkelijk-psd-omzetten-wordpress-theme/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Gemakkelijk je PSD omzetten naar WordPress theme" title="Gemakkelijk je PSD omzetten naar WordPress theme" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/wordpress/gemakkelijk-psd-omzetten-wordpress-theme/" rel="bookmark">Gemakkelijk je PSD omzetten naar WordPress theme</a></h3><p>Om gemakkelijk (en snel) een WordPress theme aan te maken hoef je niet persé kennis te hebben van HTML. Hiervoor kun je Artisteer gebruiken.Nou heb ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/achtergrondafbeelding-100-groot/" rel="bookmark"><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2009/11/152865_3868-100x100-custom.jpg" alt="Achtergrondafbeelding 100% groot" title="Achtergrondafbeelding 100% groot" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/achtergrondafbeelding-100-groot/" rel="bookmark">Achtergrondafbeelding 100% groot</a></h3><p>Het kan zijn dat je een keer een website moet maken waarvan jij, of je opdrachtgever, de achtergrond graag 100% breed en 100% hoog wil ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fwysiwyg-editor-theme%2F&amp;t=De+WYSIWYG+editor+bij+je+theme+laten+passen" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=De+WYSIWYG+editor+bij+je+theme+laten+passen%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D1474%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fwysiwyg-editor-theme%2F&amp;title=De+WYSIWYG+editor+bij+je+theme+laten+passen&amp;notes=De+WYSIWYG-editor+%28TinyMCE%29+van+WordPress+wil+klanten+nog+weleens+in+de+war+brengen.+Het+gebruikte+lettertype+%28en+tekstkleur%29+kunnen+namelijk+sterk+afwijken+van+hetgeen+op+de+voorkant+van+de+website+wordt+gebruikt.+Aangeven+bij+de+klant+dat+dit+%27auto" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fwysiwyg-editor-theme%2F&amp;title=De+WYSIWYG+editor+bij+je+theme+laten+passen&amp;bodytext=De+WYSIWYG-editor+%28TinyMCE%29+van+WordPress+wil+klanten+nog+weleens+in+de+war+brengen.+Het+gebruikte+lettertype+%28en+tekstkleur%29+kunnen+namelijk+sterk+afwijken+van+hetgeen+op+de+voorkant+van+de+website+wordt+gebruikt.+Aangeven+bij+de+klant+dat+dit+%27auto" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fwysiwyg-editor-theme%2F&amp;title=De+WYSIWYG+editor+bij+je+theme+laten+passen" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/wysiwyg-editor-theme/" onclick="addBookmark(event);" title="De WYSIWYG editor bij je theme laten passen" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=De WYSIWYG editor bij je theme laten passen&amp;body=De WYSIWYG-editor (TinyMCE) van WordPress wil klanten nog weleens in de war brengen. Het gebruikte lettertype (en tekstkleur) kunnen namelijk sterk afwijken van hetgeen op de voorkant van de website wordt gebruikt. Aangeven bij de klant dat dit 'auto - http://hiranthi.nl/tutorials/wysiwyg-editor-theme/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/wysiwyg-editor-theme/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Domeinhouder voor verschillende domeinnamen</title><link>http://hiranthi.nl/tutorials/domeinhouder-verschillende-domeinnamen/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=domeinhouder-verschillende-domeinnamen</link> <comments>http://hiranthi.nl/tutorials/domeinhouder-verschillende-domeinnamen/#comments</comments> <pubDate>Mon, 15 Feb 2010 13:00:25 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[domeinnaam]]></category> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://www.hiranthi.nl/?p=1402</guid> <description><![CDATA[Als je &#8211; net als ik &#8211; veel verschillende domeinnamen hebt geregistreerd waar je (nog) niks mee doet, dan hebben die over het algemeen een domeinhouder van het bedrijf waar je de domeinnaam hebt geregistreerd. Het kan, in veel gevallen, veel interessanter zijn als je een eigen domeinhouder hebt voor die domeinnamen, zodat eventuele geïnteresseerden [...]]]></description> <content:encoded><![CDATA[<p>Als je &#8211; net als ik &#8211; veel verschillende domeinnamen hebt geregistreerd waar je (nog) niks mee doet, dan hebben die over het algemeen een domeinhouder van het bedrijf waar je de domeinnaam hebt geregistreerd.<span
id="more-1402"></span> Het kan, in veel gevallen, veel interessanter zijn als je een eigen domeinhouder hebt voor die domeinnamen, zodat eventuele geïnteresseerden (in die domeinnaam) weten waar ze moeten zijn. Óf gewoon om te proberen wat extra inkomsten te genereren met behulp van advertenties die je op die domeinnamen zet.<br
/> In deze post ga ik uitleggen hoe je zelf zo&#8217;n domeinhouder kunt maken en eventueel domeinnaam-specifieke inhoud kunt laten zien.</p><h2>De domeinhouder</h2><p>Als eerste moeten we bedenken hoe we de pagina eruit willen laten zien, ofwel: het ontwerp van de paginahouder-pagina <img
src='http://hiranthi.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Hier onder het ontwerp van de domeinhouder van illutic WebDesign.</p><p><a
rel="nofollow" target="_blank" href="http://famire.nl/wp-content/blogs.dir/6/files/2010/02/layout-domeinhouder.jpg" class="lightbox" ><img
class="aligncenter size-large wp-image-1405" src="http://famire.nl/wp-content/blogs.dir/6/files/2010/02/layout-domeinhouder-600x200.jpg" alt="" width="600" height="200" /></a></p><p>In deze tutorial zal ik de gegevens van mijn eigen domeinhouder (zoals CSS, HTML) gebruiken en dus uitkomen op bovenstaand ontwerp in HTML.</p><h2>De code</h2><p>Nadat het ontwerp is gemaakt moet deze worden omgezet naar (x)HTML/CSS.</p><h3>HTML</h3><pre><pre lang="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;Domeinhouder&lt;/title&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;reset.css&quot; media=&quot;screen&quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;style.css&quot; media=&quot;screen&quot; /&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div id=&quot;container&quot;&gt;
&lt;div id=&quot;logo&quot;&gt;&lt;a href=&quot;http://www.illutic-webdesign.nl&quot;&gt;&lt;strong&gt;illutic WebDesign&lt;/strong&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div id=&quot;content&quot;&gt;

De domeinnaam &lt;strong&gt;domeinnaam.nl&lt;/strong&gt; is geregistreerd door&lt;a href=&quot;http://www.illutic-webdesign.nl&quot;&gt;illutic WebDesign&lt;/a&gt;.

&lt;small&gt;&lt;strong&gt;Interesse in deze domeinnaam?&lt;/strong&gt;Neem dan contact op via &lt;a href=&quot;mailto:domein@adres.nl&quot;&gt;domein@adres.nl&lt;/a&gt;&lt;/small&gt;
&lt;div id=&quot;banner&quot;&gt;
                &lt;!-- banner code --&gt;
        &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;</pre></pre><h3>CSS</h3><p>Onderstaande CSS is de inhoud van <code>style.css</code>:</p><pre><pre lang="css">
@charset &quot;utf-8&quot;;
/* CSS Document */

html body { background:#efefef url(&#039;body_bg.jpg&#039;) 0 0 repeat-x; font-size:1em; line-height:1.2em; font-family: Arial, Helvetica, sans-serif; font-weight:normal; color:#000; }

a { color:#000; }
a:hover { color:#09c; }

p { margin:0 0 30px; }

small { font-size:.8em; }

#container { width:500px; display:block; margin:150px auto 20px; }
/* logo */
#logo { width:100%; display:block; }
#logo a { width:204px; height:52px; display:block; margin:0 auto; background:url(&#039;logo.gif&#039;) 0 0 no-repeat; }
#logo a strong { text-indent:-9999px; font-size:0; }

/* content */
#content { width:460px; padding:30px 20px; margin:30px 0 0; display:block; background-color:#fff; -moz-border-radius:5px; -khtml-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; text-align:center; }

/* banner */
#banner { width:100%; display:block; padding:10px 0 0; }
</pre></pre><h3>PHP toevoegingen</h3><p>Om de pagina wat dynamischer te maken voegen we wat PHP codes toe. Als eerste voegen we de volgende code boven alle HTML toe (dus boven de <code>doctype</code>):</p><pre><pre lang="php">&lt;?php
  if ( substr ( $_SERVER[&#039;HTTP_HOST&#039;], 0, 3 ) === &#039;www&#039; ) { $domeinnaam = substr( $_SERVER[&#039;HTTP_HOST&#039;], 4 ); }
  else { $domeinnaam = $_SERVER[&#039;HTTP_HOST&#039;]; }
?&gt;</pre></pre><p>Bovenstaande code zorgt ervoor dat <code>$domeinnaam</code> met de domeinnaam wordt gevuld. Als de domeinnaam inclusief www wordt opgevraagd, dan wordt dit stukje eraf geknipt (om zo voor elke domeinnaam hetzelfde formaat domeinnaam weer te geven).</p><p>De volgende code voeg je dan toe op de plek waar je de domeinnaam weergegeven wilt hebben, zoals in mijn geval op de plek van &#8216;domeinnaam.nl&#8217;:</p><pre lang="php">&lt;?php echo $domeinnaam; ?&gt;</pre><h4>Extra mogelijkheid</h4><p>Als je voor bepaalde domeinnamen een extra bericht wilt weergeven kun je dit op de volgende manier doen:</p><pre><pre lang="php">
&lt;?php if ( strstr( $_SERVER[&#039;HTTP_HOST&#039;], &#039;string&#039; ) ) { ?&gt;
&lt;!-- tekst alleen voor deze domeinnaam --&gt;
&lt;?php } ?&gt;
</pre></pre><p>Het woord <em>string</em> verander je naar een woord dat in de domeinnamen voorkomt (bijvoorbeeld &#8216;design&#8217;). De tekst in die <code>if</code> wordt dan alleen weergegeven bij domeinnamen die het woord &#8216;design&#8217; bevatten.</p><p>Je kunt het eventueel ook zo doen:</p><pre><pre lang="php">&lt;?php
switch ( $domeinnaam )
{
  case &#039;domeinnaam.nl&#039;:
  ?&gt;
  &lt;!-- dit wordt alleen weergegeven voor domeinnaam.nl --&gt;
  &lt;?php
  break;

  case &#039;domein2.nl&#039;:
  ?&gt;
  &lt;!-- dit wordt alleen weergegeven voor domein2.nl --&gt;
  &lt;?php
  break;

  default:
  ?&gt;
  &lt;!-- dit wordt standaard weergegeven voor alle domeinnamen, behalve bij de cases hierboven --&gt;
  &lt;?php
  break;
}
?&gt;</pre></pre><h2>Live demo</h2><p>Een live demo van mijn domeinhouder van illutic WebDesign kun je bekijken via <a
rel="nofollow" target="_blank" href="http://www.paginanietgevonden.nl">www.paginanietgevonden.nl</a> <img
src='http://hiranthi.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/ondernemen/domeinnaam-registraties/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Domeinnaam registraties" title="Domeinnaam registraties" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/ondernemen/domeinnaam-registraties/" rel="bookmark">Domeinnaam registraties</a></h3><p>Momenteel heb ik al mijn domeinnamen bij TransIP geregistreerd. Dit om mijn domeinnamen en hosting gescheiden te houden. Dat was in eerste instantie om makkelijk ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/wordpress/gebruik-van-handelsmerk-wordpress-in-domeinnamen/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Gebruik van handelsmerk WordPress in domeinnamen" title="Gebruik van handelsmerk WordPress in domeinnamen" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/wordpress/gebruik-van-handelsmerk-wordpress-in-domeinnamen/" rel="bookmark">Gebruik van handelsmerk WordPress in domeinnamen</a></h3><p>Wat velen waarschijnlijk niet weten is dat WordPress een handelsmerk (trademark) is. Dit handelsmerk gebruik in je eigen domeinnaam mag dan ook niet zomaar. En ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/meerdere-installaties-wordpress-mu/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Meerdere installaties in één: WordPress MU" title="Meerdere installaties in één: WordPress MU" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/meerdere-installaties-wordpress-mu/" rel="bookmark">Meerdere installaties in één: WordPress MU</a></h3><p>Met WordPress MU (Multi User) - en straks WordPress 3.0 - kun je meerdere installaties van WordPress draaien op één installatie. Erg handig voor als ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fdomeinhouder-verschillende-domeinnamen%2F&amp;t=Domeinhouder+voor+verschillende+domeinnamen" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Domeinhouder+voor+verschillende+domeinnamen%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D1402%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fdomeinhouder-verschillende-domeinnamen%2F&amp;title=Domeinhouder+voor+verschillende+domeinnamen&amp;notes=Als+je+-+net+als+ik+-+veel+verschillende+domeinnamen+hebt+geregistreerd+waar+je+%28nog%29+niks+mee+doet%2C+dan+hebben+die+over+het+algemeen+een+domeinhouder+van+het+bedrijf+waar+je+de+domeinnaam+hebt+geregistreerd.+Het+kan%2C+in+veel+gevallen%2C+veel+interessa" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fdomeinhouder-verschillende-domeinnamen%2F&amp;title=Domeinhouder+voor+verschillende+domeinnamen&amp;bodytext=Als+je+-+net+als+ik+-+veel+verschillende+domeinnamen+hebt+geregistreerd+waar+je+%28nog%29+niks+mee+doet%2C+dan+hebben+die+over+het+algemeen+een+domeinhouder+van+het+bedrijf+waar+je+de+domeinnaam+hebt+geregistreerd.+Het+kan%2C+in+veel+gevallen%2C+veel+interessa" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fdomeinhouder-verschillende-domeinnamen%2F&amp;title=Domeinhouder+voor+verschillende+domeinnamen" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/domeinhouder-verschillende-domeinnamen/" onclick="addBookmark(event);" title="Domeinhouder voor verschillende domeinnamen" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=Domeinhouder voor verschillende domeinnamen&amp;body=Als je - net als ik - veel verschillende domeinnamen hebt geregistreerd waar je (nog) niks mee doet, dan hebben die over het algemeen een domeinhouder van het bedrijf waar je de domeinnaam hebt geregistreerd. Het kan, in veel gevallen, veel interessa - http://hiranthi.nl/tutorials/domeinhouder-verschillende-domeinnamen/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/domeinhouder-verschillende-domeinnamen/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Shopp en PHP4</title><link>http://hiranthi.nl/wordpress/shopp-php4/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=shopp-php4</link> <comments>http://hiranthi.nl/wordpress/shopp-php4/#comments</comments> <pubDate>Thu, 04 Feb 2010 13:00:54 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[E-commerce]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[PHP4]]></category> <category><![CDATA[Shopp]]></category> <category><![CDATA[webshop]]></category><guid
isPermaLink="false">http://www.hiranthi.nl/cms/?p=1262</guid> <description><![CDATA[Als je Shopp hebt geprobeerd te installeren op je WordPress installatie met PHP4 heb je waarschijnlijk deze foutmelding te zien gekregen: Parse error: syntax error, unexpected &#039;&#38;amp;&#039;, expecting T_VARIABLE or &#039;$&#039; in /.../wp-content/plugins/shopp/Shopp.php on line 488&#60;span id=&#34;more-1262&#34;&#62;&#60;/span&#62; Dit komt doordat Shopp alleen met PHP5 werkt en dat staat ook op de website vermeld (maar zoals [...]]]></description> <content:encoded><![CDATA[<p>Als je Shopp hebt geprobeerd te installeren op je WordPress installatie met PHP4 heb je waarschijnlijk deze foutmelding te zien gekregen:</p><p><code>Parse error: syntax error, unexpected &#039;&amp;amp;&#039;, expecting T_VARIABLE or &#039;$&#039; in /.../wp-content/plugins/shopp/Shopp.php on line 488&lt;span id=&quot;more-1262&quot;&gt;&lt;/span&gt;</code></p><p>Dit komt doordat Shopp alleen met PHP5 werkt en dat staat ook op de website vermeld (maar zoals het de mens betaamt: we lezen niet graag, dus dit weten we niet). Als je provider niet wil upgraden naar PHP5 heb je een probleem: Shopp draait dan namelijk gewoon niet.</p><p>Er zijn ook providers, zoals Vuurwerk (Tele2) hosting, die je de mogelijkheid geven PHP5 te draaien met een kleine toevoeging aan je <code>.htaccess</code> bestand. De code die je dan in je .htaccess moet neerzetten is het volgende: <code>AddHandler application/x-httpd-php5 .php</code></p><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/wordpress/shopp-ideal-werkt-niet-meer/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Shopp: iDEAL werkt ineens niet meer" title="Shopp: iDEAL werkt ineens niet meer" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/wordpress/shopp-ideal-werkt-niet-meer/" rel="bookmark">Shopp: iDEAL werkt ineens niet meer</a></h3><p>Als de titel je bekend voorkomt gebruik je waarschijnlijk versie 1.0.6 van de Shopp plugin. Weet je niet zeker of dat de versie is die ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/wordpress/shopp-ideal-werkt-ineens-niet-meer-2/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Shopp: iDEAL werkt ineens niet meer &#8211; 2" title="Shopp: iDEAL werkt ineens niet meer &#8211; 2" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/wordpress/shopp-ideal-werkt-ineens-niet-meer-2/" rel="bookmark">Shopp: iDEAL werkt ineens niet meer &#8211; 2</a></h3><p>Heb je je Shopp geüpdatet naar v1.0.8 en werkt deze ineens niet meer? Dan is de kans groot dat als je in je errorlog kijkt ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/wordpress/fatale-error-met-shopp-cache-helper/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Fatale error met Shopp Cache Helper" title="Fatale error met Shopp Cache Helper" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/wordpress/fatale-error-met-shopp-cache-helper/" rel="bookmark">Fatale error met Shopp Cache Helper</a></h3><p>Een tijdje terug activeerde ik de Shopp Cache Helper plugin om Shopp met W3TC te kunnen gebruiken. Helaas lukte dat niet, vanwege een fatale error ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fshopp-php4%2F&amp;t=Shopp+en+PHP4" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Shopp+en+PHP4%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D1262%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fshopp-php4%2F&amp;title=Shopp+en+PHP4&amp;notes=Als+je+Shopp+hebt+geprobeerd+te+installeren+op+je+WordPress+installatie+met+PHP4+heb+je+waarschijnlijk+deze+foutmelding+te+zien+gekregen%3A%0A%0AParse+error%3A+syntax+error%2C+unexpected+%27%26amp%3B%27%2C+expecting+T_VARIABLE+or+%27%24%27+in+%2F...%2Fwp-content%2Fplugins%2Fshopp%2FSho" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fshopp-php4%2F&amp;title=Shopp+en+PHP4&amp;bodytext=Als+je+Shopp+hebt+geprobeerd+te+installeren+op+je+WordPress+installatie+met+PHP4+heb+je+waarschijnlijk+deze+foutmelding+te+zien+gekregen%3A%0A%0AParse+error%3A+syntax+error%2C+unexpected+%27%26amp%3B%27%2C+expecting+T_VARIABLE+or+%27%24%27+in+%2F...%2Fwp-content%2Fplugins%2Fshopp%2FSho" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Fwordpress%2Fshopp-php4%2F&amp;title=Shopp+en+PHP4" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/wordpress/shopp-php4/" onclick="addBookmark(event);" title="Shopp en PHP4" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=Shopp en PHP4&amp;body=Als je Shopp hebt geprobeerd te installeren op je WordPress installatie met PHP4 heb je waarschijnlijk deze foutmelding te zien gekregen:Parse error: syntax error, unexpected '&amp;', expecting T_VARIABLE or '$' in /.../wp-content/plugins/shopp/Sho - http://hiranthi.nl/wordpress/shopp-php4/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/wordpress/shopp-php4/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Eigen widget maken</title><link>http://hiranthi.nl/tutorials/eigen-widget-maken/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=eigen-widget-maken</link> <comments>http://hiranthi.nl/tutorials/eigen-widget-maken/#comments</comments> <pubDate>Wed, 03 Feb 2010 13:00:22 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[widget]]></category> <category><![CDATA[WordPress plugin]]></category><guid
isPermaLink="false">http://www.hiranthi.nl/cms/?p=1232</guid> <description><![CDATA[Vanaf WordPress versie 2.8 is er een nieuwe Widgets API die het maken van je eigen widget sterk vereenvoudigt. In deze tutorial ga ik laten zien hoe je gemakkelijk je eigen widget maakt met behulp van deze API. Widget idee Voor je een widget gaat maken moet je natuurlijk bedenken waar je een widget voor [...]]]></description> <content:encoded><![CDATA[<p>Vanaf WordPress versie 2.8 is er een nieuwe <a
rel="nofollow" target="_blank" title="WordPress Codex: Widgets API" href="http://codex.wordpress.org/Widgets_API#Developing_Widgets_on_2.8.2B">Widgets API</a> die het maken van je eigen widget sterk vereenvoudigt. In deze tutorial ga ik laten zien hoe je gemakkelijk je eigen widget maakt met behulp van deze API.<span
id="more-1232"></span></p><h2>Widget idee</h2><p>Voor je een widget gaat maken moet je natuurlijk bedenken waar je een widget voor gaat maken. In deze tutorial gaan we een eigen zoekformulier maken die gebruikt kan worden in plaats van de standaard widget daarvoor.</p><h2>De code</h2><p>We beginnen met de standaard plugin code bovenin het bestand, dit omdat de widget als plugin wordt geinstalleerd en geactiveerd. Je kunt het eventueel ook in je theme-map gooien en het bestand includen in je <code>functions.php</code> maar dat doen we nu dus niet.</p><pre><pre lang="php">&lt;?php
/*
Plugin Name: Zoekformulier
Plugin URI: http://www.hiranthi.nl/cms/wordpress/eigen-widget-maken/1232.html
Description: Custom zoekformulier widget
Author: Hiranthi Molhoek-Herlaar (illutic WebDesign)
Version: 1.0
Author URI: http://www.illutic.nl
*/
?&gt;</pre></pre><p>Daarna maken we de class aan voor onze widget:</p><pre><pre lang="php">&lt;?php

class Custom_Search_Widget extends WP_Widget
{
  function Custom_Search_Widget()
  {
    // widget actual processes
  }

  function form($instance)
  {
    // outputs the options form on admin
  }

  function update($new_instance, $old_instance)
  {
    // processes widget options to be saved
  }

  function widget($args, $instance)
  {
    // outputs the content of the widget
  }
}

add_action(&#039;widgets_init&#039;, create_function(&#039;&#039;, &#039;return register_widget(&quot;Custom_Search_Widget&quot;);&#039;));

?&gt;</pre></pre><p>Hier onder gaan we per functie de code af.</p><h3>Custom_Search_Widget()</h3><p>In deze functie geef je de basis informatie van de widget op: titel en omschrijving.</p><pre><pre lang="php">&lt;?php
  function Custom_Search_Widget()
  {
    $widget_ops = array(&#039;description&#039; =&gt; &#039;Mijn eigen zoekformulier&#039;);
    $this-&gt;WP_Widget(&#039;custom_search_widget&#039;, &#039;Zoekformulier&#039;, $widget_ops);
  }
?&gt;</pre></pre><p>Dit ziet er zo uit in je Widget overzicht:</p><p><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2010/02/custom-search-widget-ops.jpg" alt="" width="262" height="68" class="aligncenter size-full wp-image-1246" /></p><h3>form()</h3><p>Deze functie is voor het formulier waarmee je de instellingen van je widget kunt aanpassen.</p><pre><pre lang="php">&lt;?php

  function form($instance)
  {
    $title = esc_attr($instance[&#039;title&#039;]);
    $label = esc_attr($instance[&#039;label&#039;]);
    $input = esc_attr($instance[&#039;input&#039;]);
    $submit = esc_attr($instance[&#039;submit&#039;]);

    ?&gt;

&lt;label for=&quot;&lt;?php echo $this-&gt;get_field_id(&#039;title&#039;); ?&gt;&quot;&gt;Titel van het zoekformulier:
&lt;input class=&quot;widefat&quot; id=&quot;&lt;?php echo $this-&gt;get_field_id(&#039;title&#039;); ?&gt;&quot; name=&quot;&lt;?php echo $this-&gt;get_field_name(&#039;title&#039;); ?&gt;&quot; type=&quot;text&quot; value=&quot;&lt;?php echo $title; ?&gt;&quot; /&gt;&lt;/label&gt;

&lt;label for=&quot;&lt;?php echo $this-&gt;get_field_id(&#039;label&#039;); ?&gt;&quot;&gt;Label van het zoekformulier:
&lt;input class=&quot;widefat&quot; id=&quot;&lt;?php echo $this-&gt;get_field_id(&#039;label&#039;); ?&gt;&quot; name=&quot;&lt;?php echo $this-&gt;get_field_name(&#039;label&#039;); ?&gt;&quot; type=&quot;text&quot; value=&quot;&lt;?php echo $label; ?&gt;&quot; /&gt;&lt;/label&gt;

&lt;label for=&quot;&lt;?php echo $this-&gt;get_field_id(&#039;input&#039;); ?&gt;&quot;&gt;Standaard inhoud zoekveld:
&lt;input class=&quot;widefat&quot; id=&quot;&lt;?php echo $this-&gt;get_field_id(&#039;input&#039;); ?&gt;&quot; name=&quot;&lt;?php echo $this-&gt;get_field_name(&#039;input&#039;); ?&gt;&quot; type=&quot;text&quot; value=&quot;&lt;?php echo $input; ?&gt;&quot; /&gt;&lt;/label&gt;

&lt;label for=&quot;&lt;?php echo $this-&gt;get_field_id(&#039;submit&#039;); ?&gt;&quot;&gt;Verzend button:
&lt;input class=&quot;widefat&quot; id=&quot;&lt;?php echo $this-&gt;get_field_id(&#039;submit&#039;); ?&gt;&quot; name=&quot;&lt;?php echo $this-&gt;get_field_name(&#039;submit&#039;); ?&gt;&quot; type=&quot;text&quot; value=&quot;&lt;?php echo $submit; ?&gt;&quot; /&gt;&lt;/label&gt;

&lt;?php
  }

?&gt;</pre></pre><p>Een visuele weergave van bovenstaande code:</p><p><a
rel="nofollow" target="_blank" href="http://famire.nl/wp-content/blogs.dir/6/files/2010/02/custom-search-widget1.jpg" class="lightbox" ><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2010/02/custom-search-widget1-267x200.jpg" alt="" width="267" height="200" class="aligncenter size-large wp-image-1248" /></a></p><h3>update()</h3><p>Waar de <code>update()</code> functie voor is zal geen verrassing zijn: het updaten van de Widget instellingen.</p><pre><pre lang="php">&lt;?php

  function update($new_instance, $old_instance)
  {
    $instance = $old_instance;
    $instance[&#039;title&#039;] = strip_tags($new_instance[&#039;title&#039;]);
    $instance[&#039;label&#039;] = strip_tags($new_instance[&#039;label&#039;]);
    $instance[&#039;input&#039;] = strip_tags($new_instance[&#039;input&#039;]);
    $instance[&#039;submit&#039;] = strip_tags($new_instance[&#039;submit&#039;]);
    return $instance;
  }

?&gt;</pre></pre><h3>widget()</h3><p>De <code>widget()</code> functie zorgt voor de output van de widget in je sidebar.</p><pre><pre lang="php">&lt;?php

  function widget($args, $instance)
  {
    extract($args);

    $title  = ( $instance[&#039;title&#039;] != &#039;&#039; ) ? $before_title . apply_filters(&#039;widget_title&#039;, esc_attr($instance[&#039;title&#039;])) . $after_title : &#039;&#039;; // laat de title, en $before_title/$after_title, alleen zien als de widget title is ingevuld
    $label  = ( $instance[&#039;label&#039;] != &#039;&#039; ) ? esc_attr($instance[&#039;label&#039;]) : &#039;Zoeken:&#039;; // is $label leeg? Dan krijgt het standaard de waarde &#039;Zoeken:&#039;
    $input  = esc_attr($instance[&#039;input&#039;]);
    $submit  = ( $instance[&#039;submit&#039;] != &#039;&#039; ) ? esc_attr($instance[&#039;submit&#039;]) : &#039;Zoeken&#039;; // is $submit leeg? Dan krijgt het standaard de waarde &#039;Zoeken&#039;

    // output title &amp;#038; $before_widget
        echo $title . $before_widget;

    // output widget inhoud
    ?&gt;
&lt;form method=&quot;get&quot; action=&quot;&lt;?php bloginfo(&#039;siteurl&#039;); ?&gt;&quot; class=&quot;searchform&quot;&gt;

&lt;label for=&quot;s&quot;&gt;&lt;span&gt;&lt;?php echo $label; ?&gt;&lt;/span&gt;
&lt;input type=&quot;text&quot; name=&quot;s&quot; value=&quot;&lt;?php echo $input; ?&gt;&quot;&lt;?php if ( $input != &#039;&#039; ) { ?&gt; onblur=&quot;if(this.value==&#039;&#039;) this.value=&#039;&lt;?php echo $input; ?&gt;&#039;; return false;&quot; onfocus=&quot;if(this.value!=&#039;&#039;) this.value=&#039;&#039;; return false;&quot;&lt;?php } ?&gt; /&gt;&lt;/label&gt;
&lt;input type=&quot;submit&quot; value=&quot;&amp;raquo;&quot; title=&quot;&lt;?php echo $submit; ?&gt;&quot; class=&quot;submit&quot; /&gt;
&lt;/form&gt;

        &lt;?php

    // output $after_widget
    echo $after_widget;
  }

?&gt;</pre></pre><p>Zoals je misschien al is opgevallen in de bovenstaande code heb ik er een kleine &#8216;handigheid&#8217; bij in gezet: als de instelling &#8216;input&#8217; is opgegeven zal het veld automatisch leeggehaald worden als het veld is geselecteerd. Gaat de bezoeker met de muis ergens anders naartoe zonder de inhoud te veranderen, dan komt de inhoud van de instelling &#8216;input&#8217; weer tevoorschijn.</p> <a
class="downloadlink" href="http://hiranthi.nl/wp-content/plugins/download-monitor/download.php?id=40" title="Version1.0 downloaded 233 times" >Custom Search Widget (233)</a><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/productenwidget-met-thumbnails/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Productenwidget met thumbnails" title="Productenwidget met thumbnails" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/productenwidget-met-thumbnails/" rel="bookmark">Productenwidget met thumbnails</a></h3><p>Bij Shopp zitten een aantal standaard widgets geleverd, inclusief een producten widget. Maar wat deze widget mist is eigenlijk cruciaal voor je webshop: visuele ondersteuning, ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/login-integreren-pagina/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Login integreren in pagina" title="Login integreren in pagina" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/login-integreren-pagina/" rel="bookmark">Login integreren in pagina</a></h3><p>Je kent het vast wel: je hebt een leuke WordPress site waar mensen zich voor kunnen registreren en je wil ze dan ook graag de ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/wordpress/nieuw-project-shopplugin-nl/" rel="bookmark"><img
src="http://hiranthi.nl/files/2009/11/632280_868712661.jpg" alt="Een nieuw project: Shopplugin.nl" title="Een nieuw project: Shopplugin.nl" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/wordpress/nieuw-project-shopplugin-nl/" rel="bookmark">Een nieuw project: Shopplugin.nl</a></h3><p>De afgelopen paar weken ben ik druk bezig geweest met een nieuwe (eigen) project: Shopplugin.nl. In deze webshop kun je terecht voor uitbreidingen voor je ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Feigen-widget-maken%2F&amp;t=Eigen+widget+maken" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Eigen+widget+maken%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D1232%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Feigen-widget-maken%2F&amp;title=Eigen+widget+maken&amp;notes=Vanaf+WordPress+versie+2.8+is+er+een+nieuwe+Widgets+API+die+het+maken+van+je+eigen+widget+sterk+vereenvoudigt.+In+deze+tutorial+ga+ik+laten+zien+hoe+je+gemakkelijk+je+eigen+widget+maakt+met+behulp+van+deze+API.%0AWidget+idee%0AVoor+je+een+widget+gaat+mak" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Feigen-widget-maken%2F&amp;title=Eigen+widget+maken&amp;bodytext=Vanaf+WordPress+versie+2.8+is+er+een+nieuwe+Widgets+API+die+het+maken+van+je+eigen+widget+sterk+vereenvoudigt.+In+deze+tutorial+ga+ik+laten+zien+hoe+je+gemakkelijk+je+eigen+widget+maakt+met+behulp+van+deze+API.%0AWidget+idee%0AVoor+je+een+widget+gaat+mak" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Feigen-widget-maken%2F&amp;title=Eigen+widget+maken" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/eigen-widget-maken/" onclick="addBookmark(event);" title="Eigen widget maken" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=Eigen widget maken&amp;body=Vanaf WordPress versie 2.8 is er een nieuwe Widgets API die het maken van je eigen widget sterk vereenvoudigt. In deze tutorial ga ik laten zien hoe je gemakkelijk je eigen widget maakt met behulp van deze API.
Widget idee
Voor je een widget gaat mak - http://hiranthi.nl/tutorials/eigen-widget-maken/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/eigen-widget-maken/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Meerdere stylesheets in één, een update</title><link>http://hiranthi.nl/tutorials/meerdere-stylesheets-update/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=meerdere-stylesheets-update</link> <comments>http://hiranthi.nl/tutorials/meerdere-stylesheets-update/#comments</comments> <pubDate>Fri, 29 Jan 2010 13:00:41 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[css]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[stylesheet]]></category><guid
isPermaLink="false">http://www.hiranthi.nl/cms/?p=1159</guid> <description><![CDATA[In mijn post laat ik je zien hoe je meerdere stylesheet bestanden in 1 css bestand kunt zetten om laadtijden te verkorten terwijl de bestanden gescheiden blijven voor makkelijker onderhoud/beter overzicht. In deze post ga ik hierin verder met wat extra code om de output nog meer te verkleinen en de laadtijden dus nog verder [...]]]></description> <content:encoded><![CDATA[<p>In mijn <a
href="http://hiranthi.nl/tutorials/meerdere-stylesheets-in-een/">meerdere stylesheets in één</a> post laat ik je zien hoe je meerdere stylesheet bestanden in 1 css bestand kunt zetten om laadtijden te verkorten terwijl de bestanden gescheiden blijven voor makkelijker onderhoud/beter overzicht.<span
id="more-1159"></span> In deze post ga ik hierin verder met wat extra code om de output nog meer te verkleinen en de laadtijden dus nog verder te verkorten.</p><h2>Nieuwe stylesheet.php</h2><p>In plaats van de <code>stylesheet.php</code> in mijn originele post kun je ook deze gebruiken:</p><pre><pre lang="php">&lt;?php
/*
 Stylesheet.php - merge all stylesheets into one sheet
*/

$sheets = array( &#039;style.css&#039;, &#039;css/reset.css&#039;, &#039;css/global.css&#039; );

ob_start (&quot;ob_gzhandler&quot;);
header (&quot;content-type: text/css; charset: UTF-8&quot;);
header (&quot;cache-control: must-revalidate&quot;);
header (&quot;expires: &quot; . gmdate (&quot;D, d M Y H:i:s&quot;, time() + (60 * 60)) . &quot; GMT&quot;);

/* loopt through all sheets */
foreach ( $sheets as $sheet )
{
  if ( file_exists($sheet) )
  {
    $handle = fopen($sheet, &quot;r&quot;);
    if ($handle)
    {
      $contents = fread($handle, filesize($sheet));
      $contents = str_replace(&#039;../img/&#039;, &#039;img/&#039;, $contents); // strip ../ from image URL&#039;s in the sheets
      $contents = str_replace(array(&quot;n&quot;, &quot;r&quot;, &quot;t&quot;), &#039;&#039;, $contents); // strip new lines and tabs
      $contents = str_replace(array(&quot; {&quot;, &quot;{ &quot;, &quot; }&quot;, &quot;} &quot;, &quot;; &quot;, &quot; ;&quot;, &quot;: &quot;, &quot; :&quot;), array(&#039;{&#039;, &#039;{&#039;, &#039;}&#039;, &#039;}&#039;, &#039;;&#039;, &#039;;&#039;, &#039;:&#039;, &#039;:&#039;), $contents); // strip unneccessary spaces
      $contents = preg_replace(&#039;!/*[^*]**+([^/][^*]**+)*/!&#039;, &#039;&#039;, $contents); // strip comments from all stylesheets
      echo $contents.&quot;nn&quot;;

      fclose($handle);
    }
  }
  else
  {
    echo &quot;/* $sheet could not be opened */n&quot;;
  }
}

?&gt;</pre></pre><h3>Toegevoegde regels</h3><p>Caching van je css bestand. Door de charset ook in de headers mee te nemen hoef je dit in je CSS bestand niet meer neer te zetten.</p><pre><pre lang="php">&lt;?php
ob_start (&quot;ob_gzhandler&quot;);
header (&quot;content-type: text/css; charset: UTF-8&quot;);
header (&quot;cache-control: must-revalidate&quot;);
header (&quot;expires: &quot; . gmdate (&quot;D, d M Y H:i:s&quot;, time() + (60 * 60)) . &quot; GMT&quot;);
?&gt;</pre></pre><p>Haal alle nieuwe regels en tabs uit de CSS bestanden:</p><pre lang="php">&lt;?php $contents = str_replace(array(&quot;n&quot;, &quot;r&quot;, &quot;t&quot;), &#039;&#039;, $contents); ?&gt;</pre><p>Haal alle onnodige spaties weg:</p><pre lang="php">&lt;?php $contents = str_replace(array(&quot; {&quot;, &quot;{ &quot;, &quot; }&quot;, &quot;} &quot;, &quot;; &quot;, &quot; ;&quot;, &quot;: &quot;, &quot; :&quot;), array(&#039;{&#039;, &#039;{&#039;, &#039;}&#039;, &#039;}&#039;, &#039;;&#039;, &#039;;&#039;, &#039;:&#039;, &#039;:&#039;), $contents); ?&gt;</pre><p>Haal alle commentaar uit de CSS bestanden:</p><pre lang="php">&lt;?php $contents = preg_replace(&#039;!/*[^*]**+([^/][^*]**+)*/!&#039;, &#039;&#039;, $contents); ?&gt;</pre><p>Gebruik jij <code>style.css</code> ook alleen om de theme-informatie in te stoppen? Dan zorgt de bovenstaande code ervoor dat er niks van <code>style.css</code> wordt weergegeven. Wil je die informatie juist wel graag weergeven? Dan maak je van bovenstaande regel het volgende:</p><pre lang="php">&lt;?php if ( $sheet !== &#039;style.css&#039; ) { $contents = preg_replace(&#039;!/*[^*]**+([^/][^*]**+)*/!&#039;, &#039;&#039;, $contents); } ?&gt;</pre><p><em>Een aantal van de codes komen van <a
rel="nofollow" target="_blank" href="http://www.catswhocode.com/blog/3-ways-to-compress-css-files-using-php">deze post</a>.</em></p><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/meerdere-stylesheets-in-een/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Meerdere stylesheets in één" title="Meerdere stylesheets in één" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/meerdere-stylesheets-in-een/" rel="bookmark">Meerdere stylesheets in één</a></h3><p>Ben je, net als ik, gewend aan het gebruiken van meerdere stylesheets en heb je geen zin om ze telkens handmatig onder elkaar te plakken ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/wordpress-verhuizen-subdomein-domein/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="WordPress verhuizen van (sub)domein naar ander domein" title="WordPress verhuizen van (sub)domein naar ander domein" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/wordpress-verhuizen-subdomein-domein/" rel="bookmark">WordPress verhuizen van (sub)domein naar ander domein</a></h3><p>Afgelopen zaterdag (6 februari) heb ik deze blog verhuisd van een subdomein (hiranthi.illutic.nl) naar z'n eigen domein (hiranthi.nl). In deze post ga ik uitleggen hoe ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/stylesheet-wisselen/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Stylesheet wisselen" title="Stylesheet wisselen" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/stylesheet-wisselen/" rel="bookmark">Stylesheet wisselen</a></h3><p>Wil je met meerdere kleuren werken op je website? En dan bedoel ik: kleur wisseling zoals op mijn blog. Of wil je juist totaal verschillende ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fmeerdere-stylesheets-update%2F&amp;t=Meerdere+stylesheets+in+%C3%A9%C3%A9n%2C+een+update" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Meerdere+stylesheets+in+%C3%A9%C3%A9n%2C+een+update%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D1159%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fmeerdere-stylesheets-update%2F&amp;title=Meerdere+stylesheets+in+%C3%A9%C3%A9n%2C+een+update&amp;notes=In+mijn++post+laat+ik+je+zien+hoe+je+meerdere+stylesheet+bestanden+in+1+css+bestand+kunt+zetten+om+laadtijden+te+verkorten+terwijl+de+bestanden+gescheiden+blijven+voor+makkelijker+onderhoud%2Fbeter+overzicht.+In+deze+post+ga+ik+hierin+verder+met+wat+ex" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fmeerdere-stylesheets-update%2F&amp;title=Meerdere+stylesheets+in+%C3%A9%C3%A9n%2C+een+update&amp;bodytext=In+mijn++post+laat+ik+je+zien+hoe+je+meerdere+stylesheet+bestanden+in+1+css+bestand+kunt+zetten+om+laadtijden+te+verkorten+terwijl+de+bestanden+gescheiden+blijven+voor+makkelijker+onderhoud%2Fbeter+overzicht.+In+deze+post+ga+ik+hierin+verder+met+wat+ex" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fmeerdere-stylesheets-update%2F&amp;title=Meerdere+stylesheets+in+%C3%A9%C3%A9n%2C+een+update" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/meerdere-stylesheets-update/" onclick="addBookmark(event);" title="Meerdere stylesheets in één, een update" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=Meerdere stylesheets in één, een update&amp;body=In mijn  post laat ik je zien hoe je meerdere stylesheet bestanden in 1 css bestand kunt zetten om laadtijden te verkorten terwijl de bestanden gescheiden blijven voor makkelijker onderhoud/beter overzicht. In deze post ga ik hierin verder met wat ex - http://hiranthi.nl/tutorials/meerdere-stylesheets-update/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/meerdere-stylesheets-update/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Content Delivery Network via Amazon Web Services: S3: cdn.hiranthi.nl.s3.amazonaws.com (user agent is rejected)

Served from: hiranthi.nl @ 2012-05-21 20:50:56 -->
