| Server IP : 198.38.94.67 / Your IP : 216.73.217.142 Web Server : LiteSpeed System : Linux d6054.dxb1.stableserver.net 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64 User : azfilmst ( 1070) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /proc/self/cwd/wp-content/plugins/themerain-core/includes/customizer/controls/ |
Upload File : |
<?php
if ( ! class_exists( 'WP_Customize_Control' ) ) {
return;
}
class ThemeRain_Customize_Fonts_Control extends WP_Customize_Control {
public function render_content() {
?>
<?php if ( ! empty( $this->label ) ) : ?>
<label for="<?php echo esc_attr( $this->id ); ?>" class="customize-control-title"><?php echo esc_html( $this->label ); ?></label>
<?php endif; ?>
<select id="<?php echo esc_attr( $this->id ); ?>" <?php $this->link(); ?>>
<?php
foreach ( $this->choices as $label => $array ) {
echo '<optgroup label="' . esc_attr( $label ) . '">';
foreach ( $array as $value => $label ) {
echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . $label . '</option>';
}
echo '</optgroup>';
}
?>
</select>
<?php
}
}