public function display($tpl = null) { $this->t = PhocaMapsUtils::setVars(); JHTML::stylesheet($this->t['s']); $this->t['version'] = PhocaMapsHelper::getPhocaVersion('com_phocamaps'); $this->addToolbar(); parent::display($tpl); }
public function display($tpl = null) { $this->t = PhocaMapsUtils::setVars('icon'); $this->state = $this->get('State'); $this->form = $this->get('Form'); $this->item = $this->get('Item'); JHTML::stylesheet($this->t['s']); $this->addToolbar(); parent::display($tpl); }
function display($tpl = null) { $this->t = PhocaMapsUtils::setVars(); $this->views = array('maps' => $this->t['l'] . '_MAPS', 'markers' => $this->t['l'] . '_MARKERS', 'icons' => $this->t['l'] . '_ICONS', 'info' => $this->t['l'] . '_INFO'); JHTML::stylesheet($this->t['s']); JHTML::_('behavior.tooltip'); $this->t['version'] = PhocaMapsHelper::getPhocaVersion('com_phocamaps'); $this->addToolbar(); parent::display($tpl); }
public function display($tpl = null) { $this->t = PhocaMapsUtils::setVars(); JHTML::stylesheet($this->t['s']); $this->latitude = JRequest::getVar('lat', '50', 'get', 'string'); $this->longitude = JRequest::getVar('lng', '-30', 'get', 'string'); $this->zoom = JRequest::getVar('zoom', '2', 'get', 'string'); $this->type = JRequest::getVar('type', 'map', 'get', 'string'); $document = JFactory::getDocument(); $document->addCustomTag("<style type=\"text/css\"> \n" . " html,body, .contentpane{overflow:hidden;background:#ffffff;} \n" . " </style> \n"); parent::display($tpl); }
public function display($tpl = null) { $this->t = PhocaMapsUtils::setVars('marker'); $this->state = $this->get('State'); $this->form = $this->get('Form'); $this->item = $this->get('Item'); $document = JFactory::getDocument(); $document->addScript(JURI::root(true) . '/' . $this->t['ja'] . 'coordinates.js'); JHTML::stylesheet($this->t['s']); $this->addToolbar(); parent::display($tpl); }
function display($tpl = null) { $this->t = PhocaMapsUtils::setVars('marker'); $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); JHTML::stylesheet($this->t['s']); foreach ($this->items as &$item) { $this->ordering[$item->catid][] = $item->id; } // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); }
function display($tpl = null) { $this->t = PhocaMapsUtils::setVars('map'); $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); // Preprocess the list of items to find ordering divisions. foreach ($this->items as &$item) { $this->ordering[0][] = $item->id; } JHTML::stylesheet($this->t['s']); JHTML::stylesheet($this->t['css'] . 'icomoon/icomoon.css'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); }