| @@ -14,16 +14,16 @@ | ||
| 14 | 14 | <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php esc_html_e( 'Title', 'automatic-youtube-gallery' ); ?></label> |
| 15 | 15 | <input type="text" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" class="widefat" value="<?php echo esc_attr( $instance['title'] ); ?>" /> |
| 16 | 16 | </p> |
| 17 | 17 | |
| 18 | -<div class="ayg-editor ayg-editor-field-type-<?php echo esc_attr( $instance['type'] ); ?> ayg-editor-field-theme-<?php echo esc_attr( $instance['theme'] ); ?>"> | |
| 18 | +<div class="ayg-editor ayg-editor-field-type-<?php echo esc_attr( $instance['type'] ); ?> ayg-editor-field-theme-<?php echo esc_attr( $instance['theme'] ); ?> ayg-editor-field-pagination_type-<?php echo esc_attr( $instance['pagination_type'] ); ?>"> | |
| 19 | 19 | <?php foreach ( $fields as $key => $value ) : ?> |
| 20 | 20 | <div class="ayg-editor-section ayg-editor-section-<?php echo esc_attr( $key ); ?> <?php if ( 'source' == $key ) echo 'ayg-active'; ?>"> |
| 21 | - <h2 class="ayg-editor-section-header"> | |
| 21 | + <div class="ayg-editor-section-header"> | |
| 22 | 22 | <span class="dashicons-before dashicons-plus"></span> |
| 23 | 23 | <span class="dashicons-before dashicons-minus"></span> |
| 24 | 24 | <?php echo esc_html( $value['label'] ); ?> |
| 25 | - </h2> | |
| 25 | + </div> | |
| 26 | 26 | |
| 27 | 27 | <div class="ayg-editor-controls" <?php if ( 'source' != $key ) echo 'style="display: none;"'; ?>> |
| 28 | 28 | <?php |
| 29 | 29 | foreach ( $value['fields'] as $field ) : |
| @@ -34,15 +34,15 @@ | ||
| 34 | 34 | $field['value'] = $instance[ $field['name'] ]; |
| 35 | 35 | ?> |
| 36 | 36 | <div class="ayg-editor-control ayg-editor-control-<?php echo esc_attr( $field['name'] ); ?>"> |
| 37 | 37 | <?php if ( 'text' == $field['type'] || 'url' == $field['type'] || 'number' == $field['type'] ) : ?> |
| 38 | - <label><strong><?php echo esc_html( $field['label'] ); ?></strong></label> | |
| 38 | + <label><?php echo esc_html( $field['label'] ); ?></label> | |
| 39 | 39 | <input type="text" name="<?php echo esc_attr( $this->get_field_name( $field['name'] ) ); ?>" class="ayg-editor-field ayg-editor-field-<?php echo esc_attr( $field['name'] ); ?> widefat" placeholder="<?php echo esc_attr( $field['placeholder'] ); ?>" value="<?php echo esc_attr( $field['value'] ); ?>" /> |
| 40 | 40 | <?php elseif ( 'textarea' == $field['type'] ) : ?> |
| 41 | - <label><strong><?php echo esc_html( $field['label'] ); ?></strong></label> | |
| 41 | + <label><?php echo esc_html( $field['label'] ); ?></label> | |
| 42 | 42 | <textarea name="<?php echo esc_attr( $this->get_field_name( $field['name'] ) ); ?>" rows="8" class="ayg-editor-field ayg-editor-field-<?php echo esc_attr( $field['name'] ); ?> widefat" placeholder="<?php echo esc_attr( $field['placeholder'] ); ?>"><?php echo esc_textarea( $field['value'] ); ?></textarea> |
| 43 | 43 | <?php elseif ( 'select' == $field['type'] || 'radio' == $field['type'] ) : ?> |
| 44 | - <label><strong><?php echo esc_html( $field['label'] ); ?></strong></label> | |
| 44 | + <label><?php echo esc_html( $field['label'] ); ?></label> | |
| 45 | 45 | <select name="<?php echo esc_attr( $this->get_field_name( $field['name'] ) ); ?>" class="ayg-editor-field ayg-editor-field-<?php echo esc_attr( $field['name'] ); ?> widefat"> <?php |
| 46 | 46 | foreach ( $field['options'] as $value => $label ) { |
| 47 | 47 | printf( |
| 48 | 48 | '<option value="%s"%s>%s</option>', |
| @@ -55,17 +55,17 @@ | ||
| 55 | 55 | </select> |
| 56 | 56 | <?php elseif ( 'checkbox' == $field['type'] ) : ?> |
| 57 | 57 | <label> |
| 58 | 58 | <input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( $field['name'] ) ); ?>" class="ayg-editor-field ayg-editor-field-<?php echo esc_attr( $field['name'] ); ?>" value="1" <?php checked( $field['value'] ); ?> /> |
| 59 | - <strong><?php echo esc_html( $field['label'] ); ?></strong> | |
| 59 | + <?php echo esc_html( $field['label'] ); ?> | |
| 60 | 60 | </label> |
| 61 | 61 | <?php elseif ( 'color' == $field['type'] ) : ?> |
| 62 | - <label><strong><?php echo esc_html( $field['label'] ); ?></strong></label> | |
| 62 | + <label><?php echo esc_html( $field['label'] ); ?></label> | |
| 63 | 63 | <input type="text" name="<?php echo esc_attr( $this->get_field_name( $field['name'] ) ); ?>" class="ayg-editor-field ayg-editor-field-<?php echo esc_attr( $field['name'] ); ?> ayg-color-picker widefat" value="<?php echo esc_attr( $field['value'] ); ?>" /> |
| 64 | 64 | <?php endif; ?> |
| 65 | 65 | |
| 66 | 66 | <!-- Hint --> |
| 67 | - <?php if ( isset( $field['description'] ) ) : ?> | |
| 67 | + <?php if ( ! empty( $field['description'] ) ) : ?> | |
| 68 | 68 | <p class="description"><?php echo wp_kses_post( $field['description'] ); ?></p> |
| 69 | 69 | <?php endif; ?> |
| 70 | 70 | </div> |
| 71 | 71 | <?php |