← All changes
|
classes/views/styles/components/templates/slider.php
+18
-18
6.27
→
trunk
View file →
| @@ -16,10 +16,10 @@ | ||
| 16 | 16 | </span> |
| 17 | 17 | </span> |
| 18 | 18 | </div> |
| 19 | 19 | <div class="frm-slider-value"> |
| 20 | - <input aria-label="<?php echo esc_attr__( 'Vertical value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['vertical']['value'] ); ?>" /> | |
| 21 | - <select aria-label="<?php echo esc_attr__( 'Value unit', 'formidable' ); ?>"> | |
| 20 | + <input aria-label="<?php esc_attr_e( 'Vertical value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['vertical']['value'] ); ?>" /> | |
| 21 | + <select aria-label="<?php esc_attr_e( 'Value unit', 'formidable' ); ?>"> | |
| 22 | 22 | <?php foreach ( $component['units'] as $unit ) : ?> |
| 23 | 23 | <option <?php selected( $component['vertical']['unit'], $unit ); ?> value="<?php echo esc_attr( $unit ); ?>"><?php echo esc_html( $unit ); ?></option> |
| 24 | 24 | <?php endforeach; ?> |
| 25 | 25 | </select> |
| @@ -38,10 +38,10 @@ | ||
| 38 | 38 | </span> |
| 39 | 39 | </span> |
| 40 | 40 | </div> |
| 41 | 41 | <div class="frm-slider-value"> |
| 42 | - <input aria-label="<?php echo esc_attr__( 'Top value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['top']['value'] ); ?>" /> | |
| 43 | - <select aria-label="<?php echo esc_attr__( 'Value unit', 'formidable' ); ?>"> | |
| 42 | + <input aria-label="<?php esc_attr_e( 'Top value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['top']['value'] ); ?>" /> | |
| 43 | + <select aria-label="<?php esc_attr_e( 'Value unit', 'formidable' ); ?>"> | |
| 44 | 44 | <?php foreach ( $component['units'] as $unit ) : ?> |
| 45 | 45 | <option <?php selected( $component['top']['unit'], $unit ); ?> value="<?php echo esc_attr( $unit ); ?>"><?php echo esc_html( $unit ); ?></option> |
| 46 | 46 | <?php endforeach; ?> |
| 47 | 47 | </select> |
| @@ -60,10 +60,10 @@ | ||
| 60 | 60 | </span> |
| 61 | 61 | </span> |
| 62 | 62 | </div> |
| 63 | 63 | <div class="frm-slider-value"> |
| 64 | - <input aria-label="<?php echo esc_attr__( 'Bottom value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['bottom']['value'] ); ?>" /> | |
| 65 | - <select aria-label="<?php echo esc_attr__( 'Value unit', 'formidable' ); ?>"> | |
| 64 | + <input aria-label="<?php esc_attr_e( 'Bottom value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['bottom']['value'] ); ?>" /> | |
| 65 | + <select aria-label="<?php esc_attr_e( 'Value unit', 'formidable' ); ?>"> | |
| 66 | 66 | <?php foreach ( $component['units'] as $unit ) : ?> |
| 67 | 67 | <option <?php selected( $component['bottom']['unit'], $unit ); ?> value="<?php echo esc_attr( $unit ); ?>"><?php echo esc_html( $unit ); ?></option> |
| 68 | 68 | <?php endforeach; ?> |
| 69 | 69 | </select> |
| @@ -82,10 +82,10 @@ | ||
| 82 | 82 | </span> |
| 83 | 83 | </span> |
| 84 | 84 | </div> |
| 85 | 85 | <div class="frm-slider-value"> |
| 86 | - <input aria-label="<?php echo esc_attr__( 'Horizontal value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['horizontal']['value'] ); ?>" /> | |
| 87 | - <select aria-label="<?php echo esc_attr__( 'Value unit', 'formidable' ); ?>"> | |
| 86 | + <input aria-label="<?php esc_attr_e( 'Horizontal value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['horizontal']['value'] ); ?>" /> | |
| 87 | + <select aria-label="<?php esc_attr_e( 'Value unit', 'formidable' ); ?>"> | |
| 88 | 88 | <?php foreach ( $component['units'] as $unit ) : ?> |
| 89 | 89 | <option <?php selected( $component['horizontal']['unit'], $unit ); ?> value="<?php echo esc_attr( $unit ); ?>"><?php echo esc_html( $unit ); ?></option> |
| 90 | 90 | <?php endforeach; ?> |
| 91 | 91 | </select> |
| @@ -104,10 +104,10 @@ | ||
| 104 | 104 | </span> |
| 105 | 105 | </span> |
| 106 | 106 | </div> |
| 107 | 107 | <div class="frm-slider-value"> |
| 108 | - <input aria-label="<?php echo esc_attr__( 'Left value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['left']['value'] ); ?>" /> | |
| 109 | - <select aria-label="<?php echo esc_attr__( 'Value unit', 'formidable' ); ?>"> | |
| 108 | + <input aria-label="<?php esc_attr_e( 'Left value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['left']['value'] ); ?>" /> | |
| 109 | + <select aria-label="<?php esc_attr_e( 'Value unit', 'formidable' ); ?>"> | |
| 110 | 110 | <?php foreach ( $component['units'] as $unit ) : ?> |
| 111 | 111 | <option <?php selected( $component['left']['unit'], $unit ); ?> value="<?php echo esc_attr( $unit ); ?>"><?php echo esc_html( $unit ); ?></option> |
| 112 | 112 | <?php endforeach; ?> |
| 113 | 113 | </select> |
| @@ -126,10 +126,10 @@ | ||
| 126 | 126 | </span> |
| 127 | 127 | </span> |
| 128 | 128 | </div> |
| 129 | 129 | <div class="frm-slider-value"> |
| 130 | - <input aria-label="<?php echo esc_attr__( 'Right value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['right']['value'] ); ?>" /> | |
| 131 | - <select aria-label="<?php echo esc_attr__( 'Value unit', 'formidable' ); ?>"> | |
| 130 | + <input aria-label="<?php esc_attr_e( 'Right value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['right']['value'] ); ?>" /> | |
| 131 | + <select aria-label="<?php esc_attr_e( 'Value unit', 'formidable' ); ?>"> | |
| 132 | 132 | <?php foreach ( $component['units'] as $unit ) : ?> |
| 133 | 133 | <option <?php selected( $component['right']['unit'], $unit ); ?> value="<?php echo esc_attr( $unit ); ?>"><?php echo esc_html( $unit ); ?></option> |
| 134 | 134 | <?php endforeach; ?> |
| 135 | 135 | </select> |
| @@ -155,11 +155,11 @@ | ||
| 155 | 155 | </span> |
| 156 | 156 | </span> |
| 157 | 157 | </div> |
| 158 | 158 | <div class="frm-slider-value"> |
| 159 | - <input aria-label="<?php echo esc_attr__( 'Field value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['value_label'] ); ?>" /> | |
| 159 | + <input aria-label="<?php esc_attr_e( 'Field value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['value_label'] ); ?>" /> | |
| 160 | 160 | <input type="hidden" <?php echo esc_attr( $field_name ); ?> value="<?php echo esc_attr( $field_value ); ?>" id="<?php echo esc_attr( $component['id'] ); ?>" /> |
| 161 | - <select aria-label="<?php echo esc_attr__( 'Value unit', 'formidable' ); ?>"> | |
| 161 | + <select aria-label="<?php esc_attr_e( 'Value unit', 'formidable' ); ?>"> | |
| 162 | 162 | <?php foreach ( $component['units'] as $unit ) : ?> |
| 163 | 163 | <option <?php selected( $component['unit_measurement'], $unit ); ?> value="<?php echo esc_attr( $unit ); ?>"><?php echo esc_html( $unit ); ?></option> |
| 164 | 164 | <?php endforeach; ?> |
| 165 | 165 | </select> |
| @@ -180,10 +180,10 @@ | ||
| 180 | 180 | </span> |
| 181 | 181 | </span> |
| 182 | 182 | </div> |
| 183 | 183 | <div class="frm-slider-value"> |
| 184 | - <input aria-label="<?php echo esc_attr__( 'Field value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['value_label'] ); ?>" /> | |
| 185 | - <select aria-label="<?php echo esc_attr__( 'Value unit', 'formidable' ); ?>"> | |
| 184 | + <input aria-label="<?php esc_attr_e( 'Field value', 'formidable' ); ?>" type="text" value="<?php echo esc_attr( $component['value_label'] ); ?>" /> | |
| 185 | + <select aria-label="<?php esc_attr_e( 'Value unit', 'formidable' ); ?>"> | |
| 186 | 186 | <?php foreach ( $component['units'] as $unit ) : ?> |
| 187 | 187 | <option <?php selected( $component['unit_measurement'], $unit ); ?> value="<?php echo esc_attr( $unit ); ?>"><?php echo esc_html( $unit ); ?></option> |
| 188 | 188 | <?php endforeach; ?> |
| 189 | 189 | </select> |
| @@ -207,11 +207,11 @@ | ||
| 207 | 207 | </span> |
| 208 | 208 | </span> |
| 209 | 209 | </div> |
| 210 | 210 | <div class="frm-slider-value"> |
| 211 | - <input aria-label="<?php echo esc_attr__( 'Field value', 'formidable' ); ?>" type="text" value="<?php echo empty( $component['unit_measurement'] ) ? esc_attr( $field['value'] ) : (int) $field['value']; ?>" /> | |
| 211 | + <input aria-label="<?php esc_attr_e( 'Field value', 'formidable' ); ?>" type="text" value="<?php echo ! empty( $component['unit_measurement'] ) ? (int) $field['value'] : esc_attr( $field['value'] ); ?>" /> | |
| 212 | 212 | <input type="hidden" name="<?php echo esc_attr( $field['name'] ); ?>" value="<?php echo esc_attr( $field['value'] ); ?>" id="<?php echo esc_attr( $field['id'] ); ?>" /> |
| 213 | - <select aria-label="<?php echo esc_attr__( 'Value unit', 'formidable' ); ?>"> | |
| 213 | + <select aria-label="<?php esc_attr_e( 'Value unit', 'formidable' ); ?>"> | |
| 214 | 214 | <?php foreach ( $component['units'] as $unit ) : ?> |
| 215 | 215 | <option <?php selected( $component['unit_measurement'], $unit ); ?> value="<?php echo esc_attr( $unit ); ?>"><?php echo esc_html( $unit ); ?></option> |
| 216 | 216 | <?php endforeach; ?> |
| 217 | 217 | </select> |