Xaraya / Postnuke CVS Notices - Message

Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites

View Statistics - Next Notice - Previous Notice

Directory filter : [ all ] / postnuke_modules / postcalendar / pnblocks [ view in CVS ]

Date Directory [filter] File(s) [view] Author [filter]
07 Sep 2002 15:39:40postnuke_modules/postcalendar/pnblockscalendar.php,1.62,1.63Roger Raymond
 template clean up new modifiers

Update of /home/cvsroot/postnuke_modules/postcalendar/pnblocks
In directory ns7.hostnuke.net:/tmp/cvs-serv29655/pnblocks

Modified Files:
	calendar.php 
Log Message:
template clean up new modifiers


Index: calendar.php
===================================================================
RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnblocks/calendar.php,v
retrieving revision 1.62
retrieving revision 1.63
diff -C2 -d -r1.62 -r1.63
*** calendar.php	17 Jul 2002 17:28:34 -0000	1.62
--- calendar.php	7 Sep 2002 15:39:38 -0000	1.63
***************
*** 81,88 ****
      $tpl->left_delimiter    =  '[-';
      $tpl->right_delimiter   =  '-]';
      
      // find out what template we're using
      $template_name = pnModGetVar('postcalendar','pcTemplate');
!     if(!isset($template_name)) {
          $template_name ='default';
      }
--- 81,96 ----
      $tpl->left_delimiter    =  '[-';
      $tpl->right_delimiter   =  '-]';
+     //=================================================================
+     //  Register our custom functions
+     //=================================================================
+     $tpl->register_function('pc_date_format','postcalendar_smarty_pcDateFormat');
+     $tpl->register_function('pc_event_url','postcalendar_smarty_pcEventURL');
+     $tpl->register_function('pc_date_select','postcalendar_smarty_pcDateSelect');
+     $tpl->register_function('pc_url','postcalendar_smarty_pcURL');
+     $tpl->register_modifier('pc_date_format','postcalendar_smarty_pc_date_format');
      
      // find out what template we're using
      $template_name = pnModGetVar('postcalendar','pcTemplate');
!     if(!isset($template_name) || empty($template_name)) {
          $template_name ='default';
      }
***************
*** 93,99 ****
      }
      // start the output container
!     $output = new pnHTML();
!     $output->SetInputMode(_PNH_VERBATIMINPUT);
!     $output->SetOutputMode(_PNH_KEEPOUTPUT);
      // get the theme globals :: is there a better way to do this?
      pnThemeLoad(pnUserGetTheme());
--- 101,106 ----
      }
      // start the output container
!     $output = '';
!     
      // get the theme globals :: is there a better way to do this?
      pnThemeLoad(pnUserGetTheme());
***************
*** 137,143 ****
      $displayballs           = pnModGetVar('postcalendar','displayballs');      
      // load the DHTML JavaScript code and insert it into the page
!     if($usepopups) { $output->Text(pnModAPIFunc('postcalendar','user','loadPopups')); }
      // insert the js popup code into the page (find better code)
!     if($eventsopeninnewwindow) { $output->Text(pnModAPIFunc('postcalendar','user','jsPopup')); }
      // Let's setup the info to build this sucka!
      list($the_month,$the_day,$the_year) = explode('/',$Date);
--- 144,150 ----
      $displayballs           = pnModGetVar('postcalendar','displayballs');      
      // load the DHTML JavaScript code and insert it into the page
!     if($usepopups) { $output .= pnModAPIFunc('postcalendar','user','loadPopups'); }
      // insert the js popup code into the page (find better code)
!     if($eventsopeninnewwindow) { $output .= pnModAPIFunc('postcalendar','user','jsPopup'); }
      // Let's setup the info to build this sucka!
      list($the_month,$the_day,$the_year) = explode('/',$Date);
***************
*** 260,265 ****
      $tpl->assign('UpcomingEventsTitle',_PC_UPCOMING_EVENTS);
      $tpl->assign('NoEvents',_PC_BLOCK_NO_EVENTS);   
      if($showcalendar) {
!         $output->Text($tpl->fetch($template_name.'/views/calendarblock/month_view.html'));
      }
      if($showevents) {
--- 267,273 ----
      $tpl->assign('UpcomingEventsTitle',_PC_UPCOMING_EVENTS);
      $tpl->assign('NoEvents',_PC_BLOCK_NO_EVENTS);   
+     
      if($showcalendar) {
!         $output .= $tpl->fetch($template_name.'/views/calendarblock/month_view.html');
      }
      if($showevents) {
***************
*** 270,274 ****
          }
          
!         $output->Text($tpl->fetch($template_name.'/views/calendarblock/todays_events.html'));
      }   
      if($nextevents) {
--- 278,282 ----
          }
          
!         $output .= $tpl->fetch($template_name.'/views/calendarblock/todays_events.html');
      }   
      if($nextevents) {
***************
*** 278,292 ****
              $tpl->assign('displaytitle',0);
          }
!         $output->Text($tpl->fetch($template_name.'/views/calendarblock/upcoming_events.html'));
      }   
  
      if($pcbshowsslinks) {
!         $output->Linebreak(2);
          $submit_event_url = pnModURL('postcalendar','user','submit');
          $search_event_url = pnModURL('postcalendar','user','search'); 
!         $output->Text('<center>');
!         $output->Text('[ <a href="'.$submit_event_url.'">'._PC_SUBMIT_EVENT.'</a> ] '); 
!         $output->Text('[ <a href="'.$search_event_url.'">'._PC_SEARCH_EVENT.'</a> ]');
!         $output->Text('</center>');  
      }
      // Populate block info and pass to theme
--- 286,300 ----
              $tpl->assign('displaytitle',0);
          }
!         $output .= $tpl->fetch($template_name.'/views/calendarblock/upcoming_events.html');
      }   
  
      if($pcbshowsslinks) {
!         $output .= '<br /><br />';
          $submit_event_url = pnModURL('postcalendar','user','submit');
          $search_event_url = pnModURL('postcalendar','user','search'); 
!         $output .= '<center>';
!         $output .= '[ <a href="'.$submit_event_url.'">'._PC_SUBMIT_EVENT.'</a> ] '; 
!         $output .= '[ <a href="'.$search_event_url.'">'._PC_SEARCH_EVENT.'</a> ]';
!         $output .= '</center>';  
      }
      // Populate block info and pass to theme
***************
*** 294,303 ****
      if(class_exists('Benchmark_Timer')) {
          $timer->stop();
!         $output->Linebreak();
          $profile = array_pop($timer->getProfiling());
!         $output->Text('<center><font style="font-size: 6pt;">'.$profile['total'].'</font></center>');
      }
      
!     $blockinfo['content'] = $output->GetOutput();
      return themesideblock($blockinfo);
  }
--- 302,311 ----
      if(class_exists('Benchmark_Timer')) {
          $timer->stop();
!         $output .= '<br />';
          $profile = array_pop($timer->getProfiling());
!         $output .= '<center><font style="font-size: 6pt;">'.$profile['total'].'</font></center>';
      }
      
!     $blockinfo['content'] = $output;
      return themesideblock($blockinfo);
  }


Directory filter : [ all ] / postnuke_modules / postcalendar / pnblocks [ view in CVS ]

View Statistics - Next Notice - Previous Notice


Visit Developer Site - Browse CVS Repository Syndicate via backend.rss
(max. once per hour please)
Powered by CVSNotice 0.1.3