form->published != '1') return; $this->labelHtmlTag = 'th'; $this->valueHtmlTag = 'td'; $this->labelClass = 'vfdvlabel'; $this->valueClass = 'vfdvvalue'; $this->extension = 'vfdataview'; $this->viewType = 'column'; //plugin does not allow ordering if filters not activated $this->unSortable = !$this->showFilter; $listOrder = $this->state->get('list.ordering', 'a.id'); $listDirn = $this->state->get('list.direction', 'asc'); $user = $this->getCurrentUser(); $userId = Factory::getApplication()->getIdentity()->get('id'); $canCreatePdf = ($this->canDo->get('core.create.pdf')); $canCreateOwnPdf = ($this->canDo->get('core.create.own.pdf')); $i = 0; HTMLHelper::_('visforms.includeScriptsOnlyOnce', array('visforms.min' => false, 'visdata.min' => true), array('validation' => false)); HTMLHelper::_('visforms.visformsTooltip'); echo LayoutHelper::render('visforms.custom.noscript', array('text' => 'COM_VISFORMS_NOSCRIPT_ALERT_DATA'), null, array('component' => 'com_visforms')); // HTML-Body of Detail view is loaded with ajax into a given div // Therefore we cannot load Google Maps Api dymanimcally, if only a detail view needs this Api // Check if detail view is enabled and a location field with "show map" enabled is displayed in detail view // Include Google Maps Api once // Include javascript to create adminform in detail view (pdf) if ((!empty($this->form->displaydetail)) && ($this->pparams['displaydetail'] === 'true')) { foreach ($this->fields as $mapField) { if (($mapField->typefield === 'location') && isset($mapField->frontdisplay) && ($mapField->frontdisplay == 1 || $mapField->frontdisplay == 3) && !empty($mapField->displayAsMapInDetail)) { HTMLHelper::_('visformslocation.includeLocationFieldJs', false); break; } } } if ($this->pparams['displaycounter'] === "true") { $displayCounter = $this->counterOffest; } ?>