116 Commits

Author SHA1 Message Date
4785f07f12
Always assume UTF-8. 2022-02-20 17:14:54 +01:00
Garvin Hicking
4d770c9cc6 [TASK] Adds ability to make plugins change the multi-media insertion gallery HTML 2019-12-03 15:50:51 +01:00
Hanno
fa8e77c130 Escape category images to avoid backend XSS 2019-09-28 23:09:30 +02:00
Matthias Mees
c64fd17550 Add mvp HTML/CSS for media galleries
- Use proper semantic markup for s9y_gallery
- Add a few classes just in case
- Add basic CSS for image galleries
- Backport gallery styles to default

References #552
2018-06-16 16:45:55 +02:00
klemens
5a95db314a spelling fixes 2017-04-06 22:26:07 +02:00
Ian
d78724b4c9 remove $Id$ 2016-04-25 12:13:18 +02:00
Matthias Mees
c3df4cc0c4 Clean up fallback styles
- Use unitless values where possible
- Emit styles in a more logical order
- Updated documentation of fallback styles
2016-02-04 19:43:14 +01:00
Matthias Mees
c0e626fecf Remove fallback styles for lightboxed image links
No longer necessary.

Reverts 7e9524c7bb6da092e10022ead3f8b73d700f062d
2016-02-04 19:30:41 +01:00
Matthias Mees
7e9524c7bb Add fallback styles for image links
This is required by the lightbox plugin. It does not harm blogs
that do not use the lightbox plugin, but makes image links easier
to click.

