Пример #1
0
<?php

/**
 * @package Unite Horizontal Carousel 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 = HelperUniteHCar::getArrowsList();
$settingID = UniteFunctionsHCar::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 
Пример #2
0
 /**
  * 
  * output the css
  */
 public function outputCss()
 {
     $sliderID = UniteFunctionsHCar::getGetVar("slider_id");
     $sliderJSID = UniteFunctionsHCar::getGetVar("slider_js_id");
     try {
         $this->initSlider($sliderID);
         $this->initCSSOutput();
         $this->sliderJSID = $sliderJSID;
         $this->putCss();
     } catch (Exception $e) {
         $message = $e->getMessage();
         UniteFunctionsHCar::errorHtmlOutput($message);
     }
 }
Пример #3
0
 /**
  * 
  * show image from get params
  */
 public function showImageFromGet()
 {
     $imageFilename = UniteFunctionsHCar::getGetVar("img");
     $noencode = UniteFunctionsHCar::getGetVar("noencode", "");
     if ($noencode != "true") {
         $imageFilename = base64_decode($imageFilename);
     }
     $this->validateFilename($imageFilename);
     $maxWidth = UniteFunctionsHCar::getGetVar("w", -1);
     $maxHeight = UniteFunctionsHCar::getGetVar("h", -1);
     $type = UniteFunctionsHCar::getGetVar("t", "");
     //set effect
     $effect = UniteFunctionsHCar::getGetVar("e");
     $effectArgument1 = UniteFunctionsHCar::getGetVar("ea1");
     if (!empty($effect)) {
         $this->setEffect($effect, $effectArgument1);
     }
     $this->showImage($imageFilename, $maxWidth, $maxHeight, $type);
 }