Created
August 7, 2020 06:24
-
-
Save mohammadYousefiDev/c648226265ad1af2ef5ea9ed3bf7778f to your computer and use it in GitHub Desktop.
practice for standard select in php - syntaxhighlighter wp plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select name="syntax"> | |
<?php | |
$versions = array( | |
3 => __( 'Version 3.x', 'domain' ), | |
2 => __( 'Version 2.x', 'domain' ), | |
); | |
foreach ( $versions as $version => $name ) { | |
echo '<option value="' . esc_attr( $version ) . '"' . selected( $this->settings['pversion'], $version, false ) . '>' . esc_html( $name ) . "</option>"; | |
} | |
?> | |
</select> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment