Widget_Menu_Anchor::render()
Render menu anchor widget output on the frontend.
Description
Written in PHP and used to generate the final HTML.
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |
Source
includes/widgets/menu-anchor.php
protected function render() { $anchor = $this->get_settings_for_display( 'anchor' ); if ( ! empty( $anchor ) ) { $this->add_render_attribute( 'inner', 'id', $anchor ); } $this->add_render_attribute( 'inner', 'class', 'elementor-menu-anchor' ); ?> <div <?php echo $this->get_render_attribute_string( 'inner' ); ?>></div> <?php }