芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/cepali.edu.mx/wp-content/plugins/elementor/modules/generator-tag/module.php
get_generator_content(); echo '
' . PHP_EOL; } private function get_generator_content(): string { $active_features = $this->get_active_features(); $settings = $this->get_generator_tag_settings(); $tags = [ 'Elementor ' . ELEMENTOR_VERSION, ]; if ( ! empty( $active_features ) ) { $tags[] = 'features: ' . implode( ', ', $active_features ); } if ( ! empty( $settings ) ) { $tags[] = 'settings: ' . implode( ', ', $settings ); } return implode( '; ', $tags ); } private function get_active_features(): array { $active_features = []; foreach ( Plugin::$instance->experiments->get_active_features() as $feature_slug => $feature ) { if ( isset( $feature['generator_tag'] ) && $feature['generator_tag'] ) { $active_features[] = $feature_slug; } } return $active_features; } private function get_generator_tag_settings(): array { return apply_filters( 'elementor/generator_tag/settings', [] ); } public function register_admin_settings( Settings $settings ) { $settings->add_field( Settings::TAB_ADVANCED, Settings::TAB_ADVANCED, 'meta_generator_tag', [ 'label' => esc_html__( 'Generator Tag', 'elementor' ), 'field_args' => [ 'type' => 'select', 'std' => '', 'options' => [ '' => esc_html__( 'Enable', 'elementor' ), '1' => esc_html__( 'Disable', 'elementor' ), ], 'desc' => esc_html__( 'A generator tag is a meta element that indicates the attributes used to create a webpage. It is used for analytical purposes.', 'elementor' ), ], ] ); } }