當前位置: 首頁>>代碼示例>>PHP>>正文


PHP MS_Helper_Html::settings_box_header方法代碼示例

本文整理匯總了PHP中MS_Helper_Html::settings_box_header方法的典型用法代碼示例。如果您正苦於以下問題:PHP MS_Helper_Html::settings_box_header方法的具體用法?PHP MS_Helper_Html::settings_box_header怎麽用?PHP MS_Helper_Html::settings_box_header使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在MS_Helper_Html的用法示例。


在下文中一共展示了MS_Helper_Html::settings_box_header方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: to_html

    public function to_html()
    {
        $fields = $this->prepare_fields();
        $gateway = $this->data['model'];
        ob_start();
        // Render tabbed interface.
        ?>
		<form class="ms-gateway-settings-form ms-form">
			<?php 
        MS_Helper_Html::settings_box_header('', '');
        foreach ($fields as $field) {
            MS_Helper_Html::html_element($field);
        }
        MS_Helper_Html::settings_box_footer();
        ?>
		</form>
		<?php 
        $html = ob_get_clean();
        return $html;
    }
開發者ID:jsandlin85,項目名稱:SkylineSports,代碼行數:20,代碼來源:class-ms-gateway-authorize-view-settings.php

示例2: to_html

    public function to_html()
    {
        $fields = $this->prepare_fields();
        $gateway = $this->data['model'];
        ob_start();
        /** Render tabbed interface. */
        ?>
		<form class="ms-gateway-settings-form ms-form">
			<?php 
        $description = sprintf('%1$s<br />%2$s', __('Best used for recurring payments.', 'membership2'), sprintf(__('You can find your Stripe API Keys in your %sAccount Settings%s.', 'membership2'), '<a href="https://dashboard.stripe.com/account/apikeys" target="_blank">', '</a>'));
        MS_Helper_Html::settings_box_header('', $description);
        foreach ($fields as $field) {
            MS_Helper_Html::html_element($field);
        }
        MS_Helper_Html::settings_box_footer();
        ?>
		</form>
		<?php 
        $html = ob_get_clean();
        return $html;
    }
開發者ID:nayabbukhari,項目名稱:circulocristiano,代碼行數:21,代碼來源:class-ms-gateway-stripeplan-view-settings.php

示例3: to_html

    public function to_html()
    {
        $fields = $this->prepare_fields();
        $gateway = $this->data['model'];
        $msg = __('Instruct your users how to proceed with manual payments. This might include things like your bank account number and an email address where the payment confirmation should be sent.', MS_TEXT_DOMAIN) . '<br />&nbsp;<br /><em>' . __('When using this payment method the user will see the following payment instructions. Since the payment cannot be confirmed automatically his membership will <b>not</b> be activated instantly! You have to manually check if the payment was made and set the members bill to "paid" to complete the payment.', MS_TEXT_DOMAIN) . '</em>';
        ob_start();
        // Render tabbed interface.
        ?>
		<form class="ms-gateway-settings-form ms-form">
			<?php 
        MS_Helper_Html::settings_box_header('', $msg);
        foreach ($fields as $field) {
            MS_Helper_Html::html_element($field);
        }
        MS_Helper_Html::settings_box_footer();
        ?>
		</form>
		<?php 
        $html = ob_get_clean();
        return $html;
    }
開發者ID:klgrimley,項目名稱:mzf,代碼行數:21,代碼來源:class-ms-gateway-manual-view-settings.php

示例4: to_html

    public function to_html()
    {
        $fields = $this->prepare_fields();
        $gateway = $this->data['model'];
        ob_start();
        // Render tabbed interface.
        ?>
		<form class="ms-gateway-settings-form ms-form">
			<?php 
        $description = sprintf('%s<br />&nbsp;<br />%s<br />&nbsp;<br />%s <strong>%s</strong><br /><a href="%s" target="_blank">%s</a>', __('This advanced PayPal gateway will handle all payment types, including trial periods and recurring payments. However, it should not be used for permanent type meberships, as here it will display "pay again after 5 years" during checkout.', 'membership2'), __('In order for Membership 2 to function correctly you must setup an IPN listening URL with PayPal. Make sure to complete this step, otherwise we are not notified when a member cancels their subscription.', 'membership2'), __('Your IPN listening URL is:', 'membership2'), $this->data['model']->get_return_url(), 'https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNSetup/', __('Instructions &raquo;', 'membership2'));
        MS_Helper_Html::settings_box_header('', $description);
        foreach ($fields as $field) {
            MS_Helper_Html::html_element($field);
        }
        MS_Helper_Html::settings_box_footer();
        ?>
		</form>
		<?php 
        $html = ob_get_clean();
        return $html;
    }
開發者ID:nayabbukhari,項目名稱:circulocristiano,代碼行數:21,代碼來源:class-ms-gateway-paypalstandard-view-settings.php

示例5: to_html

    protected function to_html()
    {
        $this->gateway = $this->data['model'];
        $fields = $this->prepare_ajax_fields();
        ob_start();
        ?>

		<form class="ms-gateway-settings-form ms-form">
			<?php 
        MS_Helper_Html::settings_box_header();
        foreach ($fields as $field) {
            MS_Helper_Html::html_element($field);
        }
        MS_Helper_Html::settings_box_footer();
        ?>
		</form>

		<?php 
        $html = ob_get_clean();
        return $html;
    }
開發者ID:wp-pay-extensions,項目名稱:membership,代碼行數:21,代碼來源:ViewSettings.php

示例6: to_html

    public function to_html()
    {
        $fields = $this->prepare_fields();
        $gateway = $this->data['model'];
        ob_start();
        // Render tabbed interface.
        ?>
		<form class="ms-gateway-settings-form ms-form">
			<?php 
        $description = sprintf('%1$s<br />&nbsp;<br />%2$s <strong>%3$s</strong><br />%6$s <strong>%7$s</strong><br /><a href="%4$s" target="_blank">%5$s</a>', __('In order for Membership 2 to function correctly you must setup an INS (Instant Notification Service) URL with 2Checkout. Make sure you add the following URLs to your 2Checkout "Notifications" section as well as the "Approved URL" in the Site Management section. The domain must be the same as the one registered with your Live account for production sites.', 'membership2'), __('Your Global Notifications URL is:', 'membership2'), $this->data['model']->get_return_url(), 'https://www.2checkout.com/documentation/notifications/', __('Instructions &raquo;', 'membership2'), __('Your "Approved URL" is:', 'membership2'), MS_Model_Pages::get_page_url(MS_Model_Pages::MS_PAGE_REG_COMPLETE));
        MS_Helper_Html::settings_box_header('', $description);
        foreach ($fields as $field) {
            MS_Helper_Html::html_element($field);
        }
        MS_Helper_Html::settings_box_footer();
        ?>
		</form>
		<?php 
        $html = ob_get_clean();
        return $html;
    }
開發者ID:nayabbukhari,項目名稱:circulocristiano,代碼行數:21,代碼來源:class-ms-gateway-2checkout-view-settings.php

示例7: to_html

    public function to_html()
    {
        $fields = $this->prepare_fields();
        $gateway = $this->data['model'];
        ob_start();
        /** Render tabbed interface. */
        ?>
		<form class="ms-gateway-settings-form ms-form">
			<?php 
        $description = sprintf('%s<br>%s', __('This the a basic PayPal gateway that allows your members to easily make a single payment.', MS_TEXT_DOMAIN), __('If you use this gateway for recurring payments then your members have to confirm each recuring payment individually.', MS_TEXT_DOMAIN));
        MS_Helper_Html::settings_box_header('', $description);
        foreach ($fields as $field) {
            MS_Helper_Html::html_element($field);
        }
        MS_Helper_Html::settings_box_footer();
        ?>
		</form>
		<?php 
        $html = ob_get_clean();
        return $html;
    }
開發者ID:klgrimley,項目名稱:mzf,代碼行數:21,代碼來源:class-ms-gateway-paypalsingle-view-settings.php


注:本文中的MS_Helper_Html::settings_box_header方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。