# float-menu/7.2.5/admin/settings/4.rules.php

Float menu – awesome floating side menu, version 7.2.5. 70 lines.

- Page: https://pluginprobe.com/plugins/float-menu/7.2.5/code/admin/settings/4.rules.php
- Raw: https://pluginprobe.com/plugins/float-menu/7.2.5/raw/admin/settings/4.rules.php
- Modified: 2026-08-06T14:04:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/float-menu/7.2.5/code/admin/settings/4.rules.php#L10-L20`.

```php
<?php
/*
 * Page Name: Targeting & Rules
 */

use FloatMenuLite\Admin\CreateFields;
use FloatMenuLite\Settings_Helper;
use FloatMenuLite\WOWP_Plugin;

defined( 'ABSPATH' ) || exit;

$data  = include( 'options/rules.php' );
$field = new CreateFields( $options, $data['opt'] );

foreach ( $data['args'] as $key => $value ) {
	$item_order = ! empty( $options['item_order'][ $key ] ) ? 1 : 0;
	$open       = ! empty( $item_order ) ? ' open' : '';
	?>

    <details class="wpie-item"<?php echo esc_attr( $open ); ?>>
        <input type="hidden" name="param[item_order][<?php echo esc_attr( $key ); ?>]" class="wpie-item__toggle"
               value="<?php echo absint( $item_order ); ?>">
        <summary class="wpie-item_heading">
            <span class="wpie-item_heading_icon">
                <span class="wpie-icon <?php echo esc_attr( $value['icon'] ); ?>"></span>
            </span>
            <span class="wpie-item_heading_label"><?php echo esc_html( $value['title'] ); ?></span>
            <span class="wpie-item_heading_type"></span>
            <span class="wpie-item_heading_toogle">
                <span class="wpie-icon wpie_icon-chevron-down"></span>
                <span class="wpie-icon wpie_icon-chevron-up"></span>
            </span>
        </summary>
        <div class="wpie-item_content">
            <div class="wpie-fieldset wpie-<?php echo esc_attr( $key ); ?>" id="<?php echo esc_attr( $key ); ?>">
				<?php
				foreach ( $value as $k => $v ) {

					if ( is_array( $v ) ) {

						echo '<div class="wpie-fields">';
						foreach ( $v as $k2 => $v2 ) {
							if ( $key === 'rules' ) {
								$field->create( $k2, 0 );
							} elseif ( $key === 'schedule' ) {
                                continue;
                            }
                            else {
								$field->create( $k2 );
							}
						}
						echo '</div>';
						if ( $key === 'rules' ) {
							do_action( WOWP_Plugin::PREFIX . '_rules_display', $options, $v, $field ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
						}

						if ( $key === 'schedule' ) {
							do_action( WOWP_Plugin::PREFIX . '_rules_schedule', $options, $v, $field ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
						}

					}

				}

				?>
            </div>
        </div>
    </details>
	<?php
}
```
