| 1 |
<?php |
| 2 |
/** |
| 3 |
* Helper links used throughout the plugin. |
| 4 |
* |
| 5 |
* @since 1.6.0 |
| 6 |
* |
| 7 |
* @package woo-additional-terms |
| 8 |
*/ |
| 9 |
|
| 10 |
namespace Woo_Additional_Terms\Helper; |
| 11 |
|
| 12 |
/** |
| 13 |
* Helper links. |
| 14 |
*/ |
| 15 |
abstract class Links { |
| 16 |
|
| 17 |
/** |
| 18 |
* Get the url for the documentation with the given path. |
| 19 |
* |
| 20 |
* @since 1.6.0 |
| 21 |
* |
| 22 |
* @param string $path The path to the documentation page. |
| 23 |
* @param array $args The query args. |
| 24 |
* |
| 25 |
* @return string |
| 26 |
*/ |
| 27 |
public static function docs_uri( $path = '', $args = array() ) { |
| 28 |
|
| 29 |
return path_join( |
| 30 |
'https://mypreview.one/docs/woo-additional-terms', |
| 31 |
add_query_arg( $args, $path ) |
| 32 |
); |
| 33 |
} |
| 34 |
|
| 35 |
/** |
| 36 |
* Get the url for the pro version with the given path. |
| 37 |
* |
| 38 |
* @since 1.6.0 |
| 39 |
* |
| 40 |
* @param string $path The path to the pro version page. |
| 41 |
* @param array $args The query args. |
| 42 |
* |
| 43 |
* @return string |
| 44 |
*/ |
| 45 |
public static function pro_uri( $path = '', $args = array() ) { |
| 46 |
|
| 47 |
return path_join( |
| 48 |
'https://mypreview.one/additional-terms-pro-for-woocommerce/', |
| 49 |
add_query_arg( $args, $path ) |
| 50 |
); |
| 51 |
} |
| 52 |
} |
| 53 |
|