<?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>Pimp my Wordpress</title>
	<atom:link href="http://wordpress.losmuchachos.at/feed/" rel="self" type="application/rss+xml" />
	<link>http://wordpress.losmuchachos.at</link>
	<description>Alles über Wordpress und pimpen...</description>
	<lastBuildDate>Wed, 01 Sep 2010 06:01:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		
	
	<!-- google ad injected by adsense-optimizer http://www.adsenseoptimizer.de -->
	<div  style="padding:7px; float: right; padding-right: 0; margin: 3px;"><!-- Ad number: 1 --><script type="text/javascript"><!--
    	 
    	google_ad_client = "pub-6560647564178574"; google_alternate_color = "FFFFFF";
		google_ad_width = 728; google_ad_height = 90;
		google_ad_format = "728x90_as"; google_ad_type = "text_image";
		google_ad_channel ="4525056807"; google_color_border = "336699";
		google_color_link = "0000FF"; google_color_bg = "FFFFFF";
		google_color_text = "000000"; google_color_url = "008000";
		google_ui_features = "rc:0"; //--></script>
		<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>	<item>
		<title>Binlayerpress &#8211; Layer Ads gezielt im Blog verwenden</title>
		<link>http://wordpress.losmuchachos.at/binlayerpress-binlayer-for-wp/</link>
		<comments>http://wordpress.losmuchachos.at/binlayerpress-binlayer-for-wp/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 05:46:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[ads]]></category>
		<category><![CDATA[Binlayer]]></category>
		<category><![CDATA[Layer Ads]]></category>
		<category><![CDATA[Popup]]></category>
		<category><![CDATA[Werbung]]></category>

		<guid isPermaLink="false">http://wordpress.losmuchachos.at/?p=245</guid>
		<description><![CDATA[Bin Layer ist (meiner Meinung) der beste Layer Ad Anbieter am deutschsprachigen Markt. Mit Layer Ads kann man Besucher in bares Geld umwandeln. So generiert man zwischen 2 und 6 Euro / 1000 Besuchern.
F&#252;r wen ist Binlayer geeignet
Binlayer ist hervorragend f&#252;r Traffic Blogs geeignet. Darunter verstehe ich Blogs, die relativ viele Besucher haben. 
Die Gefahr [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Bin Layer ist (meiner Meinung) der beste Layer Ad Anbieter am deutschsprachigen Markt. Mit Layer Ads kann man Besucher in bares Geld umwandeln. So generiert man zwischen 2 und 6 Euro / 1000 Besuchern.</p>
<h2>F&uuml;r wen ist Binlayer geeignet</h2>
<p>Binlayer ist hervorragend f&uuml;r Traffic Blogs geeignet. Darunter verstehe ich Blogs, die relativ viele Besucher haben. </p>
<p>Die Gefahr liegt im &#8220;Ver&auml;rgern&#8221; der Stammleser, weshalb ich diese Plugin geschrieben habe, das diese Gefahr deutlich entsch&auml;rft, ohne dass man auf Einnahmen durch Layer g&auml;nzlich verzichten muss. </p>
<h2>Wozu das Plugin</h2>
<p>Nat&uuml;rlich kann man den Binlayer Code auch einfach in den Headerbereich kopieren. Allerdings bietet BinLayerpress deutlich mehr Einstellungsm&ouml;glichkeiten. Man kann so gewisse Besucher von der Einblendung ausnehmen, oder auch nur f&uuml;r gewisse Besucher einblenden.</p>
<p><a href="http://wordpress.org/extend/plugins/binlayerpress"><img src="http://wordpress.losmuchachos.at/wp-content/uploads/2010/01/big_download.gif" alt="" title="big_download" width="127" height="102" class="alignnone size-full wp-image-13" /></a></p>
<h2>Einstellungen</h2>
<p>Nach der Installation brauchst du noch einen BinLayer Account. Solltest du meine Arbeit hier unterst&uuml;tzen wollen, so w&auml;re ich dankbar, wenn du einen Binlayer Link auf diese Seite ben&uuml;tzt und einen neuen Account anmeldest. Kostet dir nichts und ich werde ein wenig f&uuml;r diese Arbeit honoriert. </p>
<p>Im &#8220;Einstellungen&#8221; Men&uuml; gibt es nun ein &#8220;BinLayerpress&#8221; Menu. Du gibts zuerst die Codes f&uuml;r die verschiedenen Ad-Types ein. Dazu generierst du alle 3 verschiedenen Typen in Binlayer und gibst dann den Zahlencode aus dem Adcode in das jeweilige Feld ein.<br />
Dann gibst du ein welche Werbung du &#8220;normalerweise&#8221; im Blog verwenden willst. Wenn du nur f&uuml;r manche Seiten Layer Ads verwenden willst, dann kannst du hier auch &#8220;keine&#8221; angeben.<br />
Danach werden Ausnahmen spezifiziert. Du kannst Ausnahmen f&uuml;r alle m&ouml;glichen Arten von Seiten angeben. So kannst du z.b. nur auf Suchergebnisseiten Layer Werbung verwenden. Werbung nur bei &auml;lteren Artikeln einblenden, keine Layer Werbung f&uuml;r angemeldete User usw. </p>
<p>Wichtig ist, dass die Ausnahmen in der Reihenfolge nach abgearbeitet werden. Sollte eine Ausnahme zutreffen, dann wird die eingestellte Werbung angezeigt und alle weiteren Ausnahmen nicht mehr ber&uuml;cksichtigt. </p>
<p>So kann man relativ gezielt f&uuml;r verschiedenste Seiten verschiedene Werbungen anzeigen. Dadurch werden die Nachteile von Layer Ads deutlich entsch&auml;rft und Stammleser nicht ver&auml;rgert. Zeigt man z.B. keine Werbung f&uuml;r Artikel die relativ jung sind und f&uuml;r angemeldete User, dann wird man kaum einen Stammleser je mit einer Layer Werbung bel&auml;stigen. </p>
<h2>Warum ist auf dieser Seite keine Layer Werbung</h2>
<p>Ich betreibe diese Seite nebenbei und mache keinerlei Werbung etc. daf&uuml;r. Die Zugriffe auf diese Seite sind so minimal, dass ich auf Layer Ads verzichte. (kann sich ja mal &auml;ndern <img src='http://wordpress.losmuchachos.at/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  </p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://wordpress.losmuchachos.at/binlayerpress-binlayer-for-wp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SEO &#8211; Erfolg meines neuen Themes</title>
		<link>http://wordpress.losmuchachos.at/seo-erfolg-meines-neuen-themes/</link>
		<comments>http://wordpress.losmuchachos.at/seo-erfolg-meines-neuen-themes/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 15:46:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[Selbstbautheme]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://wordpress.losmuchachos.at/?p=232</guid>
		<description><![CDATA[In der Artikelreihe &#252;ber das Selbstbautheme habe ich ja einige SEO-technische Optimierungen vorgenommen. Im Prinzip war mir aber selber nicht ganz klar, ob diese der wahre Weg sind, oder &#252;berhaupt einen besonderen Nutzen haben. Bei Ver&#246;ffentlichung der Artikel zeigte sich bereits erster Erfolg, bei meinem &#8220;Testblog&#8221;. Jetzt einige Monate sp&#228;ter zeigt sich aber erst wirklich [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>In der Artikelreihe &uuml;ber das Selbstbautheme habe ich ja einige SEO-technische Optimierungen vorgenommen. Im Prinzip war mir aber selber nicht ganz klar, ob diese der wahre Weg sind, oder &uuml;berhaupt einen besonderen Nutzen haben. Bei Ver&ouml;ffentlichung der Artikel zeigte sich bereits erster Erfolg, bei meinem &#8220;Testblog&#8221;. Jetzt einige Monate sp&auml;ter zeigt sich aber erst wirklich die ganze Auswirkung.<br />
Es handelt sich um einen Heimwerkerblog. Zugriffe kommen praktisch nur &uuml;ber Google. Ich habe kaum Links von aussen und bewerbe den Blog nicht. In den letzten Monaten hab ich auch kaum Artikel verfasst und wenn, dann waren diese nicht sehr erfolgreich <img src='http://wordpress.losmuchachos.at/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
Die Zugriffsentwicklungen lassen sich also mit der hoher Sicherheit auf das selbstprogrammierte Theme zur&uuml;ckf&uuml;hren. Das alte Theme hatte fast die gleiche Optik, war aber ein fertiges Downloadtheme. Eine Grafik sagt mehr als 1000 Worte !!!!</p>
<p><img src="http://www.losmuchachos.at/wp-content/uploads/2010/05/2010-06-01_1637.png" alt="webalizer Statistik"></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://wordpress.losmuchachos.at/seo-erfolg-meines-neuen-themes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	
	
	<!-- google ad injected by adsense-optimizer http://www.adsenseoptimizer.de -->
	<div  style="padding:7px; float: left; padding-left: 0px; margin: 3px;"><!-- Ad number: 2 --><script type="text/javascript"><!--
    	 
    	google_ad_client = "pub-6560647564178574"; google_alternate_color = "FFFFFF";
		google_ad_width = 250; google_ad_height = 250;
		google_ad_format = "250x250_as"; google_ad_type = "text_image";
		google_ad_channel ="4525056807"; google_color_border = "336699";
		google_color_link = "0000FF"; google_color_bg = "FFFFFF";
		google_color_text = "000000"; google_color_url = "008000";
		google_ui_features = "rc:0"; //--></script>
		<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>	<item>
		<title>Adsenseoptimizer &#8211; mit Google und Wordpress Geld verdienen</title>
		<link>http://wordpress.losmuchachos.at/adsenseoptimizer/</link>
		<comments>http://wordpress.losmuchachos.at/adsenseoptimizer/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 11:00:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Adopt]]></category>
		<category><![CDATA[Adsense]]></category>
		<category><![CDATA[Adsenseoptimizer]]></category>
		<category><![CDATA[Geld]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Sidebar]]></category>
		<category><![CDATA[verdienen]]></category>
		<category><![CDATA[Werbung]]></category>
		<category><![CDATA[Widget]]></category>

		<guid isPermaLink="false">http://wordpress.losmuchachos.at/?p=208</guid>
		<description><![CDATA[Adsensenseoptimizer ist ein Plugin zum automatischen Einf&#252;gen von Google Adsense Werbebl&#246;cken in ein Wordpress Blog. Davon gibts ja bereits genug, aber trotzdem konnte mich kein bestehendes Plugin ganz zufrieden stellen. Adsense Optimizer hat einige Besonderheiten die ich bei anderen Plugins nicht gefunden habe:

Unterschiedliche Behandlung von single-Seiten mit einem Post und Seiten mit mehreren Beitr&#228;gen. Einf&#252;gen [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Adsensenseoptimizer ist ein Plugin zum automatischen Einf&uuml;gen von Google Adsense Werbebl&ouml;cken in ein Wordpress Blog. Davon gibts ja bereits genug, aber trotzdem konnte mich kein bestehendes Plugin ganz zufrieden stellen. Adsense Optimizer hat einige Besonderheiten die ich bei anderen Plugins nicht gefunden habe:</p>
<ul>
<li><strong>Unterschiedliche Behandlung von single-Seiten mit einem Post und Seiten mit mehreren Beitr&auml;gen.</strong> Einf&uuml;gen in den Contentbereich eines Posts f&uuml;hrt bei multiple-Seiten zwangsl&auml;ufig zu schlechter Positionierung der Werbung und zum Versto&szlig; gegen die Google Richtlinien durch den Versuch zu viele Werbungen einzublenden.</li>
<li><strong>Intelligentes Einf&uuml;gen von Ads ohne html Tags wie Aufz&auml;hlungen, Bilder usw. zu unterbrechen</strong></li>
<li><strong>Einblendung von mehreren/wenigeren Werbungen abh&auml;ngig von der L&auml;nge des Posts.</strong></li>
<li>Komfortable Gestaltung (Farbe, Gr&ouml;&szlig;e etc.)</li>
<li><strong>Einblenden der Ads in Content, aber auch in Sidebars, Footer usw.</strong></li>
<li>Keine Einblendung von mehr als 3 Ads pro Seit um den Google Richtlinien zu entsprechen</li>
<li>Zuweisen verschiedener Channels pro Ad um ordentliche Erflgskontrolle zu erm&ouml;glichen</li>
<li><strong>Einf&uuml;gen einer Werbung als Widget</strong></li>
<li>uvm&#8230;.</li>
</ul>
<p><span id="more-208"></span></p>
<p>Auf der <a href="http://www.adsenseoptimizer.de">Plugin Page</a> gibt es eine genaue Installationsanleitung etc. </p>
<p>Das Plugin kommt jetzt auf allen meinen Blogs zum Einsatz. Es gibt auch eine nette Erweiterung &#8220;Adsense on Top&#8221; die mir aber etwas zu aufdringlich ist. </p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://wordpress.losmuchachos.at/adsenseoptimizer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eigenes Theme &#8211; Teil 12 &#8211; SEO &#220;berlegungen</title>
		<link>http://wordpress.losmuchachos.at/eigenes-theme-teil-12-seo-ueberlegungen/</link>
		<comments>http://wordpress.losmuchachos.at/eigenes-theme-teil-12-seo-ueberlegungen/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 07:13:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[canonical]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Metatags]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[Sitemap]]></category>
		<category><![CDATA[Suchmaschine]]></category>
		<category><![CDATA[suchmaschinenfreundlich]]></category>
		<category><![CDATA[tags]]></category>

		<guid isPermaLink="false">http://wordpress.losmuchachos.at/?p=188</guid>
		<description><![CDATA[Von der Grundstruktur haben wir unser Theme ja bereits recht SEO freundlich gestaltet, jetzt gilt es aber noch die BasisSEOaufgaben per Plugin zu erledigen. Zuerst legen wir mal fest was f&#252;r ein SEO optimales Theme n&#246;tig w&#228;re. Dann schauen wir uns einge Plugins an, die das erledigen (oder auch nicht).
Suchmaschinen
Im deutschsprachigen Raum gibt es Google, [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Von der Grundstruktur haben wir unser Theme ja bereits recht SEO freundlich gestaltet, jetzt gilt es aber noch die BasisSEOaufgaben per Plugin zu erledigen. Zuerst legen wir mal fest was f&uuml;r ein SEO optimales Theme n&ouml;tig w&auml;re. Dann schauen wir uns einge Plugins an, die das erledigen (oder auch nicht).<span id="more-188"></span></p>
<h2>Suchmaschinen</h2>
<p>Im deutschsprachigen Raum gibt es Google, Google und Google. Alles andere ist Nebensache. Meine Suchmaschinenverweise kommen zu 96% von Google, 1-2% Yahoo und dann der ganze Rest. Bei Suchmaschinenoptimierung z&auml;hlt also Google und sonst nichts.<br />
H&auml;ufig wird SEO als &#8220;Kampf gegen Suchmaschinen&#8221; betrachtet und besteht haupts&auml;chlich aus Empfehlungen wie Suchmaschinen ausgetrickst werden k&ouml;nnen. Ich bin der Meinung, dass Suchmaschinen haupts&auml;chlich Interesse haben einen guten Dienst anzubieten. Seiten mit Inhalt werden gerne und gut ausgelesen und gereiht. Wir bieten eine solche Seite und haben daher nicht das Bed&uuml;rfnis Google etwas vorzugaukeln. Google ist also unser Freund. Hauptproblem bei SEO ist dann, dass wir Google dabei unterst&uuml;tzen m&uuml;ssen unsere Seiten richtig zu interpretieren. Es ist gar nicht so leicht vollautomatisch eine Seite auszulesen und daraus zu erkennen was die Seite kann/will etc. Genau das soll Google aber erm&ouml;glicht werden.</p>
<h2>Metatags</h2>
<p>Auch wenn sie an Wichtigkeit verloren haben lassen wir es uns nat&uuml;rlich nicht nehmen ordentliche Metatags zu setzen.<br />
Das Wichtigste Tag ist <strong>title</strong>. Hier ist wichtig je nach Seite unterschiedliche titles zu setzen. Es gibt nichts SEO feindlicheres als immer nur den Blogtitel einzusetzen wie man das immer noch manchmal sieht. Hier gilt es eine sch&ouml;ne Kombination aus Blogtitel, Subtitel und Beitragstitel festzulegen.<br />
Weiters soll <strong>description</strong> und <strong>keywords</strong> gesetzt werden. Die <strong>Sprache</strong> wird zwar nur nch von wenigen Suchmaschinen ausgelesen, aber sicher ist sicher.<br />
Dann gibt es noch viele weitere Meta Tags deren Vorteile bei Suchmaschinenrankings umstritten sind. Bei Google d&uuml;rften sie nicht verwendet werden, also kann man die mal links liegen lassen.</p>
<h2>Richtige HTML-Response Codes</h2>
<p>Essentiell ist auch das Senden eines richtigen Response Codes. Wenn eine Seite nicht gefunden wird, dann muss ein 404 Code gesendet werden. Viele Seiten schicken eine Fehlerseite, aber einen 200 (ok) Code, wodurch die Seite in Google indiziert wird. Google soll ganz klar wissen, welche Seiten es gibt und welche nicht. Modernere Wordpress Versionen machen das richtig, also ist es vermutlich sinnvoller auf eine aktuelle Version zu updaten, als ein Plugin hierf&uuml;r zu installieren.</p>
<h2>Indizieren der richtigen Seiten</h2>
<p>Problematisch bei Wordpress ist, dass eine Seite &uuml;ber zahlreiche Adressen abrufbar ist. Google verwirrt das und wird im schlimmsten Fall sogar als &#8220;duplicate content&#8221; gewertet, was zu Abstrafungen f&uuml;hrt. Ein Bericht ist z.b. &uuml;ber <em>domain.com/titel</em> abrufbar. Die Verwendung dieser &#8220;Hauptseite&#8221; wollen wir auch erreichen. Man kann ihn aber oft auch &uuml;ber <em>domain.de/tag/titel</em> abrufen oder &uuml;ber <em>domain.com/kategorie/titel</em>, das ganze dann noch mit oder ohne www usw. usw. H&auml;ufig werden dann auch noch die falschen Adressen besser in Google gereiht. Alles Effekte die vermieden geh&ouml;ren. Hier geh&ouml;ren noindex/index, nofollow/follow und vor allem <a href="http://www.google.com/support/webmasters/bin/answer.py?hl=de&#038;answer=139394">canonical tags</a> richtig gesetzt.<br />
Um Abstrafungen durch duplicate content auf jeden Fall zu vermeiden halte ich es f&uuml;r das beste nur die Single Pages indizieren zu lassen. Suchergebnisse, Archive, Kategorieansichten uvm. werden nicht indiziert (noindex, dofollow). Auf Single Views wird immer der canonical link gesetzt. In unserem Fall verzichten wir auf statische Seiten. </p>
<h2>Die Startseite bei Wordpress</h2>
<p>Schwierig ist es was mit der Startseite zu tun ist. &Uuml;blich bei Blogs ist, dass die letzten paar Artikel ganz oder als &#8220;Kurzversion&#8221; zu sehen sind. Im Prinzip ist das Content, der keine Suchmaschinenrelevanz hat. Die Sidebars etc. enthalten ohnehin nur Schrott. Google ist also mit einer Seite konfrontiert, die stets wechselnden Inhalt mit m&ouml;glichweise dauern neuen Keywords produziert.<br />
Dann handelt es sich noch dazu um duplicate content, weil die Artikel gibt es als Einzelseiten und sie sollen auch so gefunden werden.<br />
Auf der anderen Seite will man aber nat&uuml;rlich seine Startseite auch in den Suchmaschinen wissen. Wenn man von extern verlinkt verwendet man &uuml;blicherweise die Startseite etc. Vom SEO Standpunkt ist es daher am besten wenn man eine statische Seite mit optimiertem Content als Startseite zur Verf&uuml;gung stellt. Diese wird mit &Uuml;berschriften und Keywords optimiert. Eventuell kann man noch einen Auszug der letzten Artikel bringen um etwas mehr &#8220;Blog&#8221; zu sein. </p>
<h2>Sitemap</h2>
<p>Das ganze sollte nat&uuml;rlich auch noch Google in Form einer Sitemap &#8220;erkl&auml;rt&#8221; werden.</p>
<p>Mit diesen Einstellungen machen wir unsere Seite f&uuml;r crawler transparent und k&ouml;nnen damit rechnen optimal in Suchmaschinen platziert zu werden. Diese Methode ist klar konseqeunt und vielen Usern zu restriktiv. Viele wollen dann doch diverse Archive ebenfalls ausgelesen haben um m&ouml;glichst viele Seiten in Google zu bekommen. Ich pers&ouml;nlich halte das f&uuml;r unn&ouml;tig.</p>
<p>F&uuml;r diese Aufgaben verwendet man am besten ein (oder mehrere) Plugins. Eine nette &Uuml;bersicht gibt es z.B. <a href="http://www.blogprojekt.de/2009/08/13/wordpress-plugins/die-10-besten-seo-plugins-fuer-wordpress/">hier</a>.</p>
<p>Die Plugins haben zum Teil sehr viele Funktionen. Genau die obigen Anforderungen lassen sich mit keinem mir bekannten Plugin erf&uuml;llen, aber die meisten leisten doch sehr gute Dienste. Daneben sollte man noch ein Plugin zur Erstellung von Sitemaps installieren.<br />
. </p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://wordpress.losmuchachos.at/eigenes-theme-teil-12-seo-ueberlegungen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Eigenes Theme &#8211; Teil 11 &#8211; statische Seiten</title>
		<link>http://wordpress.losmuchachos.at/eigenes-theme-teil-11-statische-seiten/</link>
		<comments>http://wordpress.losmuchachos.at/eigenes-theme-teil-11-statische-seiten/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 14:57:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[pages]]></category>
		<category><![CDATA[statische Seiten]]></category>
		<category><![CDATA[themeentwicklung]]></category>
		<category><![CDATA[wp_list_pages]]></category>

		<guid isPermaLink="false">http://wordpress.losmuchachos.at/?p=177</guid>
		<description><![CDATA[In unserem Blog spielen statische Seiten keine wesentliche Rolle. Trotzdem wollen wir ein paar kleine Seiten einf&#252;gen in denen Impressum etc. Platz finden. Diese k&#246;nnen wir im Admin Bereich einfach anlegen. In unserem Blog legen wir vorerst 2 statische Seiten an. &#8220;Impressum&#8221; und &#8220;Mithilfe&#8221;.
Diese Seiten werden dann in der Sidebar links unten eingeblendet. Dazu gibt [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>In unserem Blog spielen statische Seiten keine wesentliche Rolle. Trotzdem wollen wir ein paar kleine Seiten einf&uuml;gen in denen Impressum etc. Platz finden. Diese k&ouml;nnen wir im Admin Bereich einfach anlegen. In unserem Blog legen wir vorerst 2 statische Seiten an. &#8220;Impressum&#8221; und &#8220;Mithilfe&#8221;.<span id="more-177"></span><br />
Diese Seiten werden dann in der Sidebar links unten eingeblendet. Dazu gibt es das Template Tag wp_list_pages mit einer Vielzahl von Einstellungsm&ouml;glichkeiten.<br />
Also noch in die Sidebar etwas Code eingebaut:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;h6&gt;Menü&lt;/h6&gt;
&lt;ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'title_li='</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;</pre></div></div>

<p>Und unser Men&uuml; mit den statischen Seiten ist fertig.</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://wordpress.losmuchachos.at/eigenes-theme-teil-11-statische-seiten/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Eigenes Theme &#8211; Teil 10 &#8211; Suche</title>
		<link>http://wordpress.losmuchachos.at/eigenes-theme-teil-10-suche/</link>
		<comments>http://wordpress.losmuchachos.at/eigenes-theme-teil-10-suche/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 14:46:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[search.php]]></category>
		<category><![CDATA[Selbstbautheme]]></category>
		<category><![CDATA[suche]]></category>
		<category><![CDATA[themeentwicklung]]></category>
		<category><![CDATA[themeerstellung]]></category>
		<category><![CDATA[Themeselbstbau]]></category>

		<guid isPermaLink="false">http://wordpress.losmuchachos.at/?p=154</guid>
		<description><![CDATA[Es reicht, wie wir auf der 404 Seite gesehen haben, ein Aufruf der Funktion get_search_form und schon hat man eine fertige Suche. Die Suchergebnisse werden &#252;ber die index.php ausgegeben, was nur teilweise dem entspricht was man sich von einer Suchergebnisseite erwartet.
Alternative ist die Ausgabe &#252;ber eine eigene Seite. Diese muss search.php hei&#223;en. Hier kann man [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Es reicht, wie wir auf der 404 Seite gesehen haben, ein Aufruf der Funktion get_search_form und schon hat man eine fertige Suche. Die Suchergebnisse werden &uuml;ber die index.php ausgegeben, was nur teilweise dem entspricht was man sich von einer Suchergebnisseite erwartet.<span id="more-154"></span></p>
<p>Alternative ist die Ausgabe &uuml;ber eine eigene Seite. Diese muss search.php hei&szlig;en. Hier kann man eine v&ouml;llig eigene Gestaltung erstellen. F&uuml;r unser Template wollen wir aber die gleiche Optik wie bei der index.php. Es sollen aber immer nur Kurzfassungen der Beitr&auml;ge angezeigt werden. &Uuml;blicherweise wird hier das Wordpress Excerpt verwendet (die ersten 55 W&ouml;rter eines Beitrags), das ich hier aber auch nicht sehr geeignet finde. Bei Suchergebnissen erwartet man sich eher die Anzeige des Textausschnitts, in dem auch das Suchwort vorkommt. </p>
<p>Zum Gl&uuml;ck gibt es hier ein sch&ouml;nes Plugin namens WP Search Extracts, das wir an dieser Stelle als erstes Plugin einsetzen. Einfach <a href="http://wordpress.org/extend/plugins/wp-search-extracts/">hier</a> downloaden, in das Plugin Verzeichnis kopieren und aktivieren. Sieht man sich den Quelltext einer Suchergebnisseite an, so stellt man fest, dass das Plugin das gefundene Suchwort mit einem em tag der klasse search-match umfasst. Also verwenden wir hier noch etwas css um das ganze etwas besser aussehen zu lassen und unsere Suche ist fertig. Nachdem die Suchergbnisseite so genau das ist was ich erwarte, verzichte ich auf die Erstellung einer search.php.</p>
<p>Derzeit gibt es eine Suche nur auf der 404 Seite. Diese war urspr&uuml;nglich aber auch im Header unten links vorgesehen. Also f&uuml;gen wir auch ein Formular dort ein. Das von get_search_form ausgegebene Formular ist hier nicht das was wir brauchen und auch CSS hilft nicht weiter. Jetzt gibt es die M&ouml;glichkeit eine searchform.php anzulegen in der ein Formular ausgegeben wird. Diese wird dann automatisch verwendet. Davon wollen wir mal Gebrauch machen. </p>
<p>Wenn wir im Codex die get_search_form Funktion ansehen, so steht dort, dass die Funktion in der wp-includes/general-template.php definiert ist. Wenn man diese Datei &ouml;ffnet kann man sich die Funktionsweise ansehen. Was wir hier machen ist den 2. Teil des Codes zu &#8220;stehlen&#8221; und in die searchform.php zu kopieren. Das Label streichen wir einfach raus. Unsere searchform.php sieht also so aus:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> 
	<span style="color: #000088;">$form</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;form role=&quot;search&quot; method=&quot;get&quot; id=&quot;searchform&quot; action=&quot;'</span> <span style="color: #339933;">.</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'home'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/&quot; &gt;
	&lt;div&gt;
	&lt;input type=&quot;text&quot; value=&quot;'</span> <span style="color: #339933;">.</span> esc_attr<span style="color: #009900;">&#40;</span>apply_filters<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_search_query'</span><span style="color: #339933;">,</span> get_search_query<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; name=&quot;s&quot; id=&quot;s&quot; /&gt;
	&lt;input type=&quot;submit&quot; id=&quot;searchsubmit&quot; value=&quot;'</span><span style="color: #339933;">.</span> esc_attr__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Search'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; /&gt;
	&lt;/div&gt;
	&lt;/form&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">echo</span> apply_filters<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'get_search_form'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$form</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Jetzt haben wir ein Suchformular ohne Label vorne, das wir in den header einbauen und per css positionieren k&ouml;nnen. Wer jetzt sehr genau ist, der wird sagen, dass auf der 404-Seite die Suche 2 mal vorkommt, was<br />
1. nicht sehr sch&ouml;n &#038;<br />
2. nicht ganz korrekt ist, weil die id searchform dann 2 mal vorkommt<br />
Nachdem wir aber validen Code wollen blenden wir daher auf der 404 Seite das Suchformular im Header aus.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>is_404<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;div id=&quot;search&quot;&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> get_search_form<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;/div&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Damit haben wir unsere Suche fertig.</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://wordpress.losmuchachos.at/eigenes-theme-teil-10-suche/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	
	
	<!-- google ad injected by adsense-optimizer http://www.adsenseoptimizer.de -->
	<div  style="padding:px; display: block; margin-left: auto; margin-right: auto; text-align: center;"><!-- Ad number: 3 --><script type="text/javascript"><!--
    	 
    	google_ad_client = "pub-6560647564178574"; google_alternate_color = "FFFFFF";
		google_ad_width = 468; google_ad_height = 60;
		google_ad_format = "468x60_as"; google_ad_type = "text_image";
		google_ad_channel ="4525056807"; google_color_border = "336699";
		google_color_link = "0000FF"; google_color_bg = "FFFFFF";
		google_color_text = "000000"; google_color_url = "008000";
		google_ui_features = "rc:0"; //--></script>
		<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>	<item>
		<title>Eigenes Theme &#8211; Teil 9 &#8211; 404 Seite</title>
		<link>http://wordpress.losmuchachos.at/eigenes-theme-teil-9-404-seite/</link>
		<comments>http://wordpress.losmuchachos.at/eigenes-theme-teil-9-404-seite/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 14:45:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[404 error]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[HTML code]]></category>
		<category><![CDATA[themeentwicklung]]></category>
		<category><![CDATA[Themeprogrammierung]]></category>

		<guid isPermaLink="false">http://wordpress.losmuchachos.at/?p=148</guid>
		<description><![CDATA[Es wird immer wieder vorkommen, dass Nutzer Seiten abfragen, die nicht existieren. Der Response Code des Servers ist dann der allgemein bekannte Code 404.
Wordpress l&#228;dt standardm&#228;&#223;ig die index.php und findet im Loop keine darzustellenden Artikel. In unserer Index.php geben wir &#8220;Sorry, no posts matched your criteria.&#8221; aus. Wenn du die deutsche Version ben&#252;tzt wird das [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Es wird immer wieder vorkommen, dass Nutzer Seiten abfragen, die nicht existieren. Der Response Code des Servers ist dann der allgemein bekannte Code 404.<br />
Wordpress l&auml;dt standardm&auml;&szlig;ig die index.php und findet im Loop keine darzustellenden Artikel. In unserer Index.php geben wir &#8220;Sorry, no posts matched your criteria.&#8221; aus. Wenn du die deutsche Version ben&uuml;tzt wird das auf Deutsch &uuml;bersetzt. Etwas besser als die h&auml;ssliche Browserfehlerseite, aber Wordpress w&auml;re nicht das beste Blogsystem wenn es nicht eine sch&ouml;nere M&ouml;glichkeit bieten w&uuml;rde.<span id="more-148"></span><br />
Man kann eine 404.php in seinem Theme anlegen. Wird nun eine unbekannte Seite aufgerufen, so wird die 404.php geladen. Ziel dieser Seite sollte es sein nicht nur mit einer nackten Fehlermeldung Besucher abzuschrecken, sondern zum Weitersuchen zu animieren. Dazu legen wir eine nette Grafik und freundlichen Text auf dies Seite und dazu bieten wir gleich noch eine Suche f&uuml;r den Blog an.<br />
Das ganze k&ouml;nnte etwas so aussehen:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;div id=&quot;outer&quot;&gt;
	&lt;div class=&quot;outerwrap&quot;&gt;
		&lt;div id=&quot;centrecontent&quot;&gt;
				    &lt;div class=&quot;text&quot;&gt;
&nbsp;
		&lt;h2 class=&quot;center&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Error 404 - Not Found'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'kubrick'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h2&gt;
		&lt;p&gt;Bitte nütze unsere Suche um die richtige Seite zu finden&lt;/p&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_search_form<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;img class=&quot;alignright&quot; src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_directory'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/images/404.png&quot;&gt;
		&lt;/div&gt;
		&lt;/div&gt;
		&lt;div id=&quot;left&quot; class=&quot;sidebar&quot;&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/div&gt;
		&lt;div class=&quot;clearer&quot;&gt;&lt;/div&gt;
	&lt;/div&gt;&lt;!--end outerwrap --&gt;
	&lt;div id=&quot;right&quot; class=&quot;sidebar&quot;&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'right'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;/div&gt;
	&lt;div class=&quot;clearer&quot;&gt;&lt;/div&gt;
&lt;/div&gt; &lt;!-- end outer --&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Die Seite testet man indem man eine Unterseite eingibt, die nicht existiert. (www.beispiel.com/dieseseitegibtsgarnicht)</p>
<p>Im n&auml;chsten Teil gibts weitere Details zur Suche.</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://wordpress.losmuchachos.at/eigenes-theme-teil-9-404-seite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eigenes Theme &#8211; Teil 8 &#8211; Kommentare</title>
		<link>http://wordpress.losmuchachos.at/eigenes-theme-teil-8-kommentare/</link>
		<comments>http://wordpress.losmuchachos.at/eigenes-theme-teil-8-kommentare/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 14:42:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[Kommentare]]></category>
		<category><![CDATA[theme from scratch]]></category>
		<category><![CDATA[themeentwicklung]]></category>
		<category><![CDATA[themeerstellung]]></category>
		<category><![CDATA[Themeprogrammierung]]></category>

		<guid isPermaLink="false">http://wordpress.losmuchachos.at/?p=144</guid>
		<description><![CDATA[Bis jetzt haben wir uns mit der comments.php des default Themes zufrieden gegeben. Im Prinzip ist das auch gar nicht mal so schlecht, mit der Einschr&#228;nkung, dass es Englisch ist. Man hat also die Wahl es mit CSS zu gestalten, womit ganz sch&#246;ne Ergebnisse m&#246;glich sind, oder ein eigenes zu programmieren. Obwohl ich normalerweise kein [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Bis jetzt haben wir uns mit der comments.php des default Themes zufrieden gegeben. Im Prinzip ist das auch gar nicht mal so schlecht, mit der Einschr&auml;nkung, dass es Englisch ist. Man hat also die Wahl es mit CSS zu gestalten, womit ganz sch&ouml;ne Ergebnisse m&ouml;glich sind, oder ein eigenes zu programmieren. Obwohl ich normalerweise kein Freund davon bin Altes abzu&auml;ndern, zahlt es sich bei der comments.php doch aus. Es steckt ziemlich viel Logik dahinter was hier angezeigt wird. (Kommentieren erlaubt, Kommentieren nur wenn eingeloggt, usw.) Diese Logik sollte man aus der comments.php &uuml;bernehmen. <span id="more-144"></span></p>
<p>In dieser Datei finden sich eine Menge _e() und __() Funktionen. Hier wird jeweils eine englische Phrase angegeben und im 2. Parameter (kubrick) das &Uuml;bersetzungsfile, wo Wordpress die anderssprachigen &Uuml;bersetzungen findet. Nachdem wir aber ein rein Deutsches Theme machen kann man hier fixe Texte eingeben.   </p>
<p>Nachdem ich die Logik und den Aufbau der comments.php recht sinnvoll finde ersetze ich nur die -E und __ Funktionen. Die Ausgabe der Comments adaptiere ich etwas und das Styling erfolgt in der styles.css<br />
Fertig.</p>
<p>Zum Ansehen hier die comments.php. Augrund der vielen Logik leider etwas un&uuml;bersichtlich !</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// Do not delete these lines</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SCRIPT_FILENAME'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #0000ff;">'comments.php'</span> <span style="color: #339933;">==</span> <span style="color: #990000;">basename</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SCRIPT_FILENAME'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
		<span style="color: #990000;">die</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Please do not load this page directly. Thanks!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> post_password_required<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;p class=&quot;nocomments&quot;&gt;Bitte Passwort eingeben.&lt;/p&gt; 
	<span style="color: #000000; font-weight: bold;">&lt;?php</span>
		<span style="color: #b1b100;">return</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;!-- You can start editing here. --&gt;
&lt;div id=&quot;commentwrap&quot;&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> have_comments<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;h3 id=&quot;comments&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_number<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;keine Kommentare&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Ein Kommentar&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;% Kommentare&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">printf</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;zu&quot;</span><span style="color: #339933;">,</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h3&gt;
&nbsp;
	&lt;div class=&quot;navigation&quot;&gt;
		&lt;div class=&quot;alignleft&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> previous_comments_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
		&lt;div class=&quot;alignright&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> next_comments_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
	&lt;/div&gt;
&nbsp;
    &lt;ol class=&quot;commentlist&quot;&gt;  
	    <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$oddcomment</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
	    	<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$comments</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$comment</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>  
		    &lt;li <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$oddcomment</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>id=&quot;comment-<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt; 
		    <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$oddcomment</span><span style="color: #339933;">==</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$oddcomment</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'class=&quot;oddcomment&quot;'</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">else</span> <span style="color: #000088;">$oddcomment</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		    &lt;div class=&quot;quote&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_text<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;  
			    <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_approved</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'0'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>  
			    &lt;em&gt;Your comment is awaiting moderation.&lt;/em&gt;  
			    <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>  
		    &lt;/li&gt;  
		    &lt;div class=&quot;commentmeta&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_author_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> - &lt;a href=&quot;#comment-<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; title=&quot;&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_date<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'F jS, Y'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> - <span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_time<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_comment_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'edit'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&amp;nbsp;&amp;nbsp;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/div&gt;  
		    <span style="color: #000000; font-weight: bold;">&lt;?php</span>  
		    <span style="color: #000000; font-weight: bold;">?&gt;</span>  
	    <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endforeach</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">/* end for each comment */</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>  
    &lt;/ol&gt;  	
&nbsp;
	&lt;div class=&quot;navigation&quot;&gt;
		&lt;div class=&quot;alignleft&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> previous_comments_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
		&lt;div class=&quot;alignright&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> next_comments_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
	&lt;/div&gt;
&nbsp;
 <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// this is displayed if there are no comments so far ?&gt;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> comments_open<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;!-- If comments are open, but there are no comments. --&gt;
&nbsp;
	 <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// comments are closed ?&gt;</span>
		&lt;!-- If comments are closed. --&gt;
		&lt;p class=&quot;nocomments&quot;&gt;Kommentare nicht möglich&lt;/p&gt;
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> comments_open<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;div id=&quot;respond&quot;&gt;
&lt;h6&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_form_title<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;Senf dazugeben&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Gib doch deinen Senf zu <span style="color: #009933; font-weight: bold;">%s</span> &quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h6&gt;
&nbsp;
	&lt;div id=&quot;cancel-comment-reply&quot;&gt; 
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> cancel_comment_reply_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;/div&gt; 
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comment_registration'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span>is_user_logged_in<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;p&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">printf</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Du mußt &lt;a href=&quot;%s&quot;&gt;eingeloggt&lt;/a&gt; sein um zu Kommentieren'</span><span style="color: #339933;">,</span> wp_login_url<span style="color: #009900;">&#40;</span> get_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	&lt;form action=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'siteurl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/wp-comments-post.php&quot; method=&quot;post&quot; id=&quot;commentform&quot;&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_user_logged_in<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	&lt;p&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">printf</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Eingeloggt als &lt;a href=&quot;%1$s&quot;&gt;%2$s&lt;/a&gt;.'</span><span style="color: #339933;">,</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'siteurl'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/wp-admin/profile.php'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user_identity</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wp_logout_url<span style="color: #009900;">&#40;</span>get_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; title=&quot;ausloggen&quot;&gt;Ausloggen&lt;/a&gt;&lt;/p&gt;
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;author&quot; id=&quot;author&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> esc_attr<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment_author</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; size=&quot;22&quot; tabindex=&quot;1&quot; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$req</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;aria-required='true'&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> /&gt;
	&lt;label for=&quot;author&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Name'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'kubrick'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$req</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;das muss leider sein&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/label&gt;&lt;/p&gt;
&nbsp;
	&lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;email&quot; id=&quot;email&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> esc_attr<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment_author_email</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; size=&quot;22&quot; tabindex=&quot;2&quot; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$req</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;aria-required='true'&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> /&gt;
	&lt;label for=&quot;email&quot;&gt;Mail (bleibt unter uns !)<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$req</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;das muss sein&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/label&gt;&lt;/p&gt;
&nbsp;
	&lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;url&quot; id=&quot;url&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span>  esc_attr<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment_author_url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; size=&quot;22&quot; tabindex=&quot;3&quot; /&gt;
	&lt;label for=&quot;url&quot;&gt;Website&lt;/label&gt;&lt;/p&gt;
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	&lt;p&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">printf</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;strong&gt;XHTML:&lt;/strong&gt; erlaubte Tags: &lt;code&gt;%s&lt;/code&gt;'</span><span style="color: #339933;">,</span> allowed_tags<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
&nbsp;
	&lt;p&gt;&lt;textarea name=&quot;comment&quot; id=&quot;comment&quot; cols=&quot;81&quot; rows=&quot;10&quot; tabindex=&quot;4&quot;&gt;&lt;/textarea&gt;&lt;/p&gt;
&nbsp;
	&lt;p&gt;&lt;input name=&quot;submit&quot; type=&quot;submit&quot; id=&quot;submit&quot; tabindex=&quot;5&quot; value=&quot;Senden&quot; /&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_id_fields<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
	&lt;/p&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> do_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comment_form'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	&lt;/form&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// If registration required and not logged in ?&gt;</span>
&lt;/div&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// if you delete this the sky will fall on your head ?&gt;</span>
&nbsp;
&lt;/div&gt;</pre></div></div>

<p>Wem das zu kompliziert ist, der kanns auch einfach &uuml;bernehmen und mit dem css rumspielen. Hier der css Teil f&uuml;r die Kommentare.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* Kommentare - das Styling der Kommentare */</span>
<span style="color: #6666ff;">.commentlist</span> <span style="color: #6666ff;">.quote</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/zitat.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.commentlist</span> li <span style="color: #00AA00;">&#123;</span>
 	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">18px</span> <span style="color: #933;">22px</span> <span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#eeffee</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/bg_commentlist.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">bottom</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.commentlist</span> li.oddcomment<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#eeeeff</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/bg_commentlist.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">bottom</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.commentlist</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">list-style-image</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">list-style-type</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">list-style-position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">outside</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
.commentmeta<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">85</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">oblique</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#777777</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">-12px</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #6666ff;">.commentmeta</span> a<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#777777</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#commentwrap</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #993333;">both</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #993333;">green</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">14px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#commentwrap</span> <span style="color: #cc00cc;">#respond</span> <span style="color: #00AA00;">*</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#commentwrap</span> <span style="color: #cc00cc;">#respond</span> h6 <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Optisch ist unser Theme jetzt mal halbwegs fertig. In den weiteren Teilen gehen wir auf Verfeinerungen ein, die das Theme noch perfektionieren.</p>
<p>Das Theme zum jetzigen Stand gibt es <a href="http://wordpress.losmuchachos.at/wp-content/downloads/eigenesTheme_nachTeil8.zip">HIER</a> zum Download. Noch ist es sehr &uuml;bersichtlich !</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://wordpress.losmuchachos.at/eigenes-theme-teil-8-kommentare/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Eigenes Theme &#8211; Teil 7 &#8211; Beitr&#228;ge stylen</title>
		<link>http://wordpress.losmuchachos.at/eigenes-theme-teil-7-beitraege-stylen/</link>
		<comments>http://wordpress.losmuchachos.at/eigenes-theme-teil-7-beitraege-stylen/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 14:40:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Themes]]></category>

		<guid isPermaLink="false">http://wordpress.losmuchachos.at/?p=136</guid>
		<description><![CDATA[Damit die Beitr&#228;ge selbst was gleichsehen m&#252;ssen wir noch das CSS daf&#252;r gestalten. Am Besten ist es du erzeugst im Editor (auf HTML Ansicht) einen Post in deinem Blog in dem alle Tags vorkommen, die du so einsetzen willst. (h1-h6, em, strong, p, Bilder links, rechts &#038; mittig mit Unterschrift, Aufz&#228;hlungen usw.)
Wenn du jetzt diesen [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Damit die Beitr&auml;ge selbst was gleichsehen m&uuml;ssen wir noch das CSS daf&uuml;r gestalten. Am Besten ist es du erzeugst im Editor (auf HTML Ansicht) einen Post in deinem Blog in dem alle Tags vorkommen, die du so einsetzen willst. (h1-h6, em, strong, p, Bilder links, rechts &#038; mittig mit Unterschrift, Aufz&auml;hlungen usw.)<br />
Wenn du jetzt diesen Beitrag ansiehst, so sieht das eher mager aus. Also gilt es mal die Standard HTML Tags zu stylen. <span id="more-136"></span> Den h1 Tag haben wir bis jetzt nur in Verbindung mit der Klasse titel gestyled. Du kannst also innerhalb deiner Beitr&auml;ge andere h1 Tags verwenden, wenn du diese f&uuml;r so wichtig h&auml;ltst (siehe SEO &Uuml;berlegungen).<br />
Sourcecode ordentlich zu stylen ist schwierig, weshalb man den mal beiseite lassen und auf ein sp&auml;teres Plugin warten sollte.</p>
<h2>Styling von Bildern</h2>
<p>Wordpress bietet dem Verfasser eines Artikels die M&ouml;glichkeit Bilder hochzuladen und diese Einzuf&uuml;gen. Dabei kann man sie in der Gr&ouml;&szlig;e &auml;ndern, von Text umflie&szlig;en lassen und eine Unterschrift daruntersetzen. Dies funktioniert aber nat&uuml;rlich nur, wenn es auch im CSS Stylesheet implementiert ist. Hier mal ein Basisstyling, mit dem die Bilder in netten Rahmen dargestellt werden. Diese Namen sind durch Wordpress vorgegeben und k&ouml;nnen nicht ge&auml;ndert werden.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.aligncenter</span><span style="color: #00AA00;">,</span> div<span style="color: #6666ff;">.aligncenter</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.alignleft</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.alignright</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.wp-caption</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#eeffee</span><span style="color: #00AA00;">;</span> 
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> grey<span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span> <span style="color: #933;">5px</span> <span style="color: #933;">5px</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.wp-caption</span> img <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#cde</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.wp-caption</span> p<span style="color: #6666ff;">.wp-caption-text</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">11px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">17px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Mit diesen Schritten m&uuml;&szlig;ten auch unsere Posts ganz gut aussehen. Schau dir mal einige Posts durch und verfeinere eventuell noch das Aussehen&#8230; Dann gehts weiter im n&auml;chsten Teil.</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://wordpress.losmuchachos.at/eigenes-theme-teil-7-beitraege-stylen/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Eigenes Theme &#8211; Teil 6 &#8211; Mehr zu den Beitr&#228;gen</title>
		<link>http://wordpress.losmuchachos.at/eigenes-theme-teil-6-mehr-zu-den-beitraegen/</link>
		<comments>http://wordpress.losmuchachos.at/eigenes-theme-teil-6-mehr-zu-den-beitraegen/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 12:18:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[index.php]]></category>
		<category><![CDATA[Single View]]></category>
		<category><![CDATA[single.php]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[themeentwicklung]]></category>
		<category><![CDATA[themeerstellung]]></category>
		<category><![CDATA[Themeprogrammierung]]></category>

		<guid isPermaLink="false">http://wordpress.losmuchachos.at/?p=127</guid>
		<description><![CDATA[Bis jetzt haben wir nur den Titel und den Inhalt des Beitrags augegeben. Hier geh&#246;rt noch getuned. 
Metadaten
Von den Metadaten m&#246;chte ich in der &#220;bersicht nur das Datum und die Kategorie.
Beim Datum wird abgefragt ob eine function namens relative_date vorhanden ist. Diese Funktion werden wir sp&#228;ter noch einf&#252;gen. Derzeit ist die Funktion nicht verf&#252;gbar weshalb [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Bis jetzt haben wir nur den Titel und den Inhalt des Beitrags augegeben. Hier geh&ouml;rt noch getuned. <span id="more-127"></span></p>
<h2>Metadaten</h2>
<p>Von den Metadaten m&ouml;chte ich in der &Uuml;bersicht nur das Datum und die Kategorie.<br />
Beim Datum wird abgefragt ob eine function namens relative_date vorhanden ist. Diese Funktion werden wir sp&auml;ter noch einf&uuml;gen. Derzeit ist die Funktion nicht verf&uuml;gbar weshalb die normale Datumsfunktion ben&uuml;tzt wird (Monat und Jahr). Wenn du genauere Erkl&auml;rungen zu den Funktionen suchst, dann such im Codex. Hilfreich ist es auch einfach in Google die funktion und &#8220;codex wordpress&#8221; einzugeben. Ist meist schneller als im Codex selbst zu suchen. </p>
<h2>Inhalt des Posts</h2>
<p>Ich m&ouml;chte bei meinem Blog die Nutzung der Einzelseiten f&uuml;r einen Beitrag focieren. Dies hat einerseits SEO Gr&uuml;nde, andererseits gefallen mir Blogs nicht, die auf der Startseite die ganzen Beitr&auml;ge listen. Sieht gerade bei langen Beitr&auml;gen unm&ouml;glich aus. Ich will daher auf der Startseite nur den Anfang eines Beitrags zeigen und so zum Klick auf die Einzelseite animieren. Wordpress stellt  hier das sogenannte Excerpt zur Verf&uuml;gung, das leider nicht ganz optimal ist. Es gibt daher einige Plugins die das Excerpt verbessern, ich w&auml;hle hier aber eine andere Variante, die Mitarbeit des Autors vorausgesetzt, die sch&ouml;nste L&ouml;sung bietet. Ich werde l&auml;ngere Beitr&auml;ge mit dem more-Tag trennen. Es wird so nur der Beitrag bis zum more Tag angezeigt. Der more Tag kann per Editor eingef&uuml;gt werden.<br />
Sollte der Autor beim Feld &#8220;Auszug&#8221; etwas eintragen, dann wird dieser Auszug angezeigt.<br />
Ansonsten m&ouml;chte ich den ganzen Beitrag auf der &Uuml;bersichtsseite, was bei kurzen Beitr&auml;gen eine sinnvolle Variante ist.<br />
Wordpress bietet diese Funktionalit&auml;t nicht an, sie ist aber leicht programmiert. </p>
<h2>single.php oder index.php f&uuml;r Einzelseiten</h2>
<p>Wordpress sucht bei der Anzeige eines Einzelartikels nach der Datei single.php im Theme. Ist dieses nicht vorhanden, dann stellt es Einzelbeitr&auml;ge auch mit der index.php dar. Dieses Verhalten ist auch bei Kategorieseiten, Suchseiten usw. implementiert und ist genial. Dem Themeentwickler ist es nun freigestellt, ob er Ansichten extra codieren will, oder nicht. Nachdem es Ziel ist unser Theme extrem schlank zu halten, bleiben wir vorerst nur bei einer index.php. Vorteil ist auch, dass &Auml;nderungen leicht durchzuf&uuml;hren sind und nur die index.php angepa&szlig;t werden muss. Unterschiedliche Darstellungen m&uuml;ssen aber so nat&uuml;rlich programmiert werden, weil man ja z.b. in der Einzelanzeige immer den ganzen Text sehen will und nicht nur den Auszug. Wordpress stellt daf&uuml;r die Funktion is_single zur Verf&uuml;gung. Gleichzeitig stellen wir unter dem Beitrag in der Single View auch noch ein paar zus&auml;tzliche Metadaten und die Kommentare dar. F&uuml;r die Kommentare gibt es die Funktion comments_template, die die Datei comments.php inkludiert. Nachdem wir diese Datei noch nicht erstellt haben verwendet Wordpress die Datei aus dem Default Theme. </p>
<p>Dann sollen die Titel der Beitr&auml;ge noch mit den Einzelseiten verlinkt werden, weil man diese ja sonst nicht aufrufen kann.<br />
Hier also der neue Teil innerhalb des Loops:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">            &lt;h1 id=&quot;post-<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; class=&quot;titel&quot;&gt;
            &lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
            <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
            &lt;/a&gt;
            &lt;/h1&gt;
&nbsp;
		 	&lt;div class=&quot;metadata&quot;&gt;
			 	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">// --- datum - falls funktion &quot;relative date&quot; installiert ist, das relative Datum, sonst normal </span>
				<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'relative_date'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> relative_date<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;span class=&quot;datum&quot;&gt;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;/span&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
			    <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'im &lt;span class=&quot;datum&quot;&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'M/y'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;/span&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;nbsp;abgelegt unter&amp;nbsp;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> the_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">', '</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;/div&gt; &lt;!-- end metadata --&gt;
&nbsp;
		    &lt;div class=&quot;text&quot;&gt;
		          <span style="color: #000000; font-weight: bold;">&lt;?php</span> 
		          <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>has_excerpt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> and <span style="color: #339933;">!</span>is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> 
					<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_excerpt</span><span style="color: #339933;">;</span>
		           	<span style="color: #b1b100;">else</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'mehr davon...'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		          <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>	
		          	 &lt;div class=&quot;postinfo&quot;&gt;
            			&lt;dl&gt;
                		&lt;dt&gt;Info: &lt;/dt&gt;
                		&lt;dd&gt;&lt;em&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/em&gt; ist Beitrag Nr. <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/dd&gt;
                		&lt;dt&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Author:'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;/dt&gt;
                		&lt;dd&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> am <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_date<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> um <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/dd&gt;
                		&lt;dt&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Category:'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;/dt&gt;
                		&lt;dd&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">','</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/dd&gt;
                		&lt;dd&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_tags<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &amp;nbsp;&lt;/dd&gt;
                		&lt;dt&gt;Trackback: &lt;/dt&gt;
                		&lt;dd&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> trackback_url<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;Trackback URI&lt;/a&gt;&lt;/dd&gt;
            			&lt;/dl&gt;
            		&lt;/div&gt;
&nbsp;
		            &lt;p class=&quot;prevnextpost&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> previous_post_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&amp;nbsp;-&amp;nbsp;
		            <span style="color: #000000; font-weight: bold;">&lt;?php</span> next_post_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
&nbsp;
		    	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #666666; font-style: italic;">// endif is_single() ?&gt;</span>
		    &lt;/div&gt;
    		<span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_template<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// inkludiert comments.php in single beiträgen ?&gt;</span></pre></div></div>

<p>Das stylen erfolgt &uuml;ber die Klasse prevnextpost und postinfo. Das &uuml;berlass ich mal dem eigenen Geschmack, ansonsten kann man sich eine Version des Themes in einem sp&auml;teren Artikel downloaden.</p>
<p>Im Prinzip haben wir mit nicht mal sehr vielen Zeilen Code einen bereits fertig funktionsf&auml;higen Blog erzeugt. Es gibt eine &Uuml;bersicht, Einzelseiten und Kommentarfunktion. Die Posts machen wir im folgenden Beitrag noch etwas sch&ouml;ner.</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://wordpress.losmuchachos.at/eigenes-theme-teil-6-mehr-zu-den-beitraegen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

