HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/quadcodewordpressapi/public/wp-content/themes/intentionally-blank/lib/blankTheme.php
<?php

/**
 * Intentionally Blank Theme functions
 *
 * @package WordPress
 * @subpackage intentionally-blank
 */

if (!function_exists('blank_setup')) :
    /**
     * Sets up theme defaults and registers the various WordPress features that
     * this theme supports.
     */
    function blank_setup()
    {
        load_theme_textdomain('intentionally-blank');
        add_theme_support('automatic-feed-links');
        add_theme_support('title-tag');
        add_theme_support('post-thumbnails');

        // This theme allows users to set a custom background.
        add_theme_support(
            'custom-background',
            [
                'default-color' => 'f5f5f5',
            ]
        );

        add_theme_support('custom-logo');
        add_theme_support(
            'custom-logo',
            [
                'height' => 256,
                'width' => 256,
                'flex-height' => true,
                'flex-width' => true,
                'header-text' => ['site-title', 'site-description'],
            ]
        );
    }
endif; // end function_exists blank_setup.
add_action('after_setup_theme', 'blank_setup');

/**
 * Sets up theme defaults and registers the various WordPress features that
 * this theme supports.
 *
 * @param class $wp_customize Customizer object.
 */
function blank_customize_register($wp_customize)
{
    $wp_customize->remove_section('static_front_page');

    $wp_customize->add_section(
        'blank_footer',
        [
            'title' => __('Footer', 'intentionally-blank'),
            'priority' => 120,
            'capability' => 'edit_theme_options',
            'panel' => '',
        ]
    );
    $wp_customize->add_setting(
        'blank_copyright',
        [
            'type' => 'theme_mod',
            'default' => __('Intentionally Blank - Proudly powered by WordPress', 'intentionally-blank'),
            'sanitize_callback' => 'wp_kses_post',
        ]
    );

    /**
     * Checkbox sanitization function
     *
     * @param bool $checked Whether the checkbox is checked.
     *
     * @return bool Whether the checkbox is checked.
     */
    function blank_sanitize_checkbox($checked)
    {
        // Returns true if checkbox is checked.
        return ((isset($checked) && true === $checked) ? true : false);
    }

    $wp_customize->add_setting(
        'blank_show_copyright',
        [
            'default' => true,
            'sanitize_callback' => 'blank_sanitize_checkbox',
        ]
    );
    $wp_customize->add_control(
        'blank_copyright',
        [
            'type' => 'textarea',
            'label' => __('Copyright Text', 'intentionally-blank'),
            'section' => 'blank_footer',
            'settings' => 'blank_copyright',
            'priority' => '10',
        ]
    );
    $wp_customize->add_control(
        'blank_footer_copyright_hide',
        [
            'type' => 'checkbox',
            'label' => __('Show Copyright Text', 'intentionally-blank'),
            'section' => 'blank_footer',
            'settings' => 'blank_show_copyright',
            'priority' => '20',
        ]
    );
}

add_action('customize_register', 'blank_customize_register', 100);