Quick question about media files in SE Cloud themes
When developing a cloud theme, how can I reference to a media file in the theme package ?

For example I have a CSS file in the package and I want to link it in the header template. What would be URL to this CSS file ?
    • 2
    Stepan Mazurov you can use {{ THEME_URL }}/theme.css (remove spaces) to get at a media file which is added to a template.
    • 0 2 votes
    • Reply
      • 1
      seTweaks Great. I couldn't find this in the documentation. How can I use this in CSS files ?
      Is there a variable such as IS_USER_ADMIN ?
        • 2
        Stepan Mazurov No, there is no such variable. Best option is to use javascript and check for Revolution.Viewer.role which would be set to admin for admin users.

        As long as you use relative urls in css, it should resolve fine (if you have logo.jpg, just put url('logo.jpg') in css).
    • 1
    seTweaks [131308,Stepan Mazurov] [176007,SocialEngine PHP MGR]