Exemplo n.º 1
0
 /**
  * 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->prepearePageTitle();
     // 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');
 }
Exemplo n.º 2
0
 /**
  * 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 {
         $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 = $app->getPathWay();
     $currentBreadcrumb = JHtmlString::truncate($this->item->title, 16);
     $pathway->addItem($currentBreadcrumb, '');
     // Add scripts
     JHtml::_('behavior.framework');
 }
Exemplo n.º 3
0
 /**
  * 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();
     // Meta description
     $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 = $app->getPathWay();
     $currentBreadcrumb = JHtmlString::truncate($this->item->title, 32);
     $pathway->addItem($currentBreadcrumb, '');
     // Add styles
     // Load bootstrap media styles
     if ($this->params->get("bootstrap_mediacomponent", false)) {
         JHtml::_("itprism.ui.bootstrap_mediacomponent");
     }
     // Add scripts
     JHtml::_('jquery.framework');
 }
Exemplo n.º 4
0
 /**
  * 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');
 }
Exemplo n.º 5
0
 /**
  * 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');
 }
Exemplo n.º 6
0
 /**
  * Prepares the document
  */
 protected function prepareDocument()
 {
     // Prepare page suffix
     $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'));
     }
 }
Exemplo n.º 7
0
 /**
  * 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');
 }
Exemplo n.º 8
0
 /**
  * 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;
     }
 }
Exemplo n.º 9
0
 /**
  * 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'));
     }
     // Head styles
     $this->document->addStyleSheet('media/' . $this->option . '/css/site/style.css');
     JHtml::_('behavior.tooltip');
 }
Exemplo n.º 10
0
 /**
  * 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.bootstrapTypeahead3');
     $this->document->addScript('media/' . $this->option . '/js/site/report.js');
 }
Exemplo n.º 11
0
 /**
  * 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'));
     }
     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'));
     }
     // Add scripts
     JHtml::_("jquery.framework");
     JHtml::script("com_virtualcurrency/site/payment.js", false, true, false);
 }
Exemplo n.º 12
0
 /**
  * Prepares the document.
  */
 protected function prepareDocument()
 {
     $app = JFactory::getApplication();
     /** @var $app JApplicationSite */
     // Prepare page suffix
     $this->pageclass_sfx = htmlspecialchars($this->params->get('pageclass_sfx'));
     $menus = $app->getMenu();
     // Because the application sets a default page title,
     // we need to get it from the menu item itself
     $menu = $menus->getActive();
     if ($menu) {
         $this->params->def('page_heading', $menu->title);
     } else {
         $this->params->def('page_heading', JText::_('COM_USERIDEAS_FROM_DEFAULT_PAGE_TITLE'));
     }
     // Prepare page title
     $title = $menu->title;
     if (!$title) {
         $title = $app->get('sitename');
     } elseif ($app->get('sitename_pagetitles', 0)) {
         // Set site name if it is necessary ( the option 'sitename' = 1 )
         $title = JText::sprintf('JPAGETITLE', $app->get('sitename'), $title);
     }
     $this->document->setTitle($title);
     // Meta Description
     $this->document->setDescription($this->params->get('menu-meta_description'));
     // Meta keywords
     $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords'));
     // Add current layout into breadcrumbs
     $pathway = $app->getPathway();
     $pathway->addItem(JText::_("COM_USERIDEAS_PATHWAY_FORM_TITLE"));
     // Scripts
     JHtml::_('bootstrap.framework');
     JHtml::_('bootstrap.tooltip');
     if ($this->params->get("enable_chosen", 0)) {
         JHtml::_('formbehavior.chosen', '.js-uideas-catid-select');
     }
     JHtml::_('behavior.keepalive');
     JHtml::_('behavior.formvalidation');
 }
Exemplo n.º 13
0
 /**
  * Prepares the document
  */
 protected function prepareDocument()
 {
     // Prepare page suffix
     $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'));
     }
     // Styles
     // Load bootstrap thumbnails styles
     if ($this->params->get("bootstrap_thumbnails", false)) {
         JHtml::_("itprism.ui.bootstrap_thumbnails");
     }
 }
Exemplo n.º 14
0
 /**
  * Prepares the document
  */
 protected function prepareDocument()
 {
     $app = JFactory::getApplication();
     /** @var $app JApplicationSite */
     // Prepare page suffix
     $this->pageclass_sfx = htmlspecialchars($this->params->get('pageclass_sfx'));
     // Prepare page heading
     $this->preparePageHeading();
     // Prepare page heading
     $this->preparePageTitle();
     // Meta Description
     $this->document->setDescription($this->params->get('menu-meta_description'));
     // Meta keywords
     $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords'));
     // Add current layout into breadcrumbs
     $pathway = $app->getPathway();
     $pathway->addItem(JText::_("COM_USERIDEAS_PATHWAY_FORM_TITLE"));
     // Scripts
     JHtml::_('behavior.keepalive');
     JHtml::_('jquery.framework');
     JHtml::_('itprism.ui.pnotify');
 }
