本文整理匯總了PHP中RevSliderBase::url_ajax_showimage方法的典型用法代碼示例。如果您正苦於以下問題:PHP RevSliderBase::url_ajax_showimage方法的具體用法?PHP RevSliderBase::url_ajax_showimage怎麽用?PHP RevSliderBase::url_ajax_showimage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類RevSliderBase
的用法示例。
在下文中一共展示了RevSliderBase::url_ajax_showimage方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
/**
*
* 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;
}
}