<?php if (!elgg_is_logged_in()) { ?> img { opacity:0.5; } <?php } ?>
Answered my own question sorry for that
maybe someone else finds this usefull
BTW p.s. sorry for my bad english (i'm from europe - lv)
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- ezisLV@ezisLV
ezisLV - 0 likes
- Matt Beckett@Beck24
Matt Beckett - 0 likes
You must log in to post replies.Theoretically, yes (if you'll make CSS file with .php extention).
But docs recommend to extend your CSS views:
And in your my_css.php add your above code for images
my way works from layout.php anyways but you're way might be a better way to do this thanks for reply
Actually neither of these ways works very well if you have caching turned on. The view extension will either be present or not depending on who was viewing it at the time the caches were built.
The best thing to do is have a base of css that is loaded for everyone, then a second css file that is loaded conditionally.