$offset,
] );
}
public function render_scroll_top_html() {
$settings = get_option( 'easyel_scroll_top_settings', [] );
$icon = isset( $settings['scroll_top_icon'] ) ? $settings['scroll_top_icon'] : 'arrow';
$icon_html = '';
switch ( $icon ) {
case 'custom_icon':
$custom_class = ! empty( $settings['scroll_top_custom_icon'] ) ? $settings['scroll_top_custom_icon'] : 'fas fa-arrow-up';
$icon_html = '';
break;
case 'custom_image':
$custom_image = ! empty( $settings['scroll_top_custom_image'] ) ? $settings['scroll_top_custom_image'] : '';
if ( $custom_image ) {
$icon_html = '
';
} else {
$icon_html = $this->get_icon_svg( 'arrow' );
}
break;
default:
$icon_html = $this->get_icon_svg( $icon );
break;
}
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo '';
}
private function get_icon_svg( $icon ) {
switch ( $icon ) {
case 'chevron':
return '';
case 'double':
return '';
default: // arrow
return '';
}
}
}