| 1 |
<?php |
| 2 |
/** |
| 3 |
* Merchant Code Snippets |
| 4 |
*/ |
| 5 |
|
| 6 |
if ( ! defined( 'ABSPATH' ) ) { |
| 7 |
exit; // Exit if accessed directly |
| 8 |
} |
| 9 |
|
| 10 |
/** |
| 11 |
* Global Header and Footer |
| 12 |
*/ |
| 13 |
Merchant_Admin_Options::create( array( |
| 14 |
'title' => esc_html__( 'Global Header and Footer', 'merchant' ), |
| 15 |
'module' => 'code-snippets', |
| 16 |
'fields' => array( |
| 17 |
|
| 18 |
array( |
| 19 |
'id' => 'header_code_snippets', |
| 20 |
'type' => 'textarea_code', |
| 21 |
'title' => esc_html__( 'Header', 'merchant' ), |
| 22 |
'desc' => esc_html__( 'These scripts will be printed in the <head> section.', 'merchant' ), |
| 23 |
'class' => 'merchant-code-snippets-textarea', |
| 24 |
), |
| 25 |
|
| 26 |
array( |
| 27 |
'id' => 'body_code_snippets', |
| 28 |
'type' => 'textarea_code', |
| 29 |
'title' => esc_html__( 'Body', 'merchant' ), |
| 30 |
'desc' => esc_html__( 'These scripts will be printed just below the opening <body> tag.', 'merchant' ), |
| 31 |
'class' => 'merchant-code-snippets-textarea', |
| 32 |
), |
| 33 |
|
| 34 |
array( |
| 35 |
'id' => 'footer_code_snippets', |
| 36 |
'type' => 'textarea_code', |
| 37 |
'title' => esc_html__( 'Footer', 'merchant' ), |
| 38 |
'desc' => esc_html__( 'These scripts will be printed above the closing </body> tag.', 'merchant' ), |
| 39 |
'class' => 'merchant-code-snippets-textarea', |
| 40 |
), |
| 41 |
|
| 42 |
), |
| 43 |
) ); |
| 44 |
|