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


PHP wpl_global::wp_version方法代码示例

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


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

示例1: __

</span>
            <span class="wpl-requirement-require">5.3.1</span>
            <span class="wpl-requirement-current"><?php 
echo $php_version;
?>
</span>
            <span class="wpl-requirement-status p-action-btn">
            	<i class="icon-<?php 
echo !version_compare($php_version, '5.3.1', '>=') ? 'danger' : 'confirm';
?>
"></i>
            </span>
		</li>
        <!-- WP version -->
        <?php 
$wp_version = wpl_global::wp_version();
?>
    	<li>
        	<span class="wpl-requirement-name"><?php 
echo __('WP version', WPL_TEXTDOMAIN);
?>
</span>
            <span class="wpl-requirement-require">3.0.1</span>
            <span class="wpl-requirement-current"><?php 
echo $wp_version;
?>
</span>
            <span class="wpl-requirement-status p-action-btn">
            	<i class="icon-<?php 
echo !version_compare($wp_version, '3.0.1', '>=') ? 'danger' : 'confirm';
?>
开发者ID:amankatoch,项目名称:wp-plugin,代码行数:31,代码来源:internal_requirements.php

示例2: check_realtyna_credentials

 /**
  * Checks Realtyna billing credentials
  * @author Howard <howard@realtyna.com>
  * @static
  * @return array
  */
 public static function check_realtyna_credentials()
 {
     /** import settings library **/
     _wpl_import('libraries.settings');
     $current_url = wpl_global::get_full_url();
     $domain = wpl_global::domain($current_url);
     $settings = wpl_global::get_settings();
     $phpver = phpversion();
     $wplversion = wpl_global::wpl_version();
     $wpversion = wpl_global::wp_version();
     $username = $settings['realtyna_username'];
     $password = $settings['realtyna_password'];
     $POST = array('domain' => $domain, 'wpversion' => $wpversion, 'wplversion' => $wplversion, 'phpver' => $phpver, 'username' => urlencode($username), 'password' => urlencode($password), 'command' => 'check_credentials', 'format' => 'json');
     $io_handler = 'http://billing.realtyna.com/io/io.php';
     $result = wpl_global::get_web_page($io_handler, $POST);
     $answer = json_decode($result, true);
     /** saving status **/
     $status = isset($answer['status']) ? $answer['status'] : 0;
     wpl_settings::save_setting('realtyna_verified', $status, 1);
     $message = $status ? __('Credentials verified.', WPL_TEXTDOMAIN) : __('Invalid credentials!', WPL_TEXTDOMAIN);
     $success = 1;
     return array('success' => $success, 'message' => $message, 'status' => $status);
 }
开发者ID:gvh1993,项目名称:project-vvvh,代码行数:29,代码来源:global.php

示例3: defined

<?php

/** no direct access **/
defined('_WPLEXEC') or die('Restricted access');
?>
<div class="side-12 side-announce" id="wpl_dashboard_side_announce">
    <div class="panel-wp">
        <h3><?php 
echo __('KB Articles', WPL_TEXTDOMAIN);
?>
</h3>
        <div class="panel-body">
            <iframe src="//support.realtyna.com/api/kb2.php?wplv=<?php 
echo wpl_global::wpl_version();
?>
&wpv=<?php 
echo wpl_global::wp_version();
?>
&phpv=<?php 
echo phpversion();
?>
" width="100%" height="312px"></iframe>
        </div>
    </div>
</div>
开发者ID:gvh1993,项目名称:project-vvvh,代码行数:25,代码来源:internal_announce.php

示例4: escape

 /**
  * Use this function for escaping any variable
  * @author Howard <howard@realtyna.com>
  * @param mixed $parameter
  * @return mixed
  */
 public static function escape($parameter)
 {
     /** db object **/
     $database = self::get_DBO();
     $return_data = '';
     $wp_version = wpl_global::wp_version();
     if (is_array($parameter)) {
         $return_data = array();
         foreach ($parameter as $key => $value) {
             $return_data[$key] = self::escape($value);
         }
     } else {
         if (version_compare($wp_version, '3.6', '<')) {
             $return_data = $database->escape($parameter);
         } else {
             $return_data = esc_sql($parameter);
         }
     }
     return $return_data;
 }
开发者ID:gvh1993,项目名称:project-vvvh,代码行数:26,代码来源:db.php


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