/**
  * 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
0
<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 
}