<?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>David Hellmann — Grafikdesign &#38; Entwicklung &#187; Tutorials</title> <atom:link href="http://www.davidhellmann.com/category/tutorials/feed/" rel="self" type="application/rss+xml" /><link>http://www.davidhellmann.com</link> <description>David Hellmann erstellt und realisiert Grafik- und Webdesign Projekte. Auf davidhellmann.com erfahren Sie mehr über Kompetenzen und Leistungen, Projekte und Referenzen.</description> <lastBuildDate>Wed, 01 Feb 2012 22:04:35 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>&#9733; Simpler Hover Effekt für Fotos</title><link>http://www.davidhellmann.com/tutorials/simpler-hover-effekt-fuer-fotos/1633/</link> <comments>http://www.davidhellmann.com/tutorials/simpler-hover-effekt-fuer-fotos/1633/#comments</comments> <pubDate>Mon, 23 Jan 2012 12:40:15 +0000</pubDate> <dc:creator>David Hellmann</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[CSS]]></category> <guid
isPermaLink="false">http://www.davidhellmann.com/?p=1633</guid> <description><![CDATA[]]></description> <content:encoded><![CDATA[<p> Gestern hab ich das gemacht, was ich schon länger mal machen wollte. Eine <a
href="http://www.davidhellmann.com/category/fotos/">Kategorie für Fotos</a> angelegt um hin und wieder mal ein <a
href="http://www.davidhellmann.com/fotos/red-light-district/1624/">Foto</a> zu posten. Das soll auch als Motivation dienen öfters mal Fotos zu machen. Dahingehend bin ich ja leider immer etwas faul. Jetzt hab ich mir für die Fotokategorie ein paar eigene Templates angelegt. Zum einen für die Single Darstellung der Posts und zum anderen für die Archivdarstellung. Genau dort werden die Fotos als kleines Preview gezeigt und per Mouseover dunkeln diese sich bei mir etwas ab.</p> <span
id="more-1633"></span><p> Diesen kleinen netten Effekt kann man ganz einfach mit CSS machen. Und zwar legt man das Bild einfach in einen DIV, dieser bekommt eine Hintergrundfarbe (bei mir schwarz, #000) und per Mausover wird das Bild einfach leicht auf Transparent gesetzt (das schwarz scheint durch) und dunkelt somit ab. Das kann man natürlich auch mit anderen Farben machen womit sich auch eine andere Wirkung erzielen lässt. Auch mit der Stärke der Transparenz kann man noch spielen. Das ganze wird dann noch mittels Transitions schön smooth animiert um der Sache den letzten Glanz zu verleihen. Welche Browser das aktuell unterstützen? Mir egal. Danach hab ich nicht geschaut da es nichts lebensnotwendiges ist.</p><p> An schauen kann man sich das ganze bei mir im <a
href="http://www.davidhellmann.com/category/fotos/">Archiv für Fotos</a>.</p><h3>Hier der Code</h3><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
</pre></td><td
class="code"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;fotoBox&quot;&gt;
	&lt;img src=&quot;bilderordner/bild.jpg&quot; alt=&quot;bild&quot; /&gt;
&lt;/div&gt;</pre></td></tr></table></div><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.fotoBox</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #6666ff;">.fotoBox</span> img <span style="color: #00AA00;">&#123;</span>
		-moz-transition<span style="color: #00AA00;">:</span>  opacity .3s linear<span style="color: #00AA00;">;</span>
		-webkit-transition<span style="color: #00AA00;">:</span>  opacity .3s linear<span style="color: #00AA00;">;</span>
		transition<span style="color: #00AA00;">:</span>  opacity .3s linear<span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #6666ff;">.fotoBox</span> img<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
		opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.5</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div> ]]></content:encoded> <wfw:commentRss>http://www.davidhellmann.com/tutorials/simpler-hover-effekt-fuer-fotos/1633/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>&#9733; Tutorial: Filter auf Make Better Websites</title><link>http://www.davidhellmann.com/tutorials/tutorial-filter-auf-make-better-websites/1411/</link> <comments>http://www.davidhellmann.com/tutorials/tutorial-filter-auf-make-better-websites/1411/#comments</comments> <pubDate>Wed, 12 Oct 2011 08:30:41 +0000</pubDate> <dc:creator>David Hellmann</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Tutorial]]></category> <category><![CDATA[WordPress]]></category> <guid
isPermaLink="false">http://www.davidhellmann.com/?p=1411</guid> <description><![CDATA[]]></description> <content:encoded><![CDATA[<p> Vor ein paar Wochen hatte ich <a
href="http://www.makebetterwebsites.com">MakeBetterWebsites</a> ein neues Design verpasst. Ich hatte eine Seite für <a
href="http://www.makebetterwebsites.com/filter/">Filter</a> eingerichtet. Gleich gab es ein zwei Stimmen Kritik das man auf einer extra Seite landet und somit das ganze etwas umständlich ist. Ganz recht hatten Sie damit ja nicht. Es war also an der Zeit das ganze neu zu machen, so das es leicht erreichbar ist und ohne die Seite neu laden zu müssen. Seit dem Wochenende ist nun eine neue Version online wo mittels jQuery ein DIV unter der Navi eingeblendet wird wenn man auf <strong>Filter</strong> klickt. Das ganze funktioniert recht gut bin ich der Meinung und ist auch bis auf iPhone runter nutzbar.</p> <span
id="more-1411"></span><p> Vielleicht interessiert es ja den ein oder anderen wie ich das gemacht habe. Deswegen ein paar Worte und ein paar Zeilen Code dazu. Grundsätzlich muss man sagen, ist es in WordPress nicht möglich Mehrfachfilter zu setzen. Das wäre richtig schick gewesen. Vielleicht geht es auch irgendwie aber mir war keine Möglichkeit bekannt. Aber auch so ist es schon recht nett bin ich der Meinung. Fangen wir an.</p><h5>Der HTML/PHP Code (WordPress)</h5><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
</pre></td><td
class="code"><pre class="php" style="font-family:monospace;">&lt;div id=&quot;filterBox&quot;&gt;
	&lt;div id=&quot;filterContent&quot;&gt;
		&lt;div class=&quot;filterSubBox&quot;&gt;
			&lt;h3 style=&quot;width:100%; margin:20px 0 10px 0;&quot;&gt;by Color&lt;/h3&gt;
			&lt;ul class=&quot;wp-tag-cloud&quot;&gt;
				&lt;li&gt;&lt;a style=&quot;background:#b6ae94; border: 1px solid #b6ae94; color:#fff;text-shadow:none;&quot; class=&quot;beige&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/tag/beige&quot;&gt;Beige&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a style=&quot;background:#000; border: 1px solid #000; color:#fff;text-shadow:none;&quot; class=&quot;black&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/tag/black&quot;&gt;Black&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a style=&quot;background:#333; border: 1px solid #333; color:#fff;text-shadow:none;&quot; class=&quot;blackwhite&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/tag/black-and-white&quot;&gt;Black and white&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a style=&quot;background:#1f53b6; border: 1px solid #1f53b6; color:#fff;text-shadow:none;&quot; class=&quot;blue&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/tag/blue&quot;&gt;Blue&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a style=&quot;background:#583d21; border: 1px solid #583d21; color:#fff;text-shadow:none;&quot; class=&quot;brown&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/tag/brown&quot;&gt;Brown&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a style=&quot;background:#333; border: 1px solid #333; color:#fff;text-shadow:none;&quot; class=&quot;colorful&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/tag/colorful&quot;&gt;Colorful&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a style=&quot;background:#777; border: 1px solid #777; color:#fff;text-shadow:none;&quot; class=&quot;gray&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/tag/gray&quot;&gt;Gray&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a style=&quot;background:#569f2a; border: 1px solid #569f2a; color:#fff;text-shadow:none;&quot; class=&quot;green&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/tag/green&quot;&gt;Green&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a style=&quot;background:#cf7907; border: 1px solid #cf7907; color:#fff;text-shadow:none;&quot; class=&quot;orange&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/tag/orange&quot;&gt;Orange&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a style=&quot;background:#d5036e; border: 1px solid #d5036e; color:#fff;text-shadow:none;&quot; class=&quot;pink&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/tag/pink&quot;&gt;Pink&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a style=&quot;background:#7b29a8; border: 1px solid #7b29a8; color:#fff;text-shadow:none;&quot; class=&quot;purple&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/tag/purple&quot;&gt;Purple&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a style=&quot;background:#b21d0f; border: 1px solid #b21d0f; color:#fff;text-shadow:none;&quot; class=&quot;red&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/tag/red&quot;&gt;Red&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a style=&quot;background:#18c5c4; border: 1px solid #18c5c4; color:#fff;text-shadow:none;&quot; class=&quot;turquoise&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/tag/turquoise&quot;&gt;Turquoise&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a style=&quot;background:#c8a500; border: 1px solid #c8a500; color:#fff;text-shadow:none;&quot; class=&quot;yellow&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/tag/yellow&quot;&gt;Yellow&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a style=&quot;background:#fff; border: 1px solid #d4d4d4; color:#777;text-shadow:none;&quot; class=&quot;white&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/tag/white&quot;&gt;White&lt;/a&gt;&lt;/li&gt;
			&lt;/ul&gt;
		&lt;/div&gt;
		&lt;div class=&quot;filterSubBox&quot;&gt;
			&lt;h3 style=&quot;width:100%; margin:20px 0 10px 0;&quot;&gt;by Tag&lt;/h3&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$dh_tags</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
			    <span style="color: #0000ff;">'smallest'</span>                  <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">11</span><span style="color: #339933;">,</span>
			    <span style="color: #0000ff;">'largest'</span>                   <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">11</span><span style="color: #339933;">,</span>
			    <span style="color: #0000ff;">'unit'</span>                      <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'px'</span><span style="color: #339933;">,</span>
			    <span style="color: #0000ff;">'number'</span>                    <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span>
			    <span style="color: #0000ff;">'format'</span>                    <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'list'</span><span style="color: #339933;">,</span>
			    <span style="color: #0000ff;">'orderby'</span>                   <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'name'</span><span style="color: #339933;">,</span>
			    <span style="color: #0000ff;">'order'</span>                     <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'ASC'</span><span style="color: #339933;">,</span>
			    <span style="color: #0000ff;">'exclude'</span>                   <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'4,5,12,14,15,19,22,24,30,36,38,40,52,55,82'</span><span style="color: #339933;">,</span>
			    <span style="color: #0000ff;">'taxonomy'</span>                  <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'post_tag'</span><span style="color: #339933;">,</span>
			    <span style="color: #0000ff;">'echo'</span>                      <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</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> wp_tag_cloud<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$dh_tags</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;filterSubBox&quot;&gt;
			&lt;h3 style=&quot;width:100%; margin:20px 0 10px 0;&quot;&gt;by Month&lt;/h3&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$dh_month</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
			    <span style="color: #0000ff;">'type'</span>            <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'monthly'</span><span style="color: #339933;">,</span>
			    <span style="color: #0000ff;">'format'</span>          <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'html'</span><span style="color: #339933;">,</span>
			    <span style="color: #0000ff;">'show_post_count'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span>
			    <span style="color: #0000ff;">'echo'</span>            <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span>
			<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;ul class=&quot;wp-tag-cloud&quot;&gt;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_get_archives<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$dh_month</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;/ul&gt;
		&lt;/div&gt;
		&lt;div class=&quot;filterSubBox&quot;&gt;
			&lt;h3 style=&quot;width:100%; margin:20px 0 10px 0;&quot;&gt;by Year&lt;/h3&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$dh_year</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
			    <span style="color: #0000ff;">'type'</span>            <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'yearly'</span><span style="color: #339933;">,</span>
			    <span style="color: #0000ff;">'format'</span>          <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'html'</span><span style="color: #339933;">,</span>
			    <span style="color: #0000ff;">'show_post_count'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span>
			    <span style="color: #0000ff;">'echo'</span>            <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span>
			<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;ul class=&quot;wp-tag-cloud&quot;&gt;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_get_archives<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$dh_year</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;/ul&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;</pre></td></tr></table></div><p> Der erste block ist für die Farben da. Die sind von Hand angelegt da die Button auch farbig angezeigt werden sollen. Etwas von WordPress generiertes wäre hier schwierig gewesen. Im zweiten Blog wird im Grunde nur eine TagCloud ausgegeben wo die Farben von oben extrahiert sind. Im dritten Block wird nach Monaten gefiltert und im letzten schließlich nach Jahren. Das sind so die Sachen die wohl interessant sein könnten. Wie gesagt, ein Mehrfachfilter wäre richtig schick aber ich wüsste nicht wie das mit WordPress gehen soll. Aber vielleicht hat ja später jemand eine Idee in den Kommentaren. Das ist im Grunde der HTML/PHP Code und der ganze DIV wird via: display:none; versteckt.</p><h5>Der CSS Code</h5><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