Exemplo n.º 15
0
 /**
  * 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'));
     }
     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();
     $pathway->addItem($this->item->name);
 }
Exemplo n.º 16
0
 /**
  * Prepares the document
  */
 protected function prepareDocument()
 {
     // Prepare page suffix
     $this->pageclass_sfx = htmlspecialchars($this->params->get('pageclass_sfx'));
     $menus = $this->app->getMenu();
     // Because the application sets a default page title,
     // we need to get it from the menu item itself
     $menu = $menus->getActive();
     if ($menu) {
         $this->params->def('page_heading', $menu->title);
     } else {
         $this->params->def('page_heading', JText::_('COM_CROWDFUNDING_RAISE_DEFAULT_PAGE_TITLE'));
     }
     // Prepare page title
     $title = $menu->title;
     if (!$title) {
         $title = $this->app->get('sitename');
         // Set site name if it is necessary ( the option 'sitename' = 1 )
     } elseif ($this->app->get('sitename_pagetitles', 0)) {
         $title = JText::sprintf('JPAGETITLE', $this->app->get('sitename'), $title);
         // Item title to the browser title.
     } else {
         if (!empty($this->item)) {
             $title .= " | " . $this->escape($this->item->title);
         }
     }
     $this->document->setTitle($title);
     // Meta Description
     $this->document->setDescription($this->params->get('menu-meta_description'));
     // Meta keywords
     $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords'));
     // Add current layout into breadcrumbs.
     $pathway = $this->app->getPathway();
     $pathway->addItem($this->pathwayName);
     // Scripts
     if ($this->userId) {
         JHtml::_('behavior.core');
         JHtml::_('behavior.keepalive');
         if ($this->params->get("enable_chosen", 1)) {
             JHtml::_('formbehavior.chosen', '.cf-advanced-select');
         }
     }
     switch ($this->layout) {
         case "rewards":
             // Load language string in JavaScript
             JText::script('COM_CROWDFUNDING_QUESTION_REMOVE_REWARD');
             JText::script('COM_CROWDFUNDING_QUESTION_REMOVE_IMAGE');
             JText::script('COM_CROWDFUNDING_PICK_IMAGE');
             // Scripts
             if ($this->params->get("rewards_images", 0)) {
                 JHtml::_('prism.ui.bootstrap3Fileinput');
             }
             JHtml::_('prism.ui.pnotify');
             JHtml::_("prism.ui.joomlaHelper");
             $this->document->addScript('media/' . $this->option . '/js/site/project_rewards.js');
             break;
         case "funding":
             JHtml::_('prism.ui.parsley');
             JHtml::_('prism.ui.bootstrap3Datepicker');
             $this->document->addScript('media/' . $this->option . '/js/site/project_funding.js');
             // Load language string in JavaScript
             JText::script('COM_CROWDFUNDING_THIS_VALUE_IS_REQUIRED');
             break;
         case "story":
             // Scripts
             JHtml::_('prism.ui.bootstrap3FileInput');
             // Include translation of the confirmation question for image removing.
             JText::script('COM_CROWDFUNDING_QUESTION_REMOVE_IMAGE');
             JText::script('COM_CROWDFUNDING_PICK_IMAGE');
             JText::script('COM_CROWDFUNDING_REMOVE');
             $this->document->addScript('media/' . $this->option . '/js/site/project_story.js');
             break;
         case "manager":
             $this->document->addScript('media/' . $this->option . '/js/site/project_manager.js');
             // Load language string in JavaScript
             JText::script('COM_CROWDFUNDING_QUESTION_LAUNCH_PROJECT');
             JText::script('COM_CROWDFUNDING_QUESTION_STOP_PROJECT');
             break;
         case "extras":
             break;
         default:
             // Basic
             if ($this->userId) {
                 JHtml::_('prism.ui.bootstrapMaxLength');
                 JHtml::_('prism.ui.bootstrap3Typeahead');
                 JHtml::_('prism.ui.parsley');
                 JHtml::_('prism.ui.cropper');
                 JHtml::_('prism.ui.fileupload');
                 JHtml::_('prism.ui.pnotify');
                 JHtml::_("prism.ui.joomlaHelper");
                 $this->document->addScript('media/' . $this->option . '/js/site/project_basic.js');
                 // Load language string in JavaScript
                 JText::script('COM_CROWDFUNDING_QUESTION_REMOVE_IMAGE');
                 // Provide image size.
                 $js = "\r\n                    var cfImageWidth  = " . $this->params->get("image_width", 200) . ";\r\n                    var cfImageHeight = " . $this->params->get("image_height", 200) . ";\r\n                ";
                 $this->document->addScriptDeclaration($js);
             }
             break;
     }
 }
