Exemplo n.º 1
0
 /**
  * 
  * check export / import actions
  */
 private function checkExportImport()
 {
     //set message on start
     $message = UniteFunctionsRev::getGetVar("m");
     if ($message == "is") {
         //import success message
         $this->messageOnStart = "Import slider parameters and slides success!!!";
     }
     $clientAction = UniteFunctionsRev::getPostGetVariable("client_action");
     $helper = new HelperUniteOperationsRev();
     switch ($clientAction) {
         case "export_slider":
             $helper->exportSlider($this->sliderID);
             break;
         case "import_slider":
             $helper->importSlider($this->sliderID);
             //redirect
             $urlSlider = HelperUniteRev::getViewUrl_Slider($this->sliderID);
             $urlSlider .= "&m=is";
             UniteFunctionsRev::redirectToUrl($urlSlider);
             break;
     }
 }
Exemplo n.º 2
0
 /**
  * 
  * show image from get params
  */
 public function showImageFromGet()
 {
     $imageFilename = UniteFunctionsRev::getGetVar("img");
     $noencode = UniteFunctionsRev::getGetVar("noencode", "");
     if ($noencode != "true") {
         $imageFilename = base64_decode($imageFilename);
     }
     $maxWidth = UniteFunctionsRev::getGetVar("w", -1);
     $maxHeight = UniteFunctionsRev::getGetVar("h", -1);
     $type = UniteFunctionsRev::getGetVar("t", "");
     //set effect
     $effect = UniteFunctionsRev::getGetVar("e");
     $effectArgument1 = UniteFunctionsRev::getGetVar("ea1");
     if (!empty($effect)) {
         $this->setEffect($effect, $effectArgument1);
     }
     $this->showImage($imageFilename, $maxWidth, $maxHeight, $type);
 }
Exemplo n.º 3
0
<?php

//get input
$slideID = UniteFunctionsRev::getGetVar("id");
//init slide object
$slide = new RevSlide();
$slide->initByID($slideID);
$slideParams = $slide->getParams();
$operations = new RevOperations();
//init slider object
$sliderID = $slide->getSliderID();
$slider = new RevSlider();
$slider->initByID($sliderID);
$sliderParams = $slider->getParams();
//set slide delay
$sliderDelay = $slider->getParam("delay", "9000");
$slideDelay = $slide->getParam("delay", "");
if (empty($slideDelay)) {
    $slideDelay = $sliderDelay;
}
require self::getSettingsFilePath("slide_settings");
require self::getSettingsFilePath("layer_settings");
$settingsLayerOutput = new UniteSettingsProductSidebarRev();
$settingsSlideOutput = new UniteSettingsRevProductRev();
$arrLayers = $slide->getLayers();
//get settings objects
$settingsLayer = self::getSettings("layer_settings");
$settingsSlide = self::getSettings("slide_settings");
$cssContent = self::getSettings("css_captions_content");
$arrCaptionClasses = $operations->getArrCaptionClasses($cssContent);
$arrButtonClasses = $operations->getButtonClasses();
 /**
  * 
  * show image from get params
  */
 public function showImageFromGet()
 {
     //$imageFilename = UniteFunctionsRev::getGetVar("img");
     $imageID = intval(UniteFunctionsRev::getGetVar("img"));
     $maxWidth = UniteFunctionsRev::getGetVar("w", -1);
     $maxHeight = UniteFunctionsRev::getGetVar("h", -1);
     $type = UniteFunctionsRev::getGetVar("t", "");
     //set effect
     $effect = UniteFunctionsRev::getGetVar("e");
     $effectArgument1 = UniteFunctionsRev::getGetVar("ea1");
     if (!empty($effect)) {
         $this->setEffect($effect, $effectArgument1);
     }
     $this->showImageByID($imageID);
     echo 'sechs<br>';
     //$this->showImage($imageFilename,$maxWidth,$maxHeight,$type);
 }
Exemplo n.º 5
0
<?php

/**
 * @package Unite Revolution Slider for Joomla 1.7-2.5
 * @author UniteCMS.net
 * @copyright (C) 2012 Unite CMS, All Rights Reserved. 
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
// No direct access.
defined('_JEXEC') or die;
$arrowsSets = HelperUniteRev::getArrowsList();
$settingID = UniteFunctionsRev::getGetVar("settingid");
?>

<div class="arrows_grid">
	<ul class="arrows_list">
	<?php 
foreach ($arrowsSets as $name => $set) {
    $urlLeft = $set["url_left"];
    $urlRight = $set["url_right"];
    ?>
				<li>
					<a href="javascript:void(0)" class="link_arrow" id="<?php 
    echo $name;
    ?>
" title="<?php 
    echo $name;
    ?>
">
						<span>
							<img src="<?php