當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。