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