public static function pro_tip($callback, $html = '')
    {
        if (FrmAppHelper::pro_is_installed()) {
            return;
        }
        $tips = self::$callback();
        $tip = self::get_random_tip($tips);
        if ($html == 'p') {
            echo '<p>';
        }
        ?>
		<a href="<?php 
        echo esc_url(FrmAppHelper::make_affiliate_url($tip['link']));
        ?>
" target="_blank" class="frm_pro_tip">
			<span><i class="frm_icon_font frm_check1_icon"></i>  Pro Tip:</span>
			<?php 
        echo esc_html($tip['tip']);
        ?>
			<?php 
        if (isset($tip['call'])) {
            ?>
				<span><?php 
            echo esc_html($tip['call']);
            ?>
</span>
			<?php 
        }
        ?>
		</a>
		<?php 
        if ($html == 'p') {
            echo '</p>';
        }
    }
 public static function contextual_help($help, $screen_id, $screen)
 {
     // Only add to certain screens. add_help_tab was introduced in WordPress 3.3
     if (!method_exists($screen, 'add_help_tab')) {
         return $help;
     }
     $action = FrmAppHelper::simple_get('frm_action', 'sanitize_title');
     $page = FrmAppHelper::simple_get('page', 'sanitize_title');
     if ($page != 'formidable-entries' || !empty($action) && $action != 'list') {
         return $help;
     }
     unset($action, $page);
     $screen->add_help_tab(array('id' => 'formidable-entries-tab', 'title' => __('Overview', 'formidable'), 'content' => '<p>' . esc_html__('This screen provides access to all of your entries. You can customize the display of this screen to suit your workflow.', 'formidable') . '</p> <p>' . esc_html__('Hovering over a row in the entries list will display action links that allow you to manage your entry.', 'formidable') . '</p>'));
     $screen->set_help_sidebar('<p><strong>' . esc_html__('For more information:', 'formidable') . '</strong></p>' . '<p><a href="' . esc_url(FrmAppHelper::make_affiliate_url('http://formidablepro.com/knowledgebase/manage-entries-from-the-back-end/')) . '" target="_blank">' . esc_html__('Documentation on Entries', 'formidable') . '</a></p>' . '<p><a href="' . esc_url(FrmAppHelper::make_affiliate_url('http://formidablepro.com/help-desk/')) . '" target="_blank">' . esc_html__('Support', 'formidable') . '</a></p>');
     return $help;
 }
Exemple #3
0
 /**
  * Returns the content of the extensions and licenses page pointer
  *
  * @return array
  */
 private function addons_pointer()
 {
     return array('content' => '<h3>' . __('Addons', 'formidable') . '</h3>' . '<p>' . sprintf(__('The powerful functions of %1$s can be extended with %2$spremium plugins%3$s. You can read all about the Formidable Premium Plugins %2$shere%3$s.', 'formidable'), 'Formidable', '<a target="_blank" href="' . esc_url(FrmAppHelper::make_affiliate_url('https://formidablepro.com/')) . '">', '</a>') . '</p>' . '<p><strong>' . __('Like this plugin?', 'formidable') . '</strong><br/>' . sprintf(__('So, we&#8217;ve come to the end of the tour. If you like the plugin, please %srate it 5 stars on WordPress.org%s!', 'formidable'), '<a target="_blank" href="https://wordpress.org/plugins/formidable/">', '</a>') . '</p>' . '<p>' . sprintf(__('Thank you for using our plugin and good luck with your forms!<br/><br/>Best,<br/>Team Formidable - %1$sformidablepro.com%2$s', 'formidable'), '<a target="_blank" href="' . esc_url(FrmAppHelper::make_affiliate_url('https://formidablepro.com/')) . '">', '</a>') . '</p>', 'prev_page' => 'settings');
 }
Exemple #4
0
	<div id="the-list" class="frm-addons">
		<?php 
