This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Astra_Ext_Nav_Widget_Support::render_widget( int $widget_id, string $title )
Render widget HTML
Description
Parameters
- $widget_id
-
(int) (Required) widget id.
- $title
-
(string) (Required) widget title.
Return
(string)
Source
File: addons/nav-menu/classes/class-astra-ext-nav-widget-support.php
private function render_widget( $widget_id, $title ) { $html = '<div class="widget" title="' . esc_attr( $title ) . '" id="' . $widget_id . '" data-type="widget" data-id="' . $widget_id . '">'; $html .= ' <div class="widget-top">'; $html .= ' <div class="widget-title-action">'; $html .= ' <a class="widget-option widget-action item-edit" title="' . esc_attr__( 'Edit', 'astra-addon' ) . '"><span class="screen-reader-text">Edit</span></a>'; $html .= ' </div>'; $html .= ' <div class="widget-title">'; $html .= ' <h4>' . esc_html( $title ) . '</h4>'; $html .= ' </div>'; $html .= ' </div>'; $html .= ' <div class="widget-inner widget-inside"></div>'; $html .= '</div>'; return $html; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.6.0 | Introduced. |