Roych Posted January 12, 2021 Share Posted January 12, 2021 Hello this was probably asked a million times, but somehow couldn't find anything. I need some help with translating some text inside of echo, I have expl. elseif ($today >= $start AND $today <= $end) echo " <span class='editor-label' style='margin: -7px 0 0 -7px;background-color:#db152e;'><span style='font-size: 10px;'><?= html_entity_decode(__('UNTIL')); ?> $end</span></span> "; I tried all sorts of things but it is not showing on the fronted. Thank you R Link to comment Share on other sites More sharing options...
adrian Posted January 12, 2021 Share Posted January 12, 2021 elseif ($today >= $start AND $today <= $end) echo " <span class='editor-label' style='margin: -7px 0 0 -7px;background-color:#db152e;'><span style='font-size: 10px;'>" . html_entity_decode(__('UNTIL')) . $end . "</span></span> "; You've got PHP shorttags inside an echo which is breaking things. 2 Link to comment Share on other sites More sharing options...
Roych Posted January 12, 2021 Author Share Posted January 12, 2021 Will try to remember this one, thank you very much I'ts working great now ? R 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now