/** * Prepare document */ protected function prepareDocument() { //Escape strings for HTML output $this->pageclass_sfx = htmlspecialchars($this->params->get('pageclass_sfx')); // Prepare page heading $this->prepearePageHeading(); // Prepare page heading $this->preparePageTitle(); // Meta Description if ($this->params->get('menu-meta_description')) { $this->document->setDescription($this->params->get('menu-meta_description')); } // Meta keywords if ($this->params->get('menu-meta_keywords')) { $this->document->setMetaData('keywords', $this->params->get('menu-meta_keywords')); } if ($this->params->get('robots')) { $this->document->setMetaData('robots', $this->params->get('robots')); } // Scripts JHtml::_('behavior.tooltip'); JHtml::_('Prism.ui.pnotify'); JHtml::_('Prism.ui.joomlaHelper'); $this->document->addScript('media/' . $this->option . '/js/site/' . JString::strtolower($this->getName()) . '.js'); }
protected function setDocument() { // Add scripts JHtml::_('bootstrap.tooltip'); JHtml::_('behavior.formvalidation'); JHtml::_('formbehavior.chosen', 'select'); $this->document->addScript('../media/' . $this->option . '/js/admin/' . $this->getName() . '.js'); }
/** * Method to set up the document properties * * @return void */ protected function setDocument() { $this->document->setTitle($this->documentTitle); // Add scripts JHtml::_('behavior.tooltip'); JHtml::_('behavior.formvalidation'); $this->document->addScript('../media/' . $this->option . '/js/admin/' . String::strtolower($this->getName()) . '.js'); }
/** * Method to set up the document properties * * @return void */ protected function setDocument() { $this->document->setTitle(JText::_('COM_GAMIFICATION_TOOLS')); // Scripts JHtml::_('bootstrap.tooltip'); JHtml::_('formbehavior.chosen', 'select'); JHtml::_('Prism.ui.pnotify'); $this->document->addScript('../media/' . $this->option . '/js/admin/' . strtolower($this->getName()) . '.js'); }
/** * Method to set up the document properties * * @return void */ protected function setDocument() { $this->document->setTitle(JText::_('COM_EMAILTEMPLATES_IMPORT_MANAGER')); // Scripts JHtml::_('behavior.formvalidation'); JHtml::_('bootstrap.tooltip'); JHtml::_('Prism.ui.bootstrap2FileInput'); $this->document->addScript('../media/' . $this->option . '/js/admin/' . JString::strtolower($this->getName()) . '.js'); }
/** * Method to set up the document properties * @return void */ protected function setDocument() { $this->document->setTitle($this->documentTitle); // Scripts JHtml::_('behavior.formvalidation'); JHtml::_('behavior.tooltip'); JHtml::_('formbehavior.chosen', 'select'); $this->document->addScript(JURI::root() . 'media/' . $this->option . '/js/admin/' . Joomla\String\String::strtolower($this->getName()) . '.js'); }
/** * Method to set up the document properties * * @return void */ protected function setDocument() { $this->document->setTitle($this->documentTitle); // Load language string in JavaScript JText::script('COM_GAMIFICATION_DELETE_IMAGE_QUESTION'); // Add scripts JHtml::_('behavior.tooltip'); JHtml::_('behavior.formvalidation'); $this->document->addScript('../media/' . $this->option . '/js/admin/' . String::strtolower($this->getName()) . '.js'); }
/** * Method to set up the document properties * * @return void */ protected function setDocument() { $this->document->setTitle(JText::_('COM_VIRTUALCURRENCY_IMPORT_MANAGER')); $this->legend = JText::_("COM_VIRTUALCURRENCY_IMPORT_REAL_CURRENCY_DATA"); // Scripts JHtml::_('behavior.formvalidation'); JHtml::_('bootstrap.tooltip'); JHtml::_('itprism.ui.bootstrap_fileuploadstyle'); $this->document->addScript('../media/' . $this->option . '/js/admin/' . JString::strtolower($this->getName()) . '.js'); }
protected function setDocument() { // Add behaviors JHtml::_('bootstrap.tooltip'); JHtml::_('behavior.formvalidation'); JHtml::_('formbehavior.chosen', 'select'); // Add scripts $this->document->addScript('../media/' . $this->option . '/js/admin/utilities.js'); $this->document->addScript('../media/' . $this->option . '/js/admin/tag_form.js'); $this->document->addScript('../media/' . $this->option . '/js/admin/global.js'); }
/** * Method to set up the document properties * * @return void */ protected function setDocument() { $this->document->setTitle(JText::_('COM_CROWDFUNDING_TOOLS')); // Scripts JHtml::_('bootstrap.tooltip'); JHtml::_('formbehavior.chosen', 'select'); JHtml::_('Prism.ui.pnotify'); JHtml::_('Prism.ui.joomlaHelper'); JHtml::_('Prism.ui.serializeJson'); $this->document->addScript('../media/' . $this->option . '/js/admin/' . JString::strtolower($this->getName()) . '.js'); }
/** * Method to set up the document properties * * @return void */ protected function setDocument() { $this->document->setTitle($this->documentTitle); // Add scripts JHtml::_('bootstrap.tooltip'); JHtml::_('behavior.keepalive'); JHtml::_('behavior.formvalidation'); $d3Cdn = (bool) $this->params->get('d3_cdn', true); JHtml::_('Prism.ui.d3', $d3Cdn); $js = ' cfProjectId = ' . $this->item->id . '; '; $this->document->addScriptDeclaration($js); $this->document->addScript('../media/' . $this->option . '/js/admin/' . JString::strtolower($this->getName()) . '.js'); }
protected function prepareCommentsScreen() { $this->commentsEnabled = $this->params->get('comments_enabled', 1); // Initialize default comments functionality. if ($this->commentsEnabled) { $model = JModelLegacy::getInstance('Comments', 'CrowdfundingModel', $config = array('ignore_request' => false)); $this->items = $model->getItems(); $this->form = $model->getForm(); $this->userId = JFactory::getUser()->get('id'); $this->isOwner = $this->userId === $this->item->user_id; // Get users IDs $usersIds = Prism\Utilities\ArrayHelper::getIds($this->items, 'user_id'); // Prepare social integration. $this->socialProfiles = CrowdfundingHelper::prepareIntegration($this->params->get('integration_social_platform'), $usersIds); // Scripts JHtml::_('behavior.keepalive'); JHtml::_('behavior.formvalidation'); JHtml::_('prism.ui.pnotify'); JHtml::_('Prism.ui.joomlaHelper'); $this->document->addScript('media/' . $this->option . '/js/site/comments.js'); } // Trigger comments plugins. $dispatcher = JEventDispatcher::getInstance(); $results = $dispatcher->trigger('onContentAfterDisplay', array('com_crowdfunding.comments', &$this->item, &$this->params)); $this->onCommentAfterDisplay = trim(implode("\n", $results)); }
/** * Prepare the document */ protected function prepareDocument() { // Escape strings for HTML output $this->pageclass_sfx = htmlspecialchars($this->params->get('pageclass_sfx')); // Prepare page heading $this->preparePageHeading(); // Prepare page heading $this->preparePageTitle(); if ($this->params->get('menu-meta_description')) { $this->document->setDescription($this->params->get('menu-meta_description')); } else { $this->document->setDescription($this->item->short_desc); } if ($this->params->get('menu-meta_keywords')) { $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); } if ($this->params->get('robots')) { $this->document->setMetadata('robots', $this->params->get('robots')); } // Breadcrumb $pathway = $this->app->getPathWay(); $currentBreadcrumb = JHtmlString::truncate($this->item->title, 16); $pathway->addItem($currentBreadcrumb, ''); // Scripts JHtml::_('bootstrap.framework'); $this->document->addScript('media/' . $this->option . '/js/site/backing.js'); }
protected function prepareCommentsScreen() { $this->commentsEnabled = $this->params->get("comments_enabled", 1); // Initialize default comments functionality. if ($this->commentsEnabled) { $model = JModelLegacy::getInstance("Comments", "CrowdFundingModel", $config = array('ignore_request' => false)); $this->items = $model->getItems(); $this->form = $model->getForm(); $this->userId = JFactory::getUser()->get("id"); $this->isOwner = $this->userId != $this->item->user_id ? false : true; // Get users IDs $usersIds = array(); foreach ($this->items as $item) { $usersIds[] = $item->user_id; } // Prepare integration. Load avatars and profiles. $this->prepareIntegration($usersIds, $this->params); // Scripts JHtml::_('behavior.keepalive'); JHtml::_('behavior.formvalidation'); JHtml::_('itprism.ui.pnotify'); JHtml::_("itprism.ui.joomla_helper"); $this->document->addScript('media/' . $this->option . '/js/site/comments.js'); } // Trigger comments plugins. $dispatcher = JEventDispatcher::getInstance(); $results = $dispatcher->trigger('onContentAfterDisplay', array('com_crowdfunding.comments', &$this->item, &$this->params)); $this->onCommentAfterDisplay = trim(implode("\n", $results)); }
/** * Prepare document */ protected function prepareDocument() { //Escape strings for HTML output $this->pageclass_sfx = htmlspecialchars($this->params->get('pageclass_sfx')); // Prepare page heading $this->preparePageHeading(); // Prepare page heading $this->preparePageTitle(); // Meta Description if ($this->params->get('menu-meta_description')) { $this->document->setDescription($this->params->get('menu-meta_description')); } // Meta keywords if ($this->params->get('menu-meta_keywords')) { $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); } if ($this->params->get('robots')) { $this->document->setMetadata('robots', $this->params->get('robots')); } // Include the translation of the confirmation question. JText::script('COM_IDENTITYPROOF_DELETE_QUESTION'); JHtml::_('bootstrap.tooltip'); JHtml::_('behavior.core'); JHtml::_('itprism.ui.bootstrap_fileuploadstyle'); JHtml::_('itprism.ui.bootstrap_modal'); JHtml::_("itprism.ui.pnotify"); JHtml::_('itprism.ui.joomla_helper'); $this->document->addScript('media/' . $this->option . '/js/site/proof.js'); }
/** * Prepare document */ protected function prepareDocument() { //Escape strings for HTML output $this->pageclass_sfx = htmlspecialchars($this->params->get('pageclass_sfx')); // Prepare page heading $this->preparePageHeading(); // Prepare page heading $this->preparePageTitle(); // Meta Description if ($this->params->get('menu-meta_description')) { $this->document->setDescription($this->params->get('menu-meta_description')); } // Meta keywords if ($this->params->get('menu-meta_keywords')) { $this->document->setMetaData('keywords', $this->params->get('menu-meta_keywords')); } if ($this->params->get('robots')) { $this->document->setMetaData('robots', $this->params->get('robots')); } // Scripts JHtml::_('bootstrap.tooltip'); JHtml::_('Prism.ui.pnotify'); JHtml::_('Prism.ui.joomlaHelper'); $this->document->addScript('media/com_crowdfunding/js/site/reward_state.js'); }
/** * Method to set up the document properties * * @return void */ protected function setDocument() { $this->document->setTitle(JText::_('COM_CROWDFUNDING_IMPORT_MANAGER')); // Scripts JHtml::_('behavior.formvalidation'); JHtml::_('bootstrap.tooltip'); JHtml::_('prism.ui.bootstrapFileUploadStyle'); $this->document->addScript('../media/' . $this->option . '/js/admin/' . Joomla\String\String::strtolower($this->getName()) . '.js'); }
/** * Method to set up the document properties. * * @return void */ protected function setDocument() { $this->document->setTitle(JText::_('COM_CROWDFUNDING_REPORTS_MANAGER')); // Scripts JHtml::_('behavior.multiselect'); JHtml::_('bootstrap.tooltip'); JHtml::_('formbehavior.chosen', 'select'); JHtml::_('prism.ui.joomlaList'); $this->document->addScript('../media/' . $this->option . '/js/admin/' . Joomla\String\String::strtolower($this->getName()) . '.js'); }
/** * Method to set up the document properties * * @throws \InvalidArgumentException * * @return void */ protected function setDocument() { $this->document->setTitle($this->documentTitle); // Scripts JHtml::_('behavior.formvalidation'); JHtml::_('behavior.tooltip'); JHtml::_('formbehavior.chosen', 'select'); JHtml::_('Prism.ui.pnotify'); JHtml::_('Prism.ui.joomlaHelper'); $this->document->addScript('../media/' . $this->option . '/js/admin/' . strtolower($this->getName()) . '.js'); }
/** * Method to set up the document properties * * @return void */ protected function setDocument() { $this->document->setTitle(JText::_('COM_GAMIFICATION_POINTS_MANAGER')); // Load language string in JavaScript JText::script('COM_GAMIFICATION_SEARCH_IN_TITLE_TOOLTIP'); // Scripts JHtml::_('behavior.multiselect'); JHtml::_('bootstrap.tooltip'); JHtml::_('formbehavior.chosen', 'select'); $this->document->addScript('../media/' . $this->option . '/js/admin/' . strtolower($this->getName()) . '.js'); }
/** * Method to set up the document properties * * @return void */ protected function setDocument() { $this->document->setTitle($this->documentTitle); // Add behaviors JHtml::_('bootstrap.tooltip'); JHtml::_('behavior.formvalidation'); JHtml::_('formbehavior.chosen', '#jform_country_id'); JHtml::_('prism.ui.bootstrap2Typeahead'); // Add scripts $this->document->addScript('../media/' . $this->option . '/js/admin/' . strtolower($this->getName()) . '.js'); }
/** * Method to set up the document properties * * @return void */ protected function setDocument() { $this->document->setTitle($this->documentTitle); // Scripts JHtml::_('behavior.keepalive'); JHtml::_('behavior.formvalidation'); JHtml::_('behavior.tooltip'); JHtml::_('prism.ui.bootstrap2FileInput'); JHtml::_('formbehavior.chosen', 'select'); // Add scripts $this->document->addScript('../media/' . $this->option . '/js/admin/' . Joomla\String\String::strtolower($this->getName()) . '.js'); }
/** * Method to set up the document properties * * @return void */ protected function setDocument() { $this->document->setTitle(JText::_('COM_ITPMETA_URLS_MANAGER_TITLE')); // Load language string in JavaScript JText::script('COM_ITPMETA_ERROR_NO_ITEM_SELECTED'); // Add behaviors JHtml::_('bootstrap.tooltip'); JHtml::_('behavior.multiselect'); JHtml::_('formbehavior.chosen', 'select'); JHtml::_("Prism.ui.joomlaList"); $this->document->addScript('../media/' . $this->option . '/js/admin/' . $this->getName() . '.js'); }
/** * Method to set up the document properties * * @return void */ protected function setDocument() { $this->document->setTitle(JText::_('COM_CROWDFUNDING_TRANSACTIONS_MANAGER')); // Scripts JHtml::_('behavior.multiselect'); JHtml::_('bootstrap.tooltip'); JHtml::_('formbehavior.chosen', 'select'); JHtml::_('Prism.ui.joomlaList'); JHtml::_('Prism.ui.pnotify'); JHtml::_('Prism.ui.joomlaHelper'); $this->document->addScript('../media/' . $this->option . '/js/admin/' . strtolower($this->getName()) . '.js'); }
/** * Method to set up the document properties * * @return void */ protected function setDocument() { $this->document->setTitle(JText::_('COM_IDENTITYPROOF_FILES_MANAGER')); // Scripts JHtml::_('behavior.multiselect'); JHtml::_('bootstrap.tooltip'); JHtml::_('formbehavior.chosen', 'select'); JHtml::_("itprism.ui.pnotify"); JHtml::_('itprism.ui.joomla_helper'); JHtml::_('itprism.ui.joomla_list'); $this->document->addScript(JURI::root() . 'media/' . $this->option . '/js/admin/' . JString::strtolower($this->getName()) . '.js'); }
/** * Method to set up the document properties * @return void */ protected function setDocument() { $this->document->setTitle(JText::_('COM_CROWDFUNDING_LOGS_MANAGER')); // Load language string in JavaScript JText::script('COM_CROWDFUNDING_DELETE_ALL_ITEMS'); // Scripts JHtml::_('behavior.multiselect'); JHtml::_('bootstrap.tooltip'); JHtml::_('formbehavior.chosen', 'select'); JHtml::_('prism.ui.joomlaList'); $this->document->addScript('../media/' . $this->option . '/js/admin/' . JString::strtolower($this->getName()) . '.js'); }
/** * Method to set up the document properties * * @return void */ protected function setDocument() { $this->document->setTitle($this->documentTitle); // Add scripts JHtml::_('behavior.keepalive'); JHtml::_('behavior.formvalidation'); JHtml::_('formbehavior.chosen', 'select'); JHtml::_('bootstrap.tooltip'); JHtml::_('itprism.ui.bootstrap_fileuploadstyle'); JHtml::_('itprism.ui.bootstrap_typeahead'); JHtml::_("itprism.ui.joomla_helper"); $this->document->addScript('../media/' . $this->option . '/js/admin/' . JString::strtolower($this->getName()) . '.js'); }
/** * Method to set up the document properties * * @return void */ protected function setDocument() { $this->document->setTitle(JText::_('COM_EMAILTEMPLATES_PLACEHOLDER_MANAGER')); // Load language string in JavaScript JText::script('COM_EMAILTEMPLATES_PLACEHOLDERS_NOT_SELECTED'); // Scripts JHtml::_('behavior.multiselect'); JHtml::_('bootstrap.tooltip'); JHtml::_('formbehavior.chosen', 'select'); JHtml::_('Prism.ui.pnotify'); JHtml::_('Prism.ui.joomlaHelper'); $this->document->addScript('../media/' . $this->option . '/js/admin/' . JString::strtolower($this->getName()) . '.js'); }
/** * Prepares the document. */ protected function prepareDocument() { $app = JFactory::getApplication(); /** @var $app JApplicationSite */ // Escape strings for HTML output $this->pageclass_sfx = htmlspecialchars($this->params->get('pageclass_sfx')); // Prepare page heading $this->preparePageHeading(); // Prepare page heading $this->preparePageTitle(); // Meta Description if (!$this->params->get("metadesc")) { $this->document->setDescription($this->params->get("menu-meta_description")); } else { $this->document->setDescription($this->params->get("metadesc")); } // Meta keywords if (!$this->params->get("metakey")) { $this->document->setDescription($this->params->get('menu-meta_keywords')); } else { $this->document->setMetadata('keywords', $this->params->get("metakey")); } // Add category name into breadcrumbs $pathway = $app->getPathway(); $pathway->addItem(JText::_("COM_SOCIALCOMMUNITY_EDIT_PROFILE")); // Script JHtml::_('jquery.framework'); switch ($this->layout) { case "contact": JHtml::_('prism.ui.bootstrap3Typeahead'); if ($this->params->get("include_chosen", 0)) { JHtml::_('formbehavior.chosen', '#jform_country_id'); } $this->document->addScript('media/' . $this->option . '/js/site/form_contact.js'); break; case "social": $this->prepareSocialProfiles(); break; default: // Load scripts used on layout "Basic". if ($this->params->get("include_chosen", 0)) { JHtml::_('formbehavior.chosen', '#jform_gender'); } JHtml::_("prism.ui.bootstrapMaxLength"); JHtml::_("prism.ui.bootstrap3FileInput"); $this->document->addScript('media/' . $this->option . '/js/site/form_basic.js'); JText::script('COM_SOCIALCOMMUNITY_SELECT_FILE'); JText::script('COM_SOCIALCOMMUNITY_QUESTION_REMOVE_IMAGE'); break; } }
/** * Prepare the document */ protected function prepareDocument() { $app = JFactory::getApplication(); /** @var $app JApplicationSite */ // Escape strings for HTML output $this->pageclass_sfx = htmlspecialchars($this->params->get('pageclass_sfx')); // Prepare page heading $this->preparePageHeading(); // Prepare page heading $this->preparePageTitle(); if ($this->params->get('menu-meta_description')) { $this->document->setDescription($this->params->get('menu-meta_description')); } else { if (!$this->item) { $metaDescription = JText::_('COM_CROWDFUNDING_REPORT_CAMPAIGN'); } else { $metaDescription = JText::sprintf('COM_CROWDFUNDING_REPORT_S', $this->item->title); } $this->document->setDescription($metaDescription); } if ($this->params->get('menu-meta_keywords')) { $this->document->setMetaData('keywords', $this->params->get('menu-meta_keywords')); } if ($this->params->get('robots')) { $this->document->setMetaData('robots', $this->params->get('robots')); } // Breadcrumb $pathway = $app->getPathway(); $currentBreadcrumb = !$this->item ? JText::_('COM_CROWDFUNDING_REPORT_CAMPAIGN') : JHtmlString::truncate($this->item->title, 16); $pathway->addItem($currentBreadcrumb, ''); // Add scripts JHtml::_('jquery.framework'); JHtml::_('prism.ui.bootstrapMaxlength'); JHtml::_('prism.ui.bootstrap3Typeahead'); $this->document->addScript('media/' . $this->option . '/js/site/report.js'); }