@@ -9,25 +9,25 @@ discard block |
||
9 | 9 | 'vader' => 'black_matte', |
10 | 10 | 'mint-choc' => 'mint_choco', |
11 | 11 | ); |
12 | -$theme_names = array_keys($jquery_themes); |
|
13 | -$theme_names = array_combine($theme_names, $theme_names); |
|
12 | +$theme_names = array_keys( $jquery_themes ); |
|
13 | +$theme_names = array_combine( $theme_names, $theme_names ); |
|
14 | 14 | |
15 | 15 | foreach ( $theme_names as $k => $v ) { |
16 | - $theme_names[ $k ] = str_replace( '-', '_', $v ); |
|
17 | - unset($k, $v); |
|
16 | + $theme_names[$k] = str_replace( '-', '_', $v ); |
|
17 | + unset( $k, $v ); |
|
18 | 18 | } |
19 | 19 | |
20 | -$alt_img_name = array_merge($theme_names, $alt_img_name); |
|
20 | +$alt_img_name = array_merge( $theme_names, $alt_img_name ); |
|
21 | 21 | $alt_img_name['-1'] = ''; |
22 | -unset($theme_names); |
|
22 | +unset( $theme_names ); |
|
23 | 23 | |
24 | 24 | ?> |
25 | 25 | |
26 | 26 | <div class="field-group clearfix frm-half frm-first-row"> |
27 | 27 | <label><?php _e( 'Theme', 'formidable' ) ?></label> |
28 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('theme_selector') ) ?>"> |
|
28 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'theme_selector' ) ) ?>"> |
|
29 | 29 | <?php foreach ( $jquery_themes as $theme_name => $theme_title ) { ?> |
30 | - <option value="<?php echo esc_attr( $theme_name ) ?>" id="90_<?php echo esc_attr( $alt_img_name[ $theme_name ] ); ?>" <?php selected( $theme_name, $style->post_content['theme_selector'] ) ?>> |
|
30 | + <option value="<?php echo esc_attr( $theme_name ) ?>" id="90_<?php echo esc_attr( $alt_img_name[$theme_name] ); ?>" <?php selected( $theme_name, $style->post_content['theme_selector'] ) ?>> |
|
31 | 31 | <?php echo esc_html( $theme_title ) ?> |
32 | 32 | </option> |
33 | 33 | <?php } ?> |
@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | </div> |
39 | 39 | |
40 | 40 | <div class="field-group clearfix frm-half frm-first-row frm_right_text"> |
41 | - <img id="frm_show_cal" src="//jqueryui.com/resources/images/themeGallery/theme_90_<?php echo esc_attr( $alt_img_name[ $style->post_content['theme_css'] ] ) ?>.png" alt="" /> |
|
42 | - <input type="hidden" value="<?php echo esc_attr($style->post_content['theme_css']) ?>" id="frm_theme_css" name="<?php echo esc_attr( $frm_style->get_field_name('theme_css') ) ?>" /> |
|
43 | - <input type="hidden" value="<?php echo esc_attr($style->post_content['theme_name']) ?>" id="frm_theme_name" name="<?php echo esc_attr( $frm_style->get_field_name('theme_name') ) ?>" /> |
|
41 | + <img id="frm_show_cal" src="//jqueryui.com/resources/images/themeGallery/theme_90_<?php echo esc_attr( $alt_img_name[$style->post_content['theme_css']] ) ?>.png" alt="" /> |
|
42 | + <input type="hidden" value="<?php echo esc_attr( $style->post_content['theme_css'] ) ?>" id="frm_theme_css" name="<?php echo esc_attr( $frm_style->get_field_name( 'theme_css' ) ) ?>" /> |
|
43 | + <input type="hidden" value="<?php echo esc_attr( $style->post_content['theme_name'] ) ?>" id="frm_theme_name" name="<?php echo esc_attr( $frm_style->get_field_name( 'theme_name' ) ) ?>" /> |
|
44 | 44 | </div> |
45 | 45 | <div class="clear"></div> |