function display($tpl = null) { // Load the parameters. $this->map = $this->get('map'); if ($this->map->params['service'] == 'interactivemap') { $this->lists = array(); $app = JFactory::getApplication('site'); //$document = &JFactory::getDocument(); $this->params = $app->getParams(); $this->params->merge(JoaktreeHelper::getTheme(true, true)); // set up style declaration //$document->addStyleDeclaration($this->map->getStyleDeclaration()); // add javascript $this->script = $this->map->getMapScript(); if ($this->script) { $this->toolkit = $this->map->getToolkit(); //if ($toolkit) { // $document->addScript($toolkit); //} //$document->addScriptDeclaration($script); $this->lists['userAccess'] = true; } else { $this->lists['userAccess'] = false; } parent::display($tpl); } }
function display($tpl = null) { $app = JFactory::getApplication('site'); $document =& JFactory::getDocument(); // Load the parameters. $params = $app->getParams(); $params->merge(JoaktreeHelper::getTheme(true, true)); // set up style sheets and javascript files JHTML::stylesheet(JoaktreeHelper::joaktreecss()); JHTML::stylesheet(JoaktreeHelper::joaktreecss($params->get('theme'))); // get user info $userId = $this->get('userId'); if (!$userId || $userId == 0) { $document->addScript(JoaktreeHelper::joaktreejs('jtform.js')); } // Logs $this->name = $this->get('personName'); $this->items = $this->get('items'); $this->pagination = $this->get('pagination'); // check display method $tmpl = $this->get('tmpl'); if ($tmpl) { //return $retObject = $this->get('returnObject'); if (!is_object($retObject)) { $retObject = new stdClass(); $retObject->object = 'prsn'; } $this->lists['link'] = 'index.php?option=com_joaktree' . '&view=changehistory' . '&tmpl=' . $tmpl . '&retId=' . base64_encode(json_encode($retObject)); } else { $this->lists['link'] = 'index.php?option=com_joaktree' . '&view=changehistory'; } $this->lists['CR'] = JoaktreeHelper::getJoaktreeCR(); if (count($this->items) > 0) { // set title, meta title $title = $this->name ? $this->name : JText::_('JT_CHANGEHISTORY'); $document->setTitle($title); $document->setMetadata('title', $title); // set additional meta tags if ($params->get('menu-meta_description')) { $document->setDescription($params->get('menu-meta_description')); } if ($params->get('menu-meta_keywords')) { $document->setMetadata('keywords', $params->get('menu-meta_keywords')); } if ($params->get('robots')) { $document->setMetadata('robots', $params->get('robots')); } } parent::display($tpl); }
function display($tpl = null) { if ($tpl == null) { $this->lists = array(); $app = JFactory::getApplication('site'); $document =& JFactory::getDocument(); // Load the parameters. $this->params = $app->getParams(); $this->params->merge(JoaktreeHelper::getGedCom()); $this->params->merge(JoaktreeHelper::getTheme(true, true)); if ($this->params->get('siteedit', 1)) { $this->canDo = JoaktreeHelper::getActions(false); } else { $this->canDo = null; } // set up style sheets and javascript files JHTML::stylesheet(JoaktreeHelper::joaktreecss()); JHTML::stylesheet(JoaktreeHelper::joaktreecss($this->params->get('theme'))); // Initialiase variables. $this->form = $this->get('Form'); $this->item = $this->get('Item'); $this->lists['userAccess'] = $this->get('access'); $this->lists['action'] = $this->get('action'); if ($this->lists['action'] == 'select') { $this->lists['link'] = 'index.php?option=com_joaktree' . '&view=repository' . '&tmpl=component' . '&action=' . $this->lists['action']; } else { $this->lists['link'] = 'index.php?option=com_joaktree' . '&view=repository'; } $this->lists['CR'] = JoaktreeHelper::getJoaktreeCR(); } if ($this->lists['userAccess']) { // set title, meta title if ($this->params->get('gedcomName')) { $title = $this->params->get('gedcomName'); $document->setTitle($title); $document->setMetadata('title', $title); } // set additional meta tags if ($this->params->get('menu-meta_description')) { $document->setDescription($this->params->get('menu-meta_description')); } if ($this->params->get('menu-meta_keywords')) { $document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); } if ($this->params->get('robots')) { $document->setMetadata('robots', $this->params->get('robots')); } } parent::display($tpl); }
function display($tpl = null) { $this->lists = array(); $app = JFactory::getApplication('site'); $document =& JFactory::getDocument(); // Load the parameters. $this->map = $this->get('map'); $this->params = $app->getParams(); $this->params->merge(JoaktreeHelper::getTheme(true, true)); // set up style sheets and javascript files JHTML::stylesheet(JoaktreeHelper::joaktreecss()); JHTML::stylesheet(JoaktreeHelper::joaktreecss($this->params->get('theme'))); if ($this->map->params['service'] == 'staticmap') { // Get data from the model $this->mapview = $this->get('mapView'); $this->lists['userAccess'] = $this->mapview ? true : false; if ($this->lists['userAccess']) { // set title, meta title if ($this->map->params['name']) { $title = $this->map->params['name']; $document->setTitle($title); $document->setMetadata('title', $title); } // set additional meta tags if ($this->params->get('menu-meta_description')) { $document->setDescription($this->params->get('menu-meta_description')); } if ($this->params->get('menu-meta_keywords')) { $document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); } if ($this->params->get('robots')) { $document->setMetadata('robots', $this->params->get('robots')); } } } if ($this->map->params['service'] == 'interactivemap') { $this->lists['href'] = 'index.php?option=com_joaktree' . '&tmpl=component' . '&format=raw' . '&view=interactivemap' . '&mapId=' . $this->map->params['id']; } // user interaction $this->lists['mapHtmlId'] = 'jt-map-id'; $this->lists['uicontrol'] = $this->map->getUIControl($this->lists['mapHtmlId']); // copyright $this->lists['CR'] = JoaktreeHelper::getJoaktreeCR(); parent::display($tpl); }
function display($tpl = null) { $this->lists = array(); $app = JFactory::getApplication('site'); $document =& JFactory::getDocument(); // Load the parameters. $params = $app->getParams(); $params->merge(JoaktreeHelper::getGedCom()); $params->merge(JoaktreeHelper::getTheme(true, true)); // set up style sheets and javascript files JHTML::stylesheet(JoaktreeHelper::joaktreecss()); JHTML::stylesheet(JoaktreeHelper::joaktreecss($params->get('theme'))); $document->addScript(JoaktreeHelper::joaktreejs('toggle.js')); // get user info $userId = $this->get('userId'); if (!$userId || $userId == 0) { $document->addScript(JoaktreeHelper::joaktreejs('jtform.js')); } // Get data from the model $this->items = $this->get('items'); $this->pagination = $this->get('pagination'); $this->lists['app_id'] = $this->get('applicationId'); $this->lists['userAccess'] = $this->get('access'); $statusObj = $this->get('returnObject'); $this->lists['source_id'] = is_object($statusObj) ? $statusObj->object_id : null; $this->lists['status'] = is_object($statusObj) ? $statusObj->status : null; if ($this->lists['status'] == 'new') { $this->newItem = $this->get('newlyAddedItem'); } $this->lists['action'] = $this->get('action'); if ($this->lists['action'] == 'select') { $this->lists['link'] = 'index.php?option=com_joaktree' . '&view=sources' . '&appId=' . $this->lists['app_id'] . '&tmpl=component' . '&action=' . $this->lists['action']; // in case of "select" - what are the details $this->lists['counter'] = $this->get('counter'); } else { $this->lists['link'] = 'index.php?option=com_joaktree' . '&view=sources' . '&appId=' . $this->lists['app_id']; } if ($params->get('siteedit', 1)) { $this->canDo = JoaktreeHelper::getActions(false); } else { $this->canDo = null; } //Filter $context = 'com_joaktree.source.list.'; $search1 = $app->getUserStateFromRequest($context . 'search1', 'search1', '', 'string'); $search1 = JString::strtolower($search1); // search filter $this->lists['search1'] = $search1; // Find the value for tech $this->lists['technology'] = $this->get('technology'); // copyright $this->lists['CR'] = JoaktreeHelper::getJoaktreeCR(); $this->lists['showchange'] = (int) $params->get('indLogging', 0); //return $retObject = new stdClass(); $retObject->object = 'sour'; $this->lists['retId'] = base64_encode(json_encode($retObject)); if ($this->lists['userAccess']) { // set title, meta title if ($params->get('gedcomName')) { $title = $params->get('gedcomName'); $document->setTitle($title); $document->setMetadata('title', $title); } // set additional meta tags if ($params->get('menu-meta_description')) { $document->setDescription($params->get('menu-meta_description')); } if ($params->get('menu-meta_keywords')) { $document->setMetadata('keywords', $params->get('menu-meta_keywords')); } if ($params->get('robots')) { $document->setMetadata('robots', $params->get('robots')); } } parent::display($tpl); }