/**
  * 
  * the constructor
  */
 public function __construct($mainFile, $t)
 {
     //global $wpdb;
     self::$is_multisite = UniteFunctionsWPRev::isMultisite();
     self::$wpdb = rev_db_class::rev_db_instance();
     self::$table_prefix = self::$wpdb->prefix;
     if (UniteFunctionsWPRev::isMultisite()) {
         $blogID = UniteFunctionsWPRev::getBlogID();
         if ($blogID != 1) {
             self::$table_prefix .= $blogID . "_";
         }
     }
     self::$mainFile = $mainFile;
     self::$t = $t;
     //set plugin dirname (as the main filename)
     $info = pathinfo($mainFile);
     $baseName = $info["basename"];
     $filename = str_replace(".php", "", $baseName);
     self::$dir_plugin = $filename;
     //self::$url_plugin = plugins_url(self::$dir_plugin)."/";
     self::$url_plugin = rev_slider_url() . '/';
     self::$url_ajax = admin_url();
     $sds_rev_token = sds_get_oc_token();
     self::$url_ajax_actions = admin_url("index.php?route=module/revslideropencart&token=" . $sds_rev_token) . "&action=" . self::$dir_plugin . "_ajax_action";
     //self::$url_ajax_showimage = self::$url_ajax . "&action=".self::$dir_plugin."_show_image";
     self::$url_ajax_showimage = self::$url_plugin . "ajax.php?action=" . self::$dir_plugin . "_show_image";
     self::$path_plugin = self::$mainFile . "/";
     self::$path_settings = self::$path_plugin . "settings/";
     self::$path_temp = self::$path_plugin . "temp/";
     //set cache path:
     self::setPathCache();
     self::$path_views = self::$path_plugin . "views/";
     self::$path_templates = self::$path_views . "/templates/";
     self::$path_base = ABSPATH;
     self::$path_languages = self::$path_plugin . "languages/";
     self::$dir_languages = self::$dir_plugin . "/languages/";
     //load_plugin_textdomain(self::$dir_plugin,false,self::$dir_languages);
     //update globals oldversion flag
     GlobalsRevSlider::$isNewVersion = true;
     //			$version = get_bloginfo("version");
     //			$version = (double)$version;
     //			if($version >= 3.5)
     //				GlobalsRevSlider::$isNewVersion = true;
 }
';
 		var sds_main_shop_up_url = '<?php 
echo main_shop_url("image/");
?>
';
	var g_uniteDirPlagin = "<?php 
echo self::$dir_plugin;
?>
";

	//var g_urlContent = "<?php 
echo UniteFunctionsWPRev::getUrlContent();
?>
";
	var g_urlContent = "<?php 
echo rev_slider_url() . '/';
?>
";

       

     // var ajaxurl = g_urlContent+'ajax.php?returnurl=<?php 
echo $sds_admin_url;
?>
';
      //var ajaxurl = "<?php 
echo rev_site_admin_url();
?>
?route=module/revslideropencart/ajaxexecute&token=eee5a3fd43e79be92be35b45b9db59e6&returnurl=<?php 
echo $sds_admin_url;
?>