| @@ 868-882 (lines=15) @@ | ||
| 865 | ||
| 866 | $classes = array(); |
|
| 867 | ||
| 868 | if ( !empty( $depends_on ) ) { |
|
| 869 | $classes[] = 'pods-depends-on'; |
|
| 870 | ||
| 871 | foreach ( $depends_on as $depends => $on ) { |
|
| 872 | $classes[] = 'pods-depends-on-' . $prefix . self::clean( $depends, true ); |
|
| 873 | ||
| 874 | if ( !is_bool( $on ) ) { |
|
| 875 | $on = (array) $on; |
|
| 876 | ||
| 877 | foreach ( $on as $o ) { |
|
| 878 | $classes[] = 'pods-depends-on-' . $prefix . self::clean( $depends, true ) . '-' . self::clean( $o, true ); |
|
| 879 | } |
|
| 880 | } |
|
| 881 | } |
|
| 882 | } |
|
| 883 | ||
| 884 | if ( !empty( $excludes_on ) ) { |
|
| 885 | $classes[] = 'pods-excludes-on'; |
|
| @@ 884-895 (lines=12) @@ | ||
| 881 | } |
|
| 882 | } |
|
| 883 | ||
| 884 | if ( !empty( $excludes_on ) ) { |
|
| 885 | $classes[] = 'pods-excludes-on'; |
|
| 886 | foreach ( $excludes_on as $excludes => $on ) { |
|
| 887 | $classes[] = 'pods-excludes-on-' . $prefix . self::clean( $excludes, true ); |
|
| 888 | ||
| 889 | $on = (array) $on; |
|
| 890 | ||
| 891 | foreach ( $on as $o ) { |
|
| 892 | $classes[] = 'pods-excludes-on-' . $prefix . self::clean( $excludes, true ) . '-' . self::clean( $o, true ); |
|
| 893 | } |
|
| 894 | } |
|
| 895 | } |
|
| 896 | ||
| 897 | $classes = implode( ' ', $classes ); |
|
| 898 | ||