%PDF-
%PDF-
Mini Shell
Mini Shell
<?php
/**
* Post Metabox options.
*
* @author ThemeFusion
* @copyright (c) Copyright by ThemeFusion
* @link https://classic.avada.com
* @package Avada
* @subpackage Core
*/
/**
* Post page settings
*
* @param array $sections An array of our sections.
* @return array
*/
function avada_page_options_tab_code_fields( $sections ) {
$post_type = get_post_type();
// What is output inside other pages has only a Custom Code field, output with it (awb_get_custom_code()).
$custom_code_only = in_array( $post_type, [ 'awb_off_canvas', 'fusion_tb_section', 'fusion_form' ], true )
|| ( 'fusion_element' === $post_type && ( fusion_is_post_card( get_the_ID() ) || fusion_is_mega_menu( get_the_ID() ) ) );
$sections['code_fields'] = [
'label' => esc_html__( 'Code Fields', 'Avada' ),
'id' => 'code_fields',
'priority' => 27,
'icon' => 'el-icon-file-edit',
'alt_icon' => 'fusiona-file-code-o',
'fields' => []
];
if ( ! $custom_code_only ) {
$sections['code_fields']['fields']['tracking_code'] = [
'label' => esc_html__( 'Tracking Code', 'Avada' ),
'description' => esc_html__( 'Paste your tracking code here. This will be added into the header template of your theme. Place code inside <script> tags.', 'Avada' ),
'id' => 'tracking_code',
'default' => '',
'type' => 'code',
'choices' => [
'language' => 'html',
'height' => 450,
'theme' => 'chrome',
'minLines' => 40,
'maxLines' => 50,
]
];
$sections['code_fields']['fields']['space_head_close'] = [
'label' => esc_html__( 'Space Before </head>', 'Avada' ),
'description' => esc_html__( 'Only accepts JavaScript code wrapped with <script> tags and HTML markup that is valid inside the <head> tag.', 'Avada' ),
'id' => 'space_head_close',
'default' => '',
'type' => 'code',
'choices' => [
'language' => 'html',
'height' => 450,
'theme' => 'chrome',
'minLines' => 40,
'maxLines' => 50,
]
];
$sections['code_fields']['fields']['space_body_open'] = [
'label' => esc_html__( 'Space After <body>', 'Avada' ),
'description' => esc_html__( 'Only accepts JavaScript code, wrapped with <script> tags and valid HTML markup inside the <body> tag.', 'Avada' ),
'id' => 'space_body_open',
'default' => '',
'type' => 'code',
'choices' => [
'language' => 'html',
'height' => 450,
'theme' => 'chrome',
'minLines' => 40,
'maxLines' => 50,
]
];
}
$sections['code_fields']['fields']['space_body_close'] = [
'label' => $custom_code_only ? esc_html__( 'Custom Code', 'Avada' ) : esc_html__( 'Space Before </body>', 'Avada' ),
'description' => esc_html__( 'Only accepts JavaScript code, wrapped with <script> tags and valid HTML markup inside the <body> tag.', 'Avada' ),
'id' => 'space_body_close',
'default' => '',
'type' => 'code',
'choices' => [
'language' => 'html',
'height' => 450,
'theme' => 'chrome',
'minLines' => 40,
'maxLines' => 50,
]
];
return $sections;
}
/* Omit closing PHP tag to avoid "Headers already sent" issues. */
Zerion Mini Shell 1.0
Page not found – Jefferson County Republican Party
Skip to content
Page load link