本文整理汇总了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;
}
示例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;
}
示例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 /> <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;
}
示例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 /> <br />%s<br /> <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 »', '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;
}
示例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 /> <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 »', '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;
}
示例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;
}