mirror of
https://github.com/Rushilwiz/dear-anon.git
synced 2025-04-22 21:09:50 -04:00
20 lines
869 B
PHP
20 lines
869 B
PHP
<?php
|
|
// Exit if accessed directly
|
|
if ( !defined( 'ABSPATH' ) ) exit;
|
|
?>
|
|
|
|
<select class="ctc-select" id="ctc_theme_<?php echo $template; ?>" name="ctc_theme_<?php echo $template; ?>"
|
|
style="visibility:hidden" <?php echo $this->ctc()->is_theme() ? '' : ' disabled '; ?> autocomplete="off" >
|
|
<?php
|
|
uasort( $this->ctc()->themes[ $template ], array( $this, 'cmp_theme' ) );
|
|
foreach ( $this->ctc()->themes[ $template ] as $slug => $theme )
|
|
echo '<option value="' . $slug . '"' . ( $slug == $selected ? ' selected' : '' ) . '>'
|
|
. esc_attr( $theme[ 'Name' ] ) . '</option>' . LF;
|
|
?>
|
|
</select>
|
|
<div style="display:none">
|
|
<?php
|
|
foreach ( $this->ctc()->themes[ $template ] as $slug => $theme )
|
|
include ( CHLD_THM_CFG_DIR . '/includes/forms/themepreview.php' ); ?>
|
|
</div>
|