get_general_options(); if (is_array($general_options)) { if (in_array($position, $general_options['button_position'])) { $r = essb_core()->generate_share_buttons($position); } } } return $r; } } if (!function_exists('essb_hook_draw_share_buttons')) { /** * Generate share buttons code without checking if position is activated from settings * * @param string $position * @return string */ function essb_hook_draw_share_buttons($position = '') { $r = ''; if (function_exists('essb_core')) { $r = essb_core()->generate_share_buttons($position); } return $r; } }