foreach ($addons as $addon) {
    if (empty($addon['info']['excerpt'])) {
        continue;
    }
    if (isset($plugin_names[$addon['info']['slug']])) {
        $installed = is_dir(WP_PLUGIN_DIR . '/' . $plugin_names[$addon['info']['slug']]);
    } else {
        $installed = isset($installed_addons[$addon['info']['slug']]) || is_dir(WP_PLUGIN_DIR . '/formidable-' . $addon['info']['slug']);
    }
    $has_thumbnail = !empty($addon['info']['thumbnail']);
    if ($addon['info']['slug'] == 'formidable-pro') {
        $addon['info']['link'] = $pro_link;
    }
    $addon['info']['link'] = FrmAppHelper::make_affiliate_url($addon['info']['link']);
    ?>
			<div class="plugin-card <?php 
    echo esc_attr($has_thumbnail ? '' : 'frm-no-thumb');
    ?>
">
				<div class="plugin-card-top">
					<div class="name column-name">
						<h3>
							<a href="<?php 
    echo esc_url($addon['info']['link']);
    ?>
">
								<?php 
    echo esc_html($addon['info']['title']);
    ?>
				<td>Priority Support</td>
				<td>Elite Support</td>
			</tr>
			<tr>
				<th>Included AddOns</th>
				<td>None</td>
				<td><a href="<?php 
echo esc_url(FrmAppHelper::make_affiliate_url('https://formidablepro.com/pricing/#addon-lists'));
?>
" target="_blank">Premium Addons</a></td>
				<td><a href="<?php 
echo esc_url(FrmAppHelper::make_affiliate_url('https://formidablepro.com/pricing/#addon-lists'));
?>
" target="_blank">Advanced Addons</a></td>
				<td><a href="<?php 
echo esc_url(FrmAppHelper::make_affiliate_url('https://formidablepro.com/pricing/#addon-lists'));
?>
" target="_blank">Enterprise Addons</a></td>
			</tr>
		</tbody>
	</table>
	<br/>

	<?php 
do_action('frm_upgrade_page');
?>

	<h2>Features</h2>
	<table class="wp-list-table widefat fixed striped">
		<thead>
			<tr>
echo $a == 'general_settings' ? 'frm_block' : 'frm_hidden';
?>
">
<?php 
if (!is_multisite() || is_super_admin()) {
    ?>
    <div class="postbox">
        <div class="inside">
			<p class="alignright"><?php 
    printf(__('%1$sClick here%2$s to get it now', 'formidable'), '<a href="' . esc_url(FrmAppHelper::make_affiliate_url('http://formidablepro.com')) . '">', '</a>');
    ?>
 &#187;</p>
			<p><?php 
    _e('Ready to take your forms to the next level?<br/>Formidable Forms will help you create views, manage data, and get reports.', 'formidable');
    ?>
</p>

			<p>Already signed up? <a href="<?php 
    echo esc_url(FrmAppHelper::make_affiliate_url('https://formidablepro.com/knowledgebase/install-formidable-forms/'));
    ?>
" target="_blank"><?php 
    _e('Click here', 'formidable');
    ?>
</a> to get installation instructions and download the pro version.</p>
        </div>
    </div>
<?php 
}
?>
</div>
    private static function maybe_show_upgrade_bar()
    {
        $page = FrmAppHelper::simple_get('page', 'sanitize_title');
        if (strpos($page, 'formidable') !== 0) {
            return;
        }
        if (FrmAppHelper::pro_is_installed()) {
            return;
        }
        $affiliate = FrmAppHelper::get_affiliate();
        if (!empty($affiliate)) {
            ?>
<div class="update-nag frm-update-to-pro">
	Looking for more options to get professional results? <span>Take your forms to the next level.</span> <a href="<?php 
            echo esc_url(FrmAppHelper::make_affiliate_url('https://formidablepro.com'));
            ?>
" class="button">Upgrade to Pro</a>
</div>
<?php 
        }
    }
    private static function maybe_show_upgrade_bar()
    {
        $page = FrmAppHelper::simple_get('page', 'sanitize_title');
        if (strpos($page, 'formidable') !== 0) {
            return;
        }
        if (FrmAppHelper::pro_is_installed()) {
            return;
        }
        $affiliate = FrmAppHelper::get_affiliate();
        if (!empty($affiliate)) {
            $tip = FrmTipsHelper::get_banner_tip();
            ?>
<div class="update-nag frm-update-to-pro">
	<?php 
            echo FrmAppHelper::kses($tip['tip']);
            ?>
	<span><?php 
            echo FrmAppHelper::kses($tip['call']);
            ?>
</span>
	<a href="<?php 
            echo esc_url(FrmAppHelper::make_affiliate_url('https://formidablepro.com?banner=1&tip=' . absint($tip['num'])));
            ?>
" class="button">Upgrade to Pro</a>
</div>
<?php 
        }
    }