/**
  * 
  * on show image ajax event. outputs image with parameters 
  */
 public static function onShowImage()
 {
     $pathImages = UniteFunctionsWPRev::getPathContent();
     $urlImages = UniteFunctionsWPRev::getUrlContent();
     try {
         $imageView = new UniteImageViewRev(self::$path_cache, $pathImages, $urlImages);
         $imageView->showImageFromGet();
     } catch (Exception $e) {
         header("status: 500");
         echo $e->getMessage();
         exit;
     }
 }
 /**
  * 
  * on show image ajax event. outputs image with parameters 
  */
 public static function onShowImage()
 {
     $img = Tools::getValue('img');
     if (empty($img)) {
         die('Image doesn\'t exists!');
     }
     $pathImages = UniteFunctionsWPRev::getPathContent();
     $urlImages = UniteFunctionsWPRev::getUrlContent();
     try {
         $imageView = new UniteImageViewRev(self::$path_cache, $pathImages, $urlImages);
         $imageView->showImageFromGet();
     } catch (Exception $e) {
         header("status: 500");
         echo $e->getMessage();
         exit;
     }
 }
Beispiel #3
0
<?php

global $revSliderVersion;
$wrapperClass = "";
if (GlobalsRevSlider::$isNewVersion == false) {
    $wrapperClass = " oldwp";
}
?>

<script type="text/javascript">
	var g_uniteDirPlagin = "<?php 
echo self::$dir_plugin;
?>
";
	var g_urlContent = "<?php 
echo UniteFunctionsWPRev::getUrlContent();
?>
";
	var g_urlAjaxShowImage = "<?php 
echo UniteBaseClassRev::$url_ajax_showimage;
?>
";
	var g_urlAjaxActions = "<?php 
echo UniteBaseClassRev::$url_ajax_actions;
?>
";
	var g_settingsObj = {};
	
</script>

<div id="div_debug"></div>
 public function hookdisplayBackOfficeHeader()
 {
     if (Tools::getvalue('configure') == 'revsliderprestashop') {
         $this->context->controller->addCSS($this->_path . 'css/jui/new/jquery-ui-1.10.3.custom.min.css');
         $this->context->controller->addCSS($this->_path . 'css/admin.css');
         $this->context->controller->addCSS($this->_path . 'css/tipsy.css');
         $this->context->controller->addCSS($this->_path . 'css/load-styles.css');
         $this->context->controller->addCSS($this->_path . 'js/farbtastic/farbtastic.css');
         $this->context->controller->addCSS($this->_path . 'js/codemirror/codemirror.css');
         $this->context->controller->addCSS($this->_path . 'css/edit_layers.css');
         $this->context->controller->addCSS($this->_path . 'css/thickbox.css');
         $this->context->controller->addCSS($this->_path . 'rs-plugin/css/settings.css');
         $this->context->controller->addCSS($this->_path . 'rs-plugin/css/static-captions.css');
         $g_urlContent = UniteFunctionsWPRev::getUrlContent();
         $dynamicadmincss = 'index.php?controller=Revolutionslider_ajax&token=' . Context::getcontext()->controller->token . '&revControllerAction=captions';
         $this->smarty->assign('dynamicadmincss', $dynamicadmincss);
         $this->smarty->assign('g_urlContent', $g_urlContent);
         $this->smarty->assign('this_path', $this->_path);
         return $this->display(__FILE__, 'views/templates/admin/revolution_admin.tpl');
     }
 }