122 Commits

Author SHA1 Message Date
onli
694b446e1a Move serendipiy_editor.js.tpl convertion into core
http://board.s9y.org/viewtopic.php?f=11&t=19927
2014-05-16 16:13:16 +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
06880647b7 fix jquerey check
template_engine in 2k11 is set to null, which is still set
2014-04-28 10:25:05 +02:00
onli
99c1f4c87c Fix fallback chain
Engine: default in info.txt will now lead to the template to use template/default as fallback before the default-template (2k11 currently). An approach to fix #130

Also, template_engine is not automatically set to default, as this was implicitly always the case
2014-04-27 20:23:56 +02:00
onli
7bf373248b serendipity_editor.js.tpl without core
To have this in the plugin api didn't look right. the fallback to default works this time, so this should be alright.
2014-03-23 23:53:55 +01:00
onli
7f4dbb3e2e Include JS in installer and upgrader
This should fix issue #80 by giving serendipity_editor.js of default to the
installer and  the normal template JS to the upgrader
2014-03-09 16:00:38 +01:00
Garvin Hicking
703d9f2ce0 Re-add the serendipity_jssetcookie function, because plugin use this API and it would otherwise create a fatal PHP error. 2014-03-05 11:54:00 +01:00
onli
2dcee8eae1 fix entry view link after edits 2014-01-18 23:19:18 +01:00
onli
d80a8334c8 Use return instead of echo in the remaining core
Debug-messages still may use echo, and some functions in functions_image and trackback still use it to generate progress messages, which should get cleaned up as well but is not that urgent
2013-07-05 19:16:11 +02:00
onli
a654b13a9a Complete include_once usage, romove constants 2013-06-22 12:32:54 +02:00
onli
487f71bd0b Fix preview of future entries
by hiding the footer. NOTE: This whole area needs a cleanup and is not smartified yet
2013-06-20 00:07:23 +02:00
onli
43a8bb9a39 smartify placement of entryeditor page elements 2013-06-14 23:26:49 +02:00
onli
d6857176d8 further smartify serendipity_iframe 2013-06-14 23:05:09 +02:00
onli
88bb8e0920 removed unused register_handle (alternative poc) 2013-03-06 20:44:11 +01: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
Ian
c0c5cf747a revert last commit and fix only error line 1512 2012-12-13 15:44:11 +01:00
Ian
6340e21614 upport: Only variables should be assigned by reference 2012-12-13 14:03:43 +01:00
Matthias Mees
7288ffdef8 Fixed most of the redundant br elements in the core. 2012-12-03 13:35:59 +01:00
Ian
4fcc7dc1f6 fixed another two by reference errors 2012-12-01 18:58:50 +01:00
Garvin Hicking
9adcfecc38 More PHP5 compatibility (this constructor thing order did not remove the error for me)
Also be able to set $serendipity['production'] in serendipity_config_local.inc.php
2012-10-18 10:14:04 +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
Garvin Hicking
2749dc54ad Smarty3 2011-11-24 12:16:02 +01:00
Garvin Hicking
c292badf30 * Added new serendipity['defaultBaseURL'] variable that makes sure
that the baseURL is not overriden when configuring serendipity
      with a possibly autodetected currentl URL. Patch by Manko10.
2011-09-28 12:03:28 +00:00
Garvin Hicking
56041459b6 backport 2011-09-28 11:39:09 +00:00
Garvin Hicking
7d7a1aadee nav amount fix 2011-09-28 10:29:15 +00:00
Garvin Hicking
ebaa8afe04 patch by ian 2011-09-28 09:19:05 +00:00
Garvin Hicking
2916a08510 patch by ian 2011-07-21 12:18:39 +00:00
Garvin Hicking
187941aac6 * Added new event hook 'backend_loginfail' to track failed logins
(serendipity_event_externalauth can make use of it for fail2ban)
2011-05-31 14:02:02 +00:00
Garvin Hicking
77b3d2cfa0 remove 2011-01-17 12:51:35 +00:00
Garvin Hicking
a0f2b0b1fd new mod rewrite option 2011-01-15 13:32:59 +00:00
Garvin Hicking
14d45150fb upcoming advisory, prepare 2010-08-26 16:03:16 +00:00
Garvin Hicking
f9fa8503f0 (experimental) global theme options 2010-08-24 08:45:09 +00:00
Garvin Hicking
a7b27ff06a tweak to support multiple engine: in info.txt of templates 2010-08-23 19:06:17 +00:00
Garvin Hicking
f043e8e8dd sqlite3 strict check 2010-02-16 13:06:44 +00:00
Garvin Hicking
316e86f3dc * Added ability to mark authorgroups as "hidden", so that members of such groups are excluded from common author listings. (Ref http://board.s9y.org/viewtopic.php?f=11&t=16237) (garvinhicking) 2010-01-13 12:28:55 +00:00
Garvin Hicking
c401b02abe * Added expermiantel PDO::SQLite transport, by nth 2009-11-28 12:27:42 +00:00
Garvin Hicking
5e27b37f84 Add some debugging to login routine 2009-02-18 12:57:18 +00:00
Garvin Hicking
f541e5874d New experimental login hashing 2009-02-16 11:29:49 +00:00
Garvin Hicking
c355d46cbb fix parse problem 2008-12-20 17:51:46 +00:00
Garvin Hicking
a5bac0f36b Added serendipity_preview_spacer and pluginmanager_(sidebar|event) CSS ids 2008-12-20 17:00:22 +00:00
Don Chambers
2ec6288154 functions_config.inc.php: add ID serendipity_preview_spacer to existing div emitted when previewing entries in backend. 2008-12-17 23:25:13 +00:00
Garvin Hicking
d9a5d6a8c8 Make checksum code skippable 2008-12-09 10:41:48 +00:00
Garvin Hicking
29b46f0c53 Add more abstraction possibilites, gathered throughout the last weeks 2008-10-13 10:53:45 +00:00
Garvin Hicking
9dbf39fcc0 fix cookie removal to use proper host 2008-07-14 08:02:28 +00:00
Garvin Hicking
988860f7e5 Add SQLRelay DB layer, by Dante Mason 2007-10-12 09:12:48 +00:00
Garvin Hicking
cb75ef15ce Allow variying template 'okey' 2007-08-21 10:25:57 +00:00
Grischa Brockhaus
634594b2de A ">" too much 2007-08-10 00:51:40 +00:00
Garvin Hicking
a0d950b320 HTML and images by Don 2007-08-06 10:18:26 +00:00
Garvin Hicking
0c41b7b558 Admin interface security improved, thanks to Stefan Esser. 2007-07-12 11:23:05 +00:00
Garvin Hicking
5feb8559ba Try to solve a cookie problem when using s9y with domains like 'localhost' 2007-06-13 09:36:26 +00:00