|
@@ -1,10 +1,10 @@ discard block |
|
|
block discarded – undo |
|
1
|
1
|
<div class="nav-menus-php"> |
|
2
|
2
|
<div class="wrap"> |
|
3
|
|
- <?php FrmStylesHelper::style_menu('manage'); ?> |
|
|
3
|
+ <?php FrmStylesHelper::style_menu( 'manage' ); ?> |
|
4
|
4
|
|
|
5
|
|
- <p><?php printf(__( 'Easily change which template your forms are using by making changes below.', 'formidable' ), '<a href="?page=formidable-styles&frm_action=new_style">', '</a>'); ?></p> |
|
|
5
|
+ <p><?php printf( __( 'Easily change which template your forms are using by making changes below.', 'formidable' ), '<a href="?page=formidable-styles&frm_action=new_style">', '</a>' ); ?></p> |
|
6
|
6
|
|
|
7
|
|
- <?php include(FrmAppHelper::plugin_path() .'/classes/views/shared/errors.php'); ?> |
|
|
7
|
+ <?php include( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' ); ?> |
|
8
|
8
|
|
|
9
|
9
|
<div id="menu-locations-wrap"> |
|
10
|
10
|
<form method="post"> |
|
@@ -21,21 +21,21 @@ discard block |
|
|
block discarded – undo |
|
21
|
21
|
<?php |
|
22
|
22
|
if ( $forms ) { |
|
23
|
23
|
foreach ( $forms as $form ) { |
|
24
|
|
- $this_style = isset($form->options['custom_style']) ? (int) $form->options['custom_style'] : 1; |
|
|
24
|
+ $this_style = isset( $form->options['custom_style'] ) ? (int) $form->options['custom_style'] : 1; |
|
25
|
25
|
if ( 1 == $this_style ) { |
|
26
|
26
|
// use the default style |
|
27
|
27
|
$this_style = $default_style->ID; |
|
28
|
28
|
} |
|
29
|
29
|
?> |
|
30
|
30
|
<tr id="menu-locations-row"> |
|
31
|
|
- <td class="menu-location-title"><strong><?php echo empty($form->name) ? __( '(no title)') : $form->name ?></strong></td> |
|
|
31
|
+ <td class="menu-location-title"><strong><?php echo empty( $form->name ) ? __( '(no title)' ) : $form->name ?></strong></td> |
|
32
|
32
|
<td class="menu-location-menus"> |
|
33
|
33
|
<input type="hidden" name="prev_style[<?php echo esc_attr( $form->id ) ?>]" value="<?php echo esc_attr( $this_style ) ?>" /> |
|
34
|
34
|
<select name="style[<?php echo esc_attr( $form->id ) ?>]"> |
|
35
|
35
|
<?php foreach ( $styles as $s ) { ?> |
|
36
|
|
- <option value="<?php echo esc_attr( $s->ID ) ?>" <?php selected( $s->ID, $this_style ) ?>><?php echo esc_html( $s->post_title . ( empty($s->menu_order) ? '' : ' ('. __( 'default', 'formidable' ) .')' ) ) ?></option> |
|
|
36
|
+ <option value="<?php echo esc_attr( $s->ID ) ?>" <?php selected( $s->ID, $this_style ) ?>><?php echo esc_html( $s->post_title . ( empty( $s->menu_order ) ? '' : ' (' . __( 'default', 'formidable' ) . ')' ) ) ?></option> |
|
37
|
37
|
<?php } ?> |
|
38
|
|
- <option value="" <?php selected(0, $this_style) ?>><?php _e( 'Styling disabled', 'formidable' ) ?></option> |
|
|
38
|
+ <option value="" <?php selected( 0, $this_style ) ?>><?php _e( 'Styling disabled', 'formidable' ) ?></option> |
|
39
|
39
|
</select> |
|
40
|
40
|
|
|
41
|
41
|
</td><!-- .menu-location-menus --> |