esc_html__( 'Display a "hamburger" icon that opens the side area', 'mkdf-core' ) ) ); $this->setParams(); } protected function setParams() { $this->params = array( array( 'type' => 'textfield', 'name' => 'icon_color', 'title' => esc_html__( 'Side Area Opener Color', 'mkdf-core' ), 'description' => esc_html__( 'Define color for side area opener', 'mkdf-core' ) ), array( 'type' => 'textfield', 'name' => 'icon_hover_color', 'title' => esc_html__( 'Side Area Opener Hover Color', 'mkdf-core' ), 'description' => esc_html__( 'Define hover color for side area opener', 'mkdf-core' ) ), array( 'type' => 'textfield', 'name' => 'widget_margin', 'title' => esc_html__( 'Side Area Opener Margin', 'mkdf-core' ), 'description' => esc_html__( 'Insert margin in format: top right bottom left (e.g. 10px 5px 10px 5px)', 'mkdf-core' ) ), array( 'type' => 'textfield', 'name' => 'widget_title', 'title' => esc_html__( 'Side Area Opener Title', 'mkdf-core' ) ) ); } public function widget( $args, $instance ) { $holder_styles = array(); if ( ! empty( $instance['icon_color'] ) ) { $holder_styles[] = 'color: ' . $instance['icon_color'] . ';'; } if ( ! empty( $instance['widget_margin'] ) ) { $holder_styles[] = 'margin: ' . $instance['widget_margin']; } ?> href="javascript:void(0)" >
renderIcon( 'dripicons-menu', 'dripicons' ); ?>