ascvh@#%(^-^)V ?host,ip,port,protocol,title,domain,country,city,link,org ???à JFIF x x ?? C ?? C ?à " ?? ?? μ } !1AQa "q2?‘?#B±áR?e$3br? %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz??…???‰?’“”?–—???¢£¤¥|§¨?a23′μ?·?1o??????èéêòó???×?ùúáa?????èéê?òó???÷?ùú?? ?? μ w !1AQ aq"2?B‘?±á #3Rebr?{
File "settings-select-field.php"
Full Path: /home/zcziejy/ryadselyen/parts/settings-select-field.php
File size: 1009 B
MIME-type: text/x-php
Charset: utf-8
<?php
// Exits if accessed directly.
if ( ! defined( 'ABSPATH' ) ) exit;
?>
<select name="<?php echo esc_attr( $args[ 'label_for' ] ); ?>" id="<?php echo esc_attr( $args[ 'label_for' ] ); ?>">
<?php foreach ( $args[ 'options' ] ?? [] as $value => $label ) {
printf( '<option value="%s"%s>%s</option>',
esc_attr( $value ),
selected( YMFSEO_Settings::get_option( $args[ 'label_for' ] ), $value, false ),
esc_html( $label ),
);
} ?>
</select>
<script>
document.querySelector( 'select[ name=<?php echo esc_attr( $args[ 'label_for' ] ); ?> ]' ).addEventListener( 'change', e => {
e.target.querySelectorAll( 'option' ).forEach( option => {
option.removeAttribute( 'selected' );
if ( e.target.value == option.getAttribute( 'value' ) ) {
option.setAttribute( 'selected', 'selected' );
}
});
});
</script>
<?php if ( isset( $args[ 'description' ] ) ) : ?>
<p class="description"><?php echo esc_html( $args[ 'description' ] ); ?></p>
<?php endif; ?>