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


PHP FrmAppHelper::get_affiliate方法代码示例

本文整理汇总了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');
     }
 }
开发者ID:tshdvs,项目名称:GooseMobile,代码行数:8,代码来源:FrmAddonsController.php

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

示例3: opening_line

 private function opening_line()
 {
     $opening = __('You&#8217;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;
 }
开发者ID:hugocica,项目名称:locomotiva-2016,代码行数:9,代码来源:FrmPointers.php

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


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