Creating a dynamic class name in my custom widget

Your problem is due to your trying to include a file over the http protocol. That kind of include is disabled on your server– hence the message saying pretty much just that.

Use get_template_directory instead, which will give you a filesystem path.

If that does not solve it, post your code in more context. Disjointed like that, it is near impossible to test anything.

tech