本文整理汇总了PHP中FrmAppHelper::get_affiliate方法的典型用法代码示例。如果您正苦于以下问题:PHP FrmAppHelper::get_affiliate方法的具体用法?PHP FrmAppHelper::get_affiliate怎么用?PHP FrmAppHelper::get_affiliate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FrmAppHelper
的用法示例。
在下文中一共展示了FrmAppHelper::get_affiliate方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: menu
public static function menu()
{
add_submenu_page('formidable', 'Formidable | ' . __('AddOns', 'formidable'), __('AddOns', 'formidable'), 'frm_view_forms', 'formidable-addons', 'FrmAddonsController::list_addons');
$affiliate = FrmAppHelper::get_affiliate();
if (!empty($affiliate)) {
add_submenu_page('formidable', 'Formidable | ' . __('Upgrade to Pro', 'formidable'), __('Upgrade to Pro', 'formidable'), 'frm_view_forms', 'formidable-pro-upgrade', 'FrmAddonsController::upgrade_to_pro');
}
}
示例2: 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
}
}
示例3: opening_line
private function opening_line()
{
$opening = __('You’ve just installed a new form builder plugin!', 'formidable');
$affiliate = FrmAppHelper::get_affiliate();
if ($affiliate == 'mojo') {
$opening = 'Your Forms plugin has been installed by MOJO Marketplace for your convenience.';
}
return $opening;
}
示例4: 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
}
}