CH-1142/CH-1178: Add the agent type querystring param to the "Custom Lif...

...t campaign" link

This includes some variable renaming while I was in the theme function and also I think a bug fix which I will point out in the code.
Pretty sure this was a bug that we just never saw. key() would have returned the array key, not the value.