added missing theme values to sample file. Made some code conditionally compiled for iOS < 7