felixarntz/theme-boilerplate

View on GitHub
inc/library/customizer/class-customize-panel.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * Super_Awesome_Theme_Customize_Panel class
 *
 * @package Super_Awesome_Theme
 * @license GPL-2.0-or-later
 * @link    https://super-awesome-author.org/themes/super-awesome-theme/
 */

/**
 * Class representing a Customizer panel.
 *
 * Since core already has acceptable classes for these, this class only contains
 * constants for easy property access.
 *
 * @since 1.0.0
 */
final class Super_Awesome_Theme_Customize_Panel {

    /**
     * ID property name.
     *
     * @since 1.0.0
     */
    const PROP_ID = 'id';

    /**
     * Capability property name.
     *
     * @since 1.0.0
     */
    const PROP_CAPABILITY = 'capability';

    /**
     * Type property name.
     *
     * @since 1.0.0
     */
    const PROP_TYPE = 'type';

    /**
     * Title property name.
     *
     * @since 1.0.0
     */
    const PROP_TITLE = 'title';

    /**
     * Description property name.
     *
     * @since 1.0.0
     */
    const PROP_DESCRIPTION = 'description';

    /**
     * Priority property name.
     *
     * @since 1.0.0
     */
    const PROP_PRIORITY = 'priority';

    /**
     * Theme supports property name.
     *
     * @since 1.0.0
     */
    const PROP_THEME_SUPPORTS = 'theme_supports';

    /**
     * Active callback property name.
     *
     * @since 1.0.0
     */
    const PROP_ACTIVE_CALLBACK = 'active_callback';
}