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


PHP FrmAppHelper::make_affiliate_url方法代码示例

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


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

示例1: pro_tip

    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>';
        }
    }
开发者ID:hugocica,项目名称:locomotiva-2016,代码行数:35,代码来源:FrmTipsHelper.php

示例2: contextual_help

 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;
 }
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:16,代码来源:FrmEntriesController.php

示例3: addons_pointer

 /**
  * 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');
 }
开发者ID:Darkers54,项目名称:eLEGO,代码行数:9,代码来源:FrmPointers.php

示例4: foreach

	<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']);
    ?>
开发者ID:Darkers54,项目名称:eLEGO,代码行数:31,代码来源:list.php

示例5: esc_url

				<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>
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:31,代码来源:upgrade_to_pro.php

示例6: printf

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>
开发者ID:hugocica,项目名称:locomotiva-2016,代码行数:30,代码来源:license_box.php

示例7: maybe_show_upgrade_bar

    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 
        }
    }
开发者ID:Cigarent,项目名称:personalweb,代码行数:21,代码来源:FrmAppController.php

示例8: maybe_show_upgrade_bar

    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 
        }
    }
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:29,代码来源:FrmAppController.php


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