当前位置: 首页>>代码示例>>PHP>>正文


PHP wpl_global::get_wp_site_url方法代码示例

本文整理汇总了PHP中wpl_global::get_wp_site_url方法的典型用法代码示例。如果您正苦于以下问题:PHP wpl_global::get_wp_site_url方法的具体用法?PHP wpl_global::get_wp_site_url怎么用?PHP wpl_global::get_wp_site_url使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在wpl_global的用法示例。


在下文中一共展示了wpl_global::get_wp_site_url方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: user_registered

 /**
  * Sends welcome email to user after registeration
  * @author Howard <howard@realtyna.com>
  * @static
  * @param array $params
  * @return boolean
  */
 public static function user_registered($params)
 {
     $replacements = $params[0];
     $notification = new wpl_notifications('email');
     $notification->prepare(5, $replacements);
     /** Disabled **/
     if (!$notification->notification_data['enabled']) {
         return false;
     }
     $user = wpl_users::get_user($params[0]['user_id']);
     $replacements['name'] = isset($user->data->wpl_data) ? $user->data->wpl_data->first_name : $user->data->display_name;
     $replacements['password'] = $params[0]['password'];
     $replacements['username'] = $user->data->user_login;
     $link = wpl_global::get_wp_site_url();
     $replacements['site_address'] = '<a target="_blank" href="' . $link . '">' . $link . '</a>';
     $notification->replacements = $notification->set_replacements($replacements);
     $notification->rendered_content = $notification->render_notification_content();
     $notification->recipients = $notification->set_recipients(array($user->data->user_email));
     $notification->send();
     return true;
 }
开发者ID:gvh1993,项目名称:project-vvvh,代码行数:28,代码来源:notifications.php

示例2: import_dynamic_js

 /**
  * Adding js dynamic vars to the head of page
  * @author Howard <howard@realtyna.com>
  * @return void
  */
 public function import_dynamic_js()
 {
     echo '<script type="text/javascript">';
     echo 'wpl_baseUrl="' . wpl_global::get_wp_site_url() . '";';
     echo 'wpl_baseName="' . WPL_BASENAME . '";';
     echo '</script>';
 }
开发者ID:amankatoch,项目名称:wp-plugin,代码行数:12,代码来源:extensions.php

示例3: get_upload_base_url

 /**
  * This functions will take care of multisite usage
  * @author Howard <howard@realtyna.com>
  * @param type $blog_id
  * @return string WPL base url for uploaded files
  */
 public static function get_upload_base_url($blog_id = NULL)
 {
     if (!$blog_id) {
         $blog_id = wpl_global::get_current_blog_id();
     }
     $ABSPATH = WPL_UP_ABSPATH;
     if (!$blog_id or $blog_id == 1) {
         return wpl_global::get_wp_site_url() . 'wp-content/uploads/WPL/';
     } else {
         $path = rtrim($ABSPATH, DS) . $blog_id . DS;
         if (!wpl_folder::exists($path)) {
             wpl_folder::create($path);
         }
         return wpl_global::get_wp_site_url() . 'wp-content/uploads/WPL' . $blog_id . '/';
     }
 }
开发者ID:gvh1993,项目名称:project-vvvh,代码行数:22,代码来源:global.php

示例4:

load-scripts.php?c=1&load[]=jquery-core,jquery-migrate&ver=<?php 
echo wpl_global::wp_version();
?>
"></script>
    <script type="text/javascript">
    wpl_baseUrl="<?php 
echo wpl_global::get_wp_site_url();
?>
";
    wpl_baseName="<?php 
echo WPL_BASENAME;
?>
";
    </script>
    <script type="text/javascript" src="<?php 
echo wpl_global::get_wp_site_url() . 'wp-includes/js/tinymce/tiny_mce_popup.js';
?>
"></script>

    <script type="text/javascript" src="<?php 
echo wpl_global::get_wpl_asset_url('js/prettyJS/jquery.prettyPhoto.min.js');
?>
"></script>
    <script type="text/javascript" src="<?php 
