Show descriptions inline

This commit is contained in:
Mike Jolley 2015-11-03 15:04:29 +00:00
parent 52553968c5
commit d95f863d79
6 changed files with 10 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -2071,6 +2071,10 @@ table.wc_shipping {
}
.wc-email-settings-table-name {
font-weight: 700;
span {
font-weight: normal;
color: #999;
}
}
.wc-email-settings-table-status {
text-align: center;

View File

@ -251,7 +251,8 @@ class WC_Settings_Emails extends WC_Settings_Page {
switch ( $key ) {
case 'name' :
echo '<td class="wc-email-settings-table-' . esc_attr( $key ) . '">
<a href="' . admin_url( 'admin.php?page=wc-settings&tab=email&section=' . strtolower( get_class( $email ) ) ) . '">' . $email->title . '</a>
<a href="' . admin_url( 'admin.php?page=wc-settings&tab=email&section=' . strtolower( get_class( $email ) ) ) . '">' . $email->get_title() . '</a>
<span class="tips" data-tip="' . esc_attr( $email->get_description() ) . '">[?]</span>
</td>';
break;
case 'recipient' :

View File

@ -25,7 +25,7 @@ class WC_Email_Cancelled_Order extends WC_Email {
public function __construct() {
$this->id = 'cancelled_order';
$this->title = __( 'Cancelled order', 'woocommerce' );
$this->description = __( 'Cancelled order emails are sent to the recipient(s) below when orders have been marked cancelled (if they were previously processing or on-hold).', 'woocommerce' );
$this->description = __( 'Cancelled order emails are sent to chosen recipient(s) when orders have been marked cancelled (if they were previously processing or on-hold).', 'woocommerce' );
$this->heading = __( 'Cancelled order', 'woocommerce' );
$this->subject = __( '[{site_title}] Cancelled order ({order_number})', 'woocommerce' );
$this->template_html = 'emails/admin-cancelled-order.php';

View File

@ -25,7 +25,7 @@ class WC_Email_Failed_Order extends WC_Email {
public function __construct() {
$this->id = 'failed_order';
$this->title = __( 'Failed order', 'woocommerce' );
$this->description = __( 'Failed order emails are sent to the recipient(s) below when orders have been marked failed (if they were previously processing or on-hold).', 'woocommerce' );
$this->description = __( 'Failed order emails are sent to chosen recipient(s) when orders have been marked failed (if they were previously processing or on-hold).', 'woocommerce' );
$this->heading = __( 'Failed order', 'woocommerce' );
$this->subject = __( '[{site_title}] Failed order ({order_number})', 'woocommerce' );
$this->template_html = 'emails/admin-failed-order.php';

View File

@ -25,7 +25,7 @@ class WC_Email_New_Order extends WC_Email {
public function __construct() {
$this->id = 'new_order';
$this->title = __( 'New order', 'woocommerce' );
$this->description = __( 'New order emails are sent to the recipient(s) below when an order is received.', 'woocommerce' );
$this->description = __( 'New order emails are sent to chosen recipient(s) when a new order is received.', 'woocommerce' );
$this->heading = __( 'New customer order', 'woocommerce' );
$this->subject = __( '[{site_title}] New customer order ({order_number}) - {order_date}', 'woocommerce' );
$this->template_html = 'emails/admin-new-order.php';