HEX
Server: LiteSpeed
System: Linux premium267.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: predezso (1249)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/themes/blog-articles/inc/customizer/custom-controller.php
<?php
/**
 * Adore Themes Customizer
 *
 * @package Blog Articles
 *
 * Custom Controller
 */
class Blog_Articles_Toggle_Checkbox_Custom_control extends WP_Customize_Control {
	public $type = 'toogle_checkbox';

	public function render_content() {
		?>
		<div class="checkbox_switch">
			<div class="onoffswitch">
				<input type="checkbox" id="<?php echo esc_attr( $this->id ); ?>" name="<?php echo esc_attr( $this->id ); ?>" class="onoffswitch-checkbox" value="<?php echo esc_attr( $this->value() ); ?>" 
				<?php
				$this->link();
				checked( $this->value() );
				?>
				>
				<label class="onoffswitch-label" for="<?php echo esc_attr( $this->id ); ?>"></label>
			</div>
			<span class="customize-control-title onoffswitch_label"><?php echo esc_html( $this->label ); ?></span>
			<p><?php echo wp_kses_post( $this->description ); ?></p>
		</div>
		<?php
	}
}

class Blog_Articles_Sub_Section_Heading_Custom_Control extends WP_Customize_Control {

	// The type of control being rendered.
	public $type = 'sub_section_heading';

	// Render the control in the customizer.

	public function render_content() {

		?>
		<div class="sub-section-heading-control">
			<?php if ( ! empty( $this->label ) ) { ?>
				<h4 class="customize-control-title">
					<?php echo esc_html( $this->label ); ?>
				</h4>
			<?php } ?>

		</div>
		<?php
	}
}