コード例 #1
0
 /**
  * 
  * the constructor
  */
 public function __construct($t)
 {
     global $wpdb;
     self::$is_multisite = RevSliderFunctionsWP::isMultisite();
     self::$wpdb = $wpdb;
     self::$table_prefix = self::$wpdb->base_prefix;
     if (self::$is_multisite) {
         $blogID = RevSliderFunctionsWP::getBlogID();
         if ($blogID != 1) {
             self::$table_prefix .= $blogID . "_";
         }
     }
     self::$t = $t;
     self::$url_ajax = admin_url("admin-ajax.php");
     self::$url_ajax_actions = self::$url_ajax . "?action=revslider_ajax_action";
     self::$url_ajax_showimage = self::$url_ajax . "?action=revslider_show_image";
     self::$path_views = RS_PLUGIN_PATH . "admin/views/";
     self::$path_templates = self::$path_views . "/templates/";
     load_plugin_textdomain('revslider', false, 'revslider/languages/');
     //update globals oldversion flag
     RevSliderGlobals::$isNewVersion = false;
     $version = get_bloginfo("version");
     $version = (double) $version;
     if ($version >= 3.5) {
         RevSliderGlobals::$isNewVersion = true;
     }
 }