Return to Snippet

Revision: 56519
at April 1, 2012 11:15 by jdhall75


Initial Code
if (isset($data[$day]))
{
  // Cells with content
  $temp = ($is_current_month === TRUE AND $day == $cur_day) ?
    $this->temp['cal_cell_content_today'] : $this->temp['cal_cell_content'];
  foreach($data[$day] as $content) {
    $out .= str_replace(array('{link}','{link_text}', '{day}'), 
      array($content['link'], $content['link_text'], $day), $temp);
  }
}
else
{
  // Cells with no content
  $temp = ($is_current_month === TRUE AND $day == $cur_day) ?
    $this->temp['cal_cell_no_content_today'] :  $this->temp['cal_cell_no_content'];
  $out .= str_replace('{day}', $day, $temp);
}

Initial URL

                                

Initial Description
The orignial calendar class code before the changes

Initial Title
CI calendar class original

Initial Tags
codeigniter

Initial Language
PHP