open external links in new tab.

This commit is contained in:
Narek Zakarian 2022-08-29 16:20:37 +04:00
parent e363971212
commit ed2ac19b12
2 changed files with 6 additions and 6 deletions

View file

@ -62,17 +62,17 @@ class HeaderRenderer {
<div class="ppcp-settings-page-header"> <div class="ppcp-settings-page-header">
<img alt="PayPal" src="' . esc_url( $this->module_url ) . 'assets/images/paypal.png"/> <img alt="PayPal" src="' . esc_url( $this->module_url ) . 'assets/images/paypal.png"/>
<h4> <span class="ppcp-inline-only">-</span> ' . __( 'The all-in-one checkout solution for WooCommerce', 'woocommerce-paypal-payments' ) . '</h4> <h4> <span class="ppcp-inline-only">-</span> ' . __( 'The all-in-one checkout solution for WooCommerce', 'woocommerce-paypal-payments' ) . '</h4>
<a class="button" href="https://woocommerce.com/document/woocommerce-paypal-payments/">' <a class="button" target="_blank" href="https://woocommerce.com/document/woocommerce-paypal-payments/">'
. __( 'Documentation', 'woocommerce-paypal-payments' ) . . __( 'Documentation', 'woocommerce-paypal-payments' ) .
'</a> '</a>
<a class="button" target="_blank" href="https://woocommerce.com/document/woocommerce-paypal-payments/#get-help">' <a class="button" target="_blank" href="https://woocommerce.com/document/woocommerce-paypal-payments/#get-help">'
. __( 'Get Help', 'woocommerce-paypal-payments' ) . . __( 'Get Help', 'woocommerce-paypal-payments' ) .
'</a> '</a>
<span class="ppcp-right-align"> <span class="ppcp-right-align">
<a href="https://woocommerce.com/feature-requests/woocommerce-paypal-payments/">' <a target="_blank" href="https://woocommerce.com/feature-requests/woocommerce-paypal-payments/">'
. __( 'Request a feature', 'woocommerce-paypal-payments' ) . . __( 'Request a feature', 'woocommerce-paypal-payments' ) .
'</a> '</a>
<a href="https://github.com/woocommerce/woocommerce-paypal-payments/issues/new?assignees=&labels=type%3A+bug&template=bug_report.md">' <a target="_blank" href="https://github.com/woocommerce/woocommerce-paypal-payments/issues/new?assignees=&labels=type%3A+bug&template=bug_report.md">'
. __( 'Submit a bug', 'woocommerce-paypal-payments' ) . . __( 'Submit a bug', 'woocommerce-paypal-payments' ) .
'</a> '</a>
</span> </span>

View file

@ -155,7 +155,7 @@ define( 'PPCP_FLAG_SEPARATE_APM_BUTTONS', apply_filters( 'woocommerce_paypal_pay
$links, $links,
array( array(
sprintf( sprintf(
'<a href="%1$s">%2$s</a>', '<a target="_blank" href="%1$s">%2$s</a>',
'https://woocommerce.com/document/woocommerce-paypal-payments/', 'https://woocommerce.com/document/woocommerce-paypal-payments/',
__( 'Documentation', 'woocommerce-paypal-payments' ) __( 'Documentation', 'woocommerce-paypal-payments' )
), ),
@ -165,12 +165,12 @@ define( 'PPCP_FLAG_SEPARATE_APM_BUTTONS', apply_filters( 'woocommerce_paypal_pay
__( 'Get help', 'woocommerce-paypal-payments' ) __( 'Get help', 'woocommerce-paypal-payments' )
), ),
sprintf( sprintf(
'<a href="%1$s">%2$s</a>', '<a target="_blank" href="%1$s">%2$s</a>',
'https://woocommerce.com/feature-requests/woocommerce-paypal-payments/', 'https://woocommerce.com/feature-requests/woocommerce-paypal-payments/',
__( 'Request a feature', 'woocommerce-paypal-payments' ) __( 'Request a feature', 'woocommerce-paypal-payments' )
), ),
sprintf( sprintf(
'<a href="%1$s">%2$s</a>', '<a target="_blank" href="%1$s">%2$s</a>',
'https://github.com/woocommerce/woocommerce-paypal-payments/issues/new?assignees=&labels=type%3A+bug&template=bug_report.md', 'https://github.com/woocommerce/woocommerce-paypal-payments/issues/new?assignees=&labels=type%3A+bug&template=bug_report.md',
__( 'Submit a bug', 'woocommerce-paypal-payments' ) __( 'Submit a bug', 'woocommerce-paypal-payments' )
), ),