I am wondering if there is a way to customize the layout for when you are on a https page. As in creating a entire layout file or just layout statements in existing files that will only activate on https pages.
I recently ran into some problems with sharethis where I was including the non-https version that worked until we activated https urls on the site. After this the script was being blocked as it was a non-https url.
The solution that I found for this was to switch to the share this secure url which works for both. However it got me thinking if there was a way to use layouts to fix problems similar to this.
I have found you can simply use "//www.example.com" to automatically pull the current http/https however this doesn't work for different urls like share this.
For example if you wanted to add a block advertising your sever security only when you are in https. Would this need to be done in a php block or could it be done via xml layouts.