All messages and errors were appended to $msg
and $errormsg, respectively, creating one long
unformatted string - mostly unreadable.
So we make $msg and $errormsg arrays instead
and iterate over those arrays in the template,
displaying each message separately.
Fixes#525.
Signed-off-by: Thomas Hochstein <thh@inter.net>
Initial motivation for this rework was to add support for the responsive thumbnnails (#474). But it also is a re-implementation instead of an enahncement of the existing code because the moveMediaDirectory function had grown into a mess. It was very hard to debug possible renaming bugs, like https://board.s9y.org/viewtopic.php?f=3&t=21185. This approach uses several small functions instead that can be combined and re-used.
Code style improvements from the reviews of
* Rename ´$serendipity['title_first'´] to
´$serendipity['backendBlogtitleFirst']´ and
make it boolean
* Add default to `serendipity_config.inc.php`.
* Change the condition in ´2k11/admin/index.tpl´
that the first branch is run by default
Signed-off-by: Thomas Hochstein <thh@inter.net>
The default page title of backend pages is
"section | blog title | $admin". You can
now change the order to "blog title | section
| $admin" by setting $serendipity['title_first']
to "blogtitle" in serendipity_config_local.inc.php
Closes#413
Signed-off-by: Thomas Hochstein <thh@inter.net>
Hello s9y,
I have change three url (lines 23, 32, 33) to "https://..." because browser warning unsaved content on https-domains.
It works on my site "www.seidler.is"
I hope i could help
Greeting marcus
Iconfont icons are of no value to screenreader users; in our case,
they get alternative text. By adding 'aria-hidden="true"' to the
<span> holding the iconfont icon, we avoid the screenreader trying
to announce the iconfont icon.
- Only fire JS equal heights if flexbox is not supported
- Add flexbox styles for backend sections that used to use
JS based equal heights
- Use Modernizr's flexbox detection to use the old styles
as a fallback for non-flexbox browsers
- Generate new oldie stylesheet
- Do not use .clearfix with flexbox (Safari doesn't like it)
- Apply IE11 fix for flexbox, see goo.gl/pglrbm
References #333