Editorial Calendar - Version 1.7

Version Description

Version 1.7 supports WordPress 3.3 with fixes to the date display of newly created posts and alignment and margins of each day in the calendar.

The calendar is now scrolling in the right direction with the up and down arrows keys.

Download this release

Release Info

Developer zgrossbart
Plugin Icon wp plugin Editorial Calendar
Version 1.7
Comparing to
See all releases

Code changes from version 1.6 to 1.7

Files changed (4) hide show
  1. edcal.css +14 -0
  2. edcal.js +25 -11
  3. edcal.php +2 -2
  4. readme.txt +10 -2
edcal.css CHANGED
@@ -13,6 +13,14 @@
13
  * limitations under the License.
14
  *
15
  ******************************************************************************/
 
 
 
 
 
 
 
 
16
 
17
  #edcal_scrollable {
18
  /* required settings */
@@ -480,3 +488,9 @@ TinyMCE Rich Editor and Media buttons are not currently used
480
  #screen-meta #show-edcal-settings-link.show-settings {
481
  background-position: right -1px;
482
  }
 
 
 
 
 
 
13
  * limitations under the License.
14
  *
15
  ******************************************************************************/
16
+
17
+ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
18
+ background: none repeat scroll 0 0 transparent;
19
+ border: 0 none;
20
+ margin: 0;
21
+ outline: 0 none;
22
+ padding: 0;
23
+ }
24
 
25
  #edcal_scrollable {
26
  /* required settings */
488
  #screen-meta #show-edcal-settings-link.show-settings {
489
  background-position: right -1px;
490
  }