echo wpl_global::get_wpl_asset_url('js/libraries/wpl.jquery.mcustomscrollbar.min.js');
?>
"></script>
    <script type="text/javascript" src="<?php 
echo wpl_global::get_wpl_asset_url('js/libraries/wpl.jquery.chosen.min.js');
?>
"></script>
开发者ID:gvh1993,项目名称:project-vvvh,代码行数:31,代码来源:iframe.php

示例5: function

			{
				var term = request.term.toUpperCase(), items = [];
				
				for(var key in autocomplete_cache)
				{
					if(key === term)
					{
						response(autocomplete_cache[key]);
						return;
					}
				}
				
				wplj.ajax(
				{
					type: "GET",
					url: "' . wpl_global::get_wp_site_url() . '?wpl_format=f:property_listing:ajax&wpl_function=locationtextsearch_autocomplete&term="+request.term,
					contentType: "application/json; charset=utf-8",
					success: function (msg)
					{
					   response(wplj.parseJSON(msg));
					   autocomplete_cache[request.term.toUpperCase()] = wplj.parseJSON(msg);
					},
					error: function (msg)
					{
					}
				});
			},
			width: 260,
			matchContains: true,
			minChars: 1,
			delay: 300
开发者ID:amankatoch,项目名称:wp-plugin,代码行数:31,代码来源:locationtext_search.php

示例6: defined

/** no direct access **/
defined('_WPLEXEC') or die('Restricted access');
?>
<script type="text/javascript">
function wpl_send_contact(property_id)
{
    var ajax_loader_element = '#wpl_contact_ajax_loader_'+property_id;
	wplj(ajax_loader_element).html('<img src="<?php 
echo wpl_global::get_wpl_asset_url('img/ajax-loader3.gif');
?>
" />');
    wpl_remove_message('#wpl_contact_message_'+property_id);
	
	var request_str = 'wpl_format=f:property_listing:ajax&wpl_function=contact_listing_user&'+wplj('#wpl_contact_form'+property_id).serialize()+'&pid='+property_id;
	var ajax = wpl_run_ajax_query('<?php 
echo wpl_global::get_wp_site_url();
?>
', request_str, ajax_loader_element, 'JSON', 'GET');
	
	ajax.success(function(data)
	{
		if(data.success === 1)
		{
			wpl_show_messages(data.message, '#wpl_contact_message_'+property_id, 'wpl_green_msg');
            wplj('#wpl_contact_form'+property_id).hide();
		}
		else if(data.success === 0)
		{
			wpl_show_messages(data.message, '#wpl_contact_message_'+property_id, 'wpl_red_msg');
		}
        
开发者ID:gvh1993,项目名称:project-vvvh,代码行数:30,代码来源:js.php

示例7: defined

<?php

/** no direct access **/
defined('_WPLEXEC') or die('Restricted access');
$js = (object) array('param1' => 'wpl-tinymce-popup', 'param2' => wpl_global::get_wp_site_url() . 'wp-includes/js/tinymce/tiny_mce_popup.js', 'external' => true);
wpl_extensions::import_javascript($js);
?>
<div class="short-code-wp wpl_shortcode_wizard_container" id="wpl_shortcode_wizard_container" style="margin: 0 20px;">
    <h2>
        <i class="icon-shortcode"></i>
        <span><?php 
echo __('WPL Shortcodes', WPL_TEXTDOMAIN);
?>
</span>
        <button class="wpl-button button-1" onclick="insert_shortcode();"><?php 
echo __('Insert', WPL_TEXTDOMAIN);
?>
</button>
    </h2>
    <div class="short-code-body">
        <div class="plugin-row wpl_select_view">
            <label for="view_selectbox"><?php 
echo __('View', WPL_TEXTDOMAIN);
?>
</label>
            <select id="view_selectbox" onchange="wpl_view_selected(this.value);">
                <option value="property_listing"><?php 
echo __('Property Listing', WPL_TEXTDOMAIN);
?>
</option>
                <option value="property_show"><?php 
开发者ID:gvh1993,项目名称:project-vvvh,代码行数:31,代码来源:shortcode_wizard.php


注:本文中的wpl_global::get_wp_site_url方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。