| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/engineering/iimec/wp-content/themes/graphene/admin/customizer/ |
Upload File : |
<?php
/**
* Graphene Advanced options
*
* @package Graphene
* @since 2.0
*/
function graphene_customizer_advanced_options( $wp_customize ){
/* =Head Tags
--------------------------------------------------------------------------------------*/
$wp_customize->add_section( 'graphene-advanced-head-tags', array(
'title' => __( 'Custom <head> Tags', 'graphene' ),
'panel' => 'graphene-advanced',
) );
$wp_customize->add_control( new Graphene_Code_Control( $wp_customize, 'graphene_settings[head_tags]', array(
'type' => 'textarea',
'section' => 'graphene-advanced-head-tags',
'label' => __( 'Code to insert into the <head> element', 'graphene' ),
'input_attrs' => array(
'rows' => 3,
'cols' => 60
)
) ) );
/* =Action Hooks Widget Areas
--------------------------------------------------------------------------------------*/
$wp_customize->add_section( 'graphene-advanced-widget-hooks', array(
'title' => __( 'Action Hooks Widget Areas', 'graphene' ),
'panel' => 'graphene-advanced',
) );
$wp_customize->add_control( new Graphene_Widget_Hooks_Control( $wp_customize, 'graphene_settings[widget_hooks]', array(
'type' => 'textarea',
'section' => 'graphene-advanced-widget-hooks',
) ) );
/* =Scripts
--------------------------------------------------------------------------------------*/
$wp_customize->add_section( 'graphene-advanced-scripts', array(
'title' => __( 'Scripts Options', 'graphene' ),
'panel' => 'graphene-advanced',
) );
$wp_customize->add_control( 'graphene_settings[host_scripts_locally]', array(
'type' => 'checkbox',
'section' => 'graphene-advanced-scripts',
'label' => __( 'Host theme fonts and scripts locally', 'graphene' ),
'priority' => 1,
) );
do_action( 'graphene_customizer_advanced_options', $wp_customize );
}