491
+
492
+ #contextual-help-wrap {
493
+ margin-left: 8px;
494
+ padding: 0 0 10px;
495
+ }
496
+
edcal.js CHANGED
@@ -1533,7 +1533,6 @@ var edcal = {
1533
  time the page refreshes.
1534
  */
1535
  var dayHeight = jQuery('.rowcont:eq(2) .dayobj:first').height() - jQuery('.rowcont:eq(2) .daylabel:first').height() - 6;
1536
-
1537
  jQuery('head').append('<style id="edcal_poststyle" type="text/css">.ui-draggable-dragging {' +
1538
  'width: ' + (jQuery('.rowcont:eq(2) .day:first').width() - 5) + 'px;' +
1539
  '}' +
@@ -1660,7 +1659,7 @@ var edcal = {
1660
  }
1661
 
1662
  edcal.moveTo(curDate.clone());
1663
-
1664
  /*
1665
  * The scrollable handles some basic binding. This gets us
1666
  * up arrow, down arrow and the mouse wheel.
@@ -1704,10 +1703,10 @@ var edcal = {
1704
  }
1705
 
1706
  if ((evt.keyCode === 40 && !(evt.altKey || evt.ctrlKey))) { // down arrow key
1707
- edcal.move(1, false);
1708
  return false;
1709
  } else if ((evt.keyCode === 38 && !(evt.altKey || evt.ctrlKey))) { // up arrow key
1710
- edcal.move(1, true);
1711
  return false;
1712
  } else if ((evt.keyCode === 34 && !(evt.altKey || evt.ctrlKey)) || //page down
1713
  evt.keyCode === 40 && evt.ctrlKey) { // Ctrl+down down arrow
@@ -1719,10 +1718,10 @@ var edcal = {
1719
  return false;
1720
  }
1721
  });
1722
-
1723
  edcal.getPosts(edcal.nextStartOfWeek(curDate).add(-3).weeks(),
1724
  edcal.nextStartOfWeek(curDate).add(edcal.weeksPref + 3).weeks());
1725
-
1726
  /*
1727
  Now we bind the listeners for all of our links and the window
1728
  resize.
@@ -1733,7 +1732,7 @@ var edcal = {
1733
  edcal.nextStartOfWeek(Date.today()).add(edcal.weeksPref + 3).weeks());
1734
  return false;
1735
  });
1736
-
1737
  jQuery('#prevmonth').click(function() {
1738
  edcal.move(edcal.weeksPref, false);
1739
  return false;
@@ -1743,15 +1742,21 @@ var edcal = {
1743
  edcal.move(edcal.weeksPref, true);
1744
  return false;
1745
  });
1746
-
1747
- function resizeWindow(e) {
 
 
 
 
 
 
1748
  if (edcal.windowHeight != jQuery(window).height()) {
1749
  jQuery('#edcal_scrollable').css('height', edcal.getCalHeight() + 'px');
1750
  edcal.windowHeight = jQuery(window).height();
1751
  edcal.savePosition();
1752
  }
1753
  }
1754
- jQuery(window).bind('resize', resizeWindow);
1755
 
1756
  jQuery('#newPostScheduleButton').live('click', function(evt) {
1757
  // if the button is disabled, don't do anything
@@ -2065,8 +2070,15 @@ var edcal = {
2065
  'id="show-edcal-settings-link" ' +
2066
  'onclick="edcal.toggleOptions(); return false;" ' +
2067
  'href="#" ' +
2068
- 'style="background-image: url(images/screen-options-right.gif);">' + edcal.str_screenoptions + '</a>' +
2069
  '</div>';
 
 
 
 
 
 
 
2070
 
2071
  jQuery('#screen-meta-links').append(html);
2072
  },
@@ -2137,6 +2149,8 @@ var edcal = {
2137
  jQuery('#contextual-help-link-wrap').css('visibility', 'hidden');
2138
 
2139
  jQuery('#contextual-help-wrap').slideDown('normal');
 
 
2140
 
2141
  jQuery('#show-edcal-settings-link').css('background-image', 'url(images/screen-options-right-up.gif)');
2142
  } else {
1533
  time the page refreshes.
1534
  */
1535
  var dayHeight = jQuery('.rowcont:eq(2) .dayobj:first').height() - jQuery('.rowcont:eq(2) .daylabel:first').height() - 6;
 
1536
  jQuery('head').append('<style id="edcal_poststyle" type="text/css">.ui-draggable-dragging {' +
1537
  'width: ' + (jQuery('.rowcont:eq(2) .day:first').width() - 5) + 'px;' +
1538
  '}' +
1659
  }
1660
 
1661
  edcal.moveTo(curDate.clone());
1662
+
1663
  /*
1664
  * The scrollable handles some basic binding. This gets us
1665
  * up arrow, down arrow and the mouse wheel.
1703
  }
1704
 
1705
  if ((evt.keyCode === 40 && !(evt.altKey || evt.ctrlKey))) { // down arrow key
1706
+ edcal.move(1, true);
1707
  return false;
1708
  } else if ((evt.keyCode === 38 && !(evt.altKey || evt.ctrlKey))) { // up arrow key
1709
+ edcal.move(1, false);
1710
  return false;
1711
  } else if ((evt.keyCode === 34 && !(evt.altKey || evt.ctrlKey)) || //page down
1712
  evt.keyCode === 40 && evt.ctrlKey) { // Ctrl+down down arrow
1718
  return false;
1719
  }
1720
  });
1721
+
1722
  edcal.getPosts(edcal.nextStartOfWeek(curDate).add(-3).weeks(),
1723
  edcal.nextStartOfWeek(curDate).add(edcal.weeksPref + 3).weeks());
1724
+
1725
  /*
1726
  Now we bind the listeners for all of our links and the window
1727
  resize.
1732
  edcal.nextStartOfWeek(Date.today()).add(edcal.weeksPref + 3).weeks());
1733
  return false;
1734
  });
1735
+
1736
  jQuery('#prevmonth').click(function() {
1737
  edcal.move(edcal.weeksPref, false);
1738
  return false;
1742
  edcal.move(edcal.weeksPref, true);
1743
  return false;
1744
  });
1745
+
1746
+ /*
1747
+ We used to listen to resize events so we could make the calendar the right size
1748
+ for the current window when it changed size, but this was causing a problem with
1749
+ WordPress 3.3 and it never worked properly because the scroll position was a little
1750
+ off so we are just skipping it.
1751
+ */
1752
+ /*function resizeWindow(e) {
1753
  if (edcal.windowHeight != jQuery(window).height()) {
1754
  jQuery('#edcal_scrollable').css('height', edcal.getCalHeight() + 'px');
1755
  edcal.windowHeight = jQuery(window).height();
1756
  edcal.savePosition();
1757
  }
1758
  }
1759
+ jQuery(window).bind('resize', resizeWindow);*/
1760
 
1761
  jQuery('#newPostScheduleButton').live('click', function(evt) {
1762
  // if the button is disabled, don't do anything
2070
  'id="show-edcal-settings-link" ' +
2071
  'onclick="edcal.toggleOptions(); return false;" ' +
2072
  'href="#" ' +
2073
+ 'style="background-image: url(images/screen-options-right.gif); background-position: right 0px;">' + edcal.str_screenoptions + '</a>' +
2074
  '</div>';
2075
+
2076
+ if (jQuery('#screen-meta-links').length === 0) {
2077
+ /*
2078
+ * Wordpress 3.3 stopped adding the screen meta section to all the admin pages
2079
+ */
2080
+ jQuery('#screen-meta').after('<div id="screen-meta-links"></div>');
2081
+ }
2082
 
2083
  jQuery('#screen-meta-links').append(html);
2084
  },
2149
  jQuery('#contextual-help-link-wrap').css('visibility', 'hidden');
2150
 
2151
  jQuery('#contextual-help-wrap').slideDown('normal');
2152
+
2153
+ jQuery('#screen-meta').show();
2154
 
2155
  jQuery('#show-edcal-settings-link').css('background-image', 'url(images/screen-options-right-up.gif)');
2156
  } else {
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.6
22
  Author: Colin Vernon, Justin Evans, Joachim Kudish, Mary Vogt, and Zack Grossbart
23
  Author URI: http://www.zackgrossbart.com
24
  Plugin URI: http://stresslimitdesign.com/editorial-calendar-plugin
@@ -910,7 +910,7 @@ class EdCal {
910
  * We finish by returning the latest data for the post in the JSON
911
  */
912
  $args = array(
913
- 'p' => $my_post_id
914
  );
915
 
916
  if ($post_type) {
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.7
22
  Author: Colin Vernon, Justin Evans, Joachim Kudish, Mary Vogt, and Zack Grossbart
23
  Author URI: http://www.zackgrossbart.com
24
  Plugin URI: http://stresslimitdesign.com/editorial-calendar-plugin
910
  * We finish by returning the latest data for the post in the JSON
911
  */
912
  $args = array(
913
+ 'post__in' => array($my_post_id)
914
  );
915
 
916
  if ($post_type) {
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: cvernon, justinstresslimit, jkudish, MaryVogt, zgrossbart
3
  Tags: posts, post, calendar, AJAX, admin, administration
4
  Requires at least: 2.8.5
5
- Tested up to: 3.2.1
6
- Stable tag: 1.6
7
 
8
  The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
9
 
@@ -49,6 +49,8 @@ An editorial calendar is simply a plan for your blog. It is thinking ahead abou
49
 
50
  From time to time people write articles about the editorial calendar. We appreciate every one.
51
 
 
 
52
  <a href="http://www.chrisbrogan.com/use-an-editorial-calendar/">Use An Editorial Calendar</a> by <a href="http://www.chrisbrogan.com">Chris Brogan</a>
53
 
54
  <a href="http://www.smashingmagazine.com/2010/08/30/the-importance-of-consistency-using-editorial-calendars-and-style-guides/">Blogging For Web Designers: Editorial Calendars and Style Guides</a> by <a href="http://jessica.smashingmagazine.com/">Jessica Bordeau</a> at <a href="http://www.smashingmagazine.com/">Smashing Magazine</a>
@@ -165,6 +167,12 @@ Moving published posts can cause problems with some RSS feeds and is generally n
165
 
166
  == Changelog ==
167
 
 
 
 
 
 
 
168
  = 1.6 =
169
 
170
  The calendar is now setting the correct post time for manual set times at noon or midnight instead of changing it by 12 hours.
2
  Contributors: cvernon, justinstresslimit, jkudish, MaryVogt, zgrossbart
3
  Tags: posts, post, calendar, AJAX, admin, administration
4
  Requires at least: 2.8.5
5
+ Tested up to: 3.3
6
+ Stable tag: 1.7
7
 
8
  The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
9
 
49
 
50
  From time to time people write articles about the editorial calendar. We appreciate every one.
51
 
52
+ <a href="http://www.dailyblogtips.com/5-reasons-youll-love-the-wordpress-editorial-calendar/">5 Reasons You’ll Love the WordPress Editorial Calendar</a> by <a href="http://www.successfulblogging.com/">Annabel Candy</a>
53
+
54
  <a href="http://www.chrisbrogan.com/use-an-editorial-calendar/">Use An Editorial Calendar</a> by <a href="http://www.chrisbrogan.com">Chris Brogan</a>
55
 
56
  <a href="http://www.smashingmagazine.com/2010/08/30/the-importance-of-consistency-using-editorial-calendars-and-style-guides/">Blogging For Web Designers: Editorial Calendars and Style Guides</a> by <a href="http://jessica.smashingmagazine.com/">Jessica Bordeau</a> at <a href="http://www.smashingmagazine.com/">Smashing Magazine</a>
167
 
168
  == Changelog ==
169
 
170
+ = 1.7 =
171
+
172
+ Version 1.7 supports WordPress 3.3 with fixes to the date display of newly created posts and alignment and margins of each day in the calendar.
173
+
174
+ The calendar is now scrolling in the right direction with the up and down arrows keys.
175
+
176
  = 1.6 =
177
 
178
  The calendar is now setting the correct post time for manual set times at noon or midnight instead of changing it by 12 hours.