| @@ -6,50 +6,46 @@ | ||
| 6 | 6 | use FloatMenuLite\Admin\CreateFields; |
| 7 | 7 | |
| 8 | 8 | defined( 'ABSPATH' ) || exit; |
| 9 | 9 | |
| 10 | -$data = include( 'options/settings.php' ); | |
| 10 | +$page_opt = include( 'options/settings.php' ); | |
| 11 | +$field = new CreateFields( $options, $page_opt ); | |
| 12 | +?> | |
| 11 | 13 | |
| 12 | -$field = new CreateFields( $options, $data['opt'] ); | |
| 14 | + <div class="wpie-fieldset"> | |
| 15 | + <div class="wpie-legend"><?php esc_html_e( 'Position', 'float-menu' ); ?></div> | |
| 16 | + <div class="wpie-fields"> | |
| 17 | + <?php $field->create( 'menu' ); ?> | |
| 18 | + </div> | |
| 19 | + </div> | |
| 13 | 20 | |
| 21 | + <div class="wpie-fieldset"> | |
| 22 | + <div class="wpie-legend"><?php esc_html_e( 'Appearance', 'float-menu' ); ?></div> | |
| 23 | + <div class="wpie-fields"> | |
| 24 | + <?php $field->create( 'shape' ); ?> | |
| 25 | + <?php $field->create( 'sideSpace' ); ?> | |
| 26 | + <?php $field->create( 'buttonSpace' ); ?> | |
| 27 | + <?php $field->create( 'labelSpace' ); ?> | |
| 28 | + </div> | |
| 29 | + <div class="wpie-fields"> | |
| 30 | + <?php $field->create( 'labelsOn' ); ?> | |
| 31 | + <?php $field->create( 'labelConnected' ); ?> | |
| 32 | + <?php $field->create( 'labelSpeed' ); ?> | |
| 33 | + </div> | |
| 34 | + <div class="wpie-fields"> | |
| 35 | + <?php $field->create( 'zindex' ); ?> | |
| 36 | + </div> | |
| 37 | + </div> | |
| 14 | 38 | |
| 15 | -foreach ( $data['args'] as $key => $value ) { | |
| 16 | - $item_order = ! empty( $options['item_order'][ $key ] ) ? 1 : 0; | |
| 17 | - $open = ! empty( $item_order ) ? ' open' : ''; | |
| 18 | - ?> | |
| 19 | - | |
| 20 | - <details class="wpie-item"<?php echo esc_attr( $open ); ?>> | |
| 21 | - <input type="hidden" name="param[item_order][<?php echo esc_attr( $key ); ?>]" class="wpie-item__toggle" | |
| 22 | - value="<?php echo absint( $item_order ); ?>"> | |
| 23 | - <summary class="wpie-item_heading"> | |
| 24 | - <span class="wpie-item_heading_icon"> | |
| 25 | - <span class="wpie-icon <?php echo esc_attr($value['icon']);?>"></span> | |
| 26 | - </span> | |
| 27 | - <span class="wpie-item_heading_label"><?php echo esc_html($value['title']);?></span> | |
| 28 | - <span class="wpie-item_heading_type"></span> | |
| 29 | - <span class="wpie-item_heading_toogle"> | |
| 30 | - <span class="wpie-icon wpie_icon-chevron-down"></span> | |
| 31 | - <span class="wpie-icon wpie_icon-chevron-up"></span> | |
| 32 | - </span> | |
| 33 | - </summary> | |
| 34 | - <div class="wpie-item_content"> | |
| 35 | - <div class="wpie-fieldset"> | |
| 36 | - <?php | |
| 37 | - foreach ( $value as $k => $v ) { | |
| 38 | - | |
| 39 | - if(is_array($v)) { | |
| 40 | - echo '<div class="wpie-fields">'; | |
| 41 | - foreach ( $v as $k2 => $v2 ) { | |
| 42 | - $field->create( $k2 ); | |
| 43 | - } | |
| 44 | - echo '</div>'; | |
| 45 | - } | |
| 46 | - | |
| 47 | - } | |
| 48 | - | |
| 49 | - ?> | |
| 50 | - </div> | |
| 39 | + <div class="wpie-fieldset"> | |
| 40 | + <div class="wpie-legend"><?php esc_html_e( 'Size', 'float-menu' ); ?></div> | |
| 41 | + <div class="wpie-fields"> | |
| 42 | + <?php $field->create( 'iconSize' ); ?> | |
| 43 | + <?php $field->create( 'labelSize' ); ?> | |
| 51 | 44 | </div> |
| 52 | - </details> | |
| 53 | - <?php | |
| 54 | -} | |
| 55 | - | |
| 45 | + <div class="wpie-fields"> | |
| 46 | + <?php $field->create( 'mobilieScreen' ); ?> | |
| 47 | + <?php $field->create( 'mobiliconSize' ); ?> | |
| 48 | + <?php $field->create( 'mobillabelSize' ); ?> | |
| 49 | + </div> | |
| 50 | + </div> | |
| 51 | +<?php | |