ID); $these_roles = $user->roles; $tc = new AIO_Time_Clock_Lite_Actions(); if (function_exists('is_plugin_active')) { if (is_plugin_active('aio-timeclock-google-analytics/aio-timeclock-google-analytics.php')) { aio_google_show_code(); } } //load options $widgettitle = get_option('aio_tc_lite_widgettitle'); //widget output echo esc_attr($args['before_widget']); echo esc_attr($args['before_title']); echo esc_attr($widgettitle); echo esc_attr($args['after_title']); echo ''; echo '
' . esc_attr_x('Your user group does not have permission to view the Time Clock.', 'aio-time-clock', 'aio-time-clock-lite') . '
'; } } else { echo '' . esc_attr_x('Time Clock is only available for users that are logged in', 'aio-time-clock', 'aio-time-clock-lite') . '
'; echo '' . esc_attr_x('Login', 'aio-time-clock', 'aio-time-clock-lite') . ''; } echo '