<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://fbb.just4test.de/extern.php?action=feed&amp;tid=780&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Informationen für CMS/made simple / [GELÖST] Business Hours - Wir haben geöffnet ... oder so ähnlich]]></title>
		<link>http://www.cmsmadesimple.de/forum/viewtopic.php?id=780</link>
		<description><![CDATA[Die aktuellsten Beiträge in [GELÖST] Business Hours - Wir haben geöffnet ... oder so ähnlich.]]></description>
		<lastBuildDate>Wed, 29 Feb 2012 23:16:42 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [GELÖST] Business Hours - Wir haben geöffnet ... oder so ähnlich]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16534#p16534</link>
			<description><![CDATA[<p>Ich markiere grad meine ganzen Beiträge als &quot;gelöst&quot; <span style="color: blue">(jetzt, wie ich herausgefunden hab wie das geht&#160; <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/wink.png" alt="wink" /> )</span>.<br />Dabei ist mir noch was eingefallen...</p><p>Ich habe ein UDT für Öffnungszeiten gebaut, was ich gerne mit Euch teilen möchte.<br />Es ist rudimentär, es könnte viel effektiver sein, gaaanz sicher.<br />Und trotzdem: Ich fühle mich wie Tom Hanks in &quot;Cast away - Verschollen&quot; als er schrie &quot;ICH HABE FEUER GEMACHT!!!&quot;&#160; <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/big_smile.png" alt="big_smile" /> </p><p>Los geht&#039;s:</p><div class="codebox"><pre class="vscroll"><code>[== php / UDT ==]
$weekday = strftime(&quot;%u&quot;);
$hour = strftime(&quot;%H&quot;);
switch ($weekday) {
 case &quot;1&quot;:
   if ($hour &gt;=10) { $open=true; } else { $open=false; }
//Startzeit Montag und Endzeit Sonntagnacht
   break;
 case &quot;2&quot;:
   if (($hour &gt;=10) or ($hour&lt;1)) { $open=true; } else { $open=false; }
//Startzeit Dienstag und Endzeit Montagnacht
   break;
 case &quot;3&quot;: if (($hour &gt;=10) or ($hour&lt;1)) { $open=true; } else { $open=false; }
//Startzeit Mittwoch und Endzeit Dienstagnacht
   break;
 case &quot;4&quot;: if (($hour &gt;=10) or ($hour&lt;1)) { $open=true; } else { $open=false; }
//Startzeit Donnerstag und Endzeit Mittwochnacht
   break;
 case &quot;5&quot;: if (($hour &gt;=10) or ($hour&lt;1)) { $open=true; } else { $open=false; }
//Startzeit Freitag und Endzeit Donnerstagnacht
   break;
 case &quot;6&quot;: if (($hour &gt;=16) or ($hour&lt;2)) { $open=true; } else { $open=false; }
//Startzeit Samstag und Endzeit Freitagnacht
   break;
 case &quot;7&quot;: if (($hour &gt;=15) or ($hour&lt;2)) { $open=true; } else { $open=false; }
//Startzeit Sonntag und Endzeit Samstagnacht
   break;
 default: $open = false;
}

if ($open == true) {
  echo &quot;&lt;div style=\&quot;margin:0 0 2em; text-align:center;\&quot;&gt;
   &lt;img src=\&quot;template/mronions/sign_open.jpg\&quot; alt=\&quot;Ja, wir haben geöffnet\&quot; title=\&quot;Jetzt haben wir für Dich Geöffnet!\&quot; /&gt;  &lt;/div&gt;&quot;;
   } else {
  echo &quot;&lt;div style=\&quot;margin:0 0 2em; text-align:center;\&quot;&gt;  &lt;img src=\&quot;template/mronions/sign_closed.jpg\&quot; alt=\&quot;Wir haben leider zu\&quot; title=\&quot;Geschlossen\&quot; /&gt;  &lt;/div&gt;&quot;;
   }
?&gt;

&lt;p&gt;Damit Ihr hoffentlich nie ganz umsonst vor unserer Türe steht, findet Ihr hier unsere aktuellen Öffnungszeiten:&lt;/p&gt;
&lt;table cellspacing=&quot;5&quot; cellpadding=&quot;5&quot; id=&quot;opening-hours&quot;&gt;
	&lt;tr&lt;? if($weekday==1) { echo &quot; class=\&quot;today\&quot;&quot;; } else { echo &quot; onmouseover=\&quot;this.style.fontSize=&#039;120%&#039;\&quot; onmouseout=\&quot;this.style.fontSize=&#039;100%&#039;\&quot;&quot;; } ?&gt;&gt;
		&lt;td width=&quot;65%&quot;&gt;&lt;? if($weekday==1) {echo &quot;Heute&quot;;} else { echo &quot;Montag&quot;;} ?&gt;&lt;/td&gt;
		&lt;td width=&quot;15%&quot; align=&quot;right&quot;&gt;10.00&lt;/td&gt;
		&lt;td width=&quot;5%&quot; align=&quot;center&quot;&gt;-&lt;/td&gt;
		&lt;td width=&quot;15%&quot;&gt;01.00&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&lt;? if($weekday==2) { echo &quot; class=\&quot;today\&quot;&quot;; } else { echo &quot; onmouseover=\&quot;this.style.fontSize=&#039;120%&#039;\&quot; onmouseout=\&quot;this.style.fontSize=&#039;100%&#039;\&quot;&quot;; } ?&gt;&gt;
		&lt;td&gt;&lt;? if($weekday==2) {echo &quot;Heute&quot;;} else { echo &quot;Dienstag&quot;;} ?&gt;&lt;/td&gt;
		&lt;td align=&quot;right&quot;&gt;10.00&lt;/td&gt;
		&lt;td align=&quot;center&quot;&gt;-&lt;br /&gt;&lt;/td&gt;
		&lt;td&gt;01.00&lt;/td&gt;
	&lt;/tr&gt;
    &lt;tr&lt;? if($weekday==3) { echo &quot; class=\&quot;today\&quot;&quot;; } else { echo &quot; onmouseover=\&quot;this.style.fontSize=&#039;120%&#039;\&quot; onmouseout=\&quot;this.style.fontSize=&#039;100%&#039;\&quot;&quot;; } ?&gt;&gt;
		&lt;td&gt;&lt;? if($weekday==3) {echo &quot;Heute&quot;;} else { echo &quot;Mittwoch&quot;;} ?&gt;&lt;br /&gt;&lt;/td&gt;
		&lt;td align=&quot;right&quot;&gt;10.00&lt;/td&gt;
		&lt;td align=&quot;center&quot;&gt;-&lt;br /&gt;&lt;/td&gt;
		&lt;td&gt;01.00&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&lt;? if($weekday==4) { echo &quot; class=\&quot;today\&quot;&quot;; } else { echo &quot; onmouseover=\&quot;this.style.fontSize=&#039;120%&#039;\&quot; onmouseout=\&quot;this.style.fontSize=&#039;100%&#039;\&quot;&quot;; } ?&gt;&gt;
		&lt;td&gt;&lt;? if($weekday==4) {echo &quot;Heute&quot;;} else { echo &quot;Donnerstag&quot;;} ?&gt;&lt;/td&gt;
		&lt;td align=&quot;right&quot;&gt;10.00&lt;br /&gt;&lt;/td&gt;
		&lt;td align=&quot;center&quot;&gt;-&lt;br /&gt;&lt;/td&gt;
		&lt;td&gt;01.00&lt;/td&gt;
	&lt;/tr&gt;
    &lt;tr&lt;? if($weekday==5) { echo &quot; class=\&quot;today\&quot;&quot;; } else { echo &quot; onmouseover=\&quot;this.style.fontSize=&#039;120%&#039;\&quot; onmouseout=\&quot;this.style.fontSize=&#039;100%&#039;\&quot;&quot;; } ?&gt;&gt;
    	&lt;td&gt;&lt;? if($weekday==5) {echo &quot;Heute&quot;;} else { echo &quot;Freitag&quot;;} ?&gt;&lt;/td&gt;
		&lt;td align=&quot;right&quot;&gt;10.00&lt;br /&gt;&lt;/td&gt;
		&lt;td align=&quot;center&quot;&gt;-&lt;br /&gt;&lt;/td&gt;
		&lt;td&gt;02.00&lt;/td&gt;
	&lt;/tr&gt;
    &lt;tr&lt;? if($weekday==6) { echo &quot; class=\&quot;today\&quot;&quot;; } else { echo &quot; onmouseover=\&quot;this.style.fontSize=&#039;120%&#039;\&quot; onmouseout=\&quot;this.style.fontSize=&#039;100%&#039;\&quot;&quot;; } ?&gt;&gt;
		&lt;td&gt;&lt;? if($weekday==6) {echo &quot;Heute&quot;;} else { echo &quot;Samstag&quot;;} ?&gt;&lt;/td&gt;
		&lt;td align=&quot;right&quot;&gt;16.00&lt;/td&gt;
		&lt;td align=&quot;center&quot;&gt;-&lt;/td&gt;
		&lt;td&gt;02.00&lt;/td&gt;
	&lt;/tr&gt;
    &lt;tr&lt;? if($weekday==7) { echo &quot; class=\&quot;today\&quot;&quot;; } else { echo &quot; onmouseover=\&quot;this.style.fontSize=&#039;120%&#039;\&quot; onmouseout=\&quot;this.style.fontSize=&#039;100%&#039;\&quot;&quot;; } ?&gt;&gt;
		&lt;td&gt;&lt;? if($weekday==7) {echo &quot;Heute&quot;;} else { echo &quot;Sonntag&quot;;} ?&gt;&lt;/td&gt;
		&lt;td align=&quot;right&quot;&gt;15.00&lt;/td&gt;
		&lt;td align=&quot;center&quot;&gt;-&lt;br /&gt;&lt;/td&gt;
		&lt;td&gt;00.00&lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;

&lt;?  $heute = date(&quot;D M j G:i:s T Y&quot;); // Sat Mar 19 17:16:18 MST 2011
echo &quot;&lt;!-- current server time is &quot; . $heute . &quot; and the hour value is &quot; . $hour . &quot; --&gt;&quot;;
echo &quot;&lt;!-- current weekday is &quot; . $weekday .&quot; and the open status is &quot; . $open . &quot; --&gt;&quot;;</code></pre></div><p>Wer das Ergebnis des Codes im Wildlife sehen möchte, schaut mal auf die <a href="http://www.mronions.de/home/oeffnungszeiten.htm" rel="nofollow">Öffnungszeiten vom Mr. Onions</a>.<br />Ich weiß, auf der Seite ist nicht alles 100% optimal, vor allem PageSpeed. Aber chic isse, mehr sollte sie gar nicht sein. Und bei so viel chic, darf sie auch länger brauchen ... oder nicht?</p>]]></description>
			<author><![CDATA[dummy@example.com (rage_all)]]></author>
			<pubDate>Wed, 29 Feb 2012 23:16:42 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16534#p16534</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Business Hours - Wir haben geöffnet ... oder so ähnlich]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=9035#p9035</link>
			<description><![CDATA[<p>Danke für deine Lösung!</p>]]></description>
			<author><![CDATA[dummy@example.com (cyberman)]]></author>
			<pubDate>Mon, 04 Jul 2011 19:22:33 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=9035#p9035</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Business Hours - Wir haben geöffnet ... oder so ähnlich]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=9011#p9011</link>
			<description><![CDATA[<p>Hab ich das doch fast wieder vergessen... *ooops*</p><p>Erstmal vielen Dank für Eure Hilfe!<br />Das Problem ist gelöst und ich möchte natürlich die passende Lösung den nächsten nicht vorenthalten...</p><p>Also, die erstrebte Lösung war einen Block &quot;kostenlos anrufen über den Dienst XY&quot; auf der Seite anzuzeigen, aber natürlich nur, wenn auch jemand ans Telefon ginge <span style="color: blue">(also nur innerhalb der regulären Öffnungszeiten)</span>.</p><p>Diesen Block habe ich in das Template, an der Stelle wo der Button erscheinen soll:</p><div class="codebox"><pre class="vscroll"><code>[== Smarty ==]
{assign var=today value=$smarty.now|date_format:&quot;%d.%m&quot;}
{assign var=thetime value=$smarty.now|date_format:&quot;%H%M&quot;}
{assign var=weekday value=$smarty.now|date_format:&quot;%w&quot;}
{assign var=year value=$smarty.now|date_format:&quot;%y&quot;}

{* Tage an denen geschlossen ist: 01.01, 01.05, 03.10, 25.12, 26.12(NI) Statische Feiertage *}
{if $today neq &quot;01.01&quot; and $today neq &quot;01.05&quot; and $today neq &quot;03.10&quot; and $today neq &quot;25.12&quot; and $today neq &quot;26.12&quot; }

{* Osterfeiertage an denen geschlossen ist, vom Jahr abhängig *}
{* 2010: 02.04, 05.04, 13.05, 24.05 - 2011: 22.04, 25.04, 02.06, 13.06 - 2012: 06.04, 09.04, 17.05, 28.05 *}

{if $year eq &quot;2010&quot; and $today neq &quot;02.04&quot; and $today neq &quot;05.04&quot; and $today neq &quot;13.05&quot; and $today neq &quot;24.05&quot; }
 {elseif $year eq &quot;2011&quot; and $today neq &quot;22.04&quot; and $today neq &quot;25.04&quot; and $today neq &quot;02.06&quot; and $today neq &quot;13.06&quot; }
  {elseif $year eq &quot;2012&quot; and $today neq &quot;06.04&quot; and $today neq &quot;09.04&quot; and $today neq &quot;17.05&quot; and $today neq &quot;28.05&quot; }
 {else}
{* Öffnungszeiten: Mo-Fr von 10.00Uhr bis um 13.15 Uhr und 15.10 bis 18.00 Uhr *}

{if $weekday gt &quot;1&quot; and $weekday lt &quot;6&quot; and ( ( $thetime gt &quot;0900&quot; and $thetime lt &quot;1800&quot; ) ) }
 {global_content name=&quot;freecall&quot;}
{/if}

{* Am Samstag von 10.00 Uhr bis um 14.00 Uhr *}
{if $weekday eq &quot;6&quot; and $thetime gt &quot;1000&quot; and $thetime lt &quot;1300&quot;}
 {global_content name=&quot;freecall&quot;}
{/if}
{/if}
{/if}</code></pre></div><p>Lieber wäre mir gewesen, im Template nur einen Aufruf liegen zu haben - z.B. über Smarty. Wie von NaN geschrieben ist das aber ja mit Smarty nicht möglich - zum umstricken nach PHP fehlen mir aber die Kenntnisse, insbesondere damit es später noch mit CMSms harmoniert <span style="color: blue">(einen Snippet rein auf PHP krieg ich vielleicht noch hin, hab aber immer Angst, dass ich mir im CMSms was zerschieße mit einer falschen Variable, etc...)</span>.<br />Der Größte Teil des Block ist aus dem <a href="http://www.xtc-modified.org/forum/topic.php?id=8620" rel="nofollow">Xtc-Forum</a> - Vielen Dank an owr_web für den nützlichen Link!</p><p>In dem globalen Inhaltsblock ist dann der Aufruf über die Seite des Dienstanbieters, der den Anruf ermöglicht. Interessehalber hier der Inhalt dessen:</p><div class="codebox"><pre><code>[== HTML ==]
&lt;div class=&quot;freecall&quot;&gt;
 &lt;h2&gt;Jetzt Termin vereinbaren...&lt;/h2&gt;
  &lt;p&gt;&lt;a onclick=&quot;window.open(&#039;http://www.stadtbranchenbuch.com/callout/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/callnumber.html&#039;,&#039;Kostenlos anrufen&#039;,&#039;width=800,height=600,left=&#039;+(screen.availWidth/2-400)+&#039;,top=&#039;+(screen.availHeight/2-300)+&#039;&#039;);return false;&quot; href=&quot;http://www.stadtbranchenbuch.com/callout/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/callnumber.html&quot;&gt;
  &lt;img src=&quot;http://de.static.opendi.com/images/call_for_free.png&quot; alt=&quot;kostenlos anrufen&quot; /&gt; &lt;/a&gt; &lt;br /&gt;
  &lt;a href=&quot;http://www.stadtbranchenbuch.com/&quot;&gt;Ein Service von&lt;br /&gt; stadtbranchenbuch.com&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;&lt;!-- eof freecall --&gt;</code></pre></div><p>Wichtig: Wer sich dasselbe überlegt, sollte einen kurzen Blick in die Nutzungsbedingungen werfen - der Dienstbetreiber möchte natürlich genannt werden...</p><p>Wer das Ergebnis ansehen möchte, kann das gerne <a href="http://www.anjas-friseurpalast.de/" rel="nofollow">hier</a> tun. Zum Vergleich eben einmal innerhalb und einmal außerhalb der Öffnungszeiten <span style="color: blue">(kurz vor neun / nach neun, bzw. achtzehn Uhr ist an den meisten Wochentagen sicher ganz gut)</span>.</p><p>Also, nochmals Vielen lieben Dank für Eure Hilfe!<br />Thema ist gelöst und die Lösung ist hoffentlich einem anderen noch nützlich...</p><p>Schöne Grüße<br />Michael</p>]]></description>
			<author><![CDATA[dummy@example.com (rage_all)]]></author>
			<pubDate>Mon, 04 Jul 2011 09:39:40 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=9011#p9011</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Business Hours - Wir haben geöffnet ... oder so ähnlich]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7272#p7272</link>
			<description><![CDATA[<p>Nöö, liegst du nicht <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/smile.png" alt="smile" /> ...</p>]]></description>
			<author><![CDATA[dummy@example.com (cyberman)]]></author>
			<pubDate>Wed, 11 May 2011 12:17:06 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7272#p7272</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Business Hours - Wir haben geöffnet ... oder so ähnlich]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7247#p7247</link>
			<description><![CDATA[<p>wobei wenn du es mit smarty machst ja noch die Möglichkeit ist, das ganze in den global content &quot;freecall&quot; einzufügen.</p><p>dann also den Inhalt des jetzigen GCB (zweimal) direkt dort drinnen stehen haben wo du jetzt den GCB aufrufst. Dann hast du das ganze auch aus dem Template draußen und musst dort nur mehr den GCB aufrufen</p><p>Oder vielleicht funktionierts auch so, dass du ihn nur einmal eintragen musst (bin mir aber nicht ganz sicher mit den Klammersetzungen !! )</p><div class="codebox"><pre><code>{if ( $weekday gt &quot;1&quot; and $weekday lt &quot;6&quot; and ( ( $thetime gt &quot;0900&quot; and $thetime lt &quot;1800&quot; ) ) ) or ( $weekday eq &quot;6&quot; and $thetime gt &quot;1000&quot; and $thetime lt &quot;1300&quot; )}
    Inhalt des jetzigen GCB
{/if}</code></pre></div><p>sind eigentlich um die thetime 0900 und 1800 zwei Klammern notwendig, imho eher nicht - oder liege ich da falsch?</p>]]></description>
			<author><![CDATA[dummy@example.com (owr_web)]]></author>
			<pubDate>Wed, 11 May 2011 07:09:38 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7247#p7247</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Business Hours - Wir haben geöffnet ... oder so ähnlich]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7231#p7231</link>
			<description><![CDATA[<div class="quotebox"><cite>rage_all schrieb:</cite><blockquote><div><p>kann UDT kein Smarty?</p></div></blockquote></div><p>Nein.<br />Das ist ein grundlegendes Verständnisproblem.<br />UDT = PHP<br />Template = (X)HTML und Smarty - um HTML und PHP Code voneinander trennen zu können. <br />(Smarty macht am Ende auch nichts weiter als unter der Haube PHP Code auszuführen. Ist sozusagen ein Wrapper, um PHP Code aus dem Layout rauszuhalten. Du kannst also im Template mit Hilfe von Smarty den PHP Code eines UDT ausführen lassen, ohne den PHP Code zu kennen. Bzw. umgekehrt, den PHP Code im UDT ändern, ohne das Layout anzufassen.)</p>]]></description>
			<author><![CDATA[dummy@example.com (NaN)]]></author>
			<pubDate>Tue, 10 May 2011 13:49:05 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7231#p7231</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Business Hours - Wir haben geöffnet ... oder so ähnlich]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7229#p7229</link>
			<description><![CDATA[<p>Hej!</p><p>Wie schon angedeutet, im ersten Schritt wäre es mir noch gar nicht um die Feiertage gegangen <span style="color: blue">(aber sicher, das für später im Auge zu behalten wäre keine schlechte Idee gewesen...)</span>.<br />Was ich eigentlich vermeiden wollte, war diesen ganzen Block <span style="color: blue">(<strong>@owr_web:</strong> Vielen Dank für den Link! Der hat&#039;s gebracht...&#160; <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/smile.png" alt="smile" /> )</span> im Template zu haben:</p><div class="codebox"><pre><code>[== Smarty ==]
{assign var=today value=$smarty.now|date_format:&quot;%d.%m&quot;}
{assign var=thetime value=$smarty.now|date_format:&quot;%H%M&quot;}
{assign var=weekday value=$smarty.now|date_format:&quot;%w&quot;}
{assign var=year value=$smarty.now|date_format:&quot;%y&quot;}
 
{* Tage an denen geschlossen ist: 01.01, 01.05, 03.10, 25.12, 26.12(NI) Statische Feiertage *}
{if $today neq &quot;01.01&quot; and $today neq &quot;01.05&quot; and $today neq &quot;03.10&quot; and $today neq &quot;25.12&quot; and $today neq &quot;26.12&quot; }
{* Osterfeiertage an denen geschlossen ist, vom Jahr abhängig *}
{* 2010: 02.04, 05.04, 13.05, 24.05 - 2011: 22.04, 25.04, 02.06, 13.06 - 2012: 06.04, 09.04, 17.05, 28.05 *}
{if $year eq &quot;2010&quot; and $today neq &quot;02.04&quot; and $today neq &quot;05.04&quot; and $today neq &quot;13.05&quot; and $today neq &quot;24.05&quot; }
{elseif $year eq &quot;2011&quot; and $today neq &quot;22.04&quot; and $today neq &quot;25.04&quot; and $today neq &quot;02.06&quot; and $today neq &quot;13.06&quot; }
{elseif $year eq &quot;2012&quot; and $today neq &quot;06.04&quot; and $today neq &quot;09.04&quot; and $today neq &quot;17.05&quot; and $today neq &quot;28.05&quot; }
{else}
{* Öffnungszeiten: Mo-Fr von 10.00Uhr bis 18.00 Uhr *}
{if $weekday gt &quot;1&quot; and $weekday lt &quot;6&quot; and ( ( $thetime gt &quot;0900&quot; and $thetime lt &quot;1800&quot; ) ) }
    {global_content name=&quot;freecall&quot;}
{/if}
{* Am Samstag von 10.00Uhr bis um 13.00 Uhr *}
{if $weekday eq &quot;6&quot; and $thetime gt &quot;1000&quot; and $thetime lt &quot;1300&quot;}
    {global_content name=&quot;freecall&quot;}
    {/if}
{/if}
{/if}</code></pre></div><p>Daher die Idee mit der TXT-Datei oder UDT <span style="color: blue">(hab das mit UDT nicht hinbekommen ... kann UDT kein Smarty?)</span>.<br />Na, nu isses drin und funktioniert hervorragend... Deswegen an dieser Stelle ein herzliches<br /><strong>Dankeschön!</strong></p><p>Wer neugierig ist, was daraus geworden ist, kann <a href="http://www.anjas-friseurpalast.de/" rel="nofollow">hier</a> nachgucken...<br />Es ist der div &quot;Jetzt Termin vereinbaren&quot;, der nur während der Öffnungszeiten sichtbar sein sollte...</p><p>Mit der Basis kann ich vielleicht auch an der anderen Seite basteln, wo ich aber fünferlei Öffnungszeiten habe...&#160; <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/hmm.png" alt="hmm" /> </p><p>Schöne Grüße<br />Michael</p><p><em>Edit:<br />@nockenfell: Sag mal, tippst Du sowas mal nebenbei ... oder hattest Du das noch aus einer Arbeit herumliegen?</em></p>]]></description>
			<author><![CDATA[dummy@example.com (rage_all)]]></author>
			<pubDate>Tue, 10 May 2011 13:36:13 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7229#p7229</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Business Hours - Wir haben geöffnet ... oder so ähnlich]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7164#p7164</link>
			<description><![CDATA[<p>Die reinen Feiertage lassen sich in der Schweiz und wahrscheinlich auch in Deutschland problemlos ausrechnen:</p><div class="codebox"><pre><code>function getHolidays($year=0){
       
    if($year == 0){$year = date(&quot;Y&quot;);}
   
    //Feiertage
    $holidays = array();  
    $holidays[&quot;neujahr&quot;]          = mktime(0,0,0,1,1,$year);
    $holidays[&quot;berchtoldstag&quot;]    = mktime(0,0,0,1,2,$year);
    $holidays[&quot;karfreitag&quot;]       = easter_date($year)-(2*86400);
    $holidays[&quot;ostermontag&quot;]      = easter_date($year)+(1*86400);
    $holidays[&quot;auffahrt&quot;]         = easter_date($year)+(39*86400);
    $holidays[&quot;pfingstmontag&quot;]    = easter_date($year)+(50*86400);
    $holidays[&quot;ersteraugust&quot;]     = mktime(0,0,0,8,1,$year);
    $holidays[&quot;weihnachtspause1&quot;] = mktime(0,0,0,12,23,$year);
    $holidays[&quot;heiligabend&quot;]      = mktime(0,0,0,12,24,$year);
    $holidays[&quot;weihnachten&quot;]      = mktime(0,0,0,12,25,$year);
    $holidays[&quot;stephanstag&quot;]      = mktime(0,0,0,12,26,$year);
    $holidays[&quot;weihnachtspause2&quot;] = mktime(0,0,0,12,27,$year);
    $holidays[&quot;weihnachtspause3&quot;] = mktime(0,0,0,12,28,$year);
    $holidays[&quot;weihnachtspause4&quot;] = mktime(0,0,0,12,29,$year);
    $holidays[&quot;weihnachtspause5&quot;] = mktime(0,0,0,12,30,$year);
    $holidays[&quot;silvester&quot;]        = mktime(0,0,0,12,31,$year);
   
    //return       
    return $holidays;
   
}//function</code></pre></div><p>via <a href="http://sprain.ch/blog/2011/02/18/feiertage-berechnen-lassen/" rel="nofollow">http://sprain.ch/blog/2011/02/18/feiert … en-lassen/</a></p>]]></description>
			<author><![CDATA[dummy@example.com (nockenfell)]]></author>
			<pubDate>Mon, 09 May 2011 06:33:27 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7164#p7164</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Business Hours - Wir haben geöffnet ... oder so ähnlich]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7163#p7163</link>
			<description><![CDATA[<div class="quotebox"><cite>rage_all schrieb:</cite><blockquote><div><p>So ähnlich dachte ich mir das hier auch, nur eben mit 0 (Montag), 1 (Dienstag),</p></div></blockquote></div><p>Das klingt nun wieder nach Nicmares $smarty.now Vorschlag - z.Bsp.</p><div class="codebox"><pre><code>[== HTML ==]
&lt;img src=&quot;uploads/images/{$smarty.now|date_format:&#039;%A&#039;}.jpg&quot; /&gt;</code></pre></div><p>Dann musst du nur noch Montag.jpg, Dienstag.jpg usw. erstellen ...</p>]]></description>
			<author><![CDATA[dummy@example.com (cyberman)]]></author>
			<pubDate>Mon, 09 May 2011 06:17:34 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7163#p7163</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Business Hours - Wir haben geöffnet ... oder so ähnlich]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7156#p7156</link>
			<description><![CDATA[<p>Bezüglich css schrieb Around so eine kleine Anleitung im Niederländisch .org bereich.<br /><a href="http://forum.cmsmadesimple.org/viewtopic.php?f=52&amp;t=45363" rel="nofollow">http://forum.cmsmadesimple.org/viewtopi … 52&amp;t=45363</a></p><p>CSS müsste aber eher direkt im template eingebunden werden oder&#160; {cms_stylesheet} switchen statt wie er es gezeigt hat im Stylesheet. Stylesheet wird ja gecacht daher bin ich ja nicht davon überzeugt das es mit seiner methode im Stylesheet funktionieren würde, ausser man leert Cache automatisch nach zeit.</p><p>Ausserdem gabs ja mal so eine Yahoo API verbunden mit wetter Daten, müsste ich aber danach in meinem Bookmark chaos graben.</p>]]></description>
			<author><![CDATA[dummy@example.com (uniqu3)]]></author>
			<pubDate>Sun, 08 May 2011 12:01:25 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7156#p7156</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Business Hours - Wir haben geöffnet ... oder so ähnlich]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7155#p7155</link>
			<description><![CDATA[<p>Hej!</p><p>Ich seh schon, ganz so easy wie gedacht, ist es wohl doch nicht...<br />Vor einigen Jahren hab ich mal was gebastelt, auf Datumsbasis. Wir wollten wie Google immer wieder das Logo grafisch modifiziert zeigen, ohne dass sich jemand übers Osterwochenende über den Content machen muss.<br />Also Script --&gt; Suche in Ordner XY nach einer <strong>&quot;datum().jpg&quot;</strong>-Datei. Wenn Du eine gefunden hast, nimm diese, sonst die standard.jpg.</p><p>So ähnlich dachte ich mir das hier auch, nur eben mit 0 (Montag), 1 (Dienstag), etc. über fopen() oder read() <span style="color: blue">(oder so ähnlich <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/wink.png" alt="wink" /> )</span> </p><p>Im Prinzip mit den Variablen X, Y und Z:<br />X = Tag<br />Y = Start-Zeit<br />Z = End-Zeit</p><p>if jetzt(hour) &gt; &quot;Y&quot; AND &lt; &quot;Z&quot; THEN ... ELSE - nochmal, komplett Sinnfrei und Ahnungslos...&#160; <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/big_smile.png" alt="big_smile" /> </p><p><em>@owr_web:</em> Vielen Dank! Das hab ich nicht gefunden, ist aber genau der Ansatz den ich suche. Wenn ich es schaffe das zu portieren, geb ich nochmal Bescheid und stelle es zur Verfügung.</p><p>Ein anderes Ding über dem ich gerade sitze, ist CSS-Änderung auf Uhrzeit- oder Tageszeit-Basis. Endprodukt wäre eine Website auf der die Sonne auf- und untergeht, bzw. der Mond, je nach Uhrzeit. Aber das geht mit JS ja relativ simpel und mein letzter Stand war, dass CSS in CMSMS nicht mit PHP-Tags arbeitet (oder ist das überholt?).</p><p>Vielen Dank für Eure Antworten!<br />Schöne Grüße</p><p>Mike</p>]]></description>
			<author><![CDATA[dummy@example.com (rage_all)]]></author>
			<pubDate>Sun, 08 May 2011 11:03:32 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7155#p7155</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Business Hours - Wir haben geöffnet ... oder so ähnlich]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7091#p7091</link>
			<description><![CDATA[<p>also ich hab mal ein UDT gemacht, das die nächsten 4 Dienstage ausgibt (Sendetermine)<br />mit diesen Datumsfunktionen (ganz einfaches PHP) kann man etliches anrichten</p><p>als Orientierung:</p><br /><div class="codebox"><pre><code>[== PHP ==]
//function
function nextWeeksDay($date_begin,$nbrweek)
{
$nextweek=array();
for($i = 1; $i &lt;= $nbrweek; $i++)  {  
$nextweek[$i]=date(&#039;d.m.Y&#039;, strtotime(&#039;+&#039;.$i.&#039; week&#039;,$date_begin));
}
return $nextweek;
}
/// end function
echo &quot;&lt;p&gt;Die wöchentliche Radio-Sendung des Jazzbüro Hamburg&lt;br /&gt;&quot;;
echo&quot;Die nächsten Sende-Termine:&lt;br /&gt;&quot;;
$date_begin = strtotime(&#039;last Tuesday&#039;); 
 $nbrweek=4;
// call function
$result=nextWeeksDay($date_begin,$nbrweek);
// Preview
for($i = 1; $i &lt;= $nbrweek; $i++)  {
echo &#039;&amp;nbsp;&amp;nbsp;&#039;.$result[$i].&#039;&lt;br /&gt;&#039;;
}
echo &quot;jeweils von 23:00 bis 01:00 Uhr auf &lt;b&gt;Tide 96.0!&lt;/b&gt;&lt;/p&gt;&quot;;</code></pre></div><p> <br />und jetzt wißt Ihr auch gleich, wann es wieder gute Musik zu hören gibt (auch per Internet-Stream)!</p><p>Cheers, Connie</p>]]></description>
			<author><![CDATA[dummy@example.com (Connie)]]></author>
			<pubDate>Fri, 06 May 2011 06:31:05 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7091#p7091</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Business Hours - Wir haben geöffnet ... oder so ähnlich]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7089#p7089</link>
			<description><![CDATA[<p>naja von gigantisch kann ja bei dem Script keine Rede mehr sein. Insbesondere, da ja nicht viel anzupassen ist.</p><p>Andererseits wäre dieses Modul von Jos ein Ansatz:<br /><a href="http://dev.cmsmadesimple.org/projects/holidays" rel="nofollow">http://dev.cmsmadesimple.org/projects/holidays</a></p><p>Bei Durchsicht ist mir auch aufgefallen, dass es ja eine &quot;System-Veriable&quot; für easter_date gibt, somit kann man eigentlich die Feiertage alle abfangen, die nicht am selben Tag sind, denn die sind ja in Abhängigkeit des Ostersonntags.</p>]]></description>
			<author><![CDATA[dummy@example.com (owr_web)]]></author>
			<pubDate>Fri, 06 May 2011 06:02:15 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7089#p7089</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Business Hours - Wir haben geöffnet ... oder so ähnlich]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7087#p7087</link>
			<description><![CDATA[<p>Damit hättes Du aber auch das Problem was Cyberman angesprochen hat.</p>]]></description>
			<author><![CDATA[dummy@example.com (Wurst2008)]]></author>
			<pubDate>Thu, 05 May 2011 17:24:19 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7087#p7087</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Business Hours - Wir haben geöffnet ... oder so ähnlich]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7083#p7083</link>
			<description><![CDATA[<p>Ich hoffe man verzeiht mir das Fremdgehen <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/tongue.png" alt="tongue" /> , aber ich hätte da was gefunden, dass nicht wirklich viel Arbeit macht und eventuell ohne Modul oder sonstwas auskommt. Sieht mir recht übersichtlich aus:</p><p><a href="http://www.xtc-modified.org/forum/topic.php?id=8620" rel="nofollow">http://www.xtc-modified.org/forum/topic.php?id=8620</a></p><p>Und mich wundert grad - die gurgelei mit den Suchwörtern &quot;Smarty&quot; und &quot;Feiertage&quot; brachte mir dies als erstes Ergebnis - ich hab mich schon auf Seite 20 aufwärts eingestellt&#160; <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/cool.png" alt="cool" /> </p><p>Wenns weiterhilft haben sich gleich mindestens zwei gefreut (ich wegen Zufallstreffer)</p>]]></description>
			<author><![CDATA[dummy@example.com (owr_web)]]></author>
			<pubDate>Thu, 05 May 2011 13:20:27 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7083#p7083</guid>
		</item>
	</channel>
</rss>
