attribute['sg_content_label'] ); $id = esc_attr( $this->attribute['sg_content_id'] ); $class = esc_attr( $this->attribute['sg_content_class'] ); $link = $this->attribute['sg_content_link']; $icon_position = $this->attribute['sg_content_icon_position']; $link_class = 'jkit-button-wrapper'; $icon_attr = array(); if ( ( isset( $this->attribute['st_icon_normal_color_responsive'] ) && $this->attribute['st_icon_normal_color_responsive'] ) || ( isset( $this->attribute['st_icon_hover_color_responsive'] ) && $this->attribute['st_icon_hover_color_responsive'] ) ) { $icon_attr['class'][] = 'icon-colored'; } $icon = 'yes' === $this->attribute['sg_content_icon_enable'] ? $this->render_icon_element( $this->attribute['sg_content_icon'], $icon_attr ) : ''; if ( 'before' === $icon_position ) { $label = $icon . $label; } else { $label = $label . $icon; } if ( $this->attribute['st_button_hover_background_background_background'] === 'gradient' || $this->attribute['st_button_normal_background_background_background'] === 'gradient' ) { $link_class .= ' hover-gradient'; $label = '' . $label . ''; } $label = $this->render_url_element( $link, null, $link_class, $label ); return $this->render_wrapper( 'button', $label, array( $class, 'icon-position-' . $icon_position ), array(), $id ); } }