From 3ab40a6ca473736f1e920178a8879e81900699f3 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 5 Oct 2011 16:19:27 -0500 Subject: fixed code block spacing in Calendar lib docs --- user_guide_src/source/libraries/calendar.rst | 62 ++++++++++++++-------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/user_guide_src/source/libraries/calendar.rst b/user_guide_src/source/libraries/calendar.rst index b60b8e4a6..471fd64f9 100644 --- a/user_guide_src/source/libraries/calendar.rst +++ b/user_guide_src/source/libraries/calendar.rst @@ -49,11 +49,11 @@ parameter of the calendar generating function. Consider this example:: $this->load->library('calendar'); $data = array( - 3 => 'http://example.com/news/article/2006/03/', - 7 => 'http://example.com/news/article/2006/07/', - 13 => 'http://example.com/news/article/2006/13/', - 26 => 'http://example.com/news/article/2006/26/' - ); + 3 => 'http://example.com/news/article/2006/03/', + 7 => 'http://example.com/news/article/2006/07/', + 13 => 'http://example.com/news/article/2006/13/', + 26 => 'http://example.com/news/article/2006/26/' + ); echo $this->calendar->generate(2006, 6, $data); @@ -73,10 +73,10 @@ the calendar. Preferences are set by passing an array of preferences in the second parameter of the loading function. Here is an example:: $prefs = array ( - 'start_day' => 'saturday', - 'month_type' => 'long', - 'day_type' => 'short' - ); + 'start_day' => 'saturday', + 'month_type' => 'long', + 'day_type' => 'short' + ); $this->load->library('calendar', $prefs); @@ -118,9 +118,9 @@ next/previous links requires that you set up your calendar code similar to this example:: $prefs = array ( - 'show_next_prev' => TRUE, - 'next_prev_url' => 'http://example.com/index.php/calendar/show/' - ); + 'show_next_prev' => TRUE, + 'next_prev_url' => 'http://example.com/index.php/calendar/show/' + ); $this->load->library('calendar', $prefs); @@ -145,35 +145,35 @@ pair of pseudo-variables as shown here:: $prefs['template'] = ' - {table_open}{/table_open} + {table_open}
{/table_open} - {heading_row_start}{/heading_row_start} + {heading_row_start}{/heading_row_start} - {heading_previous_cell}{/heading_previous_cell} - {heading_title_cell}{/heading_title_cell} - {heading_next_cell}{/heading_next_cell} + {heading_previous_cell}{/heading_previous_cell} + {heading_title_cell}{/heading_title_cell} + {heading_next_cell}{/heading_next_cell} - {heading_row_end}{/heading_row_end} + {heading_row_end}{/heading_row_end} - {week_row_start}{/week_row_start} - {week_day_cell}{/week_day_cell} - {week_row_end}{/week_row_end} + {week_row_start}{/week_row_start} + {week_day_cell}{/week_day_cell} + {week_row_end}{/week_row_end} - {cal_row_start}{/cal_row_start} - {cal_cell_start}{/cal_row_start} + {cal_cell_start}{/cal_cell_end} - {cal_row_end}{/cal_row_end} + {cal_cell_end}{/cal_cell_end} + {cal_row_end}{/cal_row_end} - {table_close}
<<{heading}>><<{heading}>>
{week_day}
{week_day}
{/cal_cell_start} + {cal_row_start}
{/cal_cell_start} - {cal_cell_content}{day}{/cal_cell_content} - {cal_cell_content_today}{/cal_cell_content_today} + {cal_cell_content}{day}{/cal_cell_content} + {cal_cell_content_today}{/cal_cell_content_today} - {cal_cell_no_content}{day}{/cal_cell_no_content} - {cal_cell_no_content_today}
{day}
{/cal_cell_no_content_today} + {cal_cell_no_content}{day}{/cal_cell_no_content} + {cal_cell_no_content_today}
{day}
{/cal_cell_no_content_today} - {cal_cell_blank} {/cal_cell_blank} + {cal_cell_blank} {/cal_cell_blank} - {cal_cell_end}
{/table_close} + {table_close}{/table_close} '; $this->load->library('calendar', $prefs); -- cgit v1.2.3-24-g4f1b