original_string: public function add_sidecalendar_blocks(core_calendar_renderer $renderer, $showfilters=false, $view=null) {
          if ($showfilters) {
              $filters = new block_contents();
              $filters->content = $renderer->event_filter();
              $filters->footer = '';
              $filters->title = get_string('eventskey', 'calendar');
              $renderer->add_pretend_calendar_block($filters, BLOCK_POS_RIGHT);
          }
          $block = new block_contents;
          $block->content = $renderer->fake_block_threemonths($this);
          $block->footer = '';
          $block->title = get_string('monthlyview', 'calendar');
          $renderer->add_pretend_calendar_block($block, BLOCK_POS_RIGHT);
      }
code: public function add_sidecalendar_blocks(core_calendar_renderer $renderer, $showfilters=false, $view=null) {
          if ($showfilters) {
              $filters = new block_contents();
              $filters->content = $renderer->event_filter();
              $filters->footer = '';
              $filters->title = get_string('eventskey', 'calendar');
              $renderer->add_pretend_calendar_block($filters, BLOCK_POS_RIGHT);
          }
          $block = new block_contents;
          $block->content = $renderer->fake_block_threemonths($this);
          $block->footer = '';
          $block->title = get_string('monthlyview', 'calendar');
          $renderer->add_pretend_calendar_block($block, BLOCK_POS_RIGHT);
      }
code_tokens: public function add_sidecalendar_blocks ( core_calendar_renderer $ renderer , $ showfilters = false , $ view = null ) { if ( $ showfilters ) { $ filters = new block_contents ( ) ; $ filters -> content = $ renderer -> event_filter ( ) ; $ filters -> footer = '' ; $ filters -> title = get_string ( 'eventskey' , 'calendar' ) ; $ renderer -> add_pretend_calendar_block ( $ filters , BLOCK_POS_RIGHT ) ; } $ block = new block_contents ; $ block -> content = $ renderer -> fake_block_threemonths ( $ this ) ; $ block -> footer = '' ; $ block -> title = get_string ( 'monthlyview' , 'calendar' ) ; $ renderer -> add_pretend_calendar_block ( $ block , BLOCK_POS_RIGHT ) ; }
docstring: Adds the pretend blocks for the calendar
  
  @param core_calendar_renderer $renderer
  @param bool $showfilters display filters, false is set as default
  @param string|null $view preference view options (eg: day, month, upcoming)
docstring_tokens: Adds the pretend blocks for the calendar