Version Description
- We are now smarter about the way we scroll the calendar day to show the action links when the day has scroll bars.
- The calendar is now doing a better job determining the height of the list of posts in each day so the posts don't overlap other days.
- The calendar will now show an error message when it can't load due to JavaScript conflicts with other plugins.
Download this release
Release Info
Developer | zgrossbart |
Plugin | Editorial Calendar |
Version | 1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 1.2
edcal.css
CHANGED
@@ -237,7 +237,6 @@
|
|
237 |
.postlist {
|
238 |
position: relative;
|
239 |
top:24px; /* 1.5em; */
|
240 |
-
height: 88%;
|
241 |
overflow: auto;
|
242 |
}
|
243 |
|
237 |
.postlist {
|
238 |
position: relative;
|
239 |
top:24px; /* 1.5em; */
|
|
|
240 |
overflow: auto;
|
241 |
}
|
242 |
|
edcal.js
CHANGED
@@ -1034,7 +1034,7 @@ var edcal = {
|
|
1034 |
elem.show();
|
1035 |
|
1036 |
|
1037 |
-
if (elem.parent().position().top >
|
1038 |
/*
|
1039 |
This means the action links probably won't be visible and we need to
|
1040 |
scroll to make sure the users can see it.
|
@@ -1498,9 +1498,22 @@ var edcal = {
|
|
1498 |
yet.
|
1499 |
*/
|
1500 |
jQuery('#edcal_poststyle').remove();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1501 |
jQuery('head').append('<style id="edcal_poststyle" type="text/css">.ui-draggable-dragging {' +
|
1502 |
'width: ' + (jQuery(".rowcont:eq(2) .day:first").width() - 5) + 'px;' +
|
1503 |
-
'
|
|
|
|
|
|
|
|
|
1504 |
},
|
1505 |
|
1506 |
/*
|
@@ -2225,6 +2238,15 @@ var edcal = {
|
|
2225 |
}
|
2226 |
|
2227 |
return vars;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2228 |
}
|
2229 |
};
|
2230 |
|
@@ -2240,7 +2262,16 @@ jQuery.fn.center = function () {
|
|
2240 |
|
2241 |
|
2242 |
jQuery(document).ready(function(){
|
2243 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2244 |
|
2245 |
/*
|
2246 |
* The calendar supports unit tests through the QUnit framework,
|
1034 |
elem.show();
|
1035 |
|
1036 |
|
1037 |
+
if (elem.parent().position().top + elem.parent().height() > elem.parent().parent().height()) {
|
1038 |
/*
|
1039 |
This means the action links probably won't be visible and we need to
|
1040 |
scroll to make sure the users can see it.
|
1498 |
yet.
|
1499 |
*/
|
1500 |
jQuery('#edcal_poststyle').remove();
|
1501 |
+
|
1502 |
+
/*
|
1503 |
+
We need to figure out the height of each post list. They all have the same
|
1504 |
+
height so we just look at the first visible list and set some styles on the
|
1505 |
+
page to set the post list height based on that. We reset the value every
|
1506 |
+
time the page refreshes.
|
1507 |
+
*/
|
1508 |
+
var dayHeight = jQuery(".rowcont:eq(2) .dayobj:first").height() - jQuery(".rowcont:eq(2) .daylabel:first").height() - 6;
|
1509 |
+
|
1510 |
jQuery('head').append('<style id="edcal_poststyle" type="text/css">.ui-draggable-dragging {' +
|
1511 |
'width: ' + (jQuery(".rowcont:eq(2) .day:first").width() - 5) + 'px;' +
|
1512 |
+
'}' +
|
1513 |
+
'.postlist {' +
|
1514 |
+
'height: ' + dayHeight + 'px;' +
|
1515 |
+
'}' +
|
1516 |
+
'</style>');
|
1517 |
},
|
1518 |
|
1519 |
/*
|
2238 |
}
|
2239 |
|
2240 |
return vars;
|
2241 |
+
},
|
2242 |
+
|
2243 |
+
/*
|
2244 |
+
* Show an error indicating the calendar couldn't be loaded
|
2245 |
+
*/
|
2246 |
+
showFatalError: function(message) {
|
2247 |
+
jQuery("#edcal_main_title").after(
|
2248 |
+
'<div class="updated below-h2" id="message"><p>' +
|
2249 |
+
edcal.str_fatal_error + message + '<br></p></div>');
|
2250 |
}
|
2251 |
};
|
2252 |
|
2262 |
|
2263 |
|
2264 |
jQuery(document).ready(function(){
|
2265 |
+
try {
|
2266 |
+
edcal.init();
|
2267 |
+
} catch (e) {
|
2268 |
+
/*
|
2269 |
+
* These kinds of errors often happen when there is a
|
2270 |
+
* conflict with a JavaScript library imported by
|
2271 |
+
* another plugin.
|
2272 |
+
*/
|
2273 |
+
edcal.showFatalError(e.description);
|
2274 |
+
}
|
2275 |
|
2276 |
/*
|
2277 |
* The calendar supports unit tests through the QUnit framework,
|
edcal.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
/*
|
19 |
Plugin Name: WordPress Editorial Calendar
|
20 |
Description: The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
|
21 |
-
Version: 1.
|
22 |
Author: Colin Vernon, Justin Evans, Mary Vogt, and Zack Grossbart
|
23 |
Author URI: http://www.zackgrossbart.com
|
24 |
Plugin URI: http://stresslimitdesign.com/editorial-calendar-plugin
|
@@ -241,13 +241,14 @@ function edcal_list_admin() {
|
|
241 |
edcal.str_opt_author = <?php echo(edcal_json_encode(__('Author', 'editorial-calendar'))) ?>;
|
242 |
edcal.str_opt_status = <?php echo(edcal_json_encode(__('Status', 'editorial-calendar'))) ?>;
|
243 |
edcal.str_opt_time = <?php echo(edcal_json_encode(__('Time of day', 'editorial-calendar'))) ?>;
|
|
|
244 |
|
245 |
edcal.str_weekserror = <?php echo(edcal_json_encode(__('The calendar can only show between 1 and 5 weeks at a time.', 'editorial-calendar'))) ?>;
|
246 |
edcal.str_weekstt = <?php echo(edcal_json_encode(__('Select the number of weeks for the calendar to show.', 'editorial-calendar'))) ?>;
|
247 |
|
248 |
edcal.str_feedbackmsg = <?php echo(edcal_json_encode(__('<div id="feedbacksection">' .
|
249 |
'<h2>Help us Make the Editorial Calendar Better</h2>' .
|
250 |
-
'We are always trying to improve the Editorial Calendar and you can help. May we collect some
|
251 |
'<button class="button-secondary" onclick="edcal.doFeedback();">Collect Anonymous Data</button> ' .
|
252 |
'<a href="#" id="nofeedbacklink" onclick="edcal.noFeedback(); return false;">No thank you</a></div>', 'editorial-calendar'))) ?>;
|
253 |
|
@@ -308,7 +309,7 @@ function edcal_list_admin() {
|
|
308 |
</div>
|
309 |
|
310 |
<div id="topright">
|
311 |
-
<button class="save button" title="<?php echo(__('Scroll the calendar
|
312 |
</div>
|
313 |
</div>
|
314 |
|
18 |
/*
|
19 |
Plugin Name: WordPress Editorial Calendar
|
20 |
Description: The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
|
21 |
+
Version: 1.2
|
22 |
Author: Colin Vernon, Justin Evans, Mary Vogt, and Zack Grossbart
|
23 |
Author URI: http://www.zackgrossbart.com
|
24 |
Plugin URI: http://stresslimitdesign.com/editorial-calendar-plugin
|
241 |
edcal.str_opt_author = <?php echo(edcal_json_encode(__('Author', 'editorial-calendar'))) ?>;
|
242 |
edcal.str_opt_status = <?php echo(edcal_json_encode(__('Status', 'editorial-calendar'))) ?>;
|
243 |
edcal.str_opt_time = <?php echo(edcal_json_encode(__('Time of day', 'editorial-calendar'))) ?>;
|
244 |
+
edcal.str_fatal_error = <?php echo(edcal_json_encode(__('An error occurred while loading the calendar: ', 'editorial-calendar'))) ?>;
|
245 |
|
246 |
edcal.str_weekserror = <?php echo(edcal_json_encode(__('The calendar can only show between 1 and 5 weeks at a time.', 'editorial-calendar'))) ?>;
|
247 |
edcal.str_weekstt = <?php echo(edcal_json_encode(__('Select the number of weeks for the calendar to show.', 'editorial-calendar'))) ?>;
|
248 |
|
249 |
edcal.str_feedbackmsg = <?php echo(edcal_json_encode(__('<div id="feedbacksection">' .
|
250 |
'<h2>Help us Make the Editorial Calendar Better</h2>' .
|
251 |
+
'We are always trying to improve the Editorial Calendar and you can help. May we collect some data about your blog and browser settings to help us improve this plugin? We\'ll only do it once and your blog will show up on our <a target="_blank" href="http://www.zackgrossbart.com/edcal/mint/">Editorial Calendar Statistics page</a>.<br /><br />' .
|
252 |
'<button class="button-secondary" onclick="edcal.doFeedback();">Collect Anonymous Data</button> ' .
|
253 |
'<a href="#" id="nofeedbacklink" onclick="edcal.noFeedback(); return false;">No thank you</a></div>', 'editorial-calendar'))) ?>;
|
254 |
|
309 |
</div>
|
310 |
|
311 |
<div id="topright">
|
312 |
+
<button class="save button" title="<?php echo(__('Scroll the calendar and make the today visible', 'editorial-calendar')) ?>" id="moveToToday"><?php echo(__('Show Today', 'editorial-calendar')) ?></button>
|
313 |
</div>
|
314 |
</div>
|
315 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: cvernon, justinstresslimit, MaryVogt, zgrossbart
|
|
3 |
Tags: posts, post, calendar, AJAX, admin, administration
|
4 |
Requires at least: 2.8.5
|
5 |
Tested up to: 3.0.1
|
6 |
-
Stable tag: 1.
|
7 |
|
8 |
The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
|
9 |
|
@@ -42,6 +42,10 @@ Thank you to everyone who has given us feedback and helped us improve this plugi
|
|
42 |
|
43 |
== Frequently Asked Questions ==
|
44 |
|
|
|
|
|
|
|
|
|
45 |
= What are other people saying about the calendar? =
|
46 |
|
47 |
From time to time people write articles about the editorial calendar. We appreciate every one.
|
@@ -147,6 +151,11 @@ Moving published posts can cause problems with some RSS feeds and is generally n
|
|
147 |
|
148 |
== Changelog ==
|
149 |
|
|
|
|
|
|
|
|
|
|
|
150 |
= 1.1 =
|
151 |
* There was a security hole in the calendar that allowed contributors to publish posts when they couldn't in the standard edit screen. We now only allow contributors to save drafts and schedule a post for review.
|
152 |
* Changed the easing we are using for the animation of the calendar so we can work with the BuddyPress plugin.
|
3 |
Tags: posts, post, calendar, AJAX, admin, administration
|
4 |
Requires at least: 2.8.5
|
5 |
Tested up to: 3.0.1
|
6 |
+
Stable tag: 1.2
|
7 |
|
8 |
The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
|
9 |
|
42 |
|
43 |
== Frequently Asked Questions ==
|
44 |
|
45 |
+
= What is an editorial calendar? =
|
46 |
+
|
47 |
+
An editorial calendar is simply a plan for your blog. It is thinking ahead about what you're going to write. There's a detailed explanation of editorial calendars at <a href="http://www.copyblogger.com/editorial-calendar/">The Easy-to-Use Tool that Helps You Build a Breakthrough Blog</a>.
|
48 |
+
|
49 |
= What are other people saying about the calendar? =
|
50 |
|
51 |
From time to time people write articles about the editorial calendar. We appreciate every one.
|
151 |
|
152 |
== Changelog ==
|
153 |
|
154 |
+
= 1.2 =
|
155 |
+
* We are now smarter about the way we scroll the calendar day to show the action links when the day has scroll bars.
|
156 |
+
* The calendar is now doing a better job determining the height of the list of posts in each day so the posts don't overlap other days.
|
157 |
+
* The calendar will now show an error message when it can't load due to JavaScript conflicts with other plugins.
|
158 |
+
|
159 |
= 1.1 =
|
160 |
* There was a security hole in the calendar that allowed contributors to publish posts when they couldn't in the standard edit screen. We now only allow contributors to save drafts and schedule a post for review.
|
161 |
* Changed the easing we are using for the animation of the calendar so we can work with the BuddyPress plugin.
|