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


PHP FrmAppHelper::affiliate方法代码示例

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


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

示例1: list_addons

 public static function list_addons()
 {
     $installed_addons = apply_filters('frm_installed_addons', array());
     $pro_link = 'http://formidablepro.com/pricing';
     $addons = self::get_api_addons();
     if (!is_array($addons)) {
         $addons = array(array('url' => $pro_link, 'name' => 'Formidable Pro', 'slug' => 'formidable_pro'));
     } else {
         $addons = $addons['products'];
     }
     $addons = array_reverse($addons);
     $append_affiliate = FrmAppHelper::affiliate();
     $plugin_names = array('formidable-pro' => 'formidable/pro', 'wp-multilingual' => 'formidable-wpml', 'registration-lite' => 'formidable-registration', 'bootstrap-modal' => 'formidable-modal', 'paypal-standard' => 'formidable-paypal', 'formidable-api' => 'formidable-api');
     include FrmAppHelper::plugin_path() . '/classes/views/addons/list.php';
 }
开发者ID:LeanderWesterhout,项目名称:leander,代码行数:15,代码来源:FrmAddonsController.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 ($screen_id != 'formidable_page_formidable-entries' || !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="http://formidablepro.com/knowledgebase/manage-entries-from-the-back-end/' . FrmAppHelper::affiliate() . '" target="_blank">' . esc_html__('Documentation on Entries', 'formidable') . '</a></p>' . '<p><a href="http://formidablepro.com/help-topics/' . FrmAppHelper::affiliate() . '" target="_blank">' . esc_html__('Support', 'formidable') . '</a></p>');
     return $help;
 }
开发者ID:LeanderWesterhout,项目名称:leander,代码行数:16,代码来源:FrmEntriesController.php

示例3: 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="http://formidablepro.com' . esc_url(FrmAppHelper::affiliate()) . '">', '</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="https://formidablepro.com/knowledgebase/install-formidable-forms/<?php 
    echo esc_url(FrmAppHelper::affiliate());
    ?>
" target="_blank"><?php 
    _e('Click here', 'formidable');
    ?>
</a> to get installation instructions and download the pro version.</p>
        </div>
    </div>
<?php 
}
?>
</div>
开发者ID:LeanderWesterhout,项目名称:leander,代码行数:30,代码来源:license_box.php


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