當前位置: 首頁>>代碼示例>>PHP>>正文


PHP GFAddOn::display_plugin_message方法代碼示例

本文整理匯總了PHP中GFAddOn::display_plugin_message方法的典型用法代碼示例。如果您正苦於以下問題:PHP GFAddOn::display_plugin_message方法的具體用法?PHP GFAddOn::display_plugin_message怎麽用?PHP GFAddOn::display_plugin_message使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在GFAddOn的用法示例。


在下文中一共展示了GFAddOn::display_plugin_message方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: rg_plugin_row

 public function rg_plugin_row()
 {
     if (!$this->_is_gravityforms_supported) {
         $message = sprintf(esc_html__('Gravity Forms %s is required. Activate it now or %spurchase it today!%s', 'gravityforms'), $this->_min_gravityforms_version, "<a href='http://www.gravityforms.com'>", '</a>');
         GFAddOn::display_plugin_message($message, true);
     } else {
         $version_info = $this->get_version_info($this->_slug);
         if (!rgar($version_info, 'is_valid_key')) {
             $title = $this->_title;
             if (version_compare($this->_version, $version_info['version'], '<')) {
                 $new_version = sprintf(esc_html__('There is a new version of %s available.', 'gravityforms'), $title) . sprintf(' <a class="thickbox" title="%s" href="plugin-install.php?tab=plugin-information&plugin=%s&TB_iframe=true&width=640&height=808">', $title, $this->_slug) . sprintf(esc_html__('View version %s Details', 'gravityforms'), $version_info['version']) . '</a>. ';
             } else {
                 $new_version = '';
             }
             $message = $new_version . sprintf(esc_html__('%sRegister%s your copy of Gravity Forms to receive access to automatic upgrades and support. Need a license key? %sPurchase one now%s.', 'gravityforms'), '<a href="admin.php?page=gf_settings">', '</a>', '<a href="http://www.gravityforms.com">', '</a>') . '</div></td>';
             GFAddOn::display_plugin_message($message);
         }
     }
 }
開發者ID:arobbins,項目名稱:davis,代碼行數:19,代碼來源:class-gf-auto-upgrade.php

示例2: display_upgrade_message

 private function display_upgrade_message($plugin_name, $plugin_title, $version, $message, $localization_namespace)
 {
     $upgrade_message = $message . ' <a class="thickbox" title="' . $plugin_title . '" href="plugin-install.php?tab=plugin-information&plugin=' . $plugin_name . '&TB_iframe=true&width=640&height=808">' . sprintf(__('View version %s Details', $localization_namespace), $version) . '</a>. ';
     GFAddOn::display_plugin_message($upgrade_message);
 }
開發者ID:aiga-chicago,項目名稱:chicago.aiga.org,代碼行數:5,代碼來源:class-gf-auto-upgrade.php


注:本文中的GFAddOn::display_plugin_message方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。