/** * get template path from the helper templates folder * */ public static function getPathHelperTemplate($template) { return HelperUG::getPathTemplate($template, GlobalsUG::$pathHelpersTemplates); }
<?php /** * @package Unite Gallery * @author UniteCMS.net / Valiano * @copyright (C) 2012 Unite CMS, All Rights Reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html * */ defined('_JEXEC') or die('Restricted access'); $action = UniteFunctionsUG::getGetVar("action"); if ($action == "connector") { require GlobalsUG::$path_elfinder . "php/connector.minimal.php"; runElfinderConnector(); exit; } //$urlBase = glo $urlBase = GlobalsUG::$url_elfinder; require HelperUG::getPathTemplate("mediaselect"); exit;
<?php /** * @package Unite Gallery * @author UniteCMS.net / Valiano * @copyright (C) 2012 Unite CMS, All Rights Reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html * */ defined('_JEXEC') or die('Restricted access'); $objGalleries = new UniteGalleryGalleries(); $arrGalleryTypes = $objGalleries->getArrGalleryTypesShort(); $arrGalleries = $objGalleries->getArrGalleries("title"); $headerTitle = __("Galleries", UNITEGALLERY_TEXTDOMAIN); require HelperUG::getPathTemplate("galleries");
<?php /** * @package Unite Gallery * @author UniteCMS.net / Valiano * @copyright (C) 2012 Unite CMS, All Rights Reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html * */ defined('_JEXEC') or die('Restricted access'); ?> <?php require HelperUG::getPathTemplate("header"); ?> <?php $selectedGalleryTab = "preview"; require HelperGalleryUG::getPathHelperTemplate("gallery_edit_tabs"); ?> <div class="unite-preview-wrapper"> <div class="vert_sap40"></div> <?php require HelperGalleryUG::getPathView("preview"); ?> <div class="vert_sap50"></div> </div> <a class='unite-button-secondary mleft_10' href='<?php
$arrMenuItem["duplicate"] = __("Duplicate", UNITEGALLERY_TEXTDOMAIN); //init multiple item menu $arrMenuItemMultiple = array(); $arrMenuItemMultiple["delete"] = __("Delete", UNITEGALLERY_TEXTDOMAIN); $arrMenuItemMultiple["duplicate"] = __("Duplicate", UNITEGALLERY_TEXTDOMAIN); //init field menu $arrMenuField = array(); if ($itemsType != "video") { $arrMenuField["add_image"] = __("Add Image", UNITEGALLERY_TEXTDOMAIN); } if ($itemsType != "images") { $arrMenuField["add_video"] = __("Add Video", UNITEGALLERY_TEXTDOMAIN); } $arrMenuField["select_all"] = __("Select All", UNITEGALLERY_TEXTDOMAIN); //init category menu $arrMenuCat = array(); $arrMenuCat["edit_category"] = __("Edit Category", UNITEGALLERY_TEXTDOMAIN); $arrMenuCat["delete_category"] = __("Delete Category", UNITEGALLERY_TEXTDOMAIN); //init category field menu $arrMenuCatField = array(); $arrMenuCatField["add_category"] = __("Add Category", UNITEGALLERY_TEXTDOMAIN); $headerTitle = __("Items", UNITEGALLERY_TEXTDOMAIN); $selectedCategory = ""; //set gallery related items if ($isGalleryPage == true) { $galleryTitle = GlobalsUGGallery::$gallery->getTitle(); $headerTitle = $galleryTitle . " - " . __("[images]", UNITEGALLERY_TEXTDOMAIN); $selectedCategory = GlobalsUGGallery::$gallery->getParam("category"); } require HelperUG::getPathTemplate("items");
<?php /** * @package Unite Gallery * @author UniteCMS.net / Valiano * @copyright (C) 2012 Unite CMS, All Rights Reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html * */ defined('_JEXEC') or die('Restricted access'); $galleryTitle = GlobalsUGGallery::$gallery->getTitle(); $headerTitle = $galleryTitle . " - " . __("[preview]", UNITEGALLERY_TEXTDOMAIN); require HelperUG::getPathTemplate("preview");