本文整理汇总了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;
}
示例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');
?>
<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');
?>
»</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');
?>
<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');
?>
»</a>
</p>
<?php
}