Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
wp-content-20241001222009
/
themes
/
storefront
/
inc
/
customizer
:
class-storefront-customizer-control-arbitrary.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php // @codingStandardsIgnoreLine. /** * Class to create a custom arbitrary html control for dividers etc * * @package storefront */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * The arbitrary control class */ class Arbitrary_Storefront_Control extends WP_Customize_Control { /** * The settings var * * @var string $settings the blog name. */ public $settings = 'blogname'; /** * The description var * * @var string $description the control description. */ public $description = ''; /** * Renter the control * * @return void */ public function render_content() { switch ( $this->type ) { default: case 'text': echo '<p class="description">' . wp_kses_post( $this->description ) . '</p>'; break; case 'heading': echo '<span class="customize-control-title">' . esc_html( $this->label ) . '</span>'; break; case 'divider': echo '<hr style="margin: 1em 0;" />'; break; } } }