Exemplo n.º 17
0
 /**
  * Prepares the document
  */
 protected function prepareDocument()
 {
     $app = JFactory::getApplication();
     /** @var $app JApplicationSite */
     // Prepare page suffix
     $this->pageclass_sfx = htmlspecialchars($this->params->get('pageclass_sfx'));
     $menus = $app->getMenu();
     // Because the application sets a default page title,
     // we need to get it from the menu item itself
     $menu = $menus->getActive();
     if ($menu) {
         $this->params->def('page_heading', $menu->title);
     } else {
         $this->params->def('page_heading', JText::_('COM_CROWDFUNDING_RAISE_DEFAULT_PAGE_TITLE'));
     }
     // Prepare page title
     $title = $menu->title;
     if (!$title) {
         $title = $app->get('sitename');
     } elseif ($app->get('sitename_pagetitles', 0)) {
         // Set site name if it is necessary ( the option 'sitename' = 1 )
         $title = JText::sprintf('JPAGETITLE', $app->get('sitename'), $title);
     } else {
         // Item title to the browser title.
         if (!empty($this->item)) {
             $title .= " | " . $this->escape($this->item->title);
         }
     }
     $this->document->setTitle($title);
     // Meta Description
     $this->document->setDescription($this->params->get('menu-meta_description'));
     // Meta keywords
     $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords'));
     // Add current layout into breadcrumbs.
     $pathway = $app->getPathway();
     $pathway->addItem($this->pathwayName);
     // Styles
     // Load bootstrap navbar styles
     if ($this->params->get("bootstrap_navbar", false)) {
         JHtml::_("itprism.ui.bootstrap_navbar");
     }
     // Scripts
     JHtml::_('bootstrap.framework');
     //        JHtml::_('bootstrap.tooltip');
     if ($this->params->get("enable_chosen", 1)) {
         JHtml::_('formbehavior.chosen', '.cf-advanced-select');
     }
     JHtml::_('behavior.keepalive');
     switch ($this->layout) {
         case "rewards":
             // Load language string in JavaScript
             JText::script('COM_CROWDFUNDING_QUESTION_REMOVE_REWARD');
             JText::script('COM_CROWDFUNDING_QUESTION_REMOVE_IMAGE');
             JText::script('COM_CROWDFUNDING_SELECT_IMAGE');
             // Scripts
             if ($this->params->get("rewards_images", 0)) {
                 JHtml::_('itprism.ui.bootstrap_filestyle');
             }
             JHtml::_('itprism.ui.pnotify');
             JHtml::_("itprism.ui.joomla_helper");
             $this->document->addScript('media/' . $this->option . '/js/site/project_rewards.js');
             break;
         case "funding":
             JHtml::_('itprism.ui.parsley');
             $this->document->addScript('media/' . $this->option . '/js/site/project_funding.js');
             // Load language string in JavaScript
             JText::script('COM_CROWDFUNDING_THIS_VALUE_IS_REQUIRED');
             break;
         case "story":
             // Scripts
             JHtml::_('itprism.ui.bootstrap_fileuploadstyle');
             if ($this->params->get("extra_images", 0)) {
                 JHtml::_('itprism.ui.fileupload');
                 JHtml::_('itprism.ui.pnotify');
                 JHtml::_("itprism.ui.joomla_helper");
             }
             $this->document->addScript('media/' . $this->option . '/js/site/project_story.js');
             break;
         case "manager":
             $this->document->addScript('media/' . $this->option . '/js/site/project_manager.js');
             // Load language string in JavaScript
             JText::script('COM_CROWDFUNDING_QUESTION_LAUNCH_PROJECT');
             JText::script('COM_CROWDFUNDING_QUESTION_STOP_PROJECT');
             break;
         case "extras":
             break;
         default:
             // Basic
             // Scripts
             JHtml::_('itprism.ui.bootstrap_fileuploadstyle');
             JHtml::_('itprism.ui.bootstrap_maxlength');
             JHtml::_('itprism.ui.bootstrap_typeahead');
             JHtml::_('itprism.ui.parsley');
             $this->document->addScript('media/' . $this->option . '/js/site/project_basic.js');
             // Load language string in JavaScript
             JText::script('COM_CROWDFUNDING_THIS_VALUE_IS_REQUIRED');
             break;
     }
 }