/home/vianto5/hidalgoresidences.mx/wp-content/plugins/simple-custom-css/includes
NameSizeModeActions
css/-0755rm
js/-0755rm
admin.php72620644editdlrm
customizer.php27830644editdlrm
public.php8240644editdlrm
Edit: /home/vianto5/hidalgoresidences.mx/wp-content/plugins/simple-custom-css/includes/customizer.php (2783B)
*/ // Prevent direct file access. if ( ! defined( 'SCCSS_FILE' ) ) { die(); } /** * Register Customizer functionality. * * @since 4.0.0 * * @action customize_register, 11 * * @param \WP_Customize_Manager $wp_customize \WP_Customize_Manager object. */ function sccss_customize_register( $wp_customize ) { $section_id = 'sccss_section'; $wp_customize->add_section( $section_id, array( 'title' => __( 'Simple Custom CSS', 'simple-custom-css' ), 'capability' => 'manage_options', 'description' => __( 'Simple Custom CSS allows you to add your own styles that will remain even if you change your theme.', 'simple-custom-css' ), ) ); $wp_customize->add_setting( SCCSS_OPTION . '[sccss-content]', array( 'type' => 'option', ) ); $control = $wp_customize->add_control( new WP_Customize_Code_Editor_Control( $wp_customize, 'sccss_editor', array( 'label' => '', 'section' => $section_id, 'settings' => array( 'default' => SCCSS_OPTION . '[sccss-content]', ), 'code_type' => 'text/css', 'input_attrs' => array( 'aria-describedby' => 'editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4', ), ) ) ); if ( $control instanceof WP_Customize_Code_Editor_Control ) { $options = array(); if ( isset( $control->editor_settings['codemirror'] ) ) { $options = isset( $control->editor_settings['codemirror'] ); } $control->editor_settings['codemirror'] = array_merge( $options, array( 'height' => 'auto', ) ); } } add_action( 'customize_register', 'sccss_customize_register', 11 ); /** * Render the Custom CSS in the Customizer. * * @since 4.0.0 * * @action wp_head, 99 */ function sccss_customizer_css() { if ( ! is_customize_preview() ) { return; } ?>