Example #1
0
<?php

$templates = new ShowBizTemplate();
$titleText = "ShowBiz Navigation Skin Editor";
$templatesType = GlobalsShowBiz::TEMPLATE_TYPE_BUTTON;
//new item prefix
$templatesPrefix = "Navigation Template";
$arrTemplates = $templates->getList($templatesType);
//set buttons array
$prefix = "showbiz_";
$arrButtons = array();
$arrButtons[$prefix . "left_button_id"] = "Left Button ID";
$arrButtons[$prefix . "right_button_id"] = "Right Button ID";
$arrButtons[$prefix . "play_button_id"] = "Play Button ID";
$arrOriginalTemplates = BizOperations::getArrInitNavigationTemplates(true);
$linkShowAll = self::getPageUrl(ShowBizAdmin::VIEW_TEMPLATES_NAV);
$filterID = UniteFunctionsBiz::getGetVar("id");
$showCustomOptions = false;
$showClasses = false;
$standartOptionsName = "Navigation Options";
$linkHelp = GlobalsShowBiz::LINK_HELP_TEMPLATES_NAVS;
require self::getPathTemplate("templates");
?>


	
Example #2
0
 /**
  * 
  * init templates data
  */
 private static function initTemplatesData()
 {
     $arrItemTemplates = BizOperations::getArrInitItemTemplates();
     $arrNavigationTemplates = BizOperations::getArrInitNavigationTemplates();
     $arrTemplates = array_merge($arrItemTemplates, $arrNavigationTemplates);
     $responses = "";
     foreach ($arrTemplates as $template) {
         $response = self::insertTemplate($template["name"], $template["filenameHtml"], $template["filenameCss"], $template["type"]);
         $responses .= $response . "<br>";
     }
     return $responses;
 }