CMSimple do not fully separate layout and styling from the content.
You can not CSS style the lastupdate function on one line on your site, core inserts a <br> before the timestamp.
Furthermore unlike other text strings in the language file, core places a colon between the text and the <br>. If you empty the text field in the language file you get a colon and the <br> tag, e.g. like
:
January 29, 2016
Core lastupdate force an extra line
-
- Posts: 55
- Joined: Fri Jan 29, 2016 7:20 am
Re: Core lastupdate force an extra line
I am talking about CMSimple_XH and it doesn't work with <?php echo lastupdate('');?> in the template.html
Re: Core lastupdate force an extra line
I have seen it in the Danish Thread, that's why I have deleted my post.lillebitte wrote:I am talking about CMSimple_XH ...
-
- Posts: 55
- Joined: Fri Jan 29, 2016 7:20 am
-
- Posts: 55
- Joined: Fri Jan 29, 2016 7:20 am
Re: Core lastupdate force an extra line
I have just learned that I can avoid the <br> with <?php echo lastupdate("true");?>, but it does not eat the colon.
Re: Core lastupdate force an extra line
Yes, indeed that is unfortunate. Quick fix: change line 420 in cmsimple/tplfuncs.php to:lillebitte wrote:I have just learned that I can avoid the <br> with <?php echo lastupdate("true");?>, but it does not eat the colon.
Code: Select all
$t = $tx['lastupdate']['text'];
PS: Just noticed that Preben already posted this solution in the Danish forum.
Last edited by cmb on Fri Jan 29, 2016 7:50 pm, edited 1 time in total.
Reason: added PS
Reason: added PS
Christoph M. Becker – Plugins for CMSimple_XH
-
- Posts: 55
- Joined: Fri Jan 29, 2016 7:20 am
Re: Core lastupdate force an extra line
Thanks, I did not dare to make changes in tplfuncs.php on my own, I stick to html and css! But now I have more solutions to choose from, awesome