Ejemplo n.º 1
0
 /**
  * 
  * show image from get params
  */
 public function showImageFromGet()
 {
     $imageFilename = UniteFunctionsBiz::getGetVar("img");
     $maxWidth = UniteFunctionsBiz::getGetVar("w", -1);
     $maxHeight = UniteFunctionsBiz::getGetVar("h", -1);
     $type = UniteFunctionsBiz::getGetVar("t", "");
     //set effect
     $effect = UniteFunctionsBiz::getGetVar("e");
     $effectArgument1 = UniteFunctionsBiz::getGetVar("ea1");
     if (!empty($effect)) {
         $this->setEffect($effect, $effectArgument1);
     }
     $this->showImage($imageFilename, $maxWidth, $maxHeight, $type);
 }
Ejemplo n.º 2
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");
?>


	
Ejemplo n.º 3
0
<?php

//get input
$slideID = UniteFunctionsBiz::getGetVar("id");
//init slide object
$slide = new BizSlide();
$slide->initByID($slideID);
$slideParams = $slide->getParams();
$operations = new BizOperations();
//init slider object
$sliderID = $slide->getSliderID();
$slider = new ShowBizSlider();
$slider->initByID($sliderID);
$sliderParams = $slider->getParams();
require self::getSettingsFilePath("slide_settings");
$settingsSlideOutput = new UniteSettingsBizProductBiz();
$settingsSlide = self::getSettings("slide_settings");
//set stored values from "slide params"
$settingsSlide->setStoredValues($slideParams);
$settingsSlideOutput->init($settingsSlide);
//set various parameters needed for the page
$imageUrl = $slide->getImageUrl();
$slideTitle = $slide->getParam("title", "Slide");
$slideOrder = $slide->getOrder();
$closeUrl = self::getViewUrl(ShowBizAdmin::VIEW_SLIDES, "id={$sliderID}");
require self::getPathTemplate("slide");
?>