Example #1
0
 /**
  * Setup common template variables.
  * @param $request PKPRequest
  */
 function setupTemplate($request = null)
 {
     parent::setupTemplate($request);
     AppLocale::requireComponents(LOCALE_COMPONENT_APP_AUTHOR, LOCALE_COMPONENT_APP_EDITOR, LOCALE_COMPONENT_APP_MANAGER, LOCALE_COMPONENT_PKP_GRID);
 }
Example #2
0
 /**
  * Setup common template variables.
  * @param $subclass boolean set to true if caller is below this handler in the hierarchy
  */
 function setupTemplate($request, $subclass = false)
 {
     parent::setupTemplate($request);
     $templateMgr =& TemplateManager::getManager($request);
     if ($subclass) {
         $templateMgr->assign('pageHierarchy', array(array($request->url(null, 'user'), 'navigation.user')));
     }
 }
Example #3
0
 /**
  * Setup common template variables.
  * @param $subclass boolean set to true if caller is below this handler in the hierarchy
  */
 function setupTemplate($request, $subclass = false)
 {
     parent::setupTemplate($request);
     AppLocale::requireComponents(LOCALE_COMPONENT_APP_AUTHOR, LOCALE_COMPONENT_APP_EDITOR, LOCALE_COMPONENT_APP_MANAGER);
     $conference =& $request->getConference();
     $schedConf =& $request->getSchedConf();
     $templateMgr =& TemplateManager::getManager($request);
     $pageHierarchy = array();
     if ($schedConf) {
         $pageHierarchy[] = array($request->url(null, null, 'index'), $schedConf->getLocalizedName(), true);
     } elseif ($conference) {
         $pageHierarchy[] = array($request->url(null, 'index', 'index'), $conference->getLocalizedName(), true);
     }
     if ($subclass) {
         $pageHierarchy[] = array($request->url(null, null, 'user'), 'navigation.user');
     }
     $templateMgr->assign('pageHierarchy', $pageHierarchy);
 }
 /**
  * Setup common template variables.
  * @param $subclass boolean set to true if caller is below this handler in the hierarchy
  */
 function setupTemplate($subclass = false)
 {
     parent::setupTemplate();
     AppLocale::requireComponents(array(LOCALE_COMPONENT_OJS_AUTHOR, LOCALE_COMPONENT_OJS_EDITOR, LOCALE_COMPONENT_OJS_MANAGER));
     $templateMgr =& TemplateManager::getManager();
     if ($subclass) {
         $templateMgr->assign('pageHierarchy', array(array(Request::url(null, 'user'), 'navigation.user')));
     }
 }