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


PHP FLBuilderModel::get_upgrade_url方法代码示例

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


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

示例1: render_plugin_action_links

 /**
  * Renders the link for the row actions on the plugins page.
  *
  * @since 1.0
  * @param array $actions An array of row action links.
  * @return array
  */
 public static function render_plugin_action_links($actions)
 {
     if (FL_BUILDER_LITE === true) {
         $url = FLBuilderModel::get_upgrade_url(array('utm_source' => 'external', 'utm_medium' => 'builder', 'utm_campaign' => 'plugins-page'));
         $actions[] = '<a href="' . $url . '" style="color:#3db634;" target="_blank">' . _x('Upgrade', 'Plugin action link label.', 'fl-builder') . '</a>';
     }
     return $actions;
 }
开发者ID:onedaylabs,项目名称:onedaylabs.com,代码行数:15,代码来源:class-fl-builder-admin.php

示例2: _e

<div class="wrap">

	<?php 
if (isset($subscription->error) || !$subscription->active) {
    ?>
	<p class="fl-license-error" style="padding:10px 20px; background: #d54e21; color: #fff;">
		<?php 
    _e('UPDATES UNAVAILABLE! Please subscribe or enter your license key below to enable automatic updates.', 'fl-builder');
    ?>
		&nbsp;<a style="color: #fff;" href="<?php 
    echo FLBuilderModel::get_upgrade_url(array('utm_source' => 'external', 'utm_medium' => 'builder', 'utm_campaign' => 'settings-page'));
    ?>
" target="_blank"><?php 
    _e('Subscribe Now', 'fl-builder');
    ?>
 &raquo;</a>
	</p>
	<?php 
} elseif (!$subscription->domain->active) {
    ?>
	<p class="fl-license-error" style="padding:10px 20px; background: #d54e21; color: #fff;">
		<?php 
    _e('UPDATES UNAVAILABLE! Your subscription is active but this domain has been deactivated. Please reactivate this domain in your account to enable automatic updates.', 'fl-builder');
    ?>
		&nbsp;<a style="color: #fff;" href="https://www.wpbeaverbuilder.com/my-account/?utm_source=external&utm_medium=builder&utm_campaign=settings-page" target="_blank"><?php 
    _e('Visit Account', 'fl-builder');
    ?>
 &raquo;</a>
	</p>
	<?php 
}
开发者ID:nullality,项目名称:FEWD-SEA-7,代码行数:31,代码来源:form.php


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