References #388
2016-02-04 18:05:37 +01:00
onli
148e644590 Use CDATA for content in ATOM feed (#354) 2016-01-15 13:33:30 +01:00
Ian
751840ba10 fix issue in atom 0.3
References #362 and a comment in 7760786e7efa72c2af4e6d68be54513cabde2a72#commitcomment-14125106
2015-11-02 13:39:44 +01:00
Ian
61fe3e2bf9 Fix MediaLibrary objects not pass through into entryproperties CustomFields
and replaces some old "|@" Smarty 2 array "type hintings" to "|".

Also fixes the default fallback in default/admin/media_choose.tpl, which also missed the serendipity js namespace.

@yellowled Please trigger a default/admin/serendipity_editor.js run to fetch up with all latterly added changes.
2015-09-15 17:28:04 +02:00
Ian
7760786e7e fix fatal error atom 1.0 issue
References #362
2015-09-07 10:49:39 +02:00
Garvin Hicking
93e781048c * Make preview_iframe.tpl template files load the proper frontend
CSS file, including cache-busting version string when changing
     themes

References #302
2015-03-18 13:32:14 +01:00
Matthias Mees
9ad1dd9312 Add SEO meta elements to core templates
References #310
2015-03-14 12:41:56 +01:00
Ian
18bdf03623 remove references for serendipity_define.js(+.php) 2015-03-12 12:10:13 +01:00
Garvin Hicking
253428dd93 Drop $authorid as discussed
References #264
2015-01-27 14:21:53 +01:00
Garvin Hicking
adfb237b4a fix wrong IF-order
We'll need to also apply that to all additional_themes
2015-01-05 11:37:29 +01:00
Ian
67a82a7e1d simple proposel to fix wrong preview stylesheet
References #119
2014-12-07 18:57:51 +01:00
Garvin Hicking
9459c393df Use proper "generator" metatag. Do not expose version number if not configured. 2014-07-21 12:11:55 +02:00
Matthias Mees
da0f824da9 Move media_showitem.tpl to frontend for default as well.
References #197
2014-07-08 12:27:01 +02:00
Thomas Hochstein
992dcbd0c9 'language="javascript"' is optional.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2014-06-09 18:50:28 +02:00
Garvin Hicking
dd83225447 This is my proposal on implementing the ability to switch frontend and backend templates independently.
- This introduces a new option "template_backend" that will be set to indicate the backend template, defaults to 2k11.
- The "Engine: xxx" line in info.txt still works, but only for the frontend
- The frontend fallback chain defaults to the old "default" template to ensure that themes will work that have "old-style" HTML output
- The backend fallback chain only falls back to 2k11 and then "default"
- In the future, we will remove templates/default/admin once the mechanism is proven stable

To test this in all cases you can:

- Copy 2k11/ to 2k11-custom, edit info.txt, give it a distinct name. Edit the admin/index.tpl file to add some code to ensure that you will see that template in the backend if you pick it, or adjust the style.css or whatever.
- Copy idea/ to idea-custom, edit info.txt, add a "Engine: 2k11" line. Now you can test how a template would look like that fallsback on 2k11 instead of "default"

Those permutations can be checked and come to my mind:

- Backend: 2k11, Frontend: 2k11
- Backend: 2k11-custom, Frontend: 2k11
- Backend: 2k11, Frontend: 2k11-custom

- Backend: 2k11, Frontend: idea
- Backend: 2k11, Frontend: idea-custom

- Backend: 2k11-custom, Frontend: idea
- Backend: 2k11-custom, Frontend: idea-custom

They seem to work.

Currently the display of backend and frontend theme in templates.inc.tpl takes up some larger space. Maybe it could be prettified somehow, maybe put frontend and backend template next to each other, not beneath each other? Maybe @yellowled has some suggestions.

@onli and @ophian - please have a look at this, since you both also worked on the fallback chains. Please tell me if you have issues with this. We can easily revert, if you see this approach as not workable. This is more a "proof of concept" draft.
2014-05-14 12:58:06 +02:00
onli
68be4a5f65 get rename token from html
serendipity_editor.js in default is static, so it can't be given by smarty. I copied the approach into the 2k11-version as well, so it won't get as easily lost.
2014-04-04 13:34:38 +02:00
onli
fd113ae212 Use id for textarea identification
this prodcues an easier compatiblity with the staticpage-plugin, and is
altogether more developer friendly than the documents.form-selector
2014-03-31 02:29:54 +02:00
Ian
1471ac699c correct a typo I assume 2014-03-14 20:05:31 +01:00
onli
7497af7022 Use precompiled JS for default
serendipity_editor.js needs to be tested in the installer for #80
2014-03-09 16:19:11 +01:00
Garvin Hicking
ca84b8b85d backend_footer hook 2013-09-24 13:09:42 +02:00
Matthias Mees
19388f063c Backport fix for comment_author_self. 2013-07-27 23:30:32 +02:00
Ian
75cba2cccd upport master->2.0 default/serendipity_editor.js noWysiwygAdd()
temporary disbled jquerified function, since this did not support nugget textareas.
2013-05-30 21:16:13 +03:00
Ian
ab3f3efceb upport master->2.0 default/serendipity_editor.js CKEDITOR and mode switches
in func serendipity_imageSelector_addToBody

still did not touch my changes within noWysiwygAdd()
2013-05-30 21:08:14 +03:00
onli
0cd974fa6d proof-of-concept .js.tpl: Added fallback for serendipity_editor.js.tpl as serendipity_editor.js to default-template, and changed serendipity_get_file to react to .js.tpl-files in template-directories 2013-03-06 14:55:21 +01:00
onli
2a88167957 simplifying media db function in serendipity_editor.js and correcting a mixup with serendipity[isLink] in media_chooser 2013-02-25 21:09:25 +01:00
onli
97933a097c wysiwyg.advanced is now always true, so default-template can always print the same editor-buttons 2013-02-24 19:26:14 +01:00
Ian
6c699fed35 Update templates/default/admin/media_items.tpl
fixed wrong tag
2013-02-18 15:41:52 +01:00
Ian
da173dc398 Update templates/default/admin/media_pane.tpl
fixed media_pane redundant </td>
2013-02-18 15:40:32 +01:00
Matthias Mees
dbe612e9dc Safer version of Smarty3 compatibility. 2013-01-21 16:52:05 +01:00
Garvin Hicking
53ea38aa3c Port from master 2013-01-21 10:06:09 +01:00
Ian
6d7d2cd893 entry form toolbar document.write replacement 2013-01-13 15:36:16 +01:00
Ian
a083033a73 moved script part to head and some indent 2012-12-30 10:54:57 +01:00
Ian
ece2db5782 convert document.write and removed some wrong closing tags 2012-12-30 10:48:13 +01:00
Ian
bc810ca90c imageCrop now opens via window.open 2012-12-30 10:47:28 +01:00
Ian
449367c7aa js ending delimiter S3 auto literal behaviour is quite bulletproof
tests have proofed " } ;" and " };" and even "};" are interpreted correct!
2012-12-07 18:00:52 +01:00
Ian
d14085f3c7 recommended use Smarty3 auto literal }; whitespace}whitespace; 2012-12-07 16:36:09 +01:00
Ian
3b90cddfff some whitespace cleanup to e03e95b 2012-12-07 15:56:39 +01:00
Ian
e03e95b33a fixed delimiters, tabs to whitespaces and fixed doubled &amp; 2012-12-07 15:44:47 +01:00
Garvin Hicking
ebd361c201 Insert/transfer variable from smarty to JS 2012-12-07 15:02:12 +01:00
Ian
bfea00fba4 fixed typo in c8105426 2012-12-03 10:50:14 +01:00
Garvin Hicking
aff47d1d48 For yellowled: Remove this strange cloning dependency, port it to jquery.
Also remove as much inline JS as possible and move it into serendipity_editor.js
Got rid of category_selector JS file, as I prefer the single serendipity_editor.js file

NOTE: Those changes will need to be ported/merged into the 2k11 style, I think?
2012-12-03 10:18:04 +01:00
Ian
68712333e1 added renaming description constant to backend media upload 2012-11-29 14:06:18 +01:00