63 Commits

Author SHA1 Message Date
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
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
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
Ian
3ba8bdc854 another str_replace math issue 2012-10-17 17:59:52 +02:00
Ian
878cb2befa fix str_repeat modifier use …
A Smarty3 modifier has higher priority than multiplication, so we have to use () to execute math first
2012-10-07 10:36:12 +02:00
Ian
ba2214598c outsourced backend header javascript 2012-06-07 17:54:33 +02:00
Ian
5f9d9d7690 small js fix and renaming 2012-06-05 19:11:46 +02:00
Ian
4a4d6a4279 outsourced some javascript and restrict multidelete images to adminModule == 'media' only 2012-06-04 15:30:32 +02:00
Ian
d2d2470716 simplification, fixes, additions and changes to entries.inc.php/tpl 2012-06-01 14:22:54 +02:00
Ian
a956471a44 added to MediaLB multidelete[] 2012-05-29 20:39:23 +02:00
Ian
a3f03a40af forward thinking - added error / success / notice classes and
removed their img inline styles to default/admin/style.css
2012-05-23 19:23:41 +02:00
Ian
a368694f24 smartified functions_plugins_admin.inc.php 2012-05-22 20:14:37 +02:00
Ian
162acc15ad added GET/POST noFooter option to backend
please allow this little tweak - it wont harm anybody ... ;-)
2012-01-31 16:09:31 +01:00
Ian
85610d925c nl2br - solved iso2br hook into serendipity_printEntryForm()
additional [NoBR] buttons added to templates/default/admin/entries.tpl
2011-11-25 10:51:15 +01:00
Garvin Hicking
1f037b4627 remove html comment 2011-09-22 12:28:52 +00:00
Garvin Hicking
ada93a01c5 tpl fixes for smarty3, thanks to timbalu 2011-01-06 12:12:47 +00:00
Garvin Hicking
baa78326d6 Also 'title' attribute is nice. 2009-07-14 09:40:11 +00:00
Garvin Hicking
97710fe021 * Removed inline styles of the s9y media insertion, they will now
properly utilize CSS classes (defined in the new file
      style_fallback.css). Also added support for entering "ALT"
      attributes to an <img> tag, can be used as a media property if
      you add "ALT" to the list of "Media properties" in the
      main configuration. (garvinhicking)
2009-07-14 09:22:06 +00:00
Garvin Hicking
fc9048397e Patch by only to allow custom titles for the admin backend 2009-05-22 08:20:51 +00:00
Garvin Hicking
97fbaf3de3 Fix setting cookies 2008-12-02 12:07:46 +00:00
Garvin Hicking
bc9728045a Make visibiel area for plugin drops more clear 2008-11-27 10:43:05 +00:00
Garvin Hicking
db80a5c199 Added mor event hook SQL query parts 2008-05-15 11:40:32 +00:00
Jude Anthony
0e67b071dd Included missed language constant in checksum verification 2008-04-29 19:42:57 +00:00
Garvin Hicking
c30b9619ec Fix CSS issues (empty stylehseets) and bug with inserting images 2007-11-22 10:07:00 +00:00
Garvin Hicking
0971639dee Upport 2007-08-09 09:31:29 +00:00
Garvin Hicking
a0d950b320 HTML and images by Don 2007-08-06 10:18:26 +00:00
Garvin Hicking
f73ae1012e Wrong used hook 2007-07-16 07:34:42 +00:00