function run(DevblocksHttpResponse $response, Smarty $tpl)
 {
     $path = $response->path;
     $callouts = UsermeetApplication::getTourCallouts();
     switch (array_shift($path)) {
         case 'welcome':
             $tour = array('title' => 'Welcome!', 'body' => "This assistant will help you become familiar with the application by following along and providing information about the current page.  You may follow the 'Points of Interest' links highlighted below to read tips about nearby functionality.", 'callouts' => array($callouts['tourHeaderMenu']));
             break;
         case "preferences":
             $tour = array('title' => 'Preferences', 'body' => 'This screen allows you to change the personal preferences on your account.');
             break;
         case "setup":
             $tour = array('title' => 'Setup', 'body' => '...');
             break;
         case NULL:
         case 'home':
             $tour = array('title' => 'Home', 'body' => '...', 'callouts' => array());
             break;
     }
     if (!empty($tour)) {
         $tpl->assign('tour', $tour);
     }
 }
Exemple #2
0
 function showCalloutAction()
 {
     @($id = DevblocksPlatform::importGPC($_REQUEST['id'], 'string'));
     $tpl = DevblocksPlatform::getTemplateService();
     $tpl->assign('path', $this->_TPL_PATH);
     $callouts = UsermeetApplication::getTourCallouts();
     $callout = array();
     if (isset($callouts[$id])) {
         $callout = $callouts[$id];
     }
     $tpl->assign('callout', $callout);
     $tpl->display('file:' . $this->_TPL_PATH . 'internal/tour/callout.tpl');
 }