if sitting on sidebar-1, I need my widget to behave differently than if it were on sidebar-2. How can i detect the sidebar it is sitting on from within the widget() function?
The widget contains a list of links to posts. Depending on which sidebar, it should use a different custom image size version of its thumbnail.
So what will change is the thumbnail size reference name. For instance, in one sidebar, "xs-square-thumb" will be used; in another "L-square-thumb" will be used.
Ex: get_the_post_thumbnail($post->ID,'xs-square-thumb');