</pre></td><td
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#filterBox</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;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ccc</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/smooth_wall.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">repeat</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.4</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.4</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0.4</span><span style="color: #00AA00;">&#41;</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;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#filterBox</span> <span style="color: #cc00cc;">#filterContent</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1000px</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: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#filterBox</span> <span style="color: #cc00cc;">#filterContent</span> <span style="color: #6666ff;">.filterSubBox</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">958px</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;">left</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</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: #933;">20px</span> <span style="color: #933;">20px</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
		border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</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;">#bbb</span><span style="color: #00AA00;">;</span>
		box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#bbb</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
		-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#bbb</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
		-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#bbb</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">244</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">244</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">244</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">80%</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">228</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">228</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">228</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> -o-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">244</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">244</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">244</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">80%</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">228</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">228</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">228</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> -moz-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">244</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">244</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">244</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">80%</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">228</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">228</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">228</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> -webkit-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">244</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">244</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">244</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">80%</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">228</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">228</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">228</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> -ms-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">244</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">244</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">244</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">80%</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">228</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">228</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">228</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> -webkit-gradient<span style="color: #00AA00;">&#40;</span>
			linear<span style="color: #00AA00;">,</span>
			<span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span>
			<span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span>
			color-stop<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0.8</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">244</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">244</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">244</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span>
			color-stop<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">228</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">228</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">228</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span>
		<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#filterBox</span> <span style="color: #cc00cc;">#filterContent</span> h3 <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#555</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#e0e0e0</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span> <span style="color: #933;">13px</span>/<span style="color: #933;">20px</span> <span style="color: #ff0000;">&quot;Trebuchet MS&quot;</span><span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">uppercase</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#filterBox</span> <span style="color: #cc00cc;">#filterContent</span> ul<span style="color: #6666ff;">.wp-tag-cloud</span> li a <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;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">131px</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#e8e8e8</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: #933;">10px</span><span style="color: #00AA00;">;</span>
		-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
		-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
		border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">15px</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;">#d4d4d4</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span> <span style="color: #933;">11px</span>/<span style="color: #933;">25px</span> <span style="color: #ff0000;">&quot;Trebuchet MS&quot;</span><span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#555</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#filterBox</span> <span style="color: #cc00cc;">#filterContent</span> ul<span style="color: #6666ff;">.wp-tag-cloud</span> li a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#333</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#eee</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;">#333</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#filterBox</span> <span style="color: #cc00cc;">#filterContent</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">460px</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: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#filterBox</span> <span style="color: #cc00cc;">#filterContent</span> <span style="color: #6666ff;">.filterSubBox</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">418px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#filterBox</span> <span style="color: #cc00cc;">#filterContent</span> ul<span style="color: #6666ff;">.wp-tag-cloud</span> li a <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">111px</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div><p> Das ganze was wir oben gesehen haben wird natürlich auch noch mittels CSS gestylt. Alles kein Hexenwerk. Etwas rumspielen mit Box-Shadow und Background-Gradients.</p><h5>jQuery Code</h5><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td
class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Show Filter</span>
 jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.showfilters&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toggle</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.showfilters&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;color&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;#111&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#filterBox&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
		opacity<span style="color: #339933;">:</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">,</span>
		height<span style="color: #339933;">:</span> <span style="color: #3366CC;">'toggle'</span>
	<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.showfilters&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;color&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;#107c73&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#filterBox&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
		opacity<span style="color: #339933;">:</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">,</span>
		height<span style="color: #339933;">:</span> <span style="color: #3366CC;">'toggle'</span>
	<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p> Der jQuery Part ist auch relativ kurz. Mit dem <a
href="http://api.jquery.com/toggle/">Toggle</a> Befehl wird per klick der DIV eingeblendet. Das ganze wird mit <a
href="http://api.jquery.com/animate/">Animate</a> animiert. Man glaubt es kaum was? :) Mittels opacity und height Befehl wird der Div gleichzeitig eingeblendet sowie aufgeschoben. Beim erneuten klick auf Filter geht das ganze wieder in die entgegengesetzte Richtung.</p><h5>So sieht der Filter dann aus</h5><p
class="bildxxl"> <img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/2011/10/filter.jpg" alt="" title="filter" width="1060" height="1103" class="alignleft size-full wp-image-1412" /></p><p> Das war es auch schon, vielleicht hilft es ja wem :)</p>]]></content:encoded> <wfw:commentRss>http://www.davidhellmann.com/tutorials/tutorial-filter-auf-make-better-websites/1411/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>&#9733; CSS3 Text Shadow &#8211; Ein Paar Beispiele</title><link>http://www.davidhellmann.com/tutorials/css3-text-shadow-ein-paar-beispiele/1236/</link> <comments>http://www.davidhellmann.com/tutorials/css3-text-shadow-ein-paar-beispiele/1236/#comments</comments> <pubDate>Sat, 12 Mar 2011 13:06:49 +0000</pubDate> <dc:creator>David Hellmann</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[CSS3]]></category> <category><![CDATA[Text Shadow]]></category> <category><![CDATA[Tutorial]]></category> <guid
isPermaLink="false">http://www.davidhellmann.com/?p=1236</guid> <description><![CDATA[]]></description> <content:encoded><![CDATA[<p><img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/2011/03/text-shadow.jpg" alt="" title="text-shadow" width="200" height="180" class="alignright size-full wp-image-1237" /> <strong>CSS3</strong> ist ja bekanntermaßen in aller Munde und das ist auch gut so. Lassen sich damit doch schöne Sachen machen. Hier möchte ich mal ein paar Beispiele zeigen, was man alles mit <strong>Text Shadow</strong> machen kann. Das ist reines CSS und <strong>keinerlei Grafiken</strong> werden dafür benötigt. Es gibt also Möglichkeiten mehr mit Text zu machen als einfach eine Farbe zu vergeben. Der Fantasie sind keine Grenzen gesetzt. Hier lassen sich Möglichkeiten umsetzen die in manch Grafikprogramm gar nicht so einfach zu machen wären :) Aber man sollte hier eher dem Motto folgen "weniger ist mehr" und nicht alles und jedem mit Text Shadow bombardieren. Der Reiz wäre dann sofort verloren. Am tauglichsten halte ich es bei Headlines oder besonderen Textauszeichnungen etc. Letztendlich muss man es aber selber wissen wo und wie oft man es einsetzt.</p> <a
href="http://www.davidhellmann.com/demo/css3-text-shadow/" class="show_demo">Demo anschauen<br
/><span>CSS3 Text Shadow Beispiele</span></a> <span
id="more-1236"></span><p> Wie immer ist es aktuell glaube ich so, dass der Internet Explorer es bis jetzt noch nicht unterstützt. In Version 9 könnte es vielleicht klappen? Also sollte man seine Sachen so anlegen, dass auch Browser die das ganze nicht unterstützen die Texte dennoch lesbar darstellen. Chrome, Firefox und Safari sollten jedoch keine Probleme mit der Darstellung haben.</p><h3>HTML Code</h3><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
</pre></td><td
class="code"><pre class="html" style="font-family:monospace;">&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;de&quot;&gt;
&lt;head&gt;
	&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;
&nbsp;
	&lt;title&gt;CSS 3 Text Shadow&lt;/title&gt;
&nbsp;
	&lt;!-- CSS --&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;
&nbsp;
&lt;/head&gt;
&lt;body&gt;
&nbsp;
	&lt;div class=&quot;wrapper&quot;&gt;
		&lt;h2 class=&quot;shadow_01&quot;&gt;we &amp;hearts; the wonderful css&lt;/h2&gt;
		&lt;h2 class=&quot;shadow_02&quot;&gt;we &amp;hearts; the wonderful css&lt;/h2&gt;
		&lt;h2 class=&quot;shadow_03&quot;&gt;we &amp;hearts; the wonderful css&lt;/h2&gt;
		&lt;h2 class=&quot;shadow_04&quot;&gt;we &amp;hearts; the wonderful css&lt;/h2&gt;
		&lt;h2 class=&quot;shadow_05&quot;&gt;we &amp;hearts; the wonderful css&lt;/h2&gt;
		&lt;h2 class=&quot;shadow_06&quot;&gt;we &amp;hearts; the wonderful css&lt;/h2&gt;
		&lt;h2 class=&quot;shadow_07&quot;&gt;we &amp;hearts; the wonderful css&lt;/h2&gt;
		&lt;h2 class=&quot;shadow_08&quot;&gt;we &amp;hearts; the wonderful css&lt;/h2&gt;
		&lt;h2 class=&quot;shadow_09&quot;&gt;we &amp;hearts; the wonderful css&lt;/h2&gt;
		&lt;h2 class=&quot;shadow_10&quot;&gt;we &amp;hearts; the wonderful css&lt;/h2&gt;
	&lt;/div&gt;
&nbsp;
&lt;/body&gt;
&lt;/html&gt;</pre></td></tr></table></div><h3>CSS Code</h3><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
</pre></td><td
class="code"><pre class="css" style="font-family:monospace;">h2 <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span> <span style="color: #933;">50px</span>/<span style="color: #933;">80px</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.shadow_01</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">5px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.shadow_02</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span>
		<span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">4px</span> <span style="color: #933;">4px</span> <span style="color: #933;">50px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.shadow_03</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span>
		<span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">-2px</span> <span style="color: #933;">-2px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">-2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">2px</span> <span style="color: #933;">-2px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">50px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.shadow_04</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span>
		<span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ff0</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">-2px</span> <span style="color: #933;">-2px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#f0f</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">-2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#0ff</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">2px</span> <span style="color: #933;">-2px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#0f0</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">50px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.shadow_05</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span>
		<span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#777</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#777</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#777</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">4px</span> <span style="color: #933;">4px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">5px</span> <span style="color: #933;">5px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">6px</span> <span style="color: #933;">6px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">7px</span> <span style="color: #933;">7px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">8px</span> <span style="color: #933;">8px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">9px</span> <span style="color: #933;">9px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#aaa</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">11px</span> <span style="color: #933;">11px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#aaa</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">12px</span> <span style="color: #933;">12px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#aaa</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">13px</span> <span style="color: #933;">13px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#bbb</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">14px</span> <span style="color: #933;">14px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#bbb</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">15px</span> <span style="color: #933;">15px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#bbb</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">16px</span> <span style="color: #933;">16px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">17px</span> <span style="color: #933;">17px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">18px</span> <span style="color: #933;">18px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">19px</span> <span style="color: #933;">19px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">20px</span> <span style="color: #933;">20px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">21px</span> <span style="color: #933;">21px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.shadow_06</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span>
		<span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">4px</span> <span style="color: #933;">4px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">5px</span> <span style="color: #933;">5px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">6px</span> <span style="color: #933;">6px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">7px</span> <span style="color: #933;">7px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">8px</span> <span style="color: #933;">8px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">9px</span> <span style="color: #933;">9px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">11px</span> <span style="color: #933;">11px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">12px</span> <span style="color: #933;">12px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">13px</span> <span style="color: #933;">13px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">14px</span> <span style="color: #933;">14px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">15px</span> <span style="color: #933;">15px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">16px</span> <span style="color: #933;">16px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">17px</span> <span style="color: #933;">17px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">18px</span> <span style="color: #933;">18px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">19px</span> <span style="color: #933;">19px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">20px</span> <span style="color: #933;">20px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">21px</span> <span style="color: #933;">21px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.shadow_07</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span>
		<span style="color: #933;">1px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">2px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">3px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">4px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">5px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">6px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">7px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">8px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">9px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">10px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">11px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">12px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">13px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">14px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">15px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">16px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">17px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">18px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">19px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">20px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">21px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.shadow_08</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span>
		<span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">-2px</span> <span style="color: #933;">-2px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">-2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">2px</span> <span style="color: #933;">-2px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#555</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">-3px</span> <span style="color: #933;">-3px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#555</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">-3px</span> <span style="color: #933;">3px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#555</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">3px</span> <span style="color: #933;">-3px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#555</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">4px</span> <span style="color: #933;">4px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#555</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">-4px</span> <span style="color: #933;">-4px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#555</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">-4px</span> <span style="color: #933;">4px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#555</span><span style="color: #00AA00;">,</span>
		<span style="color: #933;">4px</span> <span style="color: #933;">-4px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#555</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.shadow_09</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#333</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#555</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.shadow_10</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#777</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div><p> Die Werte sind folgendermaßen: 1px 2px 3px #000<br
/> 1px nach rechts<br
/> 2px nach unten<br
/> 3px weichzeichnung<br
/> Farbe: schwarz.<br
/><br
/> Der erste Wert gibt also die horizontale Position des Schattens an, der zweite Werte die vertikale Position, der dritte Wert die stärke der Weichzeichnung und der letzte Wert ist die Farbe des Schattens.</p> <a
href="http://www.davidhellmann.com/demo/css3-text-shadow/" class="show_demo">Demo anschauen<br
/><span>CSS3 Text Shadow Beispiele</span></a>]]></content:encoded> <wfw:commentRss>http://www.davidhellmann.com/tutorials/css3-text-shadow-ein-paar-beispiele/1236/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> <item><title>&#9733; Make Better Shirts, wieso schon wieder was neues???</title><link>http://www.davidhellmann.com/tutorials/make-better-shirts-wieso-schon-wieder-was-neues/1185/</link> <comments>http://www.davidhellmann.com/tutorials/make-better-shirts-wieso-schon-wieder-was-neues/1185/#comments</comments> <pubDate>Sun, 19 Dec 2010 10:00:09 +0000</pubDate> <dc:creator>David Hellmann</dc:creator> <category><![CDATA[Blogging]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[Design]]></category> <category><![CDATA[Make Better Shirts]]></category> <category><![CDATA[Tutorial]]></category> <guid
isPermaLink="false">http://www.davidhellmann.com/?p=1185</guid> <description><![CDATA[]]></description> <content:encoded><![CDATA[<p
class="bild"> <a
href="http://www.davidhellmann.com/wordpress/wp-content/uploads/2010/12/mbs.jpg"><img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/2010/12/mbs.jpg" alt="" title="mbs" width="600" height="300" class="alignright size-full wp-image-1186" /></a></p><p> Gute Frage wenn ich ehrlich bin. Es kam eher Zufällig zu der Entscheidung <a
href="http://www.makebettershirts.com">Make Better Shirts</a> ins Leben zu rufen. Aber mittlerweile muss ich sagen, dass es eine gute Entscheidung war. Warum? Darum! Nein im Ernst, ich bin ein <strong>T-Shirt Fan</strong> und habe gerne viele davon in meinem Regal. Warum also nicht eine Seite machen, die sich mit T-Shirts beschäftigt. Natürlich erhoffe ich mir auch was davon. Was genau das ist kann sich jeder denken... Die Weltherrschaft!!! Nein, ehrlich gesagt erhoffe ich mir davon den ein oder anderen Geheimtip für super tolle schicke T-Shirts zu bekommen.</p> <span
id="more-1185"></span><blockquote><p> Warum also nicht eine Seite machen, die sich mit T-Shirts beschäftigt.</p></blockquote><p> Ein paar Sätze möchte ich auch mal zum <strong>Design</strong> los werden. Mir war schnell klar wie sich das ganze letztendlich anfühlen soll und auch wird. Die Idee war, eine Website zu entwickeln, die man <strong>auf allen Geräten</strong> nutzen kann, ohne auf irgendetwas verzichten zu müssen. Sowohl der Benutzer am <strong>iPhone</strong> als auch der am <strong>27" Monitor</strong> soll gleichermaßen Freude beim Besuch der Website haben. Ob das so ist kann jeder selber testen. Ich bin der Meinung, das es ganz gut geklappt hat.</p><blockquote><p>Gelb ist doch einfach mal nur geil!</p></blockquote><p>Gelb! Genau, das war auch etwas das sofort fest stand. Das verlangen danach eine Website zu machen wo Gelb zur primären Farbe gehört musste endlich gestillt werden. Oft angefangen aber nie zu Ende gebracht. Das hat nun ein Ende! Gelb ist doch einfach mal nur geil! Dazu noch etwas weiß und grau/schwarz und man bekommt ganz sicher ein tolles Ergebnis mit dem alle zufrieden sind.</p><p>Das Design ist im großen und ganzen sehr einfach gehalten. Das ganze wurde in ein <strong>Grid</strong> gepresst und ist somit recht <strong>skalierbar</strong>. Genau diese <strong>Skalierbarkeit</strong> macht den Reiz der Website aus. Highlight ist für mich eine Art <strong>Device-Detection</strong>. Unterm Logo befindet sich ein Icon welches das Gerät anzeigt mit dem man surft bzw. besser gesagt zeigt es das Gerät an, zu welchem die aktuell genutzte Auflösung passt. Das wird schlicht und einfach mit <strong>CSS Media Queries</strong> umgesetzt. Damit kann man wunderbar Auflösungen und viele andere Dinge abfragen und in Abhängigkeit darauf reagieren.</p><h3>Ansicht am Computer</h3><p
class="bild"> <a
href="http://www.davidhellmann.com/wordpress/wp-content/uploads/2010/12/makebettershirts_01_img01.jpg"><img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/2010/12/makebettershirts_01_img01-600x1635.jpg" alt="" title="makebettershirts_01_img01" width="600" height="1635" class="alignright size-large wp-image-1196" /></a></p><h3>Ansicht auf dem iPhone</h3><p
class="bild"> <a
href="http://www.davidhellmann.com/wordpress/wp-content/uploads/2010/12/mbsiphone.jpg"><img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/2010/12/mbsiphone-600x1025.jpg" alt="" title="mbsiphone" width="600" height="1025" class="alignright size-large wp-image-1195" /></a></p><p>Mit diesen CSS Media Queries wurden auch die verschiedenen Ansichten der Website umgesetzt. Ein sehr <strong>mächtiges Feature</strong> womit man viele nette Sachen machen kann.</p><h3>Device Detection Code Beispiel</h3><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
</pre></td><td
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#sidebar</span> h1 .widescreen<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#sidebar</span> h1 .screen<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#sidebar</span> h1 .laptop<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#sidebar</span> h1 .ipad<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.iphone</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">46px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-99999px</span><span style="color: #00AA00;">;</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/screenIcons.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-160px</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">50%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</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: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-23px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.screen</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;">none</span><span style="color: #00AA00;">;</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/screenIcons.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-120px</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.laptop</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;">none</span><span style="color: #00AA00;">;</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/screenIcons.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-80px</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.ipad</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;">none</span><span style="color: #00AA00;">;</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/screenIcons.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-40px</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.iphone</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;">none</span><span style="color: #00AA00;">;</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/screenIcons.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* &lt; 1880 */</span>
<span style="color: #a1a100;">@media screen and (max-width:1879px) {</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .screen<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .laptop<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .ipad<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.iphone</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;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.widescreen</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: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* &lt; 1600 */</span>
<span style="color: #a1a100;">@media screen and (max-width:1599px) {</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .widescreen<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .laptop<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .ipad<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.iphone</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;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.screen</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: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* &lt; 1320 */</span>
<span style="color: #a1a100;">@media screen and (max-width:1319px) {</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .widescreen<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .screen<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .ipad<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.iphone</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;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.laptop</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: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* &lt; 1039 */</span>
<span style="color: #a1a100;">@media screen and (max-width:1039px) and (min-device-width: 1025px) {</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .widescreen<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .screen<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .laptop<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.iphone</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;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.ipad</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: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* &lt; 759 */</span>
<span style="color: #a1a100;">@media screen and (max-width:759px) and (min-device-width: 1025px) {</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .widescreen<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .screen<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .laptop<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.ipad</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;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.iphone</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: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;">/* &lt; 1039 */</span>
<span style="color: #a1a100;">@media only screen and (max-device-width: 1024px) and (orientation:landscape) {</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .widescreen<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .screen<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .laptop<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.iphone</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;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.ipad</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: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* &lt; 1039 */</span>
<span style="color: #a1a100;">@media only screen and (max-device-width: 768px) and (orientation:portrait) {</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .widescreen<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .screen<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .laptop<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.iphone</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;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.ipad</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: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* &lt; 759 */</span>
<span style="color: #a1a100;">@media only screen and (max-device-width: 480px) and (orientation:landscape), only screen and (max-device-width: 320px) and (orientation:portrait) {</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .widescreen<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .screen<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 .laptop<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.ipad</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;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#sidebar</span> h1 <span style="color: #6666ff;">.iphone</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: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div><p> Man kann sofort sehen das es etwas mehr Denkarbeit ist als normales CSS schreiben und natürlich ist es auch mehr Aufwand beim tippen. Im Grunde wird hier nur die <strong>Bildschirmauflösung</strong> bzw. die <strong>maximale Geräteauflösung</strong> abgefragt. Bei den <strong>iPad</strong> und <strong>iPhone</strong> dann noch ob es sich im horizontalen oder vertikalen Zustand befindet. Dem entsprechend werden dann die Icons aus bzw. eingeblendet. Diese kleine Beispiel soll nur mal einen kleinen Einblick geben was man mit den CSS Media Queries anfangen kann. Es gibt weitaus mehr Möglichkeiten.</p><p>Genug von der Technik hin zu dem menschlichen Aspekt von <strong>Make Better Shirts</strong>. Endlich kann ich mal mit <a
href="http://www.jandienstknecht.com">Jan</a> zusammen ein Projekt betreuen wo wir beide gleichermaßen Freude daran haben. Ist das nicht schön?!! So, Schluss jetzt. Viel Spaß beim besuchen der Website(s).</p><p> <a
href="http://www.makebettershirts.com">www.makebettershirts.com</a><br
/> <a
href="http://www.makebetterflyers.com">www.makebetterflyers.com</a><br
/> <a
href="http://www.makebetterwebsites.com">www.makebetterwebsites.com</a><br
/> <a
href="http://www.makebetterapps.com">www.makebetterapps.com</a></p>]]></content:encoded> <wfw:commentRss>http://www.davidhellmann.com/tutorials/make-better-shirts-wieso-schon-wieder-was-neues/1185/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>&#9733; Remember the Milk richtig nutzen</title><link>http://www.davidhellmann.com/tutorials/remember-the-milk-richtig-nutzen/739/</link> <comments>http://www.davidhellmann.com/tutorials/remember-the-milk-richtig-nutzen/739/#comments</comments> <pubDate>Sun, 04 Oct 2009 01:54:46 +0000</pubDate> <dc:creator>David Hellmann</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[Google Calendar]]></category> <category><![CDATA[GTD]]></category> <category><![CDATA[Remember the Milk]]></category> <category><![CDATA[ToDo]]></category> <category><![CDATA[Tutorial]]></category> <guid
isPermaLink="false">http://www.davidhellmann.com/?p=739</guid> <description><![CDATA[]]></description> <content:encoded><![CDATA[<p> <img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/2009/09/remember-the-milk.jpg" alt="remember-the-milk" title="remember-the-milk" width="200" height="180" class="alignright size-full wp-image-720" />Gestern habe ich mich dann endgültig für <a
href="http://www.rememberthemilk.com">Remember the Milk</a> entschieden und mir meinen <strong>Pro Account</strong> geholt. Jetzt sollte das ganze natürlich auch sinnvoll genutzt werden. Es sollte quasi ein System in die ganze Sache gebracht werden.  Bisher hatte ich einfach <strong>Listen</strong> angelegt für verschiedene Dinge wie: <strong>Privat</strong>, <strong>Schule</strong>, <strong>Arbeit</strong>, <strong>Verein</strong> und und und. Doch irgendwann kommt es hier zu einem <strong>Listenchaos</strong> und man hat hier zisch Listen und im Grunde keinen Überblick mehr. Also mal ein wenig <a
href="http://www.google.com">Google</a> bemüht und da kamen die ein oder anderen <strong>Lösungsansätze</strong> zum Vorschein.</p> <span
id="more-739"></span><h4>Smart Lists anstelle von normalen Listen</h4><p> <strong>Remember the Milk</strong> kann deutlich mehr als einfach nur Listen anlegen und darin ein paar <strong>ToDo's</strong> zu posten. Mit <strong>Smart Lists</strong> kann man seine Listen <strong>dynamisch</strong> machen. Man trägt jetzt seine <strong>Aufgaben</strong> nicht mehr in irgendwelche Listen ein sondern nutzt im Endeffekt nur noch eine. Dort stehen dann alle Aufgaben drin. Jetzt legt man sich <strong>Smart Lists</strong> an um die Aufgaben automatisch in diese einordnen zu lassen. Klingt erstmal eher kontraproduktiv und viel zu kompliziert aber es klappt eigentlich ganz gut. Das ganze ist im Endeffekt auch wesentlich mächtiger wie wir später sehen werden. Grundvoraussetzung dafür ist, dass man seine Einträge alle ordentlich mit <strong>Tags</strong> versieht. Es gibt hierzu eine reihe von <strong>Anwendungsbeispielen</strong> wie man das am besten macht. Ich habe jetzt einen Mix aus mehreren davon den ich hier vorstellen möchte.</p><h4>Tags richtig vergeben (Struktur rein bringen)</h4><p> Man muss sich vorher klar überlegen wie man das ganze strukturiert sonst wird es später schwer wenn man mal mehr als eine Hand voll Aufgaben eingetragen hat. Man könnte natürlich einfach taggen wie folgt: Schule, Klausur, Deutsch. So hätte man drei Tags die auch ganz gut verständlich sind aber wird das ganze dann etwas komplexer ist da keine Übersicht mehr gegeben. Persönlich nutze ich jetzt folgende <strong>Struktur</strong>: <br
/><br
/> <strong>.tagName</strong> = Projekte<br
/> (Bsp.: <strong>.klausuren</strong>, <strong>.makebetterwebsites</strong>, <strong>.spielen</strong>)<br
/> Alle meine Projekte haben quasi eine "<strong>.</strong>" vor den <strong>Projektname</strong> und somit sind sie leichter zu finden da sie immer zusammen stehen werden und markiert sind.<br
/><br
/> <strong>+tagName</strong> = Leistungen in den Projekten<br
/> (Bsp.: <strong>+design</strong>, <strong>+pflege</strong>, <strong>+monopoly</strong>)<br
/> Wenn ich jetzt das Projekt <strong>.makebetterwebsites</strong> habe und dort eine Aufgabe "<strong>Täglich zwei Seiten posten</strong>" gebe ich ihr noch das Tag "<strong>+pflege</strong>" mit. Somit haben wir die Aufgabe "<strong>Täglich zwei Seiten posten</strong>" im Projekt: "<strong>.makebetterwebsites</strong>" mit der Leistung: "<strong>+pflege</strong>".<br
/><br
/> <strong>@tagName</strong> = Kontext<br
/> (Bsp.: <strong>@home</strong>, <strong>@mac</strong>, <strong>@schule</strong>)<br
/> Diese Tags sind sind dazu da um Zusammenhänge darzustellen. Nehmen wir das Beispiel mit dem Projekt "<strong>.makebetterwebsites</strong>" mit der Leistung: "<strong>+pflege</strong>" und dort haben wir dann den Kontext "<strong>@mac</strong>". Was dann so viel heißt wie "<strong>Pflege Makebetterwebsites am Mac</strong>". :)</p><p
class="bild"> <img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/2009/10/rememberthemilk-tagging.jpg" alt="rememberthemilk-tagging" title="rememberthemilk-tagging" width="600" height="141" class="size-full wp-image-740" /></p><h4>Was bringen die Zeichen (. + @) vor den Tagnamen?</h4><p> Im Grunde ganz einfach. Dadurch werden die Sachen <strong>Gruppiert</strong>. Alle Projekt-, alle Leistungs- und alle Kontext Tags stehen zusammen. Somit hat man eine viel <strong>größere Übersicht</strong> und findet sich wohl auch schneller zurecht. Wie das ganze dann letztendlich ausschaut sieht man in folgendem Bild.</p><p
class="bild"> <img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/2009/10/rememberthemilk-tagcloud.jpg" alt="rememberthemilk-tagcloud" title="rememberthemilk-tagcloud" width="600" height="220" class="size-full wp-image-742" /></p><h4>Smart Lists anlegen</h4><p> <strong>Smart Lists</strong> sind schlaue Listen deren Inhalt <strong>dynamisch generiert</strong> wird. Wer einen <a
href="http://www.apple.com/de/getamac/">Mac</a> hat wird sie wohl schon kennen da aber meist unter dem Namen "<strong>Smart Folder</strong>". Der Sinn ist aber der gleiche. Bei Remember the Milk werden Smart Lists erstellt indem man Suchergebnisse speichert. Das ganze ist sehr komplex. <a
href="http://www.rememberthemilk.com/help/answers/search/advanced.rtm">Hier</a> kann man sich mal anschauen wie und mit was man das perfekte <strong>Suchergebnis</strong> bekommen kann. Man kann das ganze auch in den Erweiterten Suchergebnissen zusammen klicken (siehe Bild)</p><p
class="bild"> <img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/2009/10/rememberthemilk-suche.jpg" alt="rememberthemilk-suche" title="rememberthemilk-suche" width="600" height="220" class="size-full wp-image-741" /></p><h4>Beispiele für Smart Lists</h4><p> Wie gesagt habe ich mir ein paar Beispiele angeschaut und mir dann meine persönlichen Smart Lists erstellt. Hier mal eine das ein oder andere Beispiel was zeigen soll was alles möglich ist.<br
/><br
/> Es gibt eine Liste die keine Smart List ist und das ist die <strong>Default Liste</strong>, da wolle alle Aufgaben abgelegt werden die ich erstelle. Ausnahme sind Aufgaben die per Mail versendet werden, diese landen in der Liste "<strong>Eingang</strong>". OK, fangen wir an mit den Listen:<br
/><br
/> Name: <strong>.</strong><br
/> Beschreibung: Die Liste "<strong>.</strong>" ist meine Standard Liste für alle Aufgaben. Hier werden alle Aufgaben abgelegt. Man könnte Sie auch "alle Aufgaben" nennen oder sonst wie.<br
/><br
/> Name: <strong>!notTagged</strong><br
/> Suchfunktion: <strong>isTagged:false</strong><br
/> Beschreibung: Hier landen alle Aufgaben die noch nicht mit Tags versehen wurden. Grund dafür sind das die Aufgaben noch nicht zugeordnet werden konnten oder es einfach vergessen wurde. Hier hat man Sie dann schnell im Blickfeld und kann Sie nachträglich bearbeiten.<br
/><br
/> Name: <strong><2weeks</strong><br
/> Suchfunktion: <strong>not(tag:-someday) (due:never or dueBefore:"15 days")</strong><br
/> Beschreibung: <strong><2weeks</strong> steht für <strong>die nächsten zwei Wochen</strong>. Hier werden alle Aufgaben angezeigt die: das Tag "<strong>-someday</strong>" nicht besitzen, (Aufgaben ohne festen Termin/Zeitpunkt), <strong>nicht erledigt</strong> wurden und in den <strong>nächsten zwei Wochen</strong> erledigt werden müssen.<br
/><br
/> Name: <strong>>2weeks</strong><br
/> Suchfunktion: <strong>not(tag:-someday) (dueAfter:"14 days")</strong><br
/> Beschreibung: <strong>>2weeks</strong> steht für <strong>nach zwei Wochen</strong>. Hier erscheinen alle Aufgaben die: das Tag "<strong>-someday</strong>" nicht besitzen und erst <strong>in zwei Wochen</strong> erledigt werden müssen.<br
/><br
/> Name: <strong>?someday</strong><br
/> Suchfunktion: <strong>tag:-someday</strong><br
/> Beschreibung: Hier werden alle Aufgaben angezeigt die das Tag: "<strong>-someday</strong>" haben. Damit hat man eine Übersicht über Aufgaben die noch oder überhaupt keinen Termin haben.<br
/><br
/> Name: <strong>@home</strong><br
/> Suchfunktion: <strong>tag:@home</strong><br
/> Beschreibung: Hier werden alle Aufgaben mit dem Tag: "<strong>@home</strong>" angezeigt.<br
/><br
/> Name: <strong>@mac</strong><br
/> Suchfunktion: <strong>tag:@mac</strong><br
/> Beschreibung: Hier werden alle Aufgaben mit dem Tag: "<strong>@mac</strong>" angezeigt.<br
/><br
/> Name: <strong>@outdoor</strong><br
/> Suchfunktion: <strong>tag:@outdoor</strong><br
/> Beschreibung: Hier werden alle Aufgaben mit dem Tag: "<strong>@outdoor</strong>" angezeigt.<br
/><br
/> Name: <strong>@phone</strong><br
/> Suchfunktion: <strong>tag:@phone</strong><br
/> Beschreibung: Hier werden alle Aufgaben mit dem Tag: "<strong>@phone</strong>" angezeigt.<br
/><br
/> Name: <strong>@schule</strong><br
/> Suchfunktion: <strong>tag:@schule</strong><br
/> Beschreibung: Hier werden alle Aufgaben mit dem Tag: "<strong>@schule</strong>" angezeigt.<br
/><br
/> Ich denke das sollte als kleiner Einblick reichen. Es sind hier eigentlich keine Grenzen gesetzt und jeder kann sich nach belieben <strong>Smart Lists</strong> erstellen.</p><h4>RTM Aufgaben im Google Calender anzeigen</h4><p> Ein weiteres <strong>Killerfeature</strong> was ich gestern dann noch gefunden habe ist die problemlose Einbindung in den <strong>Google Kalender</strong>. Man kann hier Problemlos aussuchen welche Liste man in dem Kalender angezeigt haben möchte. Wie das ganze Funktioniert findet man hier: <a
href="http://www.rememberthemilk.com/help/answers/icalendar/googlecalendar.rtm">Remember the Milk in Google Kalender einbinden</a>.</p><h4>Fazit</h4><p> Ich hatte <strong>Remember the Milk</strong> vor langer Zeit schon ausprobiert aber das Potential dahinter nicht erkannt und deswegen erstmal wieder auf Eis gelegt. Vor ein paar Wochen kam ich wieder drauf. Was bleibt zu sagen. Mit der <a
href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=293561396&#038;mt=8">iPhone App</a> und dem guten Webinterface hat man eine Killeranwendung und ich überlege ob ich "<strong>The Hit List</strong>" überhautp noch brauche. Mal schauen wann deren iPhone App kommt und was die kann. Von mir klar die <strong>Note 1 für Remember the Milk</strong>!</p>]]></content:encoded> <wfw:commentRss>http://www.davidhellmann.com/tutorials/remember-the-milk-richtig-nutzen/739/feed/</wfw:commentRss> <slash:comments>20</slash:comments> </item> <item><title>&#9733; Tutorial &#8211; Ein Portfolio mit WordPress realisieren</title><link>http://www.davidhellmann.com/tutorials/tutorial-ein-portfolio-mit-wordpress-realisieren/663/</link> <comments>http://www.davidhellmann.com/tutorials/tutorial-ein-portfolio-mit-wordpress-realisieren/663/#comments</comments> <pubDate>Mon, 31 Aug 2009 10:27:50 +0000</pubDate> <dc:creator>David Hellmann</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[Portfolio]]></category> <category><![CDATA[Tutorial]]></category> <category><![CDATA[Webentwicklung]]></category> <category><![CDATA[WordPress]]></category> <guid
isPermaLink="false">http://www.davidhellmann.com/?p=663</guid> <description><![CDATA[]]></description> <content:encoded><![CDATA[<p> <img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/2009/08/portfolio.jpg" alt="portfolio" title="portfolio" width="200" height="180" class="right" /> Hin und wieder taucht bei mir die Frage auf, wie ich mein <a
href="http://www.davidhellmann.com/portfolio">Portfolio</a> hier umgesetzt habe. Meine Antwort war recht simple bisher: "<strong>Mit Custom Fields und Artikeln</strong>". Aber wenn ich eherlich bin war es dann doch ein wenig mehr arbeit. Um es nicht jedem einzeln zu erklären was sehr Zeitaufwendig werden könnte werde ich hier versuchen das ganze in einem kleinen Tutorial zu erläutern. Natürlich ist das nicht "DER" Weg und es wird eine vielzahl an anderen Lösungen geben doch ich bin mit dieser hier sehr zufrieden bisher.</p> <span
id="more-663"></span><h4>Vorbereitung - Verzeichnisstruktur und Dateinamen</h4><p> Kommen wir zum ersten Teil, das anlegen der Verzeichnisstruktur. Habe mir hier mehrfach Gedanken gemacht wie es am besten und sinnvollsten ist und das war die letzte Version meiner Gedanken.<br
/><br
/> <strong>Verzeichnisstruktur:</strong><br
/><br
/> <strong>Portfolio</strong> (Hauptordner)<br
/> - <strong>apparel</strong> (Ordner für Kleidung)<br
/> -- <strong>picture</strong> (Große Bilder im Portfoliobereich)<br
/> -- <strong>preview</strong> (Mittlere Bilder in der Portfoliovorschau)<br
/> -- <strong>thumb</strong> (Kleine Bilder für die Portfolioschnellansicht (Startseite))<br
/> - <strong>print</strong> (Ordner für Print)<br
/> -- <strong>pictur</strong>e (Große Bilder im Portfoliobereich)<br
/> -- <strong>preview</strong> (Mittlere Bilder in der Portfoliovorschau)<br
/> -- <strong>thumb</strong> (Kleine Bilder für die Portfolioschnellansicht (Startseite))<br
/> - <strong>web</strong> (Ordner für Web)<br
/> -- <strong>browser</strong> (Große Bilder im Portfoliobereich)<br
/> -- <strong>preview</strong> (Mittlere Bilder in der Portfoliovorschau)<br
/> -- <strong>slide</strong> (Bilder für Slideshow im Macbook Pro)<br
/> -- <strong>thumb</strong> (Kleine Bilder für die Portfolioschnellansicht (Startseite))<br
/></p><p
class="bild"> Im <strong>FTP Programm</strong> oder wie hier <strong>Dreamweaver</strong> schaut das dann so aus: <img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/2009/08/verzeichnisstruktur.jpg" alt="verzeichnisstruktur" title="verzeichnisstruktur" width="600" height="257" class="alignnone size-full wp-image-666" /></p><p> Nun kommen wir zu den Dateinamen. Es sollte endlos erweiterbar sein ohne groß den Überblick zu verlieren. Es klappt bisher super :)<br
/><br
/> Der Dateiname ist wie folgt aufgebaut:<br
/><br
/> <strong>projektname_zähler_bildnummer.erweiterung</strong><br
/> was dann konkret so ausschaut:<br
/> <strong>daivdhellmann_02_img01.jpg</strong><br
/><br
/> <strong>davidhellmann</strong> = Projektname<br
/><strong>02</strong> = 2tes Projekt dafür<br
/> <strong>img01</strong> = Bild 01<br
/><br
/> So werden die Bilder in jedem Ordner abgelegt. Es gibt immer nur ein Bild außer bei den Picture und Browser Bildern, da sind bis zu vier Bildern möglich (kann erweitert werden). Das sind dann die Bilder in der Detailansicht. Es würde dann in diesem Ordner so aussehen: <br
/> <strong>daivdhellmann_02_img01.jpg</strong><br
/> <strong>daivdhellmann_02_img02.jpg</strong><br
/> <strong>daivdhellmann_02_img03.jpg</strong><br
/><br
/> Sollte soweit alles verständlich sein. Falls nicht einfach in den Kommentaren nachfragen.<br
/> Die größe der Bilder lasse ich hier mal außer acht, dass muss jeder selbst entscheiden was da brauchbar ist.</p><h4>WordPress vorbereiten</h4><p> Als erstes erstellt man am besten die <strong>Kategorien</strong> für die späteren <strong>Portfoliobereiche</strong>. <br
/><br
/> <strong>portfolio</strong> (ID=3) Diese dient nur als Oberkategorie.<br
/> - <strong>apparel</strong> (ID=6) Hier kommen die Apparel Sachen rein.<br
/> - <strong>print</strong>(ID=5) Hier kommen die Print Sachen rein.<br
/> - <strong>web</strong><(ID=4) Hier kommen die Web Sachen rein.<br
/><br
/></p><p
class="bild"> Das ganze sieht dann in <strong>WordPress</strong> so aus: <img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/2009/08/kategorien.jpg" alt="kategorien" title="kategorien" width="600" height="185" class="alignnone size-full wp-image-667" /></p><h4>Gebrauchte Funktionen</h4><p> Funktion 1 ist diese, das <strong>für jede Kategorie eine eigene single.php</strong> Datei verwendet wird. Wenn diese nicht vorhanden ist dann  wird die normale single.php genommen. Diese single.php für die einzelnen Kategorien muss man selber anlegen und zwar: <strong>single-4.php</strong> für die Kategorie mit der <strong>ID=4</strong> für "<strong>Web</strong>".</p><h4>Jede Kategorie bekommt eigene single.php zugewiesen</h4><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td
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;">// Jede Kategorie bekommt eine eigene single.php. Falls diese nicht vorhanden ist wird die normale single.php genutzt.</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'single_template'</span><span style="color: #339933;">,</span> <span style="color: #990000;">create_function</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'$t'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'foreach( (array) get_the_category() as $cat ) {
	if ( file_exists(TEMPLATEPATH . &quot;/single-{$cat-&gt;term_id}.php&quot;) )
	return TEMPLATEPATH . &quot;/single-{$cat-&gt;term_id}.php&quot;; } return $t;'</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></pre></td></tr></table></div><h4>Portfolio Kategorien von den normalen Blogposts ausschließen</h4><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Kategorien von der Startseite ausschließen</span>
<span style="color: #000000; font-weight: bold;">function</span> filter_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wp_query</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>is_home<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: #000088;">$wp_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'category__not_in'</span><span style="color: #339933;">,</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">6</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pre_get_posts'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'filter_posts'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p> Beide Funktionen kommen in die <strong>functions.php</strong> im <strong>Theme Ordner</strong>.<br
/> Das hätten wir geschafft. Jede Portfolio Kategorie bekommt nachher eine eigene Templatedatei. Die Portfolio Artikel tauchen nun nicht mehr unter den normalen Blogartikeln auf was so auch keinen Sinn machen würde.</p><h4>Templates erstellen</h4><p> Das sind nicht wenige. Es gibt "apparel.php", "<strong>print.php</strong>", "<strong>web.php</strong>", "<strong>portfolio.php</strong>", "<strong>portfolio-list.php</strong>", "<strong>single-4.php</strong>", "<strong>single-5.php</strong>" und "<strong>single-6.php</strong>". Das sollten alle sein. Ich werde jetzt den kompletten Inhalt dieser Dateien hier abbilden. Im Grunde sind es ganz normale <strong>Loops</strong> wo Artikel und deren <strong>Benutzerdefinierten Felder</strong> ausgelesen werden.</p><h4>apparel.php</h4><p>Diese Datei ist ist für die Voransicht der Apparel Sachen zuständig</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
</pre></td><td
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;">/*
Template Name: Apparel
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<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>
&lt;!-- Left --&gt;
&lt;div class=&quot;content-portfolio&quot;&gt;
&nbsp;
&lt;ul class=&quot;brotnavi&quot;&gt;
	&lt;li&gt;&lt;a class=&quot;list&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/list&quot;&gt;Liste&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;apparel apparel-aktiv&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/apparel&quot;&gt;Apparel Stuff&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;print&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/print&quot;&gt;Print Stuff&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;web&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/web&quot;&gt;Web Stuff&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;overview&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/&quot;&gt;Overview&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&nbsp;
&lt;a name=&quot;apparelstuff&quot;&gt;&lt;/a&gt;&lt;h2 class=&quot;apparel&quot;&gt;Apparel Stuff&lt;/h2&gt;
&lt;hr class=&quot;portfolio&quot; /&gt;
&lt;ul class=&quot;portfolio-preview&quot;&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$myPosts</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$myPosts</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #000088;">$my_query</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cat=6&amp;showposts=-1&amp;orderby=date'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><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: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><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: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	 <span style="color: #000088;">$myPosts</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: #339933;">.</span> <span style="color: #0000ff;">&quot;,&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;li&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$ordner</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'ordner'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$preview</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'preview'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$name</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'name'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$umfang</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'umfang'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	&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;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/wp-content/uploads/portfolio/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/preview/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$preview</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;<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;&lt;/a&gt;
	&lt;div class=&quot;ordner&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
	&lt;h3&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;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$name</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h3&gt;
	&lt;cite&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$umfang</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/cite&gt;
&lt;/li&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;
&nbsp;
&lt;/div&gt;
<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></td></tr></table></div><h4>print.php</h4><p>Diese Datei ist ist für die Voransicht der Print Sachen zuständig</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
</pre></td><td
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;">/*
Template Name: Print
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<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>
&lt;!-- Left --&gt;
&lt;div class=&quot;content-portfolio&quot;&gt;
&nbsp;
&lt;ul class=&quot;brotnavi&quot;&gt;
	&lt;li&gt;&lt;a class=&quot;list&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/list&quot;&gt;Liste&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;apparel&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/apparel&quot;&gt;Apparel Stuff&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;print print-aktiv&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/print&quot;&gt;Print Stuff&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;web&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/web&quot;&gt;Web Stuff&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;overview&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/&quot;&gt;Overview&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&nbsp;
&lt;a name=&quot;printstuff&quot;&gt;&lt;/a&gt;&lt;h2 class=&quot;print&quot;&gt;Print Stuff&lt;/h2&gt;
&lt;hr class=&quot;portfolio&quot; /&gt;
&lt;ul class=&quot;portfolio-preview&quot;&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$myPosts</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$myPosts</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #000088;">$my_query</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cat=5&amp;showposts=-1&amp;orderby=date'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><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: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><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: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	 <span style="color: #000088;">$myPosts</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: #339933;">.</span> <span style="color: #0000ff;">&quot;,&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;li&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$ordner</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'ordner'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$preview</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'preview'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$name</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'name'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$umfang</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'umfang'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	&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;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/wp-content/uploads/portfolio/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/preview/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$preview</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;<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;&lt;/a&gt;
	&lt;div class=&quot;ordner&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
	&lt;h3&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;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$name</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h3&gt;
	&lt;cite&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$umfang</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/cite&gt;
&lt;/li&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;
&nbsp;
&lt;/div&gt;
<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></td></tr></table></div><h4>web.php</h4><p>Diese Datei ist ist für die Voransicht der Web Sachen zuständig</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
</pre></td><td
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;">/*
Template Name: Web
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<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>
&lt;!-- Left --&gt;
&lt;div class=&quot;content-portfolio&quot;&gt;
&nbsp;
&lt;ul class=&quot;brotnavi&quot;&gt;
    &lt;li&gt;&lt;a class=&quot;list&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/list&quot;&gt;Liste&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a class=&quot;apparel&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/apparel&quot;&gt;Apparel Stuff&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a class=&quot;print&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/print&quot;&gt;Print Stuff&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a class=&quot;web web-aktiv&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/web&quot;&gt;Web Stuff&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a class=&quot;overview&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/&quot;&gt;Overview&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&nbsp;
&lt;a name=&quot;webstuff&quot;&gt;&lt;/a&gt;&lt;h2 class=&quot;web&quot;&gt;Web Stuff&lt;/h2&gt;
&lt;hr class=&quot;portfolio&quot; /&gt;
&nbsp;
&lt;ul class=&quot;portfolio-preview&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$myPosts</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$myPosts</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #000088;">$my_query</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cat=4&amp;showposts=-1&amp;orderby=date'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><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: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><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: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	 <span style="color: #000088;">$myPosts</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: #339933;">.</span> <span style="color: #0000ff;">&quot;,&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;li&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$ordner</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'ordner'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$preview</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'preview'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$name</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'name'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$umfang</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'umfang'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	&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;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/wp-content/uploads/portfolio/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/preview/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$preview</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;<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;&lt;/a&gt;
	&lt;div class=&quot;ordner&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
	&lt;h3&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;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$name</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h3&gt;
	&lt;cite&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$umfang</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/cite&gt;
&lt;/li&gt;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;
&nbsp;
&lt;/div&gt;
<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></td></tr></table></div><h4>portfolio.php</h4><p>Diese Datei ist ist für die Voransicht des Portfolios zuständig</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
</pre></td><td
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;">/*
Template Name: Portfolio
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<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>
&lt;!-- Left --&gt;
&lt;div class=&quot;content-portfolio&quot;&gt;
&nbsp;
&lt;ul class=&quot;brotnavi&quot;&gt;
    &lt;li&gt;&lt;a class=&quot;list&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/list&quot;&gt;Liste&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a class=&quot;apparel&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/apparel&quot;&gt;Apparel Stuff&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a class=&quot;print&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/print&quot;&gt;Print Stuff&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a class=&quot;web&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/web&quot;&gt;Web Stuff&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a class=&quot;overview overview-aktiv&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/&quot;&gt;Overview&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&nbsp;
&lt;h2 class=&quot;latest&quot;&gt;Latest Stuff&lt;/h2&gt;
&lt;hr class=&quot;portfolio&quot; /&gt;
&nbsp;
&lt;ul class=&quot;portfolio-preview&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$myPosts</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$myPosts</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #000088;">$my_query</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cat=4,5,6&amp;showposts=15&amp;orderby=date'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><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: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><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: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	 <span style="color: #000088;">$myPosts</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: #339933;">.</span> <span style="color: #0000ff;">&quot;,&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;li&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$ordner</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'ordner'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$preview</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'preview'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$name</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'name'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$umfang</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'umfang'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	&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;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/wp-content/uploads/portfolio/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/preview/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$preview</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;<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;&lt;/a&gt;
	&lt;div class=&quot;ordner&quot;&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</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> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/div&gt;
	&lt;h3&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;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$name</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h3&gt;
	&lt;cite&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$umfang</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/cite&gt;
&lt;/li&gt;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;
&lt;/div&gt;
<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></td></tr></table></div><p> Alle vier Quelltexte sind hier nahezu identisch. Sie unterscheiden sich nur Teilweise im Wording und ziehen andere Daten aus der Datenbank (Die verschiedenen Portfoliokategorien). Jetzt fehlt nur noch die Detailansicht, hierfür haben wir jetzt jeweils eine single.php mit der jeweiligen Kategorienummer hinten dran. single-4.php, single-5.php und single-6.php. Wenn diese nicht vorhanden sind müssen sie erstellt werden. Hier die Quelltexte.</p><h4>single-4.php</h4><p>Diese Datei ist für die Detailansicht der Web Portfolio Sachen zuständig.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
</pre></td><td
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>
&lt;div id=&quot;blog&quot; style=&quot;width:970px;&quot;&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<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>
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<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;ul class=&quot;brotnavi brotnavi-left&quot;&gt;
		&lt;li&gt;&lt;a class=&quot;overview&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/&quot;&gt;Overview&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a class=&quot;web web-aktiv&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/web&quot;&gt;Web Stuff&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a class=&quot;print&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/print&quot;&gt;Print Stuff&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a class=&quot;apparel&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/apparel&quot;&gt;Apparel Stuff&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a class=&quot;list&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/list&quot;&gt;Liste&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;div style=&quot;float:left;&quot;&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$ordner</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'ordner'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$browser</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'browser'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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;">$browser</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</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;browser&quot;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/wp-content/uploads/portfolio/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/browser/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$browser</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;<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;&lt;/p&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$img02</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'img02'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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;">$img02</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</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;bild&quot;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/wp-content/uploads/portfolio/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/browser/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$img02</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;<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;&lt;/p&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$img03</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'img03'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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;">$img03</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</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;bild&quot;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/wp-content/uploads/portfolio/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/browser/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$img03</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;<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;&lt;/p&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$img04</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'img04'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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;">$img04</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</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;bild&quot;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/wp-content/uploads/portfolio/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/browser/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$img04</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;<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;&lt;/p&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<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 id=&quot;sidebar&quot;&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$name</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'name'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;h3 class=&quot;details&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$name</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h3&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$kunde</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'kunde'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$umfang</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'umfang'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$datum</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'datum'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$beschreibung</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'beschreibung'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$url</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'url'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;div class=&quot;p&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;">$kunde</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</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;">echo</span> <span style="color: #000088;">$kunde</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
			&lt;h4&gt;kunde&lt;/h4&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</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;">$umfang</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</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;">echo</span> <span style="color: #000088;">$umfang</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
			&lt;h4&gt;umfang&lt;/h4&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</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;">$datum</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</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;">echo</span> <span style="color: #000088;">$datum</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
			&lt;h4&gt;datum&lt;/h4&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</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;">$beschreibung</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</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;">echo</span> <span style="color: #000088;">$beschreibung</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
			&lt;h4&gt;beschreibung&lt;/h4&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</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;">$url</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;p&gt;&lt;a href=&quot;http://<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$url</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> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$url</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/p&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/div&gt;
	&lt;/div&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">else</span><span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;p&gt;Keine Artikel vorhanden&lt;/p&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;div class=&quot;navigation&quot; style=&quot;clear:both; float:left; width:600px; padding:40px 10px 0 10px;&quot;&gt;
		&lt;div class=&quot;alignleft&quot; style=&quot;float:left;&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> next_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'%link'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&amp;laquo;  previous work'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 and 3 and 5 and 6 and 7 and 8'</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;alignright&quot; style=&quot;float:right; text-align:right;&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> previous_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'%link'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'next work &amp;raquo;'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 and 3 and 5 and 6 and 7 and 8'</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&gt;
&lt;/div&gt;
<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></td></tr></table></div><h4>single-5.php</h4><p>Diese Datei ist für die Detailansicht der Print Portfolio Sachen zuständig.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
</pre></td><td
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>
&lt;div id=&quot;blog&quot; style=&quot;width:970px;&quot;&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<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>
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<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;ul class=&quot;brotnavi brotnavi-left&quot;&gt;
		&lt;li&gt;&lt;a class=&quot;overview&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/&quot;&gt;Overview&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a class=&quot;web&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/web&quot;&gt;Web Stuff&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a class=&quot;print print-aktiv&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/print&quot;&gt;Print Stuff&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a class=&quot;apparel&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/apparel&quot;&gt;Apparel Stuff&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a class=&quot;list&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/list&quot;&gt;Liste&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;div style=&quot;float:left;&quot;&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$ordner</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'ordner'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$browser</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'browser'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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;">$browser</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</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;bild&quot;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/wp-content/uploads/portfolio/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/picture/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$browser</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;<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;&lt;/p&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$img02</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'img02'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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;">$img02</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</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;bild&quot;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/wp-content/uploads/portfolio/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/picture/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$img02</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;<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;&lt;/p&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$img03</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'img03'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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;">$img03</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</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;bild&quot;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/wp-content/uploads/portfolio/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/picture/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$img03</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;<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;&lt;/p&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$img04</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'img04'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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;">$img04</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</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;bild&quot;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/wp-content/uploads/portfolio/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/picture/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$img04</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;<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;&lt;/p&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<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 id=&quot;sidebar&quot;&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$name</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'name'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;h3 class=&quot;details&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$name</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h3&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$kunde</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'kunde'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$umfang</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'umfang'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$datum</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'datum'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$beschreibung</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'beschreibung'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$url</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'url'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;div class=&quot;p&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;">$kunde</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</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;">echo</span> <span style="color: #000088;">$kunde</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
			&lt;h4&gt;kunde&lt;/h4&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</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;">$umfang</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</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;">echo</span> <span style="color: #000088;">$umfang</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
			&lt;h4&gt;umfang&lt;/h4&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</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;">$datum</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</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;">echo</span> <span style="color: #000088;">$datum</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
			&lt;h4&gt;datum&lt;/h4&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</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;">$beschreibung</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</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;">echo</span> <span style="color: #000088;">$beschreibung</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
			&lt;h4&gt;beschreibung&lt;/h4&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</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;">$url</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;p&gt;&lt;a href=&quot;http://<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$url</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> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$url</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/p&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/div&gt;
	&lt;/div&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">else</span><span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;p&gt;Keine Artikel vorhanden&lt;/p&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;div class=&quot;navigation&quot; style=&quot;clear:both; float:left; width:600px; padding:40px 10px 0 10px;&quot;&gt;
		&lt;div class=&quot;alignleft&quot; style=&quot;float:left;&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> next_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'%link'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&amp;laquo;  previous work'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 and 3 and 4 and 6 and 7 and 8'</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;alignright&quot; style=&quot;float:right; text-align:right;&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> previous_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'%link'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'next work &amp;raquo;'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 and 3 and 4 and 6 and 7 and 8'</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&gt;
&lt;/div&gt;
<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></td></tr></table></div><h4>single-6.php</h4><p>Diese Datei ist für die Detailansicht der Apparel Portfolio Sachen zuständig.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
</pre></td><td
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>
&lt;div id=&quot;blog&quot; style=&quot;width:970px;&quot;&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<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>
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<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;ul class=&quot;brotnavi brotnavi-left&quot;&gt;
		&lt;li&gt;&lt;a class=&quot;overview&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/&quot;&gt;Overview&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a class=&quot;web&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/web&quot;&gt;Web Stuff&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a class=&quot;print&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/print&quot;&gt;Print Stuff&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a class=&quot;apparel apparel-aktiv&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/apparel&quot;&gt;Apparel Stuff&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a class=&quot;list&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/portfolio/list&quot;&gt;Liste&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;div style=&quot;float:left;&quot;&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$ordner</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'ordner'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$browser</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'browser'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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;">$browser</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</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;bild&quot;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/wp-content/uploads/portfolio/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/picture/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$browser</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;<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;&lt;/p&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$img02</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'img02'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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;">$img02</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</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;bild&quot;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/wp-content/uploads/portfolio/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/picture/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$img02</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;<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;&lt;/p&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$img03</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'img03'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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;">$img03</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</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;bild&quot;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/wp-content/uploads/portfolio/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/picture/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$img03</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;<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;&lt;/p&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$img04</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'img04'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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;">$img04</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</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;bild&quot;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/wp-content/uploads/portfolio/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/picture/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$img04</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;<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;&lt;/p&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<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 id=&quot;sidebar&quot;&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$name</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'name'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;h3 class=&quot;details&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$name</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h3&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$kunde</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'kunde'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$umfang</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'umfang'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$datum</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'datum'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$beschreibung</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'beschreibung'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$url</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'url'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;div class=&quot;p&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;">$kunde</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</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;">echo</span> <span style="color: #000088;">$kunde</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
			&lt;h4&gt;kunde&lt;/h4&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</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;">$umfang</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</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;">echo</span> <span style="color: #000088;">$umfang</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
			&lt;h4&gt;umfang&lt;/h4&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</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;">$datum</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</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;">echo</span> <span style="color: #000088;">$datum</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
			&lt;h4&gt;datum&lt;/h4&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</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;">$beschreibung</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</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;">echo</span> <span style="color: #000088;">$beschreibung</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
			&lt;h4&gt;beschreibung&lt;/h4&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</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;">$url</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;p&gt;&lt;a href=&quot;http://<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$url</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> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$url</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/p&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/div&gt;
	&lt;/div&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">else</span><span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;p&gt;Keine Artikel vorhanden&lt;/p&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;div class=&quot;navigation&quot; style=&quot;clear:both; float:left; width:600px; padding:40px 10px 0 10px;&quot;&gt;
		&lt;div class=&quot;alignleft&quot; style=&quot;float:left;&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> next_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'%link'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&amp;laquo;  previous work'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 and 3 and 5 and 4 and 7 and 8'</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;alignright&quot; style=&quot;float:right; text-align:right;&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> previous_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'%link'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'next work &amp;raquo;'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 and 3 and 5 and 4 and 7 and 8'</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&gt;
&lt;/div&gt;
<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></td></tr></table></div><h4>Die Schnellansicht auf der Startseite</h4><p> Auf der Startseite habe ich ja die schnell ansicht. Hier kommen dann die <strong>Thumb-Bilder</strong> zum Einsatz. Es werden zwanzig Arbeiten aus allen drei Kategorien gezogen. Das ganze sieht dann so aus (nur ein Teil des Startseiten Quelltextes):</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td
class="code"><pre class="php" style="font-family:monospace;">&lt;h2 class=&quot;latest&quot;&gt;Latest Stuff&lt;/h2&gt;
&lt;ul class=&quot;latest&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #000088;">$my_query</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cat=4,5,6&amp;showposts=20&amp;orderby=date'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><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: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><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: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$myPosts</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: #339933;">.</span> <span style="color: #0000ff;">&quot;,&quot;</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: #000088;">$thumb</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'thumb'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$ordner</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'ordner'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$name</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'name'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;li&gt;
    &lt;a class=&quot;tooltip&quot; title=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$name</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; 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;&gt;
        &lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/wp-content/uploads/portfolio/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ordner</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/thumb/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$thumb</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;<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;
    &lt;/a&gt;
&lt;/li&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;</pre></td></tr></table></div><h4>Der Laptop Slider im Header</h4><p> Oben im Header der Laptop wird ja auch automatisch und zufällig mit Inhalt gefüllt. Hier läuft das ganze wieder ähnlich ab. Dazu braucht man dann natürlich auch <a
href="http://jquery.com/">jQuery</a> + <a
href="http://medienfreunde.com/lab/innerfade/">innerfade plugin</a>. Aber es sind auch andere Sachen möglich wie Slide etc. Hier wird sich nur aus der Kategorie 4 (Web) der Inhalt gezogen und zwar die Slide Bilder. Sind immer zehn Stück die zufällig ausgwählt werden. Quelltext für diesen Teil:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td
class="code"><pre class="php" style="font-family:monospace;">&lt;div id=&quot;headslide&quot;&gt;
    &lt;div id=&quot;slider&quot;&gt;
        &lt;ul id=&quot;macbookpro&quot;&gt;
        <span style="color: #000000; font-weight: bold;">&lt;?php</span>
			<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$myPosts</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$myPosts</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</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: #000088;">$my_query</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cat=4&amp;showposts=10&amp;orderby=rand'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><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: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><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: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			 <span style="color: #000088;">$myPosts</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: #339933;">.</span> <span style="color: #0000ff;">&quot;,&quot;</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: #000088;">$slide</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'slide'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
        &lt;li&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;&gt;
            	&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/wp-content/uploads/portfolio/web/slide/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$slide</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;<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;
            &lt;/a&gt;
        &lt;/li&gt;
        <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
        &lt;/ul&gt;
    &lt;/div&gt;
&lt;/div&gt;</pre></td></tr></table></div><h4>Auf gehts zum Befüllen der Bereiche</h4><p> Hier benötigt man für einfacheres Arbeiten das Plugin: <a
href="http://wordpress.org/extend/plugins/more-fields/">More-Fields</a>. Dort kann man sich kleine Boxen zurecht basteln für die <strong>Custim Fields</strong>. Auf jeden Fall übersichtlicher als die Standardmethode von WordPress. Meine Box sieht so aus:</p><p
class="bild"> <img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/2009/08/more-fields.jpg" alt="more-fields" title="more-fields" width="600" height="446" class="alignnone size-full wp-image-674" /></p><p> In einem Artikel sieht das dann so aus:</p><p
class="bild"> <img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/2009/08/more-fields-action.jpg" alt="more-fields-action" title="more-fields-action" width="600" height="651" class="alignnone size-full wp-image-675" /></p><h4>Soweit war es das im Grunde</h4><p> Das Portfolio steht nun quasi. Klar ist das hier nicht eine Lösung die man 1:1 nutzen kann und soll. Es geht eher darum zu verstehen wie mein Portfolio aufgebaut ist. Ich habe versucht das ganze recht ausführlich zu machen. Ob alles dabei ist und auch verstanden wird kann ich nicht sagen da ich selten ein Tutorial in solch einem Umfang geschrieben habe. Bei Fragen dann einfach die Kommentarfunktion nutzen.</p> ]]></content:encoded> <wfw:commentRss>http://www.davidhellmann.com/tutorials/tutorial-ein-portfolio-mit-wordpress-realisieren/663/feed/</wfw:commentRss> <slash:comments>54</slash:comments> </item> <item><title>&#9733; WordPress Custom Fields, fantastisch!</title><link>http://www.davidhellmann.com/tutorials/wordpress-custom-fields-fantastisch/491/</link> <comments>http://www.davidhellmann.com/tutorials/wordpress-custom-fields-fantastisch/491/#comments</comments> <pubDate>Tue, 06 Jan 2009 09:35:50 +0000</pubDate> <dc:creator>David Hellmann</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[Custom Fields]]></category> <category><![CDATA[Plugins]]></category> <category><![CDATA[WordPress]]></category> <guid
isPermaLink="false">http://www.davidhellmann.com/?p=491</guid> <description><![CDATA[]]></description> <content:encoded><![CDATA[<p> <img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/custom-fields.jpg" alt="wordpress custom fields" title="wordpress custom fields" width="200" height="180" class="right" />WordPress Custom Fields sind wirklich fantastisch! Hat man mit ihnen doch eine ganze andere Möglichkeit Projekte umzusetzen. Es verleiht dem ganzen die nötige Flexibiltät die man sich wünscht. Werte die in den Custom Fields gespeichert werden kann man nahezu überall ohne größere Probleme ausgeben lassen. Wie das ganze funktoniert will ich anhand meines Portfolio Bereichs näher erläutern. Dieser wird komplett mit Custom Fields umgesetzt, das eigentliche Eingabefeld bleibt leer.</p><span
id="more-491"></span><h4>Was sind diese Custom Fields überhaupt</h4><p> Das sind einfache Eingabefelder die man einer Seite oder einem Artikel anhängen kann. Quasi Metainformationen zum Artikel. Das Prinzip ist denkbar einfach. Es gibt einen Schlüssel und diesem wird ein Wert zugewiesen. Ein einfaches Beispiel wäre dann also: Kunde > Kundenname. Der Schlüssel Kunde bekommt den Wert Kundenname. Zu finden ist das ganze unter dem normalen Eingabefeld und heisst entweder "Custom Fields" oder "Benutzerdefinierte Felder".</p><p
class="bild"> <img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/custom-fields-hinzufugen.jpg" alt="custom-fields-hinzufugen" title="custom-fields-hinzufugen" /></p><h4>Bevor man anfängt...</h4><p> ...sollte man sich Gedanken über den Aufbau machen damit man nicht wie ich zehn mal neu anfängt bzw. im Nachhinein dann viel ändern muss. Welche Werte möchte man später ausgeben lassen? Macht es Sinn das ein oder andere zusammenzufassen oder doch lieber für jedes ein einzelnes Custom Field anlegen. Bei mir war das speziell der Fall bei: "Umfang"... Sollte ich jetzt für jede Art der Arbeit ein eigenes Custom Field anlegen oder reicht es wenn ich das unter einem zusammenfasse? Mehr Möglichkeiten bieten sich auf jedenfall wenn man es einzeln macht. Hier muss man wie schon angesprochen einfach schauen was für einen die bessere Lösung ist.</p><h4>So werden die Custom Fields ausgegeben</h4><p> Schauen wir uns erst einmal an wie das ganze ausgegeben wird.
Ich nehm hier das Beispiel wie ich es in meinem Portfolio verwendet habe. Ich lege mittels Custom Field den Ordner fest worum es sich handel (Web, Print, Apparel) und dann lege iich noch den Bildnamen fest. Mehr nicht, der Rest wird im Loop gemacht.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
</pre></td><td
class="code"><pre class="php" style="font-family:monospace;">&lt;!-- Wordpress Loop --&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<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>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<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;!-- Hier kommt der Inhalt hin --&gt;
&lt;!-- Den Inhalt der Felder speichern wir in Variablen --&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$ordner</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span>post<span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'ordner'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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: #000088;">$img01</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span>post<span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'img01'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;!-- $ordner und $img01 sind die Variablennamen in diesen der Inhalt
gespeichert wird. das 'ordner' und 'img01' sind die Custom Field Namen
die wir später im Beitrag mit Inhalt füllen werden im nächsten Schritt
Fragen wir ab ob der Inhalt des NICHT Leer ist und wenn das der Fall ist
dann soll er etwas ausgeben --&gt;;
&nbsp;
<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;">$img01</span> <span style="color: #339933;">!==</span> <span style="color: #0000ff;">''</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;bild&quot;&gt;&lt;img src)&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<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: #000000; font-weight: bold;">?&gt;</span>/
wp-content/uploads/portfolio/<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$ordner</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;">echo</span> <span style="color: #000088;">$img01</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot;
alt=&quot;<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;&lt;/p&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;!-- Jetzt wird, falls das Custom Field &quot;img01&quot; ausgefüllt ist,
ein Bild angezeigt. Das Custom Field &quot;ordner&quot; sollte natürlich
auch richtig ausgefüllt sein damit der Pfad zum Bild später stimmt.
Jetzt muss nur noch der Loop geschlossen werden und das ganze ist fertig.
Natürlich kann man das ganze noch mit anderen Sachen ergänzen
aber da soll hier nicht näher drauf eingegangen werden. --&gt;;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">else</span><span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;p&gt;Falls keine Artikel vorhanden...&lt;/p&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></pre></td></tr></table></div><h4>So werden Custom Fields hinzugefügt</h4><p> Custom Fields werden ganz einfach hinzugefügt. Das funktioniert bei Artikeln und auch bei Seiten. Man scrollt einfach wenn man einen Beitrag schreibt nach unten zur Box "Custom Fields" oder wer die deutsche Version hat: "Benutzerdefinierte Felder". Dort schreibt man bei Name einfach den gewünschen Feldname rein. Sollte man schon mal einen Beitrag verfasst haben und Custom Fields genutzt haben kann man hier auch per Drop Down Namen auswählen. Wenn man sich für einen Namen entschieden hat bekommt dieser einen Wert. In unserem Beispiel ist das "img01" als Name und "Bildname" der Wert. Ist alles richtig klickt man auf hinzufügen und das Custom Field wurde gespeichert. Man kann so viele anlegen wie man möchte bzw. so viele wie man benötigt. Man sollte sich vorher gedanken machen was wirklich gebraucht wird.</p><p
class="bild"> <img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/2009/01/customfield-add.jpg" alt="customfield-add" title="customfield-add" width="600" height="141" /></p><p> Ein vorhandenes Custom Field kann natürlich auch bearbeitet werden. Dazu geht ihr einfach in den Beitrag wo etwas bearbeitet werden soll und scrollt wieder zur Box mit den Custom Fields. Dort seht ihr dann die schon gespeicherten und könnt diese einfach ändern und klickt anschließend auf aktualisieren.</p><p
class="bild"> <img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/2009/01/customfield-edit.jpg" alt="customfield-edit" title="customfield-edit" width="600" height="116" /></p><h4>Plugins um das ganze etwas einfacher zu machen</h4><p> Ich nutze das Plugin "<a
href="http://labs.dagensskiva.com/plugins/more-fields/">More-Fields</a>" was mir die Arbeit deutlich vereinfacht. Es soll hier keine Beschreibung des Plugins werden. Soviel sei aber gesagt. Man kann damit schön Sets erstellen für Custom Fields welche man dann beim schreiben einfach mit ausfüllen kann. Problem gibt es hier nur mit den WordPress Post Revisions die abgeschaltet werden müssen sonst schreibt er bei jedem Speichern die Custom Fields doppelt. Das ganze macht man einfach indem man eine kleine Zeile in die config.php schreibt:<br
/> define('WP_POST_REVISIONS', False); <br
/><br
/> Sollte es Fragen geben dann fleißig in den Kommentaren posten.</p> ]]></content:encoded> <wfw:commentRss>http://www.davidhellmann.com/tutorials/wordpress-custom-fields-fantastisch/491/feed/</wfw:commentRss> <slash:comments>68</slash:comments> </item> <item><title>&#9733; Fortgeschrittenes CSS Menü</title><link>http://www.davidhellmann.com/tutorials/fortgeschrittenes-css-menue/465/</link> <comments>http://www.davidhellmann.com/tutorials/fortgeschrittenes-css-menue/465/#comments</comments> <pubDate>Wed, 12 Nov 2008 23:10:47 +0000</pubDate> <dc:creator>David Hellmann</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[CSS Menü]]></category> <guid
isPermaLink="false">http://www.davidhellmann.com/?p=465</guid> <description><![CDATA[]]></description> <content:encoded><![CDATA[<p> <img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/teaser-css-menue.jpg" alt="" title="Fortgeschrittenes CSS Menue" width="200" height="180" class="right" /> Ein <strong>CSS Menü</strong> ist ja nun nicht so der Fortschritt aber das ganze mittels <strong>einer einzelnen Grafik</strong> zu lösen ist schon etwas anspruchsvoller. Wo wir auch schon beim Thema wären, es geht darum eine Navigation zu bauen wo nur eine Grafik benötigt wird diese aber einen <strong>Normalzustand</strong>, einen <strong>Hoverzustand</strong> und einen <strong>Aktivzustand</strong> hat. Wer das alles schon kann der kann hat Glück gehabt, alle anderen könnten es sich ja mal anschauen da es eine schöne Methode ist. <br
/><br
/> <a
href="http://www.davidhellmann.com/demo/css-menue/" class="show">LIVE DEMO</a> <a
href="http://www.davidhellmann.com/demo/css-menue/fortgeschrittenes-css-menue.zip" class="download">DOWNLOAD</a></p> <span
id="more-465"></span><h4>Die Navigations Grafik</h4><p
class="bild"> <img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/navi-image.jpg" alt="" title="navi-image" width="600" height="180" /> Diese hier ist nicht transparent, es soll hier nur verdeutlicht werden wie die Grafik aussieht.</p><h4>Der HTML Aufbau der Navigation</h4><p> Ein Recht simpler Aufbau hier. Eine <strong>Liste</strong> mit fünf Listenpunkten die die jeweiligen Navigationspunkte darstellen. Jeder hat eine eigene "<strong>klasse</strong>" (man könnte auch ID's nutzen) und wenn man auf der jeweiligen Seite ist wird der klasse eine zweite zugewiesen die angibt das der <strong>Aktivstatus</strong> abgerufen werden soll. Der Rest ist einfach der Link und der Text der zwischen dem Link-Tag steht wird nicht angezeigt (kommen wir noch im CSS Teil drauf zu sprechen).</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td
class="code"><pre class="html" style="font-family:monospace;">&lt;ul id=&quot;main-navi&quot;&gt;
	&lt;li&gt;&lt;a class=&quot;start start-akt&quot; href=&quot;index.html&quot;&gt;Start&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;portfolio&quot; href=&quot;index.html&quot;&gt;Portfolio&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;blog&quot; href=&quot;index.html&quot;&gt;Blog&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;about&quot; href=&quot;index.html&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;contact&quot; href=&quot;index.html&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre></td></tr></table></div><h4>Die CSS Formatierung der Navigation</h4><p> Hier gibt es schon ein wenig mehr zu schreiben aber wenn man es sicher genauer anschaut sieht man das es im Grunde immer das gleiche ist und sich nur immer ein paar Werte ändern. Aber geschrieben muss es trotzdem werden. Sollte im Grunde alles selbsterklärend sein. Zwei Sachen die vielleicht nicht jedem klar sind habe ich mit Kommentaren versehen.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
</pre></td><td
class="code"><pre class="css" style="font-family:monospace;">ul<span style="color: #cc00cc;">#main-navi</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">650px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">429px</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;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">79px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">340px</span><span style="color: #00AA00;">;</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/head.jpg</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#main-navi</span> li <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</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.start</span> <span style="color: #00AA00;">,</span> ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.portfolio</span> <span style="color: #00AA00;">,</span>
ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.blog</span> <span style="color: #00AA00;">,</span> ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.about</span> <span style="color: #00AA00;">,</span> ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.contact</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;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">60px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span>
	<span style="color: #808080; font-style: italic;">/* verschiebt den nach links das er nicht sichtbar aber dennoch da ist */</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.start</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/main-navi.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-20px</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
	<span style="color: #808080; font-style: italic;">/* erster Wert ist von Links und der zweite Wert von oben gerechnet */</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">91px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.start</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-20px</span> <span style="color: #933;">-60px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.start-akt</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-20px</span> <span style="color: #933;">-120px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.portfolio</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/main-navi.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-119px</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">141px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.portfolio</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-119px</span> <span style="color: #933;">-60px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.portfolio-akt</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-119px</span> <span style="color: #933;">-120px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.blog</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/main-navi.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-270px</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">103px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.blog</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-270px</span> <span style="color: #933;">-60px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.blog-akt</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-270px</span> <span style="color: #933;">-120px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.about</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/main-navi.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-384px</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">101px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.about</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-384px</span> <span style="color: #933;">-60px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.about-akt</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-384px</span> <span style="color: #933;">-120px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.contact</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/main-navi.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-496px</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">101px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.contact</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-496px</span> <span style="color: #933;">-60px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#main-navi</span> li a<span style="color: #6666ff;">.contact-akt</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-496px</span> <span style="color: #933;">-120px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div><h4>Vorteile dieser Methode</h4><p> Ganz klar der, dass man nur eine Grafik verwenden muss und diese auch nur einmal geladen werden muss. Man hat keine hänger wenn man mit der Maus über das Menü geht da die Grafik ja schon beim ersten Laden der Seite mitgeladen wird und dann immer nur verschoben wird. Das ganze wird auch übersichtlicher da man nur noch eine Grafik hat die man bei Bedarf anpassen muss und nicht mehr ein oder zwei Hände voll Grafiken.</p><h4>Nachteile dieser Methode</h4><p> Wenn man es wirklich mal ändern muss das Menü dann muss man ein wenig am CSS basteln falls sich irgendwelche Größen geändert haben sollten. Sonst kann ich keine weiter feststellen. Wer welche kennt kann diese ja Lautstark in den Kommentaren preis geben.</p><h4>Das Ergebnis könnt ihr nun anschauen bzw. downloaden</h4><p> Vielleicht war es ja dem ein oder anderen Hilfreich...<br
/> <a
href="http://www.davidhellmann.com/demo/css-menue/" class="show">LIVE DEMO</a> <a
href="http://www.davidhellmann.com/demo/css-menue/fortgeschrittenes-css-menue.zip" class="download">DOWNLOAD</a></p>]]></content:encoded> <wfw:commentRss>http://www.davidhellmann.com/tutorials/fortgeschrittenes-css-menue/465/feed/</wfw:commentRss> <slash:comments>17</slash:comments> </item> <item><title>&#9733; Image replacement</title><link>http://www.davidhellmann.com/tutorials/image-replacement/126/</link> <comments>http://www.davidhellmann.com/tutorials/image-replacement/126/#comments</comments> <pubDate>Sat, 02 Aug 2008 11:00:06 +0000</pubDate> <dc:creator>David Hellmann</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[Image Replacement]]></category> <guid
isPermaLink="false">http://dev.davidhellmann.com/kunden/dh/wordpress/?p=126</guid> <description><![CDATA[]]></description> <content:encoded><![CDATA[<p><img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/2008/08/imgreplacement.jpg" alt="" title="imgreplacement" width="200" height="180" class="right" /> In Zeiten in denen Browser immernoch nur ein paar <strong>wenige Schriften unterstützen</strong> ist man doch des öfteren darauf angewiesen, das man gewisse <strong>Texte als Grafiken</strong> darstellen muss. Ein einfaches Beispiel könnte sein, wenn <strong>Headlines</strong> in der Hausschrift des Unternehmens dargestellt werden sollen. Aber auch rein <strong>ästhetische Gründe</strong> können hierbei eine Rolle spielen. Im Grunde scheint ja damit alles geklärt zu sein denkt man aber dem ist  nicht so. Auf den ersten Blick schaut zwar alles bestens aus und es scheint auch zu funktionieren doch was ist mit den Leuten die <strong>Grafiken deaktiviert</strong> haben? Oder den <strong>Suchmaschinen</strong>, denen gefällt es sicher auch besser zwischen einem <strong>h2-Tag</strong> einen Text zu finden anstatt einer Grafik. <br
/><br
/> <a
href="http://www.davidhellmann.com/demo/image-replacement/" class="show">LIVE DEMO</a> <a
href="http://www.davidhellmann.com/demo/image-replacement/image-replacement.rar" class="download">DOWNLOAD</a></p> <span
id="more-126"></span><h4>Der HTML Aufbau</h4><p> Hier der reine HTML Code den wir später mittels <strong>CSS</strong> formatieren werden und die Überschrift durch ein Bild ersetzen werden.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td
class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;wrapper&quot;&gt;
&lt;h2 class=&quot;lorem&quot;&gt;
Lorem ipsum
&lt;/h2&gt;
&lt;p&gt;
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Nullam commodo pharetra lacus. Suspendisse potenti. ...
&lt;/p&gt;
&lt;h2 class=&quot;ipsum&quot;&gt;
Ipsum dolor sit
&lt;/h2&gt;
&lt;p&gt;
Proin risus nisi, auctor non, gravida rhoncus, pellentesque
vitae, nisi. Nulla metus. ...
&lt;/p&gt;
&lt;/div&gt;</pre></td></tr></table></div><h4>h2</h4><p> Die Formatierung für den <strong>H2-Container</strong> in dem die Allgemeinen Sachen festgelegt werden die für jede <strong>Headline</strong> gleich sind.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td
class="code"><pre class="css" style="font-family:monospace;">h2 <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">500px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">69px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</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;">left</span><span style="color: #00AA00;">;</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;">40px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div><h4>h2.lorem</h4><p> Die Formatierung für den <strong>H2-Container .lorem</strong>.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
</pre></td><td
class="code"><pre class="css" style="font-family:monospace;">h2<span style="color: #6666ff;">.lorem</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/lorem.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div><h4>h2.ipsum</h4><p> Die Formatierung für den <strong>H2-Container .ipsum</strong>.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
</pre></td><td
class="code"><pre class="css" style="font-family:monospace;">h2.ipsum<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/ipsum.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div><h4>Nachteile dieser Methode</h4><p> Nachteil dieser Methode ist, dass man für jede headline eine <strong>class</strong> festlegen muss. <br
/><br
/> <a
href="http://www.davidhellmann.com/demo/image-replacement/" class="show">LIVE DEMO</a> <a
href="http://www.davidhellmann.com/demo/image-replacement/image-replacement.rar" class="download">DOWNLOAD</a></p>]]></content:encoded> <wfw:commentRss>http://www.davidhellmann.com/tutorials/image-replacement/126/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>&#9733; Linkrahmen entfernen</title><link>http://www.davidhellmann.com/tutorials/linkrahmen-entfernen/67/</link> <comments>http://www.davidhellmann.com/tutorials/linkrahmen-entfernen/67/#comments</comments> <pubDate>Thu, 10 Apr 2008 11:00:19 +0000</pubDate> <dc:creator>David Hellmann</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[Linkrahmen]]></category> <guid
isPermaLink="false">http://dev.davidhellmann.com/kunden/dh/wordpress/?p=67</guid> <description><![CDATA[]]></description> <content:encoded><![CDATA[<p> <img
src="http://www.davidhellmann.com/wordpress/wp-content/uploads/2008/04/weg-mit-dem-linkrahmen.jpg" alt="" title="weg-mit-dem-linkrahmen" width="200" height="180" class="right" /> Wer kennt sie nicht, die unschönen <strong>Linkrahmen</strong> die kommen, wenn man einen Link anklickt. Schaut einfach nicht schön aus und im Grunde kann man ihn ganz schnell und einfach verschwinden lassen. Eine kleine Zeile im <strong>Stylesheet</strong> und es werden nie wieder Rahmen auf der eigenen Webseite angezeigt. Schade ist, dass man das nicht generell abschalten kann im Browser...</p> <span
id="more-67"></span><h4>Linkrahmen entfernen</h4><p>Diese Zeile einfach ganz oben mit ins <strong>Stylesheet</strong> schreiben.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
</pre></td><td
class="code"><pre class="css" style="font-family:monospace;">a<span style="color: #3333ff;">:focus </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div> ]]></content:encoded> <wfw:commentRss>http://www.davidhellmann.com/tutorials/linkrahmen-entfernen/67/feed/</wfw:commentRss> <slash:comments>26</slash:comments> </item> </channel> </rss>
