1
0
Commit Graph

1213 Commits

Author SHA1 Message Date
a8b4f05de2 Improve status-messages of ajax uploader () 2014-05-25 21:30:36 +02:00
Ian
3c21bfb9f4 be more strict - fixes 14ce11c778 2014-05-25 11:46:35 +02:00
Ian
27265c533e markup for 'image directory move done' note 2014-05-25 10:38:18 +02:00
Ian
c46d07cde5 fixes entry preview exception - fixes 2014-05-24 19:41:40 +02:00
Ian
c6f4da1c04 temporary fix missing backend_js hook
But there still are serious issues left, see Reference 
2014-05-24 11:55:59 +02:00
Ian
14ce11c778 set entries update isdraft to string value false
to be able to publish draft entries from dashboard

References 
2014-05-23 17:11:05 +02:00
Ian
13c9b4b74d frontend jquery.noConflict mode set deprecated
and make this configurable by $serendipity['capabilities']['jquery-noconflict'] = false;

References 
2014-05-23 14:14:58 +02:00
0e008d0885 This should make jquery.js of a theme no longer be included for the default backend.
Custom backends would now use jquery_backend.js if they really wanted to provide their own.

References 
2014-05-22 11:59:50 +02:00
e8bae220e6 A proposal on how 2k11 could utilize pre-event hooks. Now per-event so that the function name no longer
clashes with child-themes that need to include the 2k11 config.inc.php.
2014-05-22 11:44:25 +02:00
Ian
ac1d4a7076 revert part of 7474f78 and fix the order
to prevent wp themes engine yes to be included to array $templates
References  7474f78 38204c4
2014-05-21 15:46:15 +02:00
Ian
7474f785e5 removed some jurassic park codes and add wp-theme preview image
References 
2014-05-21 13:08:13 +02:00
Ian
734217e0da fix 38204c4 2014-05-21 11:25:32 +02:00
Ian
b4f015e4c0 add custom config to info array - fixes 3a and half of 3b 2014-05-20 20:13:22 +02:00
Ian
38204c4053 better have logic in php - fixes 1 b 2014-05-20 17:45:53 +02:00
Ian
b8e60cd7ef fixes 1 a 2014-05-20 17:41:55 +02:00
eb07593088 Change logger to only be instantiated when explicitly enabled to not cause unneccessary debugging
especially in dev-installations
References 
2014-05-19 11:12:47 +02:00
7d267fa13d Make Log-Level configurable () 2014-05-17 00:39:07 +02:00
d1d95aa643 Show backend preview ()
This code really should be revamped
2014-05-16 23:40:06 +02:00
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
d4fb7207aa Port fix from wordpress to this 2014-05-14 13:02:29 +02:00
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
1b80ba69a1 Restore wysiwyg plugin api ()
Partly. Plugins still need to use a different JS, fitting for the ckeditor. And plugins are bundled in the other-part of the toolbar instead of trying to follow the (xinha-)toolbar parameter
2014-05-12 21:09:58 +02:00
3b3018b173 Fix: categories were uneditable () 2014-05-12 20:31:31 +02:00
09400814d2 Include klogger, enable for trackbacks and index 2014-05-12 20:03:34 +02:00
7d8a9de746 Merge branch '2.0' of github.com:s9y/Serendipity into 2.0 2014-05-11 23:58:34 +02:00
a815b217b8 Introduce js_backend hook
Will help when JS shall only be emitted in the frontend/backend, as with the CSS
2014-05-11 23:57:19 +02:00
542917efea Adapt collapsible plugin description to list of installed plugins.
References 
2014-05-11 21:55:06 +02:00
ccbfcf2e66 Finish uplaod resize function ()
configurable, some fixes, polyfill for chrome
2014-05-08 22:37:44 +02:00
38f01b02a6 A better message for adding an image. 2014-04-30 11:26:33 +02:00
e4a0830ad1 this should maybe fix the error message in importer 2014-04-28 11:14:19 +02:00
06880647b7 fix jquerey check
template_engine in 2k11 is set to null, which is still set
2014-04-28 10:25:05 +02:00
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 

Also, template_engine is not automatically set to default, as this was implicitly always the case
2014-04-27 20:23:56 +02:00
Ian
cfaad3b04c enhance debug note 2014-04-25 14:01:53 +02:00
03689cdd77 Merge branch '2.0' of github.com:s9y/Serendipity into 2.0 2014-04-25 10:56:14 +02:00
ea5295cdb3 Remove debug output 2014-04-25 10:40:36 +02:00
dfd0261cda Exclude git directories from path traversal 2014-04-25 10:39:47 +02:00
c73f21ce0d pubdate/pubDate 2014-04-25 10:39:14 +02:00
5e0c4c074e include upgrader timestamp
document recent changes
i18n for upgrader
2014-04-25 09:55:41 +02:00
Ian
10d26f6fbf fix RecursiveDirectoryIterator() UnexpectedValueException thrown for PHP >= 5.3
@mattsches please test
References  and http://board.s9y.org/viewtopic.php?f=1&t=19860
2014-04-24 18:56:38 +02:00
631bc150ac improve update notice: timeout, config
The updater in the dashboard needed a timeout to not kill the backend if github is not reachable
Also, this makes the check configurable
2014-04-24 18:25:56 +02:00
f704df9365 support html5 multiple upload
closes 
2014-04-23 02:27:14 +02:00
7c8ac6822e Catch exceptions in upgrader if files or directories do not exist cp. http://board.s9y.org/viewtopic.php?f=1&t=19860 2014-04-16 23:45:16 +02:00
2fc551ac99 Fix serious issue with plugin migration. Config values where not renamed. :( 2014-04-08 11:29:25 +02:00
3d92fb099f Prevent fatal error when directory does not exist 2014-04-08 09:13:47 +02:00
a722390fbf Set needed php to >= 5.3
closes 
2014-03-28 10:03:03 +01:00
Ian
c69932eaae rename create() js errorHandler function to errorHandlerCreateDOM() 2014-03-24 15:19:16 +01:00
Ian
d2e34d3bcf upport missing errorToExceptionHandler() changes 2014-03-24 15:17:28 +01:00
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
0d54063c5e Use old method to init ckeditor
Instead of using global JS-variables and ignoring serendipity[textarea]={$view}, this
approach actually uses the variable and therefore reinstates wysiwyg_init.tpl.

ckeditor_custom_config.js (Thx Ian!) is still respected, but the toolbar got restored to the old version. We need an easy way to remove _underline_, for example. It could be extended though.

This fixes #{107} somewhat, as serendipity_image_selector.php is useable now, but still with display errors (and without an upload widget). Probably still a good idea to copy the ML-eapproach of the normal textareas

This also works with htmlnuggets, without using spawnnugget from the core, instead wysiwyg_init.tpl gets reused in the plugin-config.

ckeditor_custom_plugin.js got emptied, the relevant code (which should only be the part that adds the plugins into the toolbar) should be integrated into wysiwyg_init.tpl).
2014-03-23 23:03:09 +01:00
Ian
76f87c5e08 cleanup note in cb0ba6c 2014-03-17 19:36:19 +01:00