settings api
This commit is contained in:
parent
977384b6f8
commit
5845b37ca2
|
@ -328,14 +328,18 @@ class WC_Settings_API {
|
|||
/**
|
||||
* Generate Title HTML.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.6.2
|
||||
* @return $html string
|
||||
*/
|
||||
function generate_title_html ( $key, $data ) {
|
||||
function generate_title_html( $key, $data ) {
|
||||
$html = '';
|
||||
|
||||
|
||||
if ( isset( $data['title'] ) && $data['title'] != '' ) $title = $data['title']; else $title = '';
|
||||
$data['class'] = (isset( $data['class'] )) ? $data['class'] : '';
|
||||
$data['css'] = (isset( $data['css'] )) ? $data['css'] : '';
|
||||
|
||||
$html .= '</table>' . "\n";
|
||||
$html .= '<h3 class=" . '.$data['class'].'">' . $data['name'] . '</h3>' . "\n";
|
||||
$html .= '<h4 class="' . $data['class'] . '">' . $data['title'] . '</h4>' . "\n";
|
||||
if ( isset( $data['description'] ) && $data['description'] != '' ) { $html .= '<p>' . $data['description'] . '</p>' . "\n"; }
|
||||
$html .= '<table class="form-table">' . "\n";
|
||||
|
||||
|
|
|
@ -64,6 +64,12 @@ class WC_BACS extends WC_Payment_Gateway {
|
|||
'description' => __( 'Give the customer instructions for paying via BACS, and let them know that their order won\'t be shipping until the money is received.', 'woocommerce' ),
|
||||
'default' => __('Make your payment directly into our bank account. Please use your Order ID as the payment reference. Your order wont be shipped until the funds have cleared in our account.', 'woocommerce')
|
||||
),
|
||||
'account_details' => array(
|
||||
'title' => __( 'Account Details', 'woocommerce' ),
|
||||
'type' => 'title',
|
||||
'description' => __( 'Optionally enter your bank details below for customers to pay into.', 'woocommerce' ),
|
||||
'default' => ''
|
||||
),
|
||||
'account_name' => array(
|
||||
'title' => __( 'Account Name', 'woocommerce' ),
|
||||
'type' => 'text',
|
||||
|
|
|
@ -163,6 +163,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
* Tweak - Added date to admin order notification
|
||||
* Tweak - Formatted addresses in emails in a table to maintain appearance when printing
|
||||
* Tweak - Better support for supercache - detect late_init or don't cache
|
||||
* Tweak - Added generate_title_html() to settings API
|
||||
* Fix - Removed session_name from 1.6 to prevent issues when other plugins start a session first. Instead, added a KB article on how to do it manually (if needed, this is an edge case) - http://wcdocs.woothemes.com/codex/extending/multiple-installs-on-one-domain-sessions-conflictsession-sharing-workaround/
|
||||
* Fix - Product categories shortcode loop
|
||||
* Fix - selected state for variation options
|
||||
|
|
Loading…
Reference in New Issue