PATH:
home
/
centosnipponia
/
public_html
/
nipponiacom
/
wp-content
/
themes
/
sydney-pro-ii
/
inc
/
customizer
<?php /** * Sydney Theme Customizer - Hooks * * @package Sydney */ function sydney_customize_register_hooks( $wp_customize ) { $wp_customize->add_panel( 'sydney_hooks_panel', array( 'priority' => 20, 'theme_supports' => '', 'title' => esc_html__( 'Hooks', 'sydney' ), ) ); /** * General */ $wp_customize->add_section( 'sydney_hooks_general', array( 'title' => esc_html__( 'General', 'sydney' ), 'priority' => 10, 'panel' => 'sydney_hooks_panel', 'description' => esc_html__( 'Using these fields, you can insert custom HTML or shortcodes in various positions across the theme.', 'sydney' ), ) ); $wp_customize->add_setting( 'sydney_hook_wp_head', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'force_balance_tags' ) ); $wp_customize->add_control( 'sydney_hook_wp_head', array( 'type' => 'textarea', 'section' => 'sydney_hooks_general', 'label' => esc_html__( 'wp_head', 'sydney' ), 'description' => esc_html__( 'Hook: wp_head', 'sydney' ), ) ); $wp_customize->add_setting( 'sydney_hook_before_site', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'force_balance_tags' ) ); $wp_customize->add_control( 'sydney_hook_before_site', array( 'type' => 'textarea', 'section' => 'sydney_hooks_general', 'label' => esc_html__( 'Before site', 'sydney' ), 'description' => esc_html__( 'Hook: sydney_before_site', 'sydney' ), ) ); $wp_customize->add_setting( 'sydney_hook_after_site', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'force_balance_tags' ) ); $wp_customize->add_control( 'sydney_hook_after_site', array( 'type' => 'textarea', 'section' => 'sydney_hooks_general', 'label' => esc_html__( 'After site', 'sydney' ), 'description' => esc_html__( 'Hook: sydney_after_site', 'sydney' ), ) ); /** * Header */ $wp_customize->add_section( 'sydney_hooks_header', array( 'title' => esc_html__( 'Header', 'sydney' ), 'priority' => 10, 'panel' => 'sydney_hooks_panel', 'description' => esc_html__( 'Using these fields, you can insert custom HTML or shortcodes in various positions across the theme.', 'sydney' ), ) ); $wp_customize->add_setting( 'sydney_hook_before_header', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'force_balance_tags' ) ); $wp_customize->add_control( 'sydney_hook_before_header', array( 'type' => 'textarea', 'section' => 'sydney_hooks_header', 'label' => esc_html__( 'Before header', 'sydney' ), 'description' => esc_html__( 'Hook: sydney_before_header', 'sydney' ), ) ); $wp_customize->add_setting( 'sydney_hook_after_header', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'force_balance_tags' ) ); $wp_customize->add_control( 'sydney_hook_after_header', array( 'type' => 'textarea', 'section' => 'sydney_hooks_header', 'label' => esc_html__( 'After header', 'sydney' ), 'description' => esc_html__( 'Hook: sydney_after_header', 'sydney' ), ) ); $wp_customize->add_setting( 'sydney_hook_after_hero', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'force_balance_tags' ) ); $wp_customize->add_control( 'sydney_hook_after_hero', array( 'type' => 'textarea', 'section' => 'sydney_hooks_header', 'label' => esc_html__( 'After hero', 'sydney' ), 'description' => esc_html__( 'Hook: sydney_after_hero', 'sydney' ), ) ); /** * Content */ $wp_customize->add_section( 'sydney_hooks_content', array( 'title' => esc_html__( 'Content', 'sydney' ), 'priority' => 10, 'panel' => 'sydney_hooks_panel', 'description' => esc_html__( 'Using these fields, you can insert custom HTML or shortcodes in various positions across the theme.', 'sydney' ), ) ); $wp_customize->add_setting( 'sydney_hook_main_container_start', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'force_balance_tags' ) ); $wp_customize->add_control( 'sydney_hook_main_container_start', array( 'type' => 'textarea', 'section' => 'sydney_hooks_content', 'label' => esc_html__( 'Main container: after start', 'sydney' ), 'description' => esc_html__( 'Hook: sydney_main_container_start', 'sydney' ), ) ); $wp_customize->add_setting( 'sydney_hook_main_container_end', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'force_balance_tags' ) ); $wp_customize->add_control( 'sydney_hook_main_container_end', array( 'type' => 'textarea', 'section' => 'sydney_hooks_content', 'label' => esc_html__( 'Main container: before end', 'sydney' ), 'description' => esc_html__( 'Hook: sydney_main_container_end', 'sydney' ), ) ); //loop posts $wp_customize->add_setting( 'sydney_hook_before_loop_post', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'force_balance_tags' ) ); $wp_customize->add_control( 'sydney_hook_before_loop_post', array( 'type' => 'textarea', 'section' => 'sydney_hooks_content', 'label' => esc_html__( 'Before archive post', 'sydney' ), 'description' => esc_html__( 'Hook: sydney_before_loop_entry', 'sydney' ), ) ); $wp_customize->add_setting( 'sydney_hook_after_loop_post', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'force_balance_tags' ) ); $wp_customize->add_control( 'sydney_hook_after_loop_post', array( 'type' => 'textarea', 'section' => 'sydney_hooks_content', 'label' => esc_html__( 'After archive post', 'sydney' ), 'description' => esc_html__( 'Hook: sydney_after_loop_entry', 'sydney' ), ) ); //Single posts $wp_customize->add_setting( 'sydney_hook_before_single_post', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'force_balance_tags' ) ); $wp_customize->add_control( 'sydney_hook_before_single_post', array( 'type' => 'textarea', 'section' => 'sydney_hooks_content', 'label' => esc_html__( 'Before single post', 'sydney' ), 'description' => esc_html__( 'Hook: sydney_before_single_entry', 'sydney' ), ) ); $wp_customize->add_setting( 'sydney_hook_after_single_post', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'force_balance_tags' ) ); $wp_customize->add_control( 'sydney_hook_after_single_post', array( 'type' => 'textarea', 'section' => 'sydney_hooks_content', 'label' => esc_html__( 'After single post', 'sydney' ), 'description' => esc_html__( 'Hook: sydney_after_single_entry', 'sydney' ), ) ); //Sidebar $wp_customize->add_section( 'sydney_hooks_sidebar', array( 'title' => esc_html__( 'Sidebar', 'sydney' ), 'priority' => 10, 'panel' => 'sydney_hooks_panel', 'description' => esc_html__( 'Using these fields, you can insert custom HTML or shortcodes in various positions across the theme.', 'sydney' ), ) ); $wp_customize->add_setting( 'sydney_hook_before_sidebar', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'force_balance_tags' ) ); $wp_customize->add_control( 'sydney_hook_before_sidebar', array( 'type' => 'textarea', 'section' => 'sydney_hooks_sidebar', 'label' => esc_html__( 'Sidebar: after start', 'sydney' ), 'description' => esc_html__( 'Hook: sydney_sidebar_after_start', 'sydney' ), ) ); $wp_customize->add_setting( 'sydney_hook_after_sidebar', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'force_balance_tags' ) ); $wp_customize->add_control( 'sydney_hook_after_sidebar', array( 'type' => 'textarea', 'section' => 'sydney_hooks_sidebar', 'label' => esc_html__( 'Sidebar: before end', 'sydney' ), 'description' => esc_html__( 'Hook: sydney_sidebar_before_end', 'sydney' ), ) ); //Footer $wp_customize->add_section( 'sydney_hooks_footer', array( 'title' => esc_html__( 'Footer', 'sydney' ), 'priority' => 10, 'panel' => 'sydney_hooks_panel', 'description' => esc_html__( 'Using these fields, you can insert custom HTML or shortcodes in various positions across the theme.', 'sydney' ), ) ); $wp_customize->add_setting( 'sydney_hook_before_footer', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'force_balance_tags' ) ); $wp_customize->add_control( 'sydney_hook_before_footer', array( 'type' => 'textarea', 'section' => 'sydney_hooks_footer', 'label' => esc_html__( 'Before footer', 'sydney' ), 'description' => esc_html__( 'Hook: sydney_before_footer', 'sydney' ), ) ); $wp_customize->add_setting( 'sydney_hook_after_footer', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'force_balance_tags' ) ); $wp_customize->add_control( 'sydney_hook_after_footer', array( 'type' => 'textarea', 'section' => 'sydney_hooks_footer', 'label' => esc_html__( 'After footer', 'sydney' ), 'description' => esc_html__( 'Hook: sydney_after_footer', 'sydney' ), ) ); $wp_customize->add_setting( 'sydney_hook_wp_footer', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'force_balance_tags' ) ); $wp_customize->add_control( 'sydney_hook_wp_footer', array( 'type' => 'textarea', 'section' => 'sydney_hooks_footer', 'label' => esc_html__( 'wp_footer', 'sydney' ), 'description' => esc_html__( 'Hook: wp_footer', 'sydney' ), ) ); } add_action( 'customize_register', 'sydney_customize_register_hooks' );
[+]
..
[+]
controls
[+]
options
[+]
upsell
[-] ajax-callbacks.php
[edit]
[-] callbacks.php
[edit]
[-] customizer-hooks.php
[edit]
[-] customizer.php
[edit]
[-] sanitize.php
[edit]
[-] .htaccess.disabled
[edit]