<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>Comments on: calendar.class.php v1 released</title>
	<atom:link href="http://style-vs-substance.com/blog/calendarclassphp-v1-released/feed/" rel="self" type="application/rss+xml" />
	<link>http://style-vs-substance.com/blog/calendarclassphp-v1-released/</link>
	<description></description>
	<lastBuildDate>Thu, 28 Jun 2012 08:52:06 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.8.37</generator>
	<item>
		<title>By: Martha</title>
		<link>http://style-vs-substance.com/blog/calendarclassphp-v1-released/comment-page-1/#comment-30328</link>
		<dc:creator><![CDATA[Martha]]></dc:creator>
		<pubDate>Thu, 22 Dec 2011 18:43:55 +0000</pubDate>
		<guid isPermaLink="false">http://style-vs-substance.com/calendarclassphp-v1-released/2007/09/#comment-30328</guid>
		<description><![CDATA[Hi, thank you for this calendar, just what I need, except I also need links to go back and forward from month to month.  Any suggestions on how to do this?

thanks!!!]]></description>
		<content:encoded><![CDATA[<p>Hi, thank you for this calendar, just what I need, except I also need links to go back and forward from month to month.  Any suggestions on how to do this?</p>
<p>thanks!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Torben</title>
		<link>http://style-vs-substance.com/blog/calendarclassphp-v1-released/comment-page-1/#comment-1105</link>
		<dc:creator><![CDATA[Torben]]></dc:creator>
		<pubDate>Sun, 29 Mar 2009 13:32:14 +0000</pubDate>
		<guid isPermaLink="false">http://style-vs-substance.com/calendarclassphp-v1-released/2007/09/#comment-1105</guid>
		<description><![CDATA[Hi.

First of all thank you for a super class. I&#039;m using the class to display available dates in my parents countryside cottage. I would like the class also to output the week number as a column on the left. Any quick pointers to how I can modify the class to do this? The class coding is a bit overwhelming for a php newbie like me.

Kind regards
Torben. - From Denmark]]></description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>First of all thank you for a super class. I&#8217;m using the class to display available dates in my parents countryside cottage. I would like the class also to output the week number as a column on the left. Any quick pointers to how I can modify the class to do this? The class coding is a bit overwhelming for a php newbie like me.</p>
<p>Kind regards<br />
Torben. &#8211; From Denmark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andi</title>
		<link>http://style-vs-substance.com/blog/calendarclassphp-v1-released/comment-page-1/#comment-445</link>
		<dc:creator><![CDATA[andi]]></dc:creator>
		<pubDate>Tue, 07 Oct 2008 07:22:28 +0000</pubDate>
		<guid isPermaLink="false">http://style-vs-substance.com/calendarclassphp-v1-released/2007/09/#comment-445</guid>
		<description><![CDATA[very useful code, thanks. I hope i am able to implement it.]]></description>
		<content:encoded><![CDATA[<p>very useful code, thanks. I hope i am able to implement it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rastamate</title>
		<link>http://style-vs-substance.com/blog/calendarclassphp-v1-released/comment-page-1/#comment-438</link>
		<dc:creator><![CDATA[rastamate]]></dc:creator>
		<pubDate>Wed, 01 Oct 2008 18:32:49 +0000</pubDate>
		<guid isPermaLink="false">http://style-vs-substance.com/calendarclassphp-v1-released/2007/09/#comment-438</guid>
		<description><![CDATA[Hi Jim.

First I wanna thank you for this great class!
I&#039;ve used it to program an ovulation calendar.

There I had to show National Holidays and that&#039;s how I&#039;ve implemented them. Maybe something like this could be implemented in a future version:

In the class statement right after var $today_date_class = &#039;today&#039; I&#039;ve added:

	var $mark_feriados = TRUE;
	var $feriados_class = &#039;feriados&#039;;

Right after the block: //--compare day and add classes for matches I&#039;ve added:

			//-------------------- Implementacion Feriados 
			// Feriados
			$feriado1 = &quot;01-01&quot;;
			$feriado2 = &quot;01-06&quot;;
			$feriado3 = &quot;04-19&quot;;
			$feriado4 = &quot;05-01&quot;;
			$feriado5 = &quot;06-24&quot;;
			$feriado6 = &quot;07-05&quot;;
			$feriado7 = &quot;07-24&quot;;
			$feriado8 = &quot;10-12&quot;;
			$feriado9 = &quot;12-25&quot;;
			$feriado10 = &quot;12-31&quot;;

			if( $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &quot;-&quot; . $feriado1
				&#124;&#124; $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &quot;-&quot; . $feriado2
				&#124;&#124; $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &quot;-&quot; . $feriado3
				&#124;&#124; $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &quot;-&quot; . $feriado4
				&#124;&#124; $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &quot;-&quot; . $feriado5
				&#124;&#124; $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &quot;-&quot; . $feriado6
				&#124;&#124; $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &quot;-&quot; . $feriado7
				&#124;&#124; $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &quot;-&quot; . $feriado8
				&#124;&#124; $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &quot;-&quot; . $feriado9
				&#124;&#124; $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &quot;-&quot; . $feriado10)
				{
				$classes[] = $this-&gt;feriados_class;
//----------------------- End Feriados


I&#039;m sure this could be done much better, but it works.

Now I&#039;m able to style the National Holidays over the CSS tag .feriados without interfering with the highlight or selected classes.

Saludos de Venezuela
Peter]]></description>
		<content:encoded><![CDATA[<p>Hi Jim.</p>
<p>First I wanna thank you for this great class!<br />
I&#8217;ve used it to program an ovulation calendar.</p>
<p>There I had to show National Holidays and that&#8217;s how I&#8217;ve implemented them. Maybe something like this could be implemented in a future version:</p>
<p>In the class statement right after var $today_date_class = &#8216;today&#8217; I&#8217;ve added:</p>
<p>	var $mark_feriados = TRUE;<br />
	var $feriados_class = &#8216;feriados&#8217;;</p>
<p>Right after the block: //&#8211;compare day and add classes for matches I&#8217;ve added:</p>
<p>			//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; Implementacion Feriados<br />
			// Feriados<br />
			$feriado1 = &#8220;01-01&#8243;;<br />
			$feriado2 = &#8220;01-06&#8243;;<br />
			$feriado3 = &#8220;04-19&#8243;;<br />
			$feriado4 = &#8220;05-01&#8243;;<br />
			$feriado5 = &#8220;06-24&#8243;;<br />
			$feriado6 = &#8220;07-05&#8243;;<br />
			$feriado7 = &#8220;07-24&#8243;;<br />
			$feriado8 = &#8220;10-12&#8243;;<br />
			$feriado9 = &#8220;12-25&#8243;;<br />
			$feriado10 = &#8220;12-31&#8243;;</p>
<p>			if( $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &#8220;-&#8221; . $feriado1<br />
				|| $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &#8220;-&#8221; . $feriado2<br />
				|| $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &#8220;-&#8221; . $feriado3<br />
				|| $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &#8220;-&#8221; . $feriado4<br />
				|| $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &#8220;-&#8221; . $feriado5<br />
				|| $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &#8220;-&#8221; . $feriado6<br />
				|| $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &#8220;-&#8221; . $feriado7<br />
				|| $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &#8220;-&#8221; . $feriado8<br />
				|| $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &#8220;-&#8221; . $feriado9<br />
				|| $this-&gt;mark_feriados == TRUE &amp;&amp; $day_date == $year . &#8220;-&#8221; . $feriado10)<br />
				{<br />
				$classes[] = $this-&gt;feriados_class;<br />
//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; End Feriados</p>
<p>I&#8217;m sure this could be done much better, but it works.</p>
<p>Now I&#8217;m able to style the National Holidays over the CSS tag .feriados without interfering with the highlight or selected classes.</p>
<p>Saludos de Venezuela<br />
Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Mayes</title>
		<link>http://style-vs-substance.com/blog/calendarclassphp-v1-released/comment-page-1/#comment-8</link>
		<dc:creator><![CDATA[Jim Mayes]]></dc:creator>
		<pubDate>Fri, 19 Oct 2007 21:43:32 +0000</pubDate>
		<guid isPermaLink="false">http://style-vs-substance.com/calendarclassphp-v1-released/2007/09/#comment-8</guid>
		<description><![CDATA[To construct the day links the class uses the value set in $link_to and then appends that day&#039;s date. This happens on line 167 of the class which simply does this:

&lt;pre class=&quot;brush:php&quot;&gt;
$output .= &quot;&lt;a href=\&quot;&quot; . $this- rel=&quot;nofollow&quot;&gt;link_to . &quot;?date=&quot; . $day_date . &quot;\&quot;&gt;&quot;;
&lt;/pre&gt;

By default $link_to will have the value of PHP_SELF unless you override that value, meaning the days will be links back to the calling page, just with a specific date appended to the link.

To override this with your own link you simply need to pass a new value into $link_to AFTER initializing the calendar and BEFORE calling the output_calendar() method. For example, to make the days link to a page called day.php, your code might look something like this:

&lt;pre class=&quot;brush:php&quot;&gt;
$example = new Calendar();
$example-&gt;link_to = &#039;day.php&#039;;
print($example-&gt;output_calendar());
&lt;/pre&gt;

At that point your day.php could retrieve the selected date from $_GET[&#039;date&#039;] and you could use that to query your database for whatever corresponding records match the provided date.

The way the class is now, all of the days will link to the same page. It is not currently possible to do something like link 10/17/2007 to page1.php and 10/18/2007 to page2.php.

I&#039;m considering adding the ability to let dates provided in the selected date array specify individualized links in a future version of the class. That functionality kind of seems a little too specialized, so I&#039;m not sure it belongs in this class. We&#039;ll see.

Hope that helps, if not post more details.]]></description>
		<content:encoded><![CDATA[<p>To construct the day links the class uses the value set in $link_to and then appends that day&#8217;s date. This happens on line 167 of the class which simply does this:</p>
<pre class="brush:php">
$output .= "<a href=\"" . $this- rel="nofollow">link_to . "?date=" . $day_date . "\">";
</a></pre>
<p>By default $link_to will have the value of PHP_SELF unless you override that value, meaning the days will be links back to the calling page, just with a specific date appended to the link.</p>
<p>To override this with your own link you simply need to pass a new value into $link_to AFTER initializing the calendar and BEFORE calling the output_calendar() method. For example, to make the days link to a page called day.php, your code might look something like this:</p>
<pre class="brush:php">
$example = new Calendar();
$example->link_to = 'day.php';
print($example->output_calendar());
</pre>
<p>At that point your day.php could retrieve the selected date from $_GET['date'] and you could use that to query your database for whatever corresponding records match the provided date.</p>
<p>The way the class is now, all of the days will link to the same page. It is not currently possible to do something like link 10/17/2007 to page1.php and 10/18/2007 to page2.php.</p>
<p>I&#8217;m considering adding the ability to let dates provided in the selected date array specify individualized links in a future version of the class. That functionality kind of seems a little too specialized, so I&#8217;m not sure it belongs in this class. We&#8217;ll see.</p>
<p>Hope that helps, if not post more details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luiz</title>
		<link>http://style-vs-substance.com/blog/calendarclassphp-v1-released/comment-page-1/#comment-7</link>
		<dc:creator><![CDATA[luiz]]></dc:creator>
		<pubDate>Thu, 18 Oct 2007 15:56:23 +0000</pubDate>
		<guid isPermaLink="false">http://style-vs-substance.com/calendarclassphp-v1-released/2007/09/#comment-7</guid>
		<description><![CDATA[I  am trying to use the calendar, but i do not understand how to link html pages to a specific days.]]></description>
		<content:encoded><![CDATA[<p>I  am trying to use the calendar, but i do not understand how to link html pages to a specific days.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
