@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if (!defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -21,15 +21,15 @@ discard block |
||
| 21 | 21 | 'block-keywords' => "['invoicing','history']", |
| 22 | 22 | 'class_name' => __CLASS__, |
| 23 | 23 | 'base_id' => 'wpinv_history', |
| 24 | - 'name' => __( 'GetPaid > Invoice History', 'invoicing' ), |
|
| 24 | + 'name' => __('GetPaid > Invoice History', 'invoicing'), |
|
| 25 | 25 | 'widget_ops' => array( |
| 26 | 26 | 'classname' => 'wpinv-history-class bsui', |
| 27 | - 'description' => esc_html__( 'Displays invoice history.', 'invoicing' ), |
|
| 27 | + 'description' => esc_html__('Displays invoice history.', 'invoicing'), |
|
| 28 | 28 | ), |
| 29 | 29 | 'arguments' => array( |
| 30 | 30 | 'title' => array( |
| 31 | - 'title' => __( 'Widget title', 'invoicing' ), |
|
| 32 | - 'desc' => __( 'Enter widget title.', 'invoicing' ), |
|
| 31 | + 'title' => __('Widget title', 'invoicing'), |
|
| 32 | + 'desc' => __('Enter widget title.', 'invoicing'), |
|
| 33 | 33 | 'type' => 'text', |
| 34 | 34 | 'desc_tip' => true, |
| 35 | 35 | 'default' => '', |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | ); |
| 41 | 41 | |
| 42 | - parent::__construct( $options ); |
|
| 42 | + parent::__construct($options); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * |
| 52 | 52 | * @return mixed|string|bool |
| 53 | 53 | */ |
| 54 | - public function output( $args = array(), $widget_args = array(), $content = '' ) { |
|
| 54 | + public function output($args = array(), $widget_args = array(), $content = '') { |
|
| 55 | 55 | return getpaid_invoice_history(); |
| 56 | 56 | } |
| 57 | 57 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if (!defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -21,34 +21,34 @@ discard block |
||
| 21 | 21 | 'block-keywords' => "['invoicing','invoice']", |
| 22 | 22 | 'class_name' => __CLASS__, |
| 23 | 23 | 'base_id' => 'getpaid_invoice', |
| 24 | - 'name' => __( 'GetPaid > Single Invoice', 'invoicing' ), |
|
| 24 | + 'name' => __('GetPaid > Single Invoice', 'invoicing'), |
|
| 25 | 25 | 'widget_ops' => array( |
| 26 | 26 | 'classname' => 'wpinv-invoice-class bsui', |
| 27 | - 'description' => esc_html__( 'Displays a single invoice.', 'invoicing' ), |
|
| 27 | + 'description' => esc_html__('Displays a single invoice.', 'invoicing'), |
|
| 28 | 28 | ), |
| 29 | 29 | 'arguments' => array( |
| 30 | 30 | 'title' => array( |
| 31 | - 'title' => __( 'Widget title', 'invoicing' ), |
|
| 32 | - 'desc' => __( 'Enter widget title.', 'invoicing' ), |
|
| 31 | + 'title' => __('Widget title', 'invoicing'), |
|
| 32 | + 'desc' => __('Enter widget title.', 'invoicing'), |
|
| 33 | 33 | 'type' => 'text', |
| 34 | 34 | 'desc_tip' => true, |
| 35 | 35 | 'default' => '', |
| 36 | 36 | 'advanced' => false, |
| 37 | 37 | ), |
| 38 | 38 | 'id' => array( |
| 39 | - 'title' => __( 'Invoice', 'invoicing' ), |
|
| 40 | - 'desc' => __( 'Enter the invoice ID', 'invoicing' ), |
|
| 39 | + 'title' => __('Invoice', 'invoicing'), |
|
| 40 | + 'desc' => __('Enter the invoice ID', 'invoicing'), |
|
| 41 | 41 | 'type' => 'text', |
| 42 | 42 | 'desc_tip' => true, |
| 43 | 43 | 'default' => '', |
| 44 | - 'placeholder' => __( '1', 'invoicing' ), |
|
| 44 | + 'placeholder' => __('1', 'invoicing'), |
|
| 45 | 45 | 'advanced' => false, |
| 46 | 46 | ), |
| 47 | 47 | ), |
| 48 | 48 | |
| 49 | 49 | ); |
| 50 | 50 | |
| 51 | - parent::__construct( $options ); |
|
| 51 | + parent::__construct($options); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
@@ -60,30 +60,30 @@ discard block |
||
| 60 | 60 | * |
| 61 | 61 | * @return mixed|string|bool |
| 62 | 62 | */ |
| 63 | - public function output( $args = array(), $widget_args = array(), $content = '' ) { |
|
| 63 | + public function output($args = array(), $widget_args = array(), $content = '') { |
|
| 64 | 64 | |
| 65 | 65 | // Is the shortcode set up correctly? |
| 66 | - if ( empty( $args['id'] ) ) { |
|
| 66 | + if (empty($args['id'])) { |
|
| 67 | 67 | return aui()->alert( |
| 68 | 68 | array( |
| 69 | 69 | 'type' => 'warning', |
| 70 | - 'content' => __( 'Missing invoice ID', 'invoicing' ), |
|
| 70 | + 'content' => __('Missing invoice ID', 'invoicing'), |
|
| 71 | 71 | ) |
| 72 | 72 | ); |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | - $invoice = wpinv_get_invoice( (int) $args['id'] ); |
|
| 75 | + $invoice = wpinv_get_invoice((int) $args['id']); |
|
| 76 | 76 | |
| 77 | - if ( $invoice ) { |
|
| 77 | + if ($invoice) { |
|
| 78 | 78 | ob_start(); |
| 79 | - getpaid_invoice( $invoice ); |
|
| 79 | + getpaid_invoice($invoice); |
|
| 80 | 80 | return ob_get_clean(); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | return aui()->alert( |
| 84 | 84 | array( |
| 85 | 85 | 'type' => 'danger', |
| 86 | - 'content' => __( 'Invoice not found', 'invoicing' ), |
|
| 86 | + 'content' => __('Invoice not found', 'invoicing'), |
|
| 87 | 87 | ) |
| 88 | 88 | ); |
| 89 | 89 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if (!defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -22,16 +22,16 @@ discard block |
||
| 22 | 22 | 'block-keywords' => "['invoicing','buy', 'buy item', 'form']", |
| 23 | 23 | 'class_name' => __CLASS__, |
| 24 | 24 | 'base_id' => 'getpaid', |
| 25 | - 'name' => __( 'GetPaid', 'invoicing' ), |
|
| 25 | + 'name' => __('GetPaid', 'invoicing'), |
|
| 26 | 26 | 'widget_ops' => array( |
| 27 | 27 | 'classname' => 'getpaid bsui', |
| 28 | - 'description' => esc_html__( 'Show payment forms or buttons.', 'invoicing' ), |
|
| 28 | + 'description' => esc_html__('Show payment forms or buttons.', 'invoicing'), |
|
| 29 | 29 | ), |
| 30 | 30 | 'arguments' => array( |
| 31 | 31 | |
| 32 | 32 | 'title' => array( |
| 33 | - 'title' => __( 'Widget title', 'invoicing' ), |
|
| 34 | - 'desc' => __( 'Enter widget title.', 'invoicing' ), |
|
| 33 | + 'title' => __('Widget title', 'invoicing'), |
|
| 34 | + 'desc' => __('Enter widget title.', 'invoicing'), |
|
| 35 | 35 | 'type' => 'text', |
| 36 | 36 | 'desc_tip' => true, |
| 37 | 37 | 'default' => '', |
@@ -39,28 +39,28 @@ discard block |
||
| 39 | 39 | ), |
| 40 | 40 | |
| 41 | 41 | 'form' => array( |
| 42 | - 'title' => __( 'Form', 'invoicing' ), |
|
| 43 | - 'desc' => __( 'Enter a form id in case you want to display a specific payment form', 'invoicing' ), |
|
| 42 | + 'title' => __('Form', 'invoicing'), |
|
| 43 | + 'desc' => __('Enter a form id in case you want to display a specific payment form', 'invoicing'), |
|
| 44 | 44 | 'type' => 'text', |
| 45 | 45 | 'desc_tip' => true, |
| 46 | 46 | 'default' => '', |
| 47 | - 'placeholder' => __( '1', 'invoicing' ), |
|
| 47 | + 'placeholder' => __('1', 'invoicing'), |
|
| 48 | 48 | 'advanced' => false, |
| 49 | 49 | ), |
| 50 | 50 | |
| 51 | 51 | 'item' => array( |
| 52 | - 'title' => __( 'Items', 'invoicing' ), |
|
| 53 | - 'desc' => __( 'Enter comma separated list of invoicing item id and quantity (item_id|quantity). Ex. 101|2. This will be ignored in case you specify a form above. Enter 0 as the quantity to let users select their own quantities', 'invoicing' ), |
|
| 52 | + 'title' => __('Items', 'invoicing'), |
|
| 53 | + 'desc' => __('Enter comma separated list of invoicing item id and quantity (item_id|quantity). Ex. 101|2. This will be ignored in case you specify a form above. Enter 0 as the quantity to let users select their own quantities', 'invoicing'), |
|
| 54 | 54 | 'type' => 'text', |
| 55 | 55 | 'desc_tip' => true, |
| 56 | 56 | 'default' => '', |
| 57 | - 'placeholder' => __( '1', 'invoicing' ), |
|
| 57 | + 'placeholder' => __('1', 'invoicing'), |
|
| 58 | 58 | 'advanced' => false, |
| 59 | 59 | ), |
| 60 | 60 | |
| 61 | 61 | 'button' => array( |
| 62 | - 'title' => __( 'Button', 'invoicing' ), |
|
| 63 | - 'desc' => __( 'Enter button label in case you would like to display the forms in a popup.', 'invoicing' ), |
|
| 62 | + 'title' => __('Button', 'invoicing'), |
|
| 63 | + 'desc' => __('Enter button label in case you would like to display the forms in a popup.', 'invoicing'), |
|
| 64 | 64 | 'type' => 'text', |
| 65 | 65 | 'desc_tip' => true, |
| 66 | 66 | 'default' => '', |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | |
| 72 | 72 | ); |
| 73 | 73 | |
| 74 | - parent::__construct( $options ); |
|
| 74 | + parent::__construct($options); |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
@@ -83,23 +83,23 @@ discard block |
||
| 83 | 83 | * |
| 84 | 84 | * @return string |
| 85 | 85 | */ |
| 86 | - public function output( $args = array(), $widget_args = array(), $content = '' ) { |
|
| 86 | + public function output($args = array(), $widget_args = array(), $content = '') { |
|
| 87 | 87 | |
| 88 | 88 | // Is the shortcode set up correctly? |
| 89 | - if ( empty( $args['form'] ) && empty( $args['item'] ) ) { |
|
| 89 | + if (empty($args['form']) && empty($args['item'])) { |
|
| 90 | 90 | return aui()->alert( |
| 91 | 91 | array( |
| 92 | 92 | 'type' => 'warning', |
| 93 | - 'content' => __( 'No payment form or item selected', 'invoicing' ), |
|
| 93 | + 'content' => __('No payment form or item selected', 'invoicing'), |
|
| 94 | 94 | ) |
| 95 | 95 | ); |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | // Payment form or button? |
| 99 | - if ( ! empty( $args['form'] ) ) { |
|
| 100 | - return $this->handle_payment_form( $args ); |
|
| 99 | + if (!empty($args['form'])) { |
|
| 100 | + return $this->handle_payment_form($args); |
|
| 101 | 101 | } else { |
| 102 | - return $this->handle_buy_item( $args ); |
|
| 102 | + return $this->handle_buy_item($args); |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | } |
@@ -109,15 +109,15 @@ discard block |
||
| 109 | 109 | * |
| 110 | 110 | * @return string |
| 111 | 111 | */ |
| 112 | - protected function handle_payment_form( $args = array() ) { |
|
| 112 | + protected function handle_payment_form($args = array()) { |
|
| 113 | 113 | |
| 114 | - if ( empty( $args['button'] ) ) { |
|
| 114 | + if (empty($args['button'])) { |
|
| 115 | 115 | ob_start(); |
| 116 | - getpaid_display_payment_form( $args['form'] ); |
|
| 116 | + getpaid_display_payment_form($args['form']); |
|
| 117 | 117 | return ob_get_clean(); |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | - return $this->payment_form_button( $args['form'], $args['button'] ); |
|
| 120 | + return $this->payment_form_button($args['form'], $args['button']); |
|
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | /** |
@@ -125,8 +125,8 @@ discard block |
||
| 125 | 125 | * |
| 126 | 126 | * @return string |
| 127 | 127 | */ |
| 128 | - protected function payment_form_button( $form, $button ) { |
|
| 129 | - return getpaid_get_payment_button( $button, $form ); |
|
| 128 | + protected function payment_form_button($form, $button) { |
|
| 129 | + return getpaid_get_payment_button($button, $form); |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | /** |
@@ -134,13 +134,13 @@ discard block |
||
| 134 | 134 | * |
| 135 | 135 | * @return string |
| 136 | 136 | */ |
| 137 | - protected function handle_buy_item( $args = array() ) { |
|
| 137 | + protected function handle_buy_item($args = array()) { |
|
| 138 | 138 | |
| 139 | - if ( empty( $args['button'] ) ) { |
|
| 140 | - return $this->buy_item_form( $args['item'] ); |
|
| 139 | + if (empty($args['button'])) { |
|
| 140 | + return $this->buy_item_form($args['item']); |
|
| 141 | 141 | } |
| 142 | 142 | |
| 143 | - return $this->buy_item_button( $args['item'], $args['button'] ); |
|
| 143 | + return $this->buy_item_button($args['item'], $args['button']); |
|
| 144 | 144 | |
| 145 | 145 | } |
| 146 | 146 | |
@@ -149,10 +149,10 @@ discard block |
||
| 149 | 149 | * |
| 150 | 150 | * @return string |
| 151 | 151 | */ |
| 152 | - protected function buy_item_form( $item ) { |
|
| 153 | - $items = getpaid_convert_items_to_array( $item ); |
|
| 152 | + protected function buy_item_form($item) { |
|
| 153 | + $items = getpaid_convert_items_to_array($item); |
|
| 154 | 154 | ob_start(); |
| 155 | - getpaid_display_item_payment_form( $items ); |
|
| 155 | + getpaid_display_item_payment_form($items); |
|
| 156 | 156 | return ob_get_clean(); |
| 157 | 157 | } |
| 158 | 158 | |
@@ -161,9 +161,9 @@ discard block |
||
| 161 | 161 | * |
| 162 | 162 | * @return string |
| 163 | 163 | */ |
| 164 | - protected function buy_item_button( $item, $button ) { |
|
| 165 | - $button = getpaid_get_payment_button( $button, null, $item ); |
|
| 166 | - return apply_filters( 'getpaid_buy_item_button_widget', $button, $item ); |
|
| 164 | + protected function buy_item_button($item, $button) { |
|
| 165 | + $button = getpaid_get_payment_button($button, null, $item); |
|
| 166 | + return apply_filters('getpaid_buy_item_button_widget', $button, $item); |
|
| 167 | 167 | } |
| 168 | 168 | |
| 169 | 169 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if (!defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -21,15 +21,15 @@ discard block |
||
| 21 | 21 | 'block-keywords' => "['invoicing','receipt']", |
| 22 | 22 | 'class_name' => __CLASS__, |
| 23 | 23 | 'base_id' => 'wpinv_receipt', |
| 24 | - 'name' => __( 'GetPaid > Invoice Receipt', 'invoicing' ), |
|
| 24 | + 'name' => __('GetPaid > Invoice Receipt', 'invoicing'), |
|
| 25 | 25 | 'widget_ops' => array( |
| 26 | 26 | 'classname' => 'wpinv-receipt-class bsui', |
| 27 | - 'description' => esc_html__( 'Displays invoice receipt after checkout.', 'invoicing' ), |
|
| 27 | + 'description' => esc_html__('Displays invoice receipt after checkout.', 'invoicing'), |
|
| 28 | 28 | ), |
| 29 | 29 | 'arguments' => array( |
| 30 | 30 | 'title' => array( |
| 31 | - 'title' => __( 'Widget title', 'invoicing' ), |
|
| 32 | - 'desc' => __( 'Enter widget title.', 'invoicing' ), |
|
| 31 | + 'title' => __('Widget title', 'invoicing'), |
|
| 32 | + 'desc' => __('Enter widget title.', 'invoicing'), |
|
| 33 | 33 | 'type' => 'text', |
| 34 | 34 | 'desc_tip' => true, |
| 35 | 35 | 'default' => '', |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | ); |
| 41 | 41 | |
| 42 | - parent::__construct( $options ); |
|
| 42 | + parent::__construct($options); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * |
| 52 | 52 | * @return mixed|string|bool |
| 53 | 53 | */ |
| 54 | - public function output( $args = array(), $widget_args = array(), $content = '' ) { |
|
| 54 | + public function output($args = array(), $widget_args = array(), $content = '') { |
|
| 55 | 55 | return wpinv_payment_receipt(); |
| 56 | 56 | } |
| 57 | 57 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if (!defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -21,15 +21,15 @@ discard block |
||
| 21 | 21 | 'block-keywords' => "['invoicing','history']", |
| 22 | 22 | 'class_name' => __CLASS__, |
| 23 | 23 | 'base_id' => 'wpinv_messages', |
| 24 | - 'name' => __( 'GetPaid > Invoice Messages', 'invoicing' ), |
|
| 24 | + 'name' => __('GetPaid > Invoice Messages', 'invoicing'), |
|
| 25 | 25 | 'widget_ops' => array( |
| 26 | 26 | 'classname' => 'wpinv-messages-class wpi-g', |
| 27 | - 'description' => esc_html__( 'Displays invoice error and warning messages on checkout page.', 'invoicing' ), |
|
| 27 | + 'description' => esc_html__('Displays invoice error and warning messages on checkout page.', 'invoicing'), |
|
| 28 | 28 | ), |
| 29 | 29 | 'arguments' => array( |
| 30 | 30 | 'title' => array( |
| 31 | - 'title' => __( 'Widget title', 'invoicing' ), |
|
| 32 | - 'desc' => __( 'Enter widget title.', 'invoicing' ), |
|
| 31 | + 'title' => __('Widget title', 'invoicing'), |
|
| 32 | + 'desc' => __('Enter widget title.', 'invoicing'), |
|
| 33 | 33 | 'type' => 'text', |
| 34 | 34 | 'desc_tip' => true, |
| 35 | 35 | 'default' => '', |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | ); |
| 41 | 41 | |
| 42 | - parent::__construct( $options ); |
|
| 42 | + parent::__construct($options); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * |
| 52 | 52 | * @return mixed|string|bool |
| 53 | 53 | */ |
| 54 | - public function output( $args = array(), $widget_args = array(), $content = '' ) { |
|
| 54 | + public function output($args = array(), $widget_args = array(), $content = '') { |
|
| 55 | 55 | |
| 56 | 56 | ob_start(); |
| 57 | 57 | |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | 12 | ?> |
| 13 | 13 | |
@@ -16,11 +16,11 @@ discard block |
||
| 16 | 16 | <div class="row"> |
| 17 | 17 | |
| 18 | 18 | <div class="col-12 col-sm-6 text-sm-left pl-sm-0"> |
| 19 | - <?php do_action( 'getpaid_invoice_header_left', $invoice ); ?> |
|
| 19 | + <?php do_action('getpaid_invoice_header_left', $invoice); ?> |
|
| 20 | 20 | </div> |
| 21 | 21 | |
| 22 | 22 | <div class="col-12 col-sm-6 text-sm-right pr-sm-0"> |
| 23 | - <?php do_action( 'getpaid_invoice_header_right', $invoice ); ?> |
|
| 23 | + <?php do_action('getpaid_invoice_header_right', $invoice); ?> |
|
| 24 | 24 | </div> |
| 25 | 25 | |
| 26 | 26 | </div> |
@@ -7,24 +7,24 @@ |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | -$logo_width = wpinv_get_option( 'logo_width' ); |
|
| 13 | -$logo_height = wpinv_get_option( 'logo_height' ); |
|
| 12 | +$logo_width = wpinv_get_option('logo_width'); |
|
| 13 | +$logo_height = wpinv_get_option('logo_height'); |
|
| 14 | 14 | |
| 15 | 15 | ?> |
| 16 | -<a target="_blank" class="logo-link text-dark" href="<?php echo esc_url( wpinv_get_business_website() ); ?>"> |
|
| 16 | +<a target="_blank" class="logo-link text-dark" href="<?php echo esc_url(wpinv_get_business_website()); ?>"> |
|
| 17 | 17 | |
| 18 | - <?php if ( $logo = wpinv_get_business_logo() ) : ?> |
|
| 18 | + <?php if ($logo = wpinv_get_business_logo()) : ?> |
|
| 19 | 19 | |
| 20 | - <?php if ( ! empty( $logo_width ) && ! empty( $logo_height ) ) : ?> |
|
| 21 | - <img class="logo" style="max-width:100%; width:<?php echo absint( $logo_width ); ?>px; height:<?php echo absint( $logo_height ); ?>px;" src="<?php echo esc_url( $logo ); ?>"> |
|
| 20 | + <?php if (!empty($logo_width) && !empty($logo_height)) : ?> |
|
| 21 | + <img class="logo" style="max-width:100%; width:<?php echo absint($logo_width); ?>px; height:<?php echo absint($logo_height); ?>px;" src="<?php echo esc_url($logo); ?>"> |
|
| 22 | 22 | <?php else : ?> |
| 23 | - <img class="logo" style="max-width:100%;" src="<?php echo esc_url( $logo ); ?>"> |
|
| 23 | + <img class="logo" style="max-width:100%;" src="<?php echo esc_url($logo); ?>"> |
|
| 24 | 24 | <?php endif; ?> |
| 25 | 25 | |
| 26 | 26 | <?php else : ?> |
| 27 | - <h1 class="h3"><?php echo esc_html( wpinv_get_business_name() ); ?></h1> |
|
| 27 | + <h1 class="h3"><?php echo esc_html(wpinv_get_business_name()); ?></h1> |
|
| 28 | 28 | <?php endif; ?> |
| 29 | 29 | |
| 30 | 30 | </a> |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | ?> |
| 12 | 12 | |
| 13 | 13 | <hr class="featurette-divider" /> |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | |
| 11 | -defined( 'ABSPATH' ) || exit; |
|
| 11 | +defined('ABSPATH') || exit; |
|
| 12 | 12 | |
| 13 | 13 | ?> |
| 14 | 14 | <component :is='form_element.level' v-html='form_element.text'></component> |