Version Description
- We got the message and added an edit link that takes you to the WordPress edit page in addition to a link for the quick edit dialog in the calendar.
- The calendar will now remember the last date and start there again the next time you access it.
- Fixed a large performance problem that was causing the calendar to load the posts for and render many more weeks than it needed to. The calendar is now faster than ever!
- The calendar quick edit screen now shows the post author.
- Sticky posts are now available in the calendar. Schedule them like any other post.
- The calendar now supports Greek. Thanks to Mihalis Papanousis.
- We also support Polish. Thanks to Krzysztof Nowak who uses the Editorial Calendar on his site Classica, mediaevalia et cetera.
Download this release
Release Info
Developer | zgrossbart |
Plugin | Editorial Calendar |
Version | 0.8 |
Comparing to | |
See all releases |
Code changes from version 0.7 to 0.8
- closure.sh +1 -0
- edcal.css +9 -2
- edcal.js +91 -39
- edcal.php +13 -7
- languages/editorial-calendar-el.mo +0 -0
- languages/editorial-calendar-el.po +204 -0
- languages/editorial-calendar-pl_PL.mo +0 -0
- languages/editorial-calendar-pl_PL.po +203 -0
- lib/edcallib.min.js +95 -94
- lib/jquery.cookie.js +96 -0
- lib/languages/date-el-GR.js +104 -0
- lib/languages/date-pl-PL.js +104 -0
- lib/lib.txt +5 -0
- readme.txt +32 -8
closure.sh
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
java -jar closure/compiler.jar --js_output_file lib/edcallib.min.js --js lib/humanmsg.js --js lib/jquery.cookie.js --js lib/jquery.bgiframe.js --js lib/jquery.delegate.js --js lib/jquery.tools.min.js --js lib/jquery.timepicker.js --js lib/json2.js --js lib/tools.scrollable-1.1.2.js --js lib/tools.scrollable.mousewheel-1.0.1.js --js lib/ui.core.js --js lib/ui.draggable.js --js lib/ui.droppable.js --js lib/date.extras.js
|
edcal.css
CHANGED
@@ -141,7 +141,7 @@
|
|
141 |
|
142 |
.post .postlink:hover {
|
143 |
color: #d54e21;
|
144 |
-
background: #f5f5f5;
|
145 |
}
|
146 |
|
147 |
.dayhead {
|
@@ -295,6 +295,13 @@
|
|
295 |
text-shadow: #fff 0px 1px 0px;
|
296 |
}
|
297 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
#tooltip p {
|
299 |
margin-left: 1.5em;
|
300 |
}
|
@@ -392,7 +399,7 @@
|
|
392 |
}
|
393 |
|
394 |
#edcal-status-section .edcal-form-control {
|
395 |
-
left:
|
396 |
width: auto;
|
397 |
}
|
398 |
|
141 |
|
142 |
.post .postlink:hover {
|
143 |
color: #d54e21;
|
144 |
+
background-color: #f5f5f5;
|
145 |
}
|
146 |
|
147 |
.dayhead {
|
295 |
text-shadow: #fff 0px 1px 0px;
|
296 |
}
|
297 |
|
298 |
+
.tipauthor {
|
299 |
+
font-weight: normal;
|
300 |
+
font-style: italic;
|
301 |
+
position: relative;
|
302 |
+
left: 2em;
|
303 |
+
}
|
304 |
+
|
305 |
#tooltip p {
|
306 |
margin-left: 1.5em;
|
307 |
}
|
399 |
}
|
400 |
|
401 |
#edcal-status-section .edcal-form-control {
|
402 |
+
left: 7em;
|
403 |
width: auto;
|
404 |
}
|
405 |
|
edcal.js
CHANGED
@@ -241,7 +241,7 @@ var edcal = {
|
|
241 |
* We need to call nextStartOfWeek to make sure the
|
242 |
* edcal.startOfWeek variable gets initialized.
|
243 |
*/
|
244 |
-
edcal.nextStartOfWeek(date
|
245 |
|
246 |
|
247 |
var html = '<div class="dayheadcont"><div class="dayhead firstday">' +
|
@@ -479,7 +479,7 @@ var edcal = {
|
|
479 |
edcal.handleDrag(event, ui);
|
480 |
},
|
481 |
scroll: false,
|
482 |
-
refreshPositions: true
|
483 |
});
|
484 |
jQuery(this).addClass("draggable");
|
485 |
}
|
@@ -569,8 +569,7 @@ var edcal = {
|
|
569 |
deletePost: function(/*Post ID*/ postId) {
|
570 |
|
571 |
var url = edcal.ajax_url() + "&action=edcal_deletepost&postid=" + postId;
|
572 |
-
|
573 |
-
|
574 |
jQuery.ajax( {
|
575 |
url: url,
|
576 |
type: "POST",
|
@@ -882,7 +881,8 @@ var edcal = {
|
|
882 |
jQuery('#tooltiptitle').text(edcal.str_newpost_title + post.formatteddate);
|
883 |
} else {
|
884 |
jQuery('#tooltiptitle').text(edcal.str_edit_post_title);
|
885 |
-
jQuery('#tooltip h3').html('<span class="tiptitle">' + post.title + '</span
|
|
|
886 |
|
887 |
// add post info to form
|
888 |
jQuery('#edcal-title-new-field').val(post.title);
|
@@ -1101,7 +1101,16 @@ var edcal = {
|
|
1101 |
posttitle = "[No Title]";
|
1102 |
}
|
1103 |
|
1104 |
-
if (post.status === "draft" ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1105 |
post.status === "pending") {
|
1106 |
posttitle += edcal.str_draft;
|
1107 |
} else if (post.status !== "publish" &&
|
@@ -1116,19 +1125,23 @@ var edcal = {
|
|
1116 |
}
|
1117 |
|
1118 |
posttitle = '<span class="posttime">' + post.formattedtime + '</span> ' + posttitle;
|
1119 |
-
|
|
|
|
|
1120 |
if (edcal.isPostMovable(post)) {
|
1121 |
return '<li onmouseover="edcal.showActionLinks(\'post-' + post.id + '\');" ' +
|
1122 |
'onmouseout="edcal.hideActionLinks(\'post-' + post.id + '\');" ' +
|
1123 |
-
'id="post-' + post.id + '" class="post ' + post.status + ' ' + edcal.getPostEditableClass(post) + '"><div class="postlink">' + posttitle + '</div>' +
|
1124 |
-
'<div class="postactions"
|
|
|
|
|
1125 |
'<a href="' + post.dellink + '" onclick="return edcal.confirmDelete(\'' + post.title + '\');">' + edcal.str_del + '</a> | ' +
|
1126 |
'<a href="' + post.permalink + '">' + edcal.str_view + '</a>' +
|
1127 |
'</div></li>';
|
1128 |
} else {
|
1129 |
return '<li onmouseover="edcal.showActionLinks(\'post-' + post.id + '\');" ' +
|
1130 |
'onmouseout="edcal.hideActionLinks(\'post-' + post.id + '\');" ' +
|
1131 |
-
'id="post-' + post.id + '" class="post ' + post.status + ' ' + edcal.getPostEditableClass(post) + '"><div class="postlink">' + posttitle + '</div>' +
|
1132 |
'<div class="postactions">' +
|
1133 |
'<a href="' + post.editlink + '">' + edcal.str_republish + '</a> | ' +
|
1134 |
'<a href="' + post.permalink + '">' + edcal.str_view + '</a>' +
|
@@ -1174,9 +1187,9 @@ var edcal = {
|
|
1174 |
*/
|
1175 |
if(jQuery('#tooltip').is(':visible')) {
|
1176 |
return;
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
The working date is a marker for the last calendar row we created.
|
1181 |
If we are moving forward that will be the last row, if we are moving
|
1182 |
backward it will be the first row. If we switch direction we need
|
@@ -1231,6 +1244,7 @@ var edcal = {
|
|
1231 |
}
|
1232 |
|
1233 |
edcal.tID = setTimeout(function() {
|
|
|
1234 |
/*
|
1235 |
* Now that we are done moving the calendar we need to get the posts for the
|
1236 |
* new dates. We want to load the posts between the place the calendar was
|
@@ -1248,6 +1262,21 @@ var edcal = {
|
|
1248 |
edcal.tID = null;
|
1249 |
edcal.moveDate = edcal._wDate;
|
1250 |
}, 1000);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1251 |
},
|
1252 |
|
1253 |
/*
|
@@ -1288,6 +1317,7 @@ var edcal = {
|
|
1288 |
* http://unicode.org/repos/cldr/trunk/common/supplemental/supplementalData.xml
|
1289 |
*/
|
1290 |
nextStartOfWeek: function(/*date*/ date) {
|
|
|
1291 |
if (edcal.startOfWeek === null) {
|
1292 |
if (edcal.locale) {
|
1293 |
var local = edcal.locale.toUpperCase();
|
@@ -1400,32 +1430,37 @@ var edcal = {
|
|
1400 |
edcal.isMoving = true;
|
1401 |
jQuery("#cal").empty();
|
1402 |
|
|
|
|
|
|
|
1403 |
/*
|
1404 |
When we first start up our working date is 4 weeks before
|
1405 |
-
the next Sunday.
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
After we remove and redo all the rows we are back to
|
1411 |
moving in a going down direction.
|
1412 |
-
|
1413 |
-
|
1414 |
-
|
1415 |
-
for (var i = 0; i < edcal.weeksPref + 6; i++) {
|
1416 |
-
edcal.createRow(jQuery("#cal"), true);
|
1417 |
-
edcal._wDate.add(7).days();
|
1418 |
-
}
|
1419 |
-
|
1420 |
-
edcal.alignCal();
|
1421 |
-
|
1422 |
-
var api = jQuery("#edcal_scrollable").scrollable();
|
1423 |
-
api.move(2);
|
1424 |
-
|
1425 |
-
edcal.setDateLabel();
|
1426 |
-
edcal.setClassforToday();
|
1427 |
-
edcal.isMoving = false;
|
1428 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1429 |
},
|
1430 |
|
1431 |
/*
|
@@ -1496,7 +1531,22 @@ var edcal = {
|
|
1496 |
|
1497 |
var api = jQuery("#edcal_scrollable").scrollable();
|
1498 |
|
1499 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1500 |
|
1501 |
/*
|
1502 |
* The scrollable handles some basic binding. This gets us
|
@@ -1544,9 +1594,9 @@ var edcal = {
|
|
1544 |
return false;
|
1545 |
}
|
1546 |
});
|
1547 |
-
|
1548 |
-
edcal.getPosts(edcal.nextStartOfWeek(
|
1549 |
-
edcal.nextStartOfWeek(
|
1550 |
|
1551 |
/*
|
1552 |
Now we bind the listeners for all of our links and the window
|
@@ -1554,6 +1604,8 @@ var edcal = {
|
|
1554 |
*/
|
1555 |
jQuery("#moveToToday").click(function() {
|
1556 |
edcal.moveTo(Date.today());
|
|
|
|
|
1557 |
return false;
|
1558 |
});
|
1559 |
|
@@ -1771,7 +1823,7 @@ var edcal = {
|
|
1771 |
specified dates.
|
1772 |
*/
|
1773 |
getPosts: function(/*Date*/ from, /*Date*/ to) {
|
1774 |
-
edcal.output("Getting posts from " + from
|
1775 |
|
1776 |
var shouldGet = edcal.cacheDates[from];
|
1777 |
|
241 |
* We need to call nextStartOfWeek to make sure the
|
242 |
* edcal.startOfWeek variable gets initialized.
|
243 |
*/
|
244 |
+
edcal.nextStartOfWeek(date);
|
245 |
|
246 |
|
247 |
var html = '<div class="dayheadcont"><div class="dayhead firstday">' +
|
479 |
edcal.handleDrag(event, ui);
|
480 |
},
|
481 |
scroll: false,
|
482 |
+
refreshPositions: true
|
483 |
});
|
484 |
jQuery(this).addClass("draggable");
|
485 |
}
|
569 |
deletePost: function(/*Post ID*/ postId) {
|
570 |
|
571 |
var url = edcal.ajax_url() + "&action=edcal_deletepost&postid=" + postId;
|
572 |
+
|
|
|
573 |
jQuery.ajax( {
|
574 |
url: url,
|
575 |
type: "POST",
|
881 |
jQuery('#tooltiptitle').text(edcal.str_newpost_title + post.formatteddate);
|
882 |
} else {
|
883 |
jQuery('#tooltiptitle').text(edcal.str_edit_post_title);
|
884 |
+
jQuery('#tooltip h3').html('<span class="tiptitle">' + post.title + '</span><br />' +
|
885 |
+
'<span class="tipauthor">' + edcal.str_by + ' ' + post.author + '</span>');
|
886 |
|
887 |
// add post info to form
|
888 |
jQuery('#edcal-title-new-field').val(post.title);
|
1101 |
posttitle = "[No Title]";
|
1102 |
}
|
1103 |
|
1104 |
+
if ((post.status === "draft" ||
|
1105 |
+
post.status === "pending") &&
|
1106 |
+
post.sticky === '1') {
|
1107 |
+
/*
|
1108 |
+
* Then this post is a sticky draft
|
1109 |
+
*/
|
1110 |
+
posttitle += edcal.str_draft_sticky;
|
1111 |
+
} else if (post.sticky === '1') {
|
1112 |
+
posttitle += edcal.str_sticky;
|
1113 |
+
} else if (post.status === "draft" ||
|
1114 |
post.status === "pending") {
|
1115 |
posttitle += edcal.str_draft;
|
1116 |
} else if (post.status !== "publish" &&
|
1125 |
}
|
1126 |
|
1127 |
posttitle = '<span class="posttime">' + post.formattedtime + '</span> ' + posttitle;
|
1128 |
+
|
1129 |
+
var classString = '';
|
1130 |
+
|
1131 |
if (edcal.isPostMovable(post)) {
|
1132 |
return '<li onmouseover="edcal.showActionLinks(\'post-' + post.id + '\');" ' +
|
1133 |
'onmouseout="edcal.hideActionLinks(\'post-' + post.id + '\');" ' +
|
1134 |
+
'id="post-' + post.id + '" class="post ' + post.status + ' ' + edcal.getPostEditableClass(post) + '"><div class="postlink ' + classString + '">' + posttitle + '</div>' +
|
1135 |
+
'<div class="postactions">' +
|
1136 |
+
'<a href="' + post.editlink + '">' + edcal.str_edit + '</a> | ' +
|
1137 |
+
'<a href="#" onclick="edcal.editPost('+ post.id +'); return false;">' + edcal.str_quick_edit + '</a> | ' +
|
1138 |
'<a href="' + post.dellink + '" onclick="return edcal.confirmDelete(\'' + post.title + '\');">' + edcal.str_del + '</a> | ' +
|
1139 |
'<a href="' + post.permalink + '">' + edcal.str_view + '</a>' +
|
1140 |
'</div></li>';
|
1141 |
} else {
|
1142 |
return '<li onmouseover="edcal.showActionLinks(\'post-' + post.id + '\');" ' +
|
1143 |
'onmouseout="edcal.hideActionLinks(\'post-' + post.id + '\');" ' +
|
1144 |
+
'id="post-' + post.id + '" class="post ' + post.status + ' ' + edcal.getPostEditableClass(post) + '"><div class="postlink ' + classString + '">' + posttitle + '</div>' +
|
1145 |
'<div class="postactions">' +
|
1146 |
'<a href="' + post.editlink + '">' + edcal.str_republish + '</a> | ' +
|
1147 |
'<a href="' + post.permalink + '">' + edcal.str_view + '</a>' +
|
1187 |
*/
|
1188 |
if(jQuery('#tooltip').is(':visible')) {
|
1189 |
return;
|
1190 |
+
}
|
1191 |
+
|
1192 |
+
/*
|
1193 |
The working date is a marker for the last calendar row we created.
|
1194 |
If we are moving forward that will be the last row, if we are moving
|
1195 |
backward it will be the first row. If we switch direction we need
|
1244 |
}
|
1245 |
|
1246 |
edcal.tID = setTimeout(function() {
|
1247 |
+
|
1248 |
/*
|
1249 |
* Now that we are done moving the calendar we need to get the posts for the
|
1250 |
* new dates. We want to load the posts between the place the calendar was
|
1262 |
edcal.tID = null;
|
1263 |
edcal.moveDate = edcal._wDate;
|
1264 |
}, 1000);
|
1265 |
+
|
1266 |
+
if (direction) {
|
1267 |
+
/*
|
1268 |
+
If we are going into the future then wDate is way in the
|
1269 |
+
future so we need to get the current date which is four weeks
|
1270 |
+
plus the number of visible weeks before the end of the current _wDate.
|
1271 |
+
*/
|
1272 |
+
jQuery.cookie('edcal_date', edcal._wDate.clone().add(-(edcal.weeksPref + 4)).weeks().toString('yyyy-dd-MM'));
|
1273 |
+
} else {
|
1274 |
+
/*
|
1275 |
+
If we are going into the past then the current date is two
|
1276 |
+
weeks after the current _wDate
|
1277 |
+
*/
|
1278 |
+
jQuery.cookie('edcal_date', edcal._wDate.clone().add(3).weeks().toString('yyyy-dd-MM'));
|
1279 |
+
}
|
1280 |
},
|
1281 |
|
1282 |
/*
|
1317 |
* http://unicode.org/repos/cldr/trunk/common/supplemental/supplementalData.xml
|
1318 |
*/
|
1319 |
nextStartOfWeek: function(/*date*/ date) {
|
1320 |
+
date = date.clone();
|
1321 |
if (edcal.startOfWeek === null) {
|
1322 |
if (edcal.locale) {
|
1323 |
var local = edcal.locale.toUpperCase();
|
1430 |
edcal.isMoving = true;
|
1431 |
jQuery("#cal").empty();
|
1432 |
|
1433 |
+
jQuery.cookie('edcal_date', date.toString('yyyy-dd-MM'));
|
1434 |
+
|
1435 |
+
|
1436 |
/*
|
1437 |
When we first start up our working date is 4 weeks before
|
1438 |
+
the next Sunday.
|
1439 |
+
*/
|
1440 |
+
edcal._wDate = edcal.nextStartOfWeek(date).add(-21).days();
|
1441 |
+
|
1442 |
+
/*
|
1443 |
After we remove and redo all the rows we are back to
|
1444 |
moving in a going down direction.
|
1445 |
+
*/
|
1446 |
+
|
1447 |
+
edcal.currentDirection = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1448 |
|
1449 |
+
var count = edcal.weeksPref + 6;
|
1450 |
+
|
1451 |
+
for (var i = 0; i < count; i++) {
|
1452 |
+
edcal.createRow(jQuery("#cal"), true);
|
1453 |
+
edcal._wDate.add(7).days();
|
1454 |
+
}
|
1455 |
+
|
1456 |
+
edcal.alignCal();
|
1457 |
+
|
1458 |
+
var api = jQuery("#edcal_scrollable").scrollable();
|
1459 |
+
api.move(2);
|
1460 |
+
|
1461 |
+
edcal.setDateLabel();
|
1462 |
+
edcal.setClassforToday();
|
1463 |
+
edcal.isMoving = false;
|
1464 |
},
|
1465 |
|
1466 |
/*
|
1531 |
|
1532 |
var api = jQuery("#edcal_scrollable").scrollable();
|
1533 |
|
1534 |
+
/*
|
1535 |
+
When the user moves the calendar around we remember their
|
1536 |
+
date and save it in a cookie. Then we read the cookie back
|
1537 |
+
when we reload so the calendar stays where the user left
|
1538 |
+
it last.
|
1539 |
+
*/
|
1540 |
+
var curDate = jQuery.cookie('edcal_date');
|
1541 |
+
|
1542 |
+
if (curDate) {
|
1543 |
+
curDate = Date.parseExact(curDate, 'yyyy-dd-MM');
|
1544 |
+
edcal.output('Resetting to date from the edcal_Date cookie: ' + curDate);
|
1545 |
+
} else {
|
1546 |
+
curDate = Date.today();
|
1547 |
+
}
|
1548 |
+
|
1549 |
+
edcal.moveTo(curDate.clone());
|
1550 |
|
1551 |
/*
|
1552 |
* The scrollable handles some basic binding. This gets us
|
1594 |
return false;
|
1595 |
}
|
1596 |
});
|
1597 |
+
|
1598 |
+
edcal.getPosts(edcal.nextStartOfWeek(curDate).add(-3).weeks(),
|
1599 |
+
edcal.nextStartOfWeek(curDate).add(edcal.weeksPref + 3).weeks());
|
1600 |
|
1601 |
/*
|
1602 |
Now we bind the listeners for all of our links and the window
|
1604 |
*/
|
1605 |
jQuery("#moveToToday").click(function() {
|
1606 |
edcal.moveTo(Date.today());
|
1607 |
+
edcal.getPosts(edcal.nextStartOfWeek(Date.today()).add(-3).weeks(),
|
1608 |
+
edcal.nextStartOfWeek(Date.today()).add(edcal.weeksPref + 3).weeks());
|
1609 |
return false;
|
1610 |
});
|
1611 |
|
1823 |
specified dates.
|
1824 |
*/
|
1825 |
getPosts: function(/*Date*/ from, /*Date*/ to) {
|
1826 |
+
edcal.output("Getting posts from " + from + " to " + to);
|
1827 |
|
1828 |
var shouldGet = edcal.cacheDates[from];
|
1829 |
|
edcal.php
CHANGED
@@ -17,10 +17,11 @@
|
|
17 |
|
18 |
/*
|
19 |
Plugin Name: WordPress Editorial Calendar
|
20 |
-
Description:
|
21 |
-
Version: 0.
|
22 |
-
Author: Mary Vogt and Zack Grossbart
|
23 |
Author URI: http://www.zackgrossbart.com
|
|
|
24 |
*/
|
25 |
|
26 |
add_action('wp_ajax_edcal_saveoptions', 'edcal_saveoptions' );
|
@@ -117,7 +118,7 @@ function edcal_list_admin() {
|
|
117 |
<?php
|
118 |
if (get_option("edcal_weeks_pref") != "") {
|
119 |
?>
|
120 |
-
edcal.weeksPref =
|
121 |
<?php
|
122 |
}
|
123 |
?>
|
@@ -149,7 +150,10 @@ function edcal_list_admin() {
|
|
149 |
edcal.str_addPostLink = <?php echo(edcal_json_encode(__('New Post', 'editorial-calendar'))) ?>;
|
150 |
|
151 |
edcal.str_draft = <?php echo(edcal_json_encode(__(' [DRAFT]', 'editorial-calendar'))) ?>;
|
|
|
|
|
152 |
edcal.str_edit = <?php echo(edcal_json_encode(__('Edit', 'editorial-calendar'))) ?>;
|
|
|
153 |
edcal.str_del = <?php echo(edcal_json_encode(__('Delete', 'editorial-calendar'))) ?>;
|
154 |
edcal.str_view = <?php echo(edcal_json_encode(__('View', 'editorial-calendar'))) ?>;
|
155 |
edcal.str_republish = <?php echo(edcal_json_encode(__('Republish', 'editorial-calendar'))) ?>;
|
@@ -203,7 +207,7 @@ function edcal_list_admin() {
|
|
203 |
#tooltip {
|
204 |
background: white url('<?php echo(path_join(WP_PLUGIN_URL, basename( dirname( __FILE__ ) )."/../../../wp-admin/images/gray-grad.png")); ?>') repeat-x left top;
|
205 |
}
|
206 |
-
|
207 |
.today .daylabel {
|
208 |
background: url('<?php echo(path_join(WP_PLUGIN_URL, basename( dirname( __FILE__ ) )."/images/today_bk.gif")); ?>') repeat-x left top;
|
209 |
}
|
@@ -255,6 +259,7 @@ function edcal_list_admin() {
|
|
255 |
<?php _e('Edit Post', 'editorial-calendar') ?>
|
256 |
</div>
|
257 |
<a href="#" id="tipclose" onclick="edcal.hideForm(); return false;" title="close"> </a>
|
|
|
258 |
<h3><!-- Placeholder for the form title; added dynamically --></h3>
|
259 |
<div id="edcal-title-new-section">
|
260 |
<div id="edcal-title-row" class="edcal-form-row">
|
@@ -413,9 +418,9 @@ function edcal_posts() {
|
|
413 |
|
414 |
$post = $myposts[$i];
|
415 |
|
416 |
-
if (!is_sticky($post->ID)) {
|
417 |
edcal_postJSON($post, $i < $size - 1);
|
418 |
-
}
|
419 |
}
|
420 |
|
421 |
?> ]
|
@@ -490,6 +495,7 @@ function edcal_postJSON($post, $addComma = true, $fullPost = false) {
|
|
490 |
"date" : "<?php the_time('d') ?><?php the_time('m') ?><?php the_time('Y') ?>",
|
491 |
"time" : "<?php the_time() ?>",
|
492 |
"formattedtime" : "<?php edcal_json_encode(the_time($timeFormat)); ?>",
|
|
|
493 |
"url" : "<?php edcal_json_encode(the_permalink()); ?>",
|
494 |
"status" : "<?php echo(get_post_status()); ?>",
|
495 |
"title" : <?php echo(edcal_json_encode(get_the_title())); ?>,
|
17 |
|
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: 0.8
|
22 |
+
Author: Colin Vernon, Justin Evans, Mary Vogt, and Zack Grossbart
|
23 |
Author URI: http://www.zackgrossbart.com
|
24 |
+
Plugin URI: http://www.zackgrossbart.com
|
25 |
*/
|
26 |
|
27 |
add_action('wp_ajax_edcal_saveoptions', 'edcal_saveoptions' );
|
118 |
<?php
|
119 |
if (get_option("edcal_weeks_pref") != "") {
|
120 |
?>
|
121 |
+
edcal.weeksPref = <?php echo(get_option("edcal_weeks_pref")); ?>;
|
122 |
<?php
|
123 |
}
|
124 |
?>
|
150 |
edcal.str_addPostLink = <?php echo(edcal_json_encode(__('New Post', 'editorial-calendar'))) ?>;
|
151 |
|
152 |
edcal.str_draft = <?php echo(edcal_json_encode(__(' [DRAFT]', 'editorial-calendar'))) ?>;
|
153 |
+
edcal.str_stick = <?php echo(edcal_json_encode(__(' [STICKY]', 'editorial-calendar'))) ?>;
|
154 |
+
edcal.str_draft_sticky = <?php echo(edcal_json_encode(__(' [DRAFT, STICKY]', 'editorial-calendar'))) ?>;
|
155 |
edcal.str_edit = <?php echo(edcal_json_encode(__('Edit', 'editorial-calendar'))) ?>;
|
156 |
+
edcal.str_quick_edit = <?php echo(edcal_json_encode(__('Quick Edit', 'editorial-calendar'))) ?>;
|
157 |
edcal.str_del = <?php echo(edcal_json_encode(__('Delete', 'editorial-calendar'))) ?>;
|
158 |
edcal.str_view = <?php echo(edcal_json_encode(__('View', 'editorial-calendar'))) ?>;
|
159 |
edcal.str_republish = <?php echo(edcal_json_encode(__('Republish', 'editorial-calendar'))) ?>;
|
207 |
#tooltip {
|
208 |
background: white url('<?php echo(path_join(WP_PLUGIN_URL, basename( dirname( __FILE__ ) )."/../../../wp-admin/images/gray-grad.png")); ?>') repeat-x left top;
|
209 |
}
|
210 |
+
|
211 |
.today .daylabel {
|
212 |
background: url('<?php echo(path_join(WP_PLUGIN_URL, basename( dirname( __FILE__ ) )."/images/today_bk.gif")); ?>') repeat-x left top;
|
213 |
}
|
259 |
<?php _e('Edit Post', 'editorial-calendar') ?>
|
260 |
</div>
|
261 |
<a href="#" id="tipclose" onclick="edcal.hideForm(); return false;" title="close"> </a>
|
262 |
+
<div id="tooltipimage"><!-- Placeholder for the form image; added dynamically --></div>
|
263 |
<h3><!-- Placeholder for the form title; added dynamically --></h3>
|
264 |
<div id="edcal-title-new-section">
|
265 |
<div id="edcal-title-row" class="edcal-form-row">
|
418 |
|
419 |
$post = $myposts[$i];
|
420 |
|
421 |
+
//if (!is_sticky($post->ID)) {
|
422 |
edcal_postJSON($post, $i < $size - 1);
|
423 |
+
//}
|
424 |
}
|
425 |
|
426 |
?> ]
|
495 |
"date" : "<?php the_time('d') ?><?php the_time('m') ?><?php the_time('Y') ?>",
|
496 |
"time" : "<?php the_time() ?>",
|
497 |
"formattedtime" : "<?php edcal_json_encode(the_time($timeFormat)); ?>",
|
498 |
+
"sticky" : "<?php echo(is_sticky($post->ID)); ?>",
|
499 |
"url" : "<?php edcal_json_encode(the_permalink()); ?>",
|
500 |
"status" : "<?php echo(get_post_status()); ?>",
|
501 |
"title" : <?php echo(edcal_json_encode(get_the_title())); ?>,
|
languages/editorial-calendar-el.mo
ADDED
Binary file
|
languages/editorial-calendar-el.po
ADDED
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Translation of the WordPress plugin by .
|
2 |
+
# Copyright (C) 2010
|
3 |
+
# This file is distributed under the same license as the package.
|
4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
5 |
+
#
|
6 |
+
msgid ""
|
7 |
+
msgstr ""
|
8 |
+
"Project-Id-Version: editorial-calendar-el\n"
|
9 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/editorial-calendar\n"
|
10 |
+
"POT-Creation-Date: 2010-04-13 21:19+0000\n"
|
11 |
+
"PO-Revision-Date: 2010-04-14 07:58-0500\n"
|
12 |
+
"Last-Translator: Zack Grossbart <zack@grossbart.com>\n"
|
13 |
+
"Language-Team: Mihalis Papanousis - http://aenaon.biz <fotonews@aenaon.biz>\n"
|
14 |
+
"MIME-Version: 1.0\n"
|
15 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
16 |
+
"Content-Transfer-Encoding: 8bit\n"
|
17 |
+
"X-Poedit-Language: Greek\n"
|
18 |
+
"X-Poedit-Country: GREECE\n"
|
19 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
20 |
+
|
21 |
+
#: edcal.php:63
|
22 |
+
msgid "Calendar"
|
23 |
+
msgstr "Ημερολόγιο άρθρων"
|
24 |
+
|
25 |
+
#: edcal.php:137
|
26 |
+
#: edcal.php:349
|
27 |
+
msgid "en-US"
|
28 |
+
msgstr "el-GR"
|
29 |
+
|
30 |
+
#: edcal.php:145
|
31 |
+
msgid "on"
|
32 |
+
msgstr "στις"
|
33 |
+
|
34 |
+
#: edcal.php:146
|
35 |
+
msgid "by"
|
36 |
+
msgstr "by-μέχρι"
|
37 |
+
|
38 |
+
#: edcal.php:147
|
39 |
+
msgid "at"
|
40 |
+
msgstr "στις"
|
41 |
+
|
42 |
+
#: edcal.php:149
|
43 |
+
msgid "New Post"
|
44 |
+
msgstr "Νέο άρθρο"
|
45 |
+
|
46 |
+
#: edcal.php:151
|
47 |
+
msgid " [DRAFT]"
|
48 |
+
msgstr " [ΠΡΟΣΧΕΔΙΟ]"
|
49 |
+
|
50 |
+
#: edcal.php:152
|
51 |
+
msgid "Edit"
|
52 |
+
msgstr "Επεξεργασία"
|
53 |
+
|
54 |
+
#: edcal.php:153
|
55 |
+
msgid "Delete"
|
56 |
+
msgstr "Διαγραφή"
|
57 |
+
|
58 |
+
#: edcal.php:154
|
59 |
+
msgid "View"
|
60 |
+
msgstr "Προβολή"
|
61 |
+
|
62 |
+
#: edcal.php:155
|
63 |
+
msgid "Republish"
|
64 |
+
msgstr "Επαναδημοσίευση"
|
65 |
+
|
66 |
+
#: edcal.php:156
|
67 |
+
msgid "Status:"
|
68 |
+
msgstr "Κατάσταση"
|
69 |
+
|
70 |
+
#: edcal.php:157
|
71 |
+
#: edcal.php:295
|
72 |
+
msgid "Cancel"
|
73 |
+
msgstr "Ακύρωση"
|
74 |
+
|
75 |
+
#: edcal.php:158
|
76 |
+
#: edcal.php:261
|
77 |
+
msgid "Title"
|
78 |
+
msgstr "Τίτλος"
|
79 |
+
|
80 |
+
#: edcal.php:159
|
81 |
+
#: edcal.php:266
|
82 |
+
msgid "Content"
|
83 |
+
msgstr "Κείμενο"
|
84 |
+
|
85 |
+
#: edcal.php:160
|
86 |
+
msgid "Add a new post on "
|
87 |
+
msgstr "Προσθήκη νέου άρθρου στις"
|
88 |
+
|
89 |
+
#: edcal.php:161
|
90 |
+
msgid "New Post - "
|
91 |
+
msgstr "Νέο άρθρο -"
|
92 |
+
|
93 |
+
#: edcal.php:162
|
94 |
+
msgid "Update"
|
95 |
+
msgstr "Ενημέρωση"
|
96 |
+
|
97 |
+
#: edcal.php:163
|
98 |
+
#: edcal.php:294
|
99 |
+
msgid "Schedule"
|
100 |
+
msgstr "Προγραμματισμός δημοσίευσης"
|
101 |
+
|
102 |
+
#: edcal.php:164
|
103 |
+
msgid "Save"
|
104 |
+
msgstr "Αποθήκευση"
|
105 |
+
|
106 |
+
#: edcal.php:165
|
107 |
+
#: edcal.php:255
|
108 |
+
msgid "Edit Post"
|
109 |
+
msgstr "Επεξεργασία άρθρου"
|
110 |
+
|
111 |
+
#: edcal.php:166
|
112 |
+
#: edcal.php:287
|
113 |
+
msgid "Scheduled"
|
114 |
+
msgstr "Να δημοσιευθεί στις"
|
115 |
+
|
116 |
+
#: edcal.php:168
|
117 |
+
msgid "You are about to delete the post \""
|
118 |
+
msgstr "Πρόκειται να διαγράψετε το άρθρο \""
|
119 |
+
|
120 |
+
#: edcal.php:169
|
121 |
+
msgid "\". Press Cancel to stop, OK to delete."
|
122 |
+
msgstr "\". Πατήστε Ακύρωση για να σταματήσετε, OK για διαγραφή."
|
123 |
+
|
124 |
+
#: edcal.php:171
|
125 |
+
msgid "Looks like someone else already moved this post."
|
126 |
+
msgstr "Φαίνεται πως κάποιος άλλος ήδη μετακίνησε αυτό το άρθρο."
|
127 |
+
|
128 |
+
#: edcal.php:172
|
129 |
+
msgid "You do not have permission to edit posts."
|
130 |
+
msgstr "Δεν έχετε δικαιώματα επεξεργασίας άρθρων."
|
131 |
+
|
132 |
+
#: edcal.php:173
|
133 |
+
msgid "Invalid checksum for post. This is commonly a cross-site scripting error."
|
134 |
+
msgstr "Μη έγκυρο άθροισμα μνήμης. Συνήθως οφείλεται σε 'cross-site scripting' (XSS)."
|
135 |
+
|
136 |
+
#: edcal.php:174
|
137 |
+
msgid "There was an error contacting your blog."
|
138 |
+
msgstr "Υπήρξε σφάλμα επικοινωνίας με το ιστολόγιο σας."
|
139 |
+
|
140 |
+
#: edcal.php:176
|
141 |
+
msgid "Screen Options"
|
142 |
+
msgstr "Επιλογές οθόνης"
|
143 |
+
|
144 |
+
#: edcal.php:177
|
145 |
+
msgid "Calendar Options"
|
146 |
+
msgstr "Επιλογές ημερολογίου"
|
147 |
+
|
148 |
+
#: edcal.php:178
|
149 |
+
msgid "Apply"
|
150 |
+
msgstr "Εφαρμογή"
|
151 |
+
|
152 |
+
#: edcal.php:179
|
153 |
+
msgid "Show "
|
154 |
+
msgstr "Εμφάνιση"
|
155 |
+
|
156 |
+
#: edcal.php:180
|
157 |
+
msgid "weeks at a time"
|
158 |
+
msgstr "εβδομάδων ανα οθόνη"
|
159 |
+
|
160 |
+
#: edcal.php:181
|
161 |
+
msgid "The calendar can only show between 1 and 5 weeks at a time."
|
162 |
+
msgstr "Το ημερολόγιο μπορεί να εμφανίσει απο 1 έως και 5 εβδομάδες ανα οθόνη."
|
163 |
+
|
164 |
+
#: edcal.php:182
|
165 |
+
msgid "Select the number of weeks for the calendar to show."
|
166 |
+
msgstr "Εισάγετε τον αριθμό των εβδομάδων (1-5) για εμφάνιση στην οθόνη του ημερολογίου."
|
167 |
+
|
168 |
+
#: edcal.php:226
|
169 |
+
msgid "Posts Calendar"
|
170 |
+
msgstr "Ημερολόγιο άρθρων"
|
171 |
+
|
172 |
+
#: edcal.php:235
|
173 |
+
msgid "Jump back"
|
174 |
+
msgstr "Μετάβαση μια οθόνη πίσω"
|
175 |
+
|
176 |
+
#: edcal.php:237
|
177 |
+
msgid "Skip ahead"
|
178 |
+
msgstr "Μετάβαση μια οθόνη μπροστά"
|
179 |
+
|
180 |
+
#: edcal.php:242
|
181 |
+
msgid "Jump to today"
|
182 |
+
msgstr "Μετάβαση στη σημερινή ημερομηνία"
|
183 |
+
|
184 |
+
#: edcal.php:242
|
185 |
+
msgid "Today"
|
186 |
+
msgstr "Σήμερα"
|
187 |
+
|
188 |
+
#: edcal.php:281
|
189 |
+
msgid "Time"
|
190 |
+
msgstr "Ώρα"
|
191 |
+
|
192 |
+
#: edcal.php:285
|
193 |
+
msgid "Status"
|
194 |
+
msgstr "Κατάσταση"
|
195 |
+
|
196 |
+
#: edcal.php:289
|
197 |
+
msgid "Draft"
|
198 |
+
msgstr "Προσχέδιο"
|
199 |
+
|
200 |
+
#: edcal.php:544
|
201 |
+
#: edcal.php:547
|
202 |
+
msgid "Error in deleting..."
|
203 |
+
msgstr "Υπήρξε σφάλμα κατα τη διαγραφή..."
|
204 |
+
|
languages/editorial-calendar-pl_PL.mo
ADDED
Binary file
|
languages/editorial-calendar-pl_PL.po
ADDED
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Translation of the WordPress plugin by .
|
2 |
+
# Copyright (C) 2010
|
3 |
+
# This file is distributed under the same license as the package.
|
4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
5 |
+
#
|
6 |
+
msgid ""
|
7 |
+
msgstr ""
|
8 |
+
"Project-Id-Version: \n"
|
9 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/editorial-calendar\n"
|
10 |
+
"POT-Creation-Date: 2010-04-14 14:22+0000\n"
|
11 |
+
"PO-Revision-Date: 2010-04-14 18:44-0500\n"
|
12 |
+
"Last-Translator: Zack Grossbart <zack@grossbart.com>\n"
|
13 |
+
"Language-Team: POLISH <LL@li.org>\n"
|
14 |
+
"MIME-Version: 1.0\n"
|
15 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
16 |
+
"Content-Transfer-Encoding: 8bit\n"
|
17 |
+
"X-Poedit-Language: Polish\n"
|
18 |
+
"X-Poedit-Country: POLAND\n"
|
19 |
+
|
20 |
+
#: edcal.php:63
|
21 |
+
msgid "Calendar"
|
22 |
+
msgstr "Kalendarz"
|
23 |
+
|
24 |
+
#: edcal.php:137
|
25 |
+
#: edcal.php:349
|
26 |
+
msgid "en-US"
|
27 |
+
msgstr "pl-PL"
|
28 |
+
|
29 |
+
#: edcal.php:145
|
30 |
+
msgid "on"
|
31 |
+
msgstr "na"
|
32 |
+
|
33 |
+
#: edcal.php:146
|
34 |
+
msgid "by"
|
35 |
+
msgstr "przez"
|
36 |
+
|
37 |
+
#: edcal.php:147
|
38 |
+
msgid "at"
|
39 |
+
msgstr "o"
|
40 |
+
|
41 |
+
#: edcal.php:149
|
42 |
+
msgid "New Post"
|
43 |
+
msgstr "Nowy wpis"
|
44 |
+
|
45 |
+
#: edcal.php:151
|
46 |
+
msgid " [DRAFT]"
|
47 |
+
msgstr "[SZKIC]"
|
48 |
+
|
49 |
+
#: edcal.php:152
|
50 |
+
msgid "Edit"
|
51 |
+
msgstr "Edytuj"
|
52 |
+
|
53 |
+
#: edcal.php:153
|
54 |
+
msgid "Delete"
|
55 |
+
msgstr "Usuń"
|
56 |
+
|
57 |
+
#: edcal.php:154
|
58 |
+
msgid "View"
|
59 |
+
msgstr "Podejrzyj"
|
60 |
+
|
61 |
+
#: edcal.php:155
|
62 |
+
msgid "Republish"
|
63 |
+
msgstr "Publikuj ponownie"
|
64 |
+
|
65 |
+
#: edcal.php:156
|
66 |
+
msgid "Status:"
|
67 |
+
msgstr "Stan:"
|
68 |
+
|
69 |
+
#: edcal.php:157
|
70 |
+
#: edcal.php:295
|
71 |
+
msgid "Cancel"
|
72 |
+
msgstr "Anuluj"
|
73 |
+
|
74 |
+
#: edcal.php:158
|
75 |
+
#: edcal.php:261
|
76 |
+
msgid "Title"
|
77 |
+
msgstr "Tytuł"
|
78 |
+
|
79 |
+
#: edcal.php:159
|
80 |
+
#: edcal.php:266
|
81 |
+
msgid "Content"
|
82 |
+
msgstr "Treść"
|
83 |
+
|
84 |
+
#: edcal.php:160
|
85 |
+
msgid "Add a new post on "
|
86 |
+
msgstr "Dodaj nowy wpis dnia"
|
87 |
+
|
88 |
+
#: edcal.php:161
|
89 |
+
msgid "New Post - "
|
90 |
+
msgstr "Nowy wpis -"
|
91 |
+
|
92 |
+
#: edcal.php:162
|
93 |
+
msgid "Update"
|
94 |
+
msgstr "Zaktualizuj"
|
95 |
+
|
96 |
+
#: edcal.php:163
|
97 |
+
#: edcal.php:294
|
98 |
+
msgid "Schedule"
|
99 |
+
msgstr "Zaplanuj"
|
100 |
+
|
101 |
+
#: edcal.php:164
|
102 |
+
msgid "Save"
|
103 |
+
msgstr "Zapisz"
|
104 |
+
|
105 |
+
#: edcal.php:165
|
106 |
+
#: edcal.php:255
|
107 |
+
msgid "Edit Post"
|
108 |
+
msgstr "Edytuj wpis"
|
109 |
+
|
110 |
+
#: edcal.php:166
|
111 |
+
#: edcal.php:287
|
112 |
+
msgid "Scheduled"
|
113 |
+
msgstr "Zaplanowano"
|
114 |
+
|
115 |
+
#: edcal.php:168
|
116 |
+
msgid "You are about to delete the post \""
|
117 |
+
msgstr "Zamierzasz usunąć wpis \""
|
118 |
+
|
119 |
+
#: edcal.php:169
|
120 |
+
msgid "\". Press Cancel to stop, OK to delete."
|
121 |
+
msgstr "\". Kliknij Anuluj, aby zatrzymać, OK, aby usunąć"
|
122 |
+
|
123 |
+
#: edcal.php:171
|
124 |
+
msgid "Looks like someone else already moved this post."
|
125 |
+
msgstr "Prawdopodobnie ktoś inny przeniósł ten wpis."
|
126 |
+
|
127 |
+
#: edcal.php:172
|
128 |
+
msgid "You do not have permission to edit posts."
|
129 |
+
msgstr "Nie masz uprawnień do edycji tego wpisu."
|
130 |
+
|
131 |
+
#: edcal.php:173
|
132 |
+
msgid "Invalid checksum for post. This is commonly a cross-site scripting error."
|
133 |
+
msgstr "Niewłaściwa suma kontrolna dla wpisu. Jest to zwykle związane z błędem cross-site scripting. "
|
134 |
+
|
135 |
+
#: edcal.php:174
|
136 |
+
msgid "There was an error contacting your blog."
|
137 |
+
msgstr "Nie udało się połączyć z Twoim blogiem."
|
138 |
+
|
139 |
+
#: edcal.php:176
|
140 |
+
msgid "Screen Options"
|
141 |
+
msgstr "Opcje ekranu"
|
142 |
+
|
143 |
+
#: edcal.php:177
|
144 |
+
msgid "Calendar Options"
|
145 |
+
msgstr "Opcje kalendarza"
|
146 |
+
|
147 |
+
#: edcal.php:178
|
148 |
+
msgid "Apply"
|
149 |
+
msgstr "Zatwierdź"
|
150 |
+
|
151 |
+
#: edcal.php:179
|
152 |
+
msgid "Show "
|
153 |
+
msgstr "Pokaż"
|
154 |
+
|
155 |
+
#: edcal.php:180
|
156 |
+
msgid "weeks at a time"
|
157 |
+
msgstr "tygodni jednocześnie"
|
158 |
+
|
159 |
+
#: edcal.php:181
|
160 |
+
msgid "The calendar can only show between 1 and 5 weeks at a time."
|
161 |
+
msgstr "Kalendarz może pokazywać jednocześnie tylko od 1 do 5 tygodni."
|
162 |
+
|
163 |
+
#: edcal.php:182
|
164 |
+
msgid "Select the number of weeks for the calendar to show."
|
165 |
+
msgstr "Wybierz liczbę tygodni, które mają się pokazywać w kalendarzu."
|
166 |
+
|
167 |
+
#: edcal.php:226
|
168 |
+
msgid "Posts Calendar"
|
169 |
+
msgstr "Kalendarz wpisów"
|
170 |
+
|
171 |
+
#: edcal.php:235
|
172 |
+
msgid "Jump back"
|
173 |
+
msgstr "Skocz wstecz"
|
174 |
+
|
175 |
+
#: edcal.php:237
|
176 |
+
msgid "Skip ahead"
|
177 |
+
msgstr "Skocz naprzód"
|
178 |
+
|
179 |
+
#: edcal.php:242
|
180 |
+
msgid "Jump to today"
|
181 |
+
msgstr "Skocz do dzisiaj"
|
182 |
+
|
183 |
+
#: edcal.php:242
|
184 |
+
msgid "Today"
|
185 |
+
msgstr "Dzisiaj"
|
186 |
+
|
187 |
+
#: edcal.php:281
|
188 |
+
msgid "Time"
|
189 |
+
msgstr "Czas"
|
190 |
+
|
191 |
+
#: edcal.php:285
|
192 |
+
msgid "Status"
|
193 |
+
msgstr "Stan"
|
194 |
+
|
195 |
+
#: edcal.php:289
|
196 |
+
msgid "Draft"
|
197 |
+
msgstr "Szkic"
|
198 |
+
|
199 |
+
#: edcal.php:544
|
200 |
+
#: edcal.php:547
|
201 |
+
msgid "Error in deleting..."
|
202 |
+
msgstr "Błąd podczas usuwania..."
|
203 |
+
|
lib/edcallib.min.js
CHANGED
@@ -1,108 +1,109 @@
|
|
1 |
var humanMsg={setup:function(a,b){humanMsg.msgID="humanMsg";humanMsg.logID="humanMsgLog";if(a==undefined)a="body";humanMsg.msgOpacity=0.8;if(b!=undefined)humanMsg.msgOpacity=parseFloat(b);jQuery(a).append('<div id="'+humanMsg.msgID+'" class="humanMsg"><div class="round"></div><p></p><div class="round"></div></div>');jQuery("#"+humanMsg.logID+" p").click(function(){jQuery(this).siblings("ul").slideToggle()})},displayMsg:function(a){if(a!=""){clearTimeout(humanMsg.t2);jQuery("#"+humanMsg.msgID+" p").html(a);
|
2 |
jQuery("#"+humanMsg.msgID+"").show().animate({opacity:humanMsg.msgOpacity},200,function(){jQuery("#"+humanMsg.logID).show().children("ul").prepend("<li>"+a+"</li>").children("li:first").slideDown(200);jQuery("#"+humanMsg.logID+" ul").css("display")=="none"&&jQuery("#"+humanMsg.logID+" p").animate({bottom:40},200,"linear",function(){jQuery(this).animate({bottom:0},300,"easeOutBounce",function(){jQuery(this).css({bottom:0})})})});humanMsg.t1=setTimeout("humanMsg.bindEvents()",700);humanMsg.t2=setTimeout("humanMsg.removeMsg()",
|
3 |
-
5000)}},bindEvents:function(){jQuery(window).mousemove(humanMsg.removeMsg).click(humanMsg.removeMsg).keypress(humanMsg.removeMsg)},removeMsg:function(){jQuery(window).unbind("mousemove",humanMsg.removeMsg).unbind("click",humanMsg.removeMsg).unbind("keypress",humanMsg.removeMsg);jQuery("#"+humanMsg.msgID).css("opacity")==humanMsg.msgOpacity&&jQuery("#"+humanMsg.msgID).animate({opacity:0},500,function(){jQuery(this).hide()})}};jQuery(document).ready(function(){humanMsg.setup()});
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
function(j){
|
13 |
-
if(
|
14 |
-
(
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
(
|
20 |
-
|
21 |
-
|
22 |
-
|
|
|
23 |
t.hide()});q=a.browser.opera||a.browser.mozilla?"keypress":"keydown";a(k)[q](function(j){l=true;var s=t[0].scrollTop;switch(j.keyCode){case 38:if(h())return false;j=a("li.selected",v);var u=j.prev().addClass("selected")[0];if(u){j.removeClass("selected");if(u.offsetTop<s)t[0].scrollTop=s-u.offsetHeight}else{j.removeClass("selected");u=a("li:last",v).addClass("selected")[0];t[0].scrollTop=u.offsetTop-u.offsetHeight}return false;case 40:if(h())return false;j=a("li.selected",v);if(u=j.next().addClass("selected")[0]){j.removeClass("selected");
|
24 |
-
if(u.offsetTop+u.offsetHeight>s+t[0].offsetHeight)t[0].scrollTop=s+u.offsetHeight}else{j.removeClass("selected");a("li:first",v).addClass("selected");t[0].scrollTop=0}return false;case 13:if(t.is(":visible")){s=a("li.selected",v)[0];b(k,s,t,
|
25 |
-
endTime:new Date(0,0,0,23,30,0),separator:":",show24Hours:true};function b(k,
|
26 |
-
i=parseFloat(i[1]);if(!
|
27 |
-
(function(){function a(
|
28 |
-
/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c,
|
29 |
-
if(typeof m==="function")p=m.call(i,
|
30 |
-
k(l,p))q.push(n(l)+(c?": ":":")+i)}}else for(l in p)if(Object.hasOwnProperty.call(p,l))if(i=k(l,p))q.push(n(l)+(c?": ":":")+i);i=q.length===0?"{}":c?"{\n"+c+q.join(",\n"+c)+"\n"+r+"}":"{"+q.join(",")+"}";c=r;return i}}if(typeof JSON.stringify!=="function")JSON.stringify=function(
|
31 |
-
{"":
|
32 |
-
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){
|
33 |
-
1)k=a(
|
34 |
-
getRoot:function(){return c},getItemWrap:function(){return k},getItems:function(){return k.children(
|
35 |
-
h);m.trigger("onSeek",[h])}n?k.animate({left:-u.position().left},j,
|
36 |
-
|
37 |
-
u=
|
38 |
-
function(h,j){f[j]=function(s){return f.bind(j,s)}});o.addClass(
|
39 |
-
function(j){if(!a(j.target).is("a"))return f.click(h)})});
|
40 |
-
if(
|
41 |
-
|
42 |
-
hasScroll:function(
|
43 |
-
NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(
|
44 |
-
this.each(function(){this.removeAttributeNS(f,
|
45 |
-
|
46 |
-
!
|
47 |
-
"string"?p.split(/,?\s+/):p}var q=r("getter");if(o.length==1&&typeof o[0]=="string")q=q.concat(r("getterSetter"));return a.inArray(l,q)!=-1}a.widget=function(
|
48 |
-
t&&r&&a.isFunction(t[o])&&t[o].apply(t,q)})};a[l]=a[l]||{};a[l][
|
49 |
-
a[l][
|
50 |
-
i){this.options[
|
51 |
-
l);return!(a.isFunction(o)&&o.call(this.element[0],i,l)===false||i.isDefaultPrevented())}};a.widget.defaults={disabled:false};a.ui.mouse={_mouseInit:function(){var
|
52 |
-
"on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);a.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable)},_mouseDown:function(
|
53 |
-
this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(
|
54 |
-
this.widgetName,this._mouseUpDelegate);a.browser.safari||
|
55 |
-
this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=
|
56 |
_mouseStop:function(){},_mouseCapture:function(){return true}};a.ui.mouse.defaults={cancel:null,distance:1,delay:0}}(jQuery);(function(a){a.widget("ui.draggable",a.extend({},a.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");
|
57 |
-
this._mouseDestroy()}},_mouseCapture:function(b){var
|
58 |
-
this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;
|
59 |
-
!
|
60 |
-
"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,b);return false},_mouseStop:function(b){var
|
61 |
-
b);c._clear()})}else{this._trigger("stop",b);this._clear()}return false},_getHandle:function(b){var
|
62 |
-
this.element[0].parentNode:
|
63 |
_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),
|
64 |
10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),
|
65 |
10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;if(b.containment=="parent")b.containment=this.helper[0].parentNode;if(b.containment=="document"||b.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(b.containment=="document"?document:window).width()-this.helperProportions.width-
|
66 |
-
this.margins.left,(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)jQuery/.test(b.containment)&&b.containment.constructor!=Array){var
|
67 |
-
10)||0)+(parseInt(a(
|
68 |
-
Array)this.containment=b.containment},_convertPositionTo:function(b,
|
69 |
-
b),left:
|
70 |
document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var f=b.pageX,m=b.pageY;if(this.originalPosition){if(this.containment){if(b.pageX-this.offset.click.left<this.containment[0])f=this.containment[0]+this.offset.click.left;if(b.pageY-this.offset.click.top<this.containment[1])m=this.containment[1]+this.offset.click.top;if(b.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(b.pageY-this.offset.click.top>this.containment[3])m=
|
71 |
-
this.containment[3]+this.offset.click.top}if(
|
72 |
-
f:!(f-this.offset.click.left<this.containment[0])?f-
|
73 |
-
this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(b,
|
74 |
eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false}});a.ui.plugin.add("draggable","connectToSortable",{start:function(b,
|
75 |
-
|
76 |
-
false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(b);this.instance.options.helper=this.instance.options._helper;c.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",b,
|
77 |
-
this.instance.offset.click=c.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(
|
78 |
c.offset.click.top;this.instance.offset.click.left=c.offset.click.left;this.instance.offset.parent.left-=c.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=c.offset.parent.top-this.instance.offset.parent.top;c._trigger("toSortable",b);c.dropped=this.instance.element;c.currentItem=c.element;this.instance.fromOutside=c}this.instance.currentItem&&this.instance._mouseDrag(b)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;
|
79 |
-
this.instance.options.revert=false;this.instance._trigger("out",b,this.instance._uiHash(this.instance));this.instance._mouseStop(b,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();c._trigger("fromSortable",b);c.dropped=false}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var b=a("body"),
|
80 |
-
|
81 |
-
stop:function(){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(b,
|
82 |
-
document&&b.scrollParent[0].tagName!="HTML")b.overflowOffset=b.scrollParent.offset()},drag:function(b){var
|
83 |
-
c.scrollSpeed;if(!c.axis||c.axis!="y")if(
|
84 |
-
(b.pageY-a(document).scrollTop())<c.scrollSensitivity)
|
85 |
-
"snap",{start:function(){var b=a(this).data("draggable"),
|
86 |
-
c.snapElements.length-1;i>=0;i--){var l=c.snapElements[i].left,o=l+c.snapElements[i].width,r=c.snapElements[i].top,q=r+c.snapElements[i].height;if(l-f<m&&m<o+f&&r-f<k&&k<q+f||l-f<m&&m<o+f&&r-f<
|
87 |
-
{top:q,left:0}).top-c.margins.top;if(v)
|
88 |
-
left:0}).top-c.margins.top;if(v)
|
89 |
-
b,a.extend(c._uiHash(),{snapItem:c.snapElements[i].item}));c.snapElements[i].snapping=false}}}});a.ui.plugin.add("draggable","stack",{start:function(){var b=a(this).data("draggable").options,
|
90 |
-
a(
|
91 |
-
this.element.addClass("ui-droppable")},destroy:function(){for(var b=a.ui.ddmanager.droppables[this.options.scope],
|
92 |
-
this.element.addClass(this.options.activeClass);
|
93 |
-
this._trigger("over",b,this.ui(
|
94 |
-
a.data(this,"droppable");if(f.options.greedy&&a.ui.intersect(c,a.extend(f,{offset:f.element.offset()}),f.options.tolerance)){
|
95 |
-
b.element,helper:b.helper,position:b.position,absolutePosition:b.positionAbs,offset:b.positionAbs}}});a.extend(a.ui.droppable,{version:"1.7.2",eventPrefix:"drop",defaults:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"}});a.ui.intersect=function(b,
|
96 |
-
|
97 |
-
case "touch":return(m>=i&&m<=l||n>=i&&n<=l||m<i&&n>l)&&(
|
98 |
-
0;continue a}c[m].visible=c[m].element.css("display")!="none";if(c[m].visible){c[m].offset=c[m].element.offset();c[m].proportions={width:c[m].element[0].offsetWidth,height:c[m].element[0].offsetHeight};
|
99 |
-
this.options.accept.call(this.element[0],b.currentItem||b.element)){this.isout=1;this.isover=0;this._deactivate.call(this,
|
100 |
-
if(f.length){
|
101 |
: Licensed under The MIT License. See license.txt and http://www.datejs.com/license/.
|
102 |
*/
|
103 |
-
(function(){var a=Date,b=a.prototype,
|
104 |
-
function n(k){
|
105 |
-
3);case "%U":k=f.clone().set({month:0,day:1}).addDays(-1).moveToDayOfWeek(0);var
|
106 |
1:0;case "o":case "%G":return f.setWeek(f.getISOWeek()).toString("yyyy");case "%g":return f.$format("%G").slice(-2);case "Y":case "%Y":return n("yyyy");case "y":case "%y":return n("yy");case "a":case "%p":return n("tt").toLowerCase();case "A":return n("tt").toUpperCase();case "g":case "%I":return n("h");case "G":return n("H");case "h":return n("hh");case "H":case "%H":return n("HH");case "i":case "%M":return n("mm");case "s":case "%S":return n("ss");case "u":return c(f.getMilliseconds(),3);case "I":return f.isDaylightSavingTime()?
|
107 |
1:0;case "O":return f.getUTCOffset();case "P":m=f.getUTCOffset();return m.substring(0,m.length-2)+":"+m.substring(m.length-2);case "e":case "T":case "%z":case "%Z":return f.getTimezone();case "Z":return f.getTimezoneOffset()*-60;case "B":k=new Date;return Math.floor((k.getHours()*3600+k.getMinutes()*60+k.getSeconds()+(k.getTimezoneOffset()+60)*60)/86.4);case "c":return f.toISOString().replace(/\"/g,"");case "U":return a.strtotime("now");case "%c":return n("d")+" "+n("t");case "%C":return Math.floor(f.getFullYear()/
|
108 |
-
100+1);case "%D":return n("MM/dd/yy");case "%n":return"\\n";case "%t":return"\\t";case "%r":return n("hh:mm tt");case "%R":return n("H:mm");case "%T":return n("H:mm:ss");case "%x":return n("d");case "%X":return n("t");default:
|
1 |
var humanMsg={setup:function(a,b){humanMsg.msgID="humanMsg";humanMsg.logID="humanMsgLog";if(a==undefined)a="body";humanMsg.msgOpacity=0.8;if(b!=undefined)humanMsg.msgOpacity=parseFloat(b);jQuery(a).append('<div id="'+humanMsg.msgID+'" class="humanMsg"><div class="round"></div><p></p><div class="round"></div></div>');jQuery("#"+humanMsg.logID+" p").click(function(){jQuery(this).siblings("ul").slideToggle()})},displayMsg:function(a){if(a!=""){clearTimeout(humanMsg.t2);jQuery("#"+humanMsg.msgID+" p").html(a);
|
2 |
jQuery("#"+humanMsg.msgID+"").show().animate({opacity:humanMsg.msgOpacity},200,function(){jQuery("#"+humanMsg.logID).show().children("ul").prepend("<li>"+a+"</li>").children("li:first").slideDown(200);jQuery("#"+humanMsg.logID+" ul").css("display")=="none"&&jQuery("#"+humanMsg.logID+" p").animate({bottom:40},200,"linear",function(){jQuery(this).animate({bottom:0},300,"easeOutBounce",function(){jQuery(this).css({bottom:0})})})});humanMsg.t1=setTimeout("humanMsg.bindEvents()",700);humanMsg.t2=setTimeout("humanMsg.removeMsg()",
|
3 |
+
5000)}},bindEvents:function(){jQuery(window).mousemove(humanMsg.removeMsg).click(humanMsg.removeMsg).keypress(humanMsg.removeMsg)},removeMsg:function(){jQuery(window).unbind("mousemove",humanMsg.removeMsg).unbind("click",humanMsg.removeMsg).unbind("keypress",humanMsg.removeMsg);jQuery("#"+humanMsg.msgID).css("opacity")==humanMsg.msgOpacity&&jQuery("#"+humanMsg.msgID).animate({opacity:0},500,function(){jQuery(this).hide()})}};jQuery(document).ready(function(){humanMsg.setup()});jQuery.cookie=function(a,b,d){if(typeof b!="undefined"){d=d||{};if(b===null){b="";d.expires=-1}var c="";if(d.expires&&(typeof d.expires=="number"||d.expires.toUTCString)){if(typeof d.expires=="number"){c=new Date;c.setTime(c.getTime()+d.expires*24*60*60*1000)}else c=d.expires;c="; expires="+c.toUTCString()}var e=d.path?"; path="+d.path:"",f=d.domain?"; domain="+d.domain:"";d=d.secure?"; secure":"";document.cookie=[a,"=",encodeURIComponent(b),c,e,f,d].join("")}else{b=null;if(document.cookie&&document.cookie!=
|
4 |
+
""){d=document.cookie.split(";");for(c=0;c<d.length;c++){e=jQuery.trim(d[c]);if(e.substring(0,a.length+1)==a+"="){b=decodeURIComponent(e.substring(a.length+1));break}}}return b}};(function(a){a.fn.bgIframe=a.fn.bgiframe=function(b){if(a.browser.msie&&parseInt(a.browser.version)<=6){b=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},b||{});var d=function(e){return e&&e.constructor==Number?e+"px":e},c='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+b.src+'"style="display:block;position:absolute;z-index:-1;'+(b.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(b.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":
|
5 |
+
d(b.top))+";left:"+(b.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":d(b.left))+";width:"+(b.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":d(b.width))+";height:"+(b.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":d(b.height))+';"/>';return this.each(function(){a("> iframe.bgiframe",this).length==0&&this.insertBefore(document.createElement(c),this.firstChild)})}return this};if(!a.browser.version)a.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1]})(jQuery);(function(a){a.each({focus:"focusin",blur:"focusout"},function(b,d){a.event.special[d]={setup:function(){if(a.browser.msie)return false;this.addEventListener(b,a.event.special[d].handler,true)},teardown:function(){if(a.browser.msie)return false;this.removeEventListener(b,a.event.special[d].handler,true)},handler:function(c){arguments[0]=a.event.fix(c);arguments[0].type=d;return a.event.handle.apply(this,arguments)}}});a.extend(a.fn,{delegate:function(b,d,c){return this.bind(b,function(e){var f=a(e.target);
|
6 |
+
if(f.is(d))return c.apply(f,arguments)})},triggerEvent:function(b,d){return this.triggerHandler(b,[a.event.fix({type:b,target:d})])}})})(jQuery);(function(a){a.tools=a.tools||{};a.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:false,speed:400,keyboard:true,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:true,activeClass:"active",easing:"swing",loop:false,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:false}};var b;function d(c,e){var f=this,m=a(this),n=!e.vertical,k=c.children(),g=0,i;b||(b=f);a.each(e,function(h,j){a.isFunction(j)&&m.bind(h,j)});if(k.length>
|
7 |
+
1)k=a(e.items,c);function l(h){var j=a(h);return e.globalNav?j:c.parent().find(h)}c.data("finder",l);var o=l(e.prev),r=l(e.next),q=l(e.prevPage),p=l(e.nextPage);a.extend(f,{getIndex:function(){return g},getClickIndex:function(){var h=f.getItems();return h.index(h.filter("."+e.activeClass))},getConf:function(){return e},getSize:function(){return f.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/e.size)},getPageIndex:function(){return Math.ceil(g/e.size)},getNaviButtons:function(){return o.add(r).add(q).add(p)},
|
8 |
+
getRoot:function(){return c},getItemWrap:function(){return k},getItems:function(){return k.children(e.item)},getVisibleItems:function(){return f.getItems().slice(g,g+e.size)},seekTo:function(h,j,s){if(h<0)h=0;if(g===h)return f;if(a.isFunction(j))s=j;if(h>f.getSize()-e.size)return e.loop?f.begin():this.end();var u=f.getItems().eq(h);if(!u.length)return f;var w=a.Event("onBeforeSeek");m.trigger(w,[h]);if(w.isDefaultPrevented())return f;if(j===undefined||a.isFunction(j))j=e.speed;function x(){s&&s.call(f,
|
9 |
+
h);m.trigger("onSeek",[h])}n?k.animate({left:-u.position().left},j,e.easing,x):k.animate({top:-u.position().top},j,e.easing,x);b=f;g=h;w=a.Event("onStart");m.trigger(w,[h]);if(w.isDefaultPrevented())return f;o.add(q).toggleClass(e.disabledClass,h===0);r.add(p).toggleClass(e.disabledClass,h>=f.getSize()-e.size);return f},move:function(h,j,s){i=h>0;return this.seekTo(g+h,j,s)},next:function(h,j){return this.move(1,h,j)},prev:function(h,j){return this.move(-1,h,j)},movePage:function(h,j,s){i=h>0;var u=
|
10 |
+
e.size*h,w=g%e.size;if(w>0)u+=h>0?-w:e.size-w;return this.move(u,j,s)},prevPage:function(h,j){return this.movePage(-1,h,j)},nextPage:function(h,j){return this.movePage(1,h,j)},setPage:function(h,j,s){return this.seekTo(h*e.size,j,s)},begin:function(h,j){i=false;return this.seekTo(0,h,j)},end:function(h,j){i=true;var s=this.getSize()-e.size;return s>0?this.seekTo(s,h,j):f},reload:function(){m.trigger("onReload");return f},focus:function(){return b=f},click:function(h){var j=f.getItems().eq(h),s=e.activeClass,
|
11 |
+
u=e.size;if(h<0||h>=f.getSize())return f;if(u==1){if(e.loop)return f.next();if(h===0||h==f.getSize()-1)i=i===undefined?true:!i;return i===false?f.prev():f.next()}if(u==2){h==g&&h--;f.getItems().removeClass(s);j.addClass(s);return f.seekTo(h,time,fn)}if(!j.hasClass(s)){f.getItems().removeClass(s);j.addClass(s);j=Math.floor(u/2);j=h-j;if(j>f.getSize()-u)j=f.getSize()-u;if(j!==h)return f.seekTo(j)}return f},bind:function(h,j){m.bind(h,j);return f},unbind:function(h){m.unbind(h);return f}});a.each("onBeforeSeek,onStart,onSeek,onReload".split(","),
|
12 |
+
function(h,j){f[j]=function(s){return f.bind(j,s)}});o.addClass(e.disabledClass).click(function(){f.prev()});r.click(function(){f.next()});p.click(function(){f.nextPage()});f.getSize()<e.size&&r.add(p).addClass(e.disabledClass);q.addClass(e.disabledClass).click(function(){f.prevPage()});var t=e.hoverClass,v="keydown."+Math.random().toString().substring(10);f.onReload(function(){t&&f.getItems().hover(function(){a(this).addClass(t)},function(){a(this).removeClass(t)});e.clickable&&f.getItems().each(function(h){a(this).unbind("click.scrollable").bind("click.scrollable",
|
13 |
+
function(j){if(!a(j.target).is("a"))return f.click(h)})});e.keyboard?a(document).unbind(v).bind(v,function(h){if(!(h.altKey||h.ctrlKey))if(!(e.keyboard!="static"&&b!=f)){var j=e.keyboardSteps;if(n&&(h.keyCode==37||h.keyCode==39)){f.move(h.keyCode==37?-j:j);return h.preventDefault()}if(!n&&(h.keyCode==38||h.keyCode==40)){f.move(h.keyCode==38?-j:j);return h.preventDefault()}return true}}):a(document).unbind(v)});f.reload()}a.fn.scrollable=function(c){var e=this.eq(typeof c=="number"?c:0).data("scrollable");
|
14 |
+
if(e)return e;var f=a.extend({},a.tools.scrollable.conf);c=a.extend(f,c);c.keyboardSteps=c.keyboardSteps||c.size;this.each(function(){e=new d(a(this),c);a(this).data("scrollable",e)});return c.api?e:this}})(jQuery);
|
15 |
+
(function(a){var b=a.tools.scrollable;b.plugins=b.plugins||{};b.plugins.autoscroll={version:"1.0.1",conf:{autoplay:true,interval:3000,autopause:true,steps:1,api:false}};a.fn.autoscroll=function(d){if(typeof d=="number")d={interval:d};var c=a.extend({},b.plugins.autoscroll.conf),e;a.extend(c,d);this.each(function(){var f=a(this).scrollable();if(f)e=f;var m,n,k=true;f.play=function(){if(!m){k=false;m=setInterval(function(){f.move(c.steps)},c.interval);f.move(c.steps)}};f.pause=function(){m=clearInterval(m)};
|
16 |
+
f.stop=function(){f.pause();k=true};c.autopause&&f.getRoot().add(f.getNaviButtons()).hover(function(){f.pause();clearInterval(n)},function(){k||(n=setTimeout(f.play,c.interval))});c.autoplay&&setTimeout(f.play,c.interval)});return c.api?e:this}})(jQuery);
|
17 |
+
(function(a){var b=a.tools.scrollable;b.plugins=b.plugins||{};b.plugins.navigator={version:"1.0.2",conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,api:false,idPrefix:null}};a.fn.navigator=function(d){var c=a.extend({},b.plugins.navigator.conf),e;if(typeof d=="string")d={navi:d};d=a.extend(c,d);this.each(function(){var f=a(this).scrollable(),m=f.getRoot(),n=m.data("finder").call(null,d.navi),k=null,g=f.getNaviButtons();if(f)e=f;f.getNaviButtons=function(){return g.add(n)};function i(){if(!n.children().length||
|
18 |
+
n.data("navi")==f){n.empty();n.data("navi",f);for(var l=0;l<f.getPageAmount();l++)n.append(a("<"+(d.naviItem||"a")+"/>"));k=n.children().each(function(o){var r=a(this);r.click(function(q){f.setPage(o);return q.preventDefault()});d.indexed&&r.text(o);d.idPrefix&&r.attr("id",d.idPrefix+o)})}else{k=d.naviItem?n.find(d.naviItem):n.children();k.each(function(o){var r=a(this);r.click(function(q){f.setPage(o);return q.preventDefault()})})}k.eq(0).addClass(d.activeClass)}f.onStart(function(){var l=d.activeClass;
|
19 |
+
k.removeClass(l).eq(f.getPageIndex()).addClass(l)});f.onReload(function(){i()});i();m=k.filter("[href="+location.hash+"]");m.length&&f.move(k.index(m))});return d.api?e:this}})(jQuery);
|
20 |
+
(function(a){a.fn.wheel=function(e){return this[e?"bind":"trigger"]("wheel",e)};a.event.special.wheel={setup:function(){a.event.add(this,b,d,{})},teardown:function(){a.event.remove(this,b,d)}};var b=!a.browser.mozilla?"mousewheel":"DOMMouseScroll"+(a.browser.version<"1.9"?" mousemove":"");function d(e){switch(e.type){case "mousemove":return a.extend(e.data,{clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY});case "DOMMouseScroll":a.extend(e,e.data);e.delta=-e.detail/3;break;case "mousewheel":e.delta=
|
21 |
+
e.wheelDelta/120;break}e.type="wheel";return a.event.handle.call(this,e,e.delta)}var c=a.tools.scrollable;c.plugins=c.plugins||{};c.plugins.mousewheel={version:"1.0.1",conf:{api:false,speed:50}};a.fn.mousewheel=function(e){var f=a.extend({},c.plugins.mousewheel.conf),m;if(typeof e=="number")e={speed:e};e=a.extend(f,e);this.each(function(){var n=a(this).scrollable();if(n)m=n;n.getRoot().wheel(function(k,g){n.move(g<0?1:-1,e.speed||50);return false})});return e.api?m:this}})(jQuery);(function(a){a.fn.timePicker=function(k){var g=a.extend({},a.fn.timePicker.defaults,k);return this.each(function(){a.timePicker(this,g)})};a.timePicker=function(k,g){k=a(k)[0];return k.timePicker||(k.timePicker=new jQuery._timePicker(k,g))};a._timePicker=function(k,g){var i=false,l=false,o=f(g.startTime,g),r=f(g.endTime,g);a(k).attr("autocomplete","OFF");for(var q=[],p=new Date(o);p<=r;){q[q.length]=d(p,g);p=new Date(p.setMinutes(p.getMinutes()+g.step))}var t=a("<div "+(g.tpDivId?'id="'+g.tpDivId+
|
22 |
+
'" ':"")+'class="time-picker'+(g.show24Hours?"":" time-picker-12hours")+'"></div>'),v=a("<ul></ul>");for(p=0;p<q.length;p++)v.append("<li>"+q[p]+"</li>");t.append(v);q=a(k).offset();t.appendTo("body").css({top:q.top-48+"px",left:q.left,width:a(k).width()+5+"px"}).hide();t.mouseover(function(){i=true}).mouseout(function(){i=false});a("li",v).mouseover(function(){if(!l){a("li.selected",t).removeClass("selected");a(this).addClass("selected")}}).mousedown(function(){i=true}).click(function(){b(k,this,
|
23 |
+
t,g);i=false});function h(){if(t.is(":visible"))return false;a("li",t).removeClass("selected");var j=a(k).offset();t.css({top:j.top-48+"px",left:j.left,width:a(k).width()+5+"px"});t.show();var s=k.value?m(k.value,g):o;j=o.getHours()*60+o.getMinutes();s=s.getHours()*60+s.getMinutes()-j;s=Math.round(s/g.step);j=n(new Date(0,0,0,0,s*g.step+j,0));j=o<j&&j<=r?j:o;j=a("li:contains("+d(j,g)+")",t);if(j.length){j.addClass("selected");t[0].scrollTop=j[0].offsetTop}return true}a(k).focus(h).click(h);a(k).blur(function(){i||
|
24 |
t.hide()});q=a.browser.opera||a.browser.mozilla?"keypress":"keydown";a(k)[q](function(j){l=true;var s=t[0].scrollTop;switch(j.keyCode){case 38:if(h())return false;j=a("li.selected",v);var u=j.prev().addClass("selected")[0];if(u){j.removeClass("selected");if(u.offsetTop<s)t[0].scrollTop=s-u.offsetHeight}else{j.removeClass("selected");u=a("li:last",v).addClass("selected")[0];t[0].scrollTop=u.offsetTop-u.offsetHeight}return false;case 40:if(h())return false;j=a("li.selected",v);if(u=j.next().addClass("selected")[0]){j.removeClass("selected");
|
25 |
+
if(u.offsetTop+u.offsetHeight>s+t[0].offsetHeight)t[0].scrollTop=s+u.offsetHeight}else{j.removeClass("selected");a("li:first",v).addClass("selected");t[0].scrollTop=0}return false;case 13:if(t.is(":visible")){s=a("li.selected",v)[0];b(k,s,t,g)}return false;case 27:t.hide();return false}return true});a(k).keyup(function(){l=false});this.getTime=function(){return m(k.value,g)};this.setTime=function(j){k.value=d(n(j),g);a(k).change()}};a.fn.timePicker.defaults={step:30,startTime:new Date(0,0,0,0,0,0),
|
26 |
+
endTime:new Date(0,0,0,23,30,0),separator:":",show24Hours:true};function b(k,g,i){k.value=a(g).text();a(k).change();a.browser.msie||k.focus();i.hide()}function d(k,g){var i=k.getHours(),l=g.show24Hours?i:(i+11)%12+1;l=e(l,g);k=k.getMinutes();return l+g.separator+c(k)+(g.show24Hours?"":i<12?" AM":" PM")}function c(k){return(k<10?"0":"")+k}function e(k,g){return g.show24Hours?(k<10?"0":"")+k:k}function f(k,g){return typeof k=="object"?n(k):m(k,g)}function m(k,g){if(k){var i=k.split(g.separator),l=parseFloat(i[0]);
|
27 |
+
i=parseFloat(i[1]);if(!g.show24Hours)if(l===12&&k.substr("AM")!==-1)l=0;else if(l!==12&&k.indexOf("PM")!==-1)l+=12;k=new Date(0,0,0,l,i,0);return n(k)}return null}function n(k){k.setFullYear(2001);k.setMonth(0);k.setDate(0);return k}})(jQuery);if(!this.JSON)this.JSON={};
|
28 |
+
(function(){function a(g){return g<10?"0"+g:g}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var b=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,d=
|
29 |
+
/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c,e,f={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},m;function n(g){d.lastIndex=0;return d.test(g)?'"'+g.replace(d,function(i){var l=f[i];return typeof l==="string"?l:"\\u"+("0000"+i.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+g+'"'}function k(g,i){var l,o,r=c,q,p=i[g];if(p&&typeof p==="object"&&typeof p.toJSON==="function")p=p.toJSON(g);
|
30 |
+
if(typeof m==="function")p=m.call(i,g,p);switch(typeof p){case "string":return n(p);case "number":return isFinite(p)?String(p):"null";case "boolean":case "null":return String(p);case "object":if(!p)return"null";c+=e;q=[];if(Object.prototype.toString.apply(p)==="[object Array]"){o=p.length;for(g=0;g<o;g+=1)q[g]=k(g,p)||"null";i=q.length===0?"[]":c?"[\n"+c+q.join(",\n"+c)+"\n"+r+"]":"["+q.join(",")+"]";c=r;return i}if(m&&typeof m==="object"){o=m.length;for(g=0;g<o;g+=1){l=m[g];if(typeof l==="string")if(i=
|
31 |
+
k(l,p))q.push(n(l)+(c?": ":":")+i)}}else for(l in p)if(Object.hasOwnProperty.call(p,l))if(i=k(l,p))q.push(n(l)+(c?": ":":")+i);i=q.length===0?"{}":c?"{\n"+c+q.join(",\n"+c)+"\n"+r+"}":"{"+q.join(",")+"}";c=r;return i}}if(typeof JSON.stringify!=="function")JSON.stringify=function(g,i,l){var o;e=c="";if(typeof l==="number")for(o=0;o<l;o+=1)e+=" ";else if(typeof l==="string")e=l;if((m=i)&&typeof i!=="function"&&(typeof i!=="object"||typeof i.length!=="number"))throw new Error("JSON.stringify");return k("",
|
32 |
+
{"":g})};if(typeof JSON.parseIt!=="function")JSON.parseIt=function(g,i){function l(o,r){var q,p,t=o[r];if(t&&typeof t==="object")for(q in t)if(Object.hasOwnProperty.call(t,q)){p=l(t,q);if(p!==undefined)t[q]=p;else delete t[q]}return i.call(o,r,t)}b.lastIndex=0;if(b.test(g))g=g.replace(b,function(o){return"\\u"+("0000"+o.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(g.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
|
33 |
+
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){g=eval("("+g+")");return typeof i==="function"?l({"":g},""):g}throw new SyntaxError("JSON.parseIt");}})();(function(a){a.tools=a.tools||{};a.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:false,speed:400,keyboard:true,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:true,activeClass:"active",easing:"swing",loop:false,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:false}};var b;function d(c,e){var f=this,m=a(this),n=!e.vertical,k=c.children(),g=0,i;b||(b=f);a.each(e,function(h,j){a.isFunction(j)&&m.bind(h,j)});if(k.length>
|
34 |
+
1)k=a(e.items,c);function l(h){var j=a(h);return e.globalNav?j:c.parent().find(h)}c.data("finder",l);var o=l(e.prev),r=l(e.next),q=l(e.prevPage),p=l(e.nextPage);a.extend(f,{getIndex:function(){return g},getClickIndex:function(){var h=f.getItems();return h.index(h.filter("."+e.activeClass))},getConf:function(){return e},getSize:function(){return f.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/e.size)},getPageIndex:function(){return Math.ceil(g/e.size)},getNaviButtons:function(){return o.add(r).add(q).add(p)},
|
35 |
+
getRoot:function(){return c},getItemWrap:function(){return k},getItems:function(){return k.children(e.item)},getVisibleItems:function(){return f.getItems().slice(g,g+e.size)},seekTo:function(h,j,s){if(h<0)h=0;if(g===h)return f;if(a.isFunction(j))s=j;if(h>f.getSize()-e.size)return e.loop?f.begin():this.end();var u=f.getItems().eq(h);if(!u.length)return f;var w=a.Event("onBeforeSeek");m.trigger(w,h>g);if(w.isDefaultPrevented())return f;if(j===undefined||a.isFunction(j))j=e.speed;function x(){s&&s.call(f,
|
36 |
+
h);m.trigger("onSeek",[h])}n?k.animate({left:-u.position().left},j,e.easing,x):k.animate({top:-u.position().top},j,e.easing,x);b=f;g=h;w=a.Event("onStart");m.trigger(w,[h]);if(w.isDefaultPrevented())return f;o.add(q).toggleClass(e.disabledClass,h===0);r.add(p).toggleClass(e.disabledClass,h>=f.getSize()-e.size);return f},move:function(h,j,s){i=h>0;return this.seekTo(g+h,j,s)},next:function(h,j){return this.move(1,h,j)},prev:function(h,j){return this.move(-1,h,j)},movePage:function(h,j,s){i=h>0;var u=
|
37 |
+
e.size*h,w=g%e.size;if(w>0)u+=h>0?-w:e.size-w;return this.move(u,j,s)},prevPage:function(h,j){return this.movePage(-1,h,j)},nextPage:function(h,j){return this.movePage(1,h,j)},setPage:function(h,j,s){return this.seekTo(h*e.size,j,s)},begin:function(h,j){i=false;return this.seekTo(0,h,j)},end:function(h,j){i=true;var s=this.getSize()-e.size;return s>0?this.seekTo(s,h,j):f},reload:function(){m.trigger("onReload");return f},focus:function(){return b=f},click:function(h){var j=f.getItems().eq(h),s=e.activeClass,
|
38 |
+
u=e.size;if(h<0||h>=f.getSize())return f;if(u==1){if(e.loop)return f.next();if(h===0||h==f.getSize()-1)i=i===undefined?true:!i;return i===false?f.prev():f.next()}if(u==2){h==g&&h--;f.getItems().removeClass(s);j.addClass(s);return f.seekTo(h,time,fn)}if(!j.hasClass(s)){f.getItems().removeClass(s);j.addClass(s);j=Math.floor(u/2);j=h-j;if(j>f.getSize()-u)j=f.getSize()-u;if(j!==h)return f.seekTo(j)}return f},bind:function(h,j){m.bind(h,j);return f},unbind:function(h){m.unbind(h);return f}});a.each("onBeforeSeek,onStart,onSeek,onReload".split(","),
|
39 |
+
function(h,j){f[j]=function(s){return f.bind(j,s)}});o.addClass(e.disabledClass).click(function(){f.prev()});r.click(function(){f.next()});p.click(function(){f.nextPage()});f.getSize()<e.size&&r.add(p).addClass(e.disabledClass);q.addClass(e.disabledClass).click(function(){f.prevPage()});var t=e.hoverClass,v="keydown."+Math.random().toString().substring(10);f.onReload(function(){t&&f.getItems().hover(function(){a(this).addClass(t)},function(){a(this).removeClass(t)});e.clickable&&f.getItems().each(function(h){a(this).unbind("click.scrollable").bind("click.scrollable",
|
40 |
+
function(j){if(!a(j.target).is("a"))return f.click(h)})});e.keyboard?a(document).unbind(v).bind(v,function(h){if(!(h.altKey||h.ctrlKey))if(!(e.keyboard!="static"&&b!=f)){var j=e.keyboardSteps;if(n&&(h.keyCode==37||h.keyCode==39)){f.move(h.keyCode==37?-j:j);return h.preventDefault()}if(!n&&(h.keyCode==38||h.keyCode==40)){f.move(h.keyCode==38?-j:j);return h.preventDefault()}return true}}):a(document).unbind(v)});f.reload()}a.fn.scrollable=function(c){var e=this.eq(typeof c=="number"?c:0).data("scrollable");
|
41 |
+
if(e)return e;var f=a.extend({},a.tools.scrollable.conf);c=a.extend(f,c);c.keyboardSteps=c.keyboardSteps||c.size;this.each(function(){e=new d(a(this),c);a(this).data("scrollable",e)});return c.api?e:this}})(jQuery);(function(a){a.fn.wheel=function(e){return this[e?"bind":"trigger"]("wheel",e)};a.event.special.wheel={setup:function(){a.event.add(this,b,d,{})},teardown:function(){a.event.remove(this,b,d)}};var b=!a.browser.mozilla?"mousewheel":"DOMMouseScroll"+(a.browser.version<"1.9"?" mousemove":"");function d(e){switch(e.type){case "mousemove":return a.extend(e.data,{clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY});case "DOMMouseScroll":a.extend(e,e.data);e.delta=-e.detail/3;break;case "mousewheel":e.delta=
|
42 |
+
e.wheelDelta/120;break}e.type="wheel";return a.event.handle.call(this,e,e.delta)}var c=a.tools.scrollable;c.plugins=c.plugins||{};c.plugins.mousewheel={version:"1.0.1",conf:{api:false,speed:50}};a.fn.mousewheel=function(e){var f=a.extend({},c.plugins.mousewheel.conf),m;if(typeof e=="number")e={speed:e};e=a.extend(f,e);this.each(function(){var n=a(this).scrollable();if(n)m=n;n.getRoot().wheel(function(k,g){n.move(g<0?1:-1,e.speed||50);return false})});return e.api?m:this}})(jQuery);jQuery.ui||function(a){var b=a.fn.remove,d=a.browser.mozilla&&parseFloat(a.browser.version)<1.9;a.ui={version:"1.7.2",plugin:{add:function(g,i,l){g=a.ui[g].prototype;for(var o in l){g.plugins[o]=g.plugins[o]||[];g.plugins[o].push([i,l[o]])}},call:function(g,i,l){if((i=g.plugins[i])&&g.element[0].parentNode)for(var o=0;o<i.length;o++)g.options[i[o][0]]&&i[o][1].apply(g.element,l)}},contains:function(g,i){return document.compareDocumentPosition?g.compareDocumentPosition(i)&16:g!==i&&g.contains(i)},
|
43 |
+
hasScroll:function(g,i){if(a(g).css("overflow")=="hidden")return false;i=i&&i=="left"?"scrollLeft":"scrollTop";var l=false;if(g[i]>0)return true;g[i]=1;l=g[i]>0;g[i]=0;return l},isOverAxis:function(g,i,l){return g>i&&g<i+l},isOver:function(g,i,l,o,r,q){return a.ui.isOverAxis(g,l,r)&&a.ui.isOverAxis(i,o,q)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,
|
44 |
+
NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var c=a.attr,e=a.fn.removeAttr,f="http://www.w3.org/2005/07/aaa",m=/^aria-/,n=/^wairole:/;a.attr=function(g,i,l){var o=l!==undefined;return i=="role"?o?c.call(this,g,i,"wairole:"+l):(c.apply(this,arguments)||"").replace(n,""):m.test(i)?o?g.setAttributeNS(f,i.replace(m,"aaa:"),l):c.call(this,g,i.replace(m,"aaa:")):c.apply(this,arguments)};a.fn.removeAttr=function(g){return m.test(g)?
|
45 |
+
this.each(function(){this.removeAttributeNS(f,g.replace(m,""))}):e.call(this,g)}}a.fn.extend({remove:function(){a("*",this).add(this).each(function(){a(this).triggerHandler("remove")});return b.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var g;
|
46 |
+
g=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||
|
47 |
+
!g.length?a(document):g}});a.extend(a.expr[":"],{data:function(g,i,l){return!!a.data(g,l[3])},focusable:function(g){var i=g.nodeName.toLowerCase(),l=a.attr(g,"tabindex");return(/input|select|textarea|button|object/.test(i)?!g.disabled:"a"==i||"area"==i?g.href||!isNaN(l):!isNaN(l))&&!a(g)["area"==i?"parents":"closest"](":hidden").length},tabbable:function(g){var i=a.attr(g,"tabindex");return(isNaN(i)||i>=0)&&a(g).is(":focusable")}});function k(g,i,l,o){function r(p){p=a[g][i][p]||[];return typeof p==
|
48 |
+
"string"?p.split(/,?\s+/):p}var q=r("getter");if(o.length==1&&typeof o[0]=="string")q=q.concat(r("getterSetter"));return a.inArray(l,q)!=-1}a.widget=function(g,i){var l=g.split(".")[0];g=g.split(".")[1];a.fn[g]=function(o){var r=typeof o=="string",q=Array.prototype.slice.call(arguments,1);if(r&&o.substring(0,1)=="_")return this;if(r&&k(l,g,o,q)){var p=a.data(this[0],g);return p?p[o].apply(p,q):undefined}return this.each(function(){var t=a.data(this,g);!t&&!r&&a.data(this,g,new a[l][g](this,o))._init();
|
49 |
+
t&&r&&a.isFunction(t[o])&&t[o].apply(t,q)})};a[l]=a[l]||{};a[l][g]=function(o,r){var q=this;this.namespace=l;this.widgetName=g;this.widgetEventPrefix=a[l][g].eventPrefix||g;this.widgetBaseClass=l+"-"+g;this.options=a.extend({},a.widget.defaults,a[l][g].defaults,a.metadata&&a.metadata.get(o)[g],r);this.element=a(o).bind("setData."+g,function(p,t,v){if(p.target==o)return q._setData(t,v)}).bind("getData."+g,function(p,t){if(p.target==o)return q._getData(t)}).bind("remove",function(){return q.destroy()})};
|
50 |
+
a[l][g].prototype=a.extend({},a.widget.prototype,i);a[l][g].getterSetter="option"};a.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(g,i){var l=g,o=this;if(typeof g=="string"){if(i===undefined)return this._getData(g);l={};l[g]=i}a.each(l,function(r,q){o._setData(r,q)})},_getData:function(g){return this.options[g]},_setData:function(g,
|
51 |
+
i){this.options[g]=i;if(g=="disabled")this.element[i?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",i)},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(g,i,l){var o=this.options[g];g=g==this.widgetEventPrefix?g:this.widgetEventPrefix+g;i=a.Event(i);i.type=g;if(i.originalEvent){g=a.event.props.length;for(var r;g;){r=a.event.props[--g];i[r]=i.originalEvent[r]}}this.element.trigger(i,
|
52 |
+
l);return!(a.isFunction(o)&&o.call(this.element[0],i,l)===false||i.isDefaultPrevented())}};a.widget.defaults={disabled:false};a.ui.mouse={_mouseInit:function(){var g=this;this.element.bind("mousedown."+this.widgetName,function(i){return g._mouseDown(i)}).bind("click."+this.widgetName,function(i){if(g._preventClickEvent){g._preventClickEvent=false;i.stopImmediatePropagation();return false}});if(a.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable",
|
53 |
+
"on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);a.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable)},_mouseDown:function(g){g.originalEvent=g.originalEvent||{};if(!g.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(g);this._mouseDownEvent=g;var i=this,l=g.which==1,o=typeof this.options.cancel=="string"?a(g.target).parents().add(g.target).filter(this.options.cancel).length:false;if(!l||o||!this._mouseCapture(g))return true;
|
54 |
+
this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(g)&&this._mouseDelayMet(g)){this._mouseStarted=this._mouseStart(g)!==false;if(!this._mouseStarted){g.preventDefault();return true}}this._mouseMoveDelegate=function(r){return i._mouseMove(r)};this._mouseUpDelegate=function(r){return i._mouseUp(r)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+
|
55 |
+
this.widgetName,this._mouseUpDelegate);a.browser.safari||g.preventDefault();return g.originalEvent.mouseHandled=true}},_mouseMove:function(g){if(a.browser.msie&&!g.button)return this._mouseUp(g);if(this._mouseStarted){this._mouseDrag(g);return g.preventDefault()}if(this._mouseDistanceMet(g)&&this._mouseDelayMet(g))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,g)!==false)?this._mouseDrag(g):this._mouseUp(g);return!this._mouseStarted},_mouseUp:function(g){a(document).unbind("mousemove."+
|
56 |
+
this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=g.target==this._mouseDownEvent.target;this._mouseStop(g)}return false},_mouseDistanceMet:function(g){return Math.max(Math.abs(this._mouseDownEvent.pageX-g.pageX),Math.abs(this._mouseDownEvent.pageY-g.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},
|
57 |
_mouseStop:function(){},_mouseCapture:function(){return true}};a.ui.mouse.defaults={cancel:null,distance:1,delay:0}}(jQuery);(function(a){a.widget("ui.draggable",a.extend({},a.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");
|
58 |
+
this._mouseDestroy()}},_mouseCapture:function(b){var d=this.options;if(this.helper||d.disabled||a(b.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(b);if(!this.handle)return false;return true},_mouseStart:function(b){var d=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager)a.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();
|
59 |
+
this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);d.containment&&this._setContainment();this._trigger("start",b);this._cacheHelperProportions();a.ui.ddmanager&&
|
60 |
+
!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(b,true);return true},_mouseDrag:function(b,d){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!d){d=this._uiHash();this._trigger("drag",b,d);this.position=d.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+
|
61 |
+
"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,b);return false},_mouseStop:function(b){var d=false;if(a.ui.ddmanager&&!this.options.dropBehaviour)d=a.ui.ddmanager.drop(this,b);if(this.dropped){d=this.dropped;this.dropped=false}if(this.options.revert=="invalid"&&!d||this.options.revert=="valid"&&d||this.options.revert===true||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)){var c=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",
|
62 |
+
b);c._clear()})}else{this._trigger("stop",b);this._clear()}return false},_getHandle:function(b){var d=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==b.target)d=true});return d},_createHelper:function(b){var d=this.options;b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[b])):d.helper=="clone"?this.element.clone():this.element;b.parents("body").length||b.appendTo(d.appendTo=="parent"?
|
63 |
+
this.element[0].parentNode:d.appendTo);b[0]!=this.element[0]&&!/(fixed|absolute)/.test(b.css("position"))&&b.css("position","absolute");return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined)this.offset.click.left=b.left+this.margins.left;if(b.right!=undefined)this.offset.click.left=this.helperProportions.width-b.right+this.margins.left;if(b.top!=undefined)this.offset.click.top=b.top+this.margins.top;if(b.bottom!=undefined)this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top},
|
64 |
_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),
|
65 |
10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),
|
66 |
10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;if(b.containment=="parent")b.containment=this.helper[0].parentNode;if(b.containment=="document"||b.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(b.containment=="document"?document:window).width()-this.helperProportions.width-
|
67 |
+
this.margins.left,(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)jQuery/.test(b.containment)&&b.containment.constructor!=Array){var d=a(b.containment)[0];if(d){b=a(b.containment).offset();var c=a(d).css("overflow")!="hidden";this.containment=[b.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0)-this.margins.left,b.top+(parseInt(a(d).css("borderTopWidth"),
|
68 |
+
10)||0)+(parseInt(a(d).css("paddingTop"),10)||0)-this.margins.top,b.left+(c?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,b.top+(c?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(b.containment.constructor==
|
69 |
+
Array)this.containment=b.containment},_convertPositionTo:function(b,d){if(!d)d=this.position;b=b=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);return{top:d.top+this.offset.relative.top*b+this.offset.parent.top*b-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:c.scrollTop())*
|
70 |
+
b),left:d.left+this.offset.relative.left*b+this.offset.parent.left*b-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())*b)}},_generatePosition:function(b){var d=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=
|
71 |
document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var f=b.pageX,m=b.pageY;if(this.originalPosition){if(this.containment){if(b.pageX-this.offset.click.left<this.containment[0])f=this.containment[0]+this.offset.click.left;if(b.pageY-this.offset.click.top<this.containment[1])m=this.containment[1]+this.offset.click.top;if(b.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(b.pageY-this.offset.click.top>this.containment[3])m=
|
72 |
+
this.containment[3]+this.offset.click.top}if(d.grid){m=this.originalPageY+Math.round((m-this.originalPageY)/d.grid[1])*d.grid[1];m=this.containment?!(m-this.offset.click.top<this.containment[1]||m-this.offset.click.top>this.containment[3])?m:!(m-this.offset.click.top<this.containment[1])?m-d.grid[1]:m+d.grid[1]:m;f=this.originalPageX+Math.round((f-this.originalPageX)/d.grid[0])*d.grid[0];f=this.containment?!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?
|
73 |
+
f:!(f-this.offset.click.left<this.containment[0])?f-d.grid[0]:f+d.grid[0]:f}}return{top:m-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:c.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");
|
74 |
+
this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(b,d,c){c=c||this._uiHash();a.ui.plugin.call(this,b,[d,c]);if(b=="drag")this.positionAbs=this._convertPositionTo("absolute");return a.widget.prototype._trigger.call(this,b,d,c)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));a.extend(a.ui.draggable,{version:"1.7.2",
|
75 |
eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false}});a.ui.plugin.add("draggable","connectToSortable",{start:function(b,
|
76 |
+
d){var c=a(this).data("draggable"),e=c.options,f=a.extend({},d,{item:c.element});c.sortables=[];a(e.connectToSortable).each(function(){var m=a.data(this,"sortable");if(m&&!m.options.disabled){c.sortables.push({instance:m,shouldRevert:m.options.revert});m._refreshItems();m._trigger("activate",b,f)}})},stop:function(b,d){var c=a(this).data("draggable"),e=a.extend({},d,{item:c.element});a.each(c.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;c.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=
|
77 |
+
false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(b);this.instance.options.helper=this.instance.options._helper;c.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",b,e)}})},drag:function(b,d){var c=a(this).data("draggable"),e=this;a.each(c.sortables,function(){this.instance.positionAbs=c.positionAbs;this.instance.helperProportions=c.helperProportions;
|
78 |
+
this.instance.offset.click=c.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(e).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return d.helper[0]};b.target=this.instance.currentItem[0];this.instance._mouseCapture(b,true);this.instance._mouseStart(b,true,true);this.instance.offset.click.top=
|
79 |
c.offset.click.top;this.instance.offset.click.left=c.offset.click.left;this.instance.offset.parent.left-=c.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=c.offset.parent.top-this.instance.offset.parent.top;c._trigger("toSortable",b);c.dropped=this.instance.element;c.currentItem=c.element;this.instance.fromOutside=c}this.instance.currentItem&&this.instance._mouseDrag(b)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;
|
80 |
+
this.instance.options.revert=false;this.instance._trigger("out",b,this.instance._uiHash(this.instance));this.instance._mouseStop(b,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();c._trigger("fromSortable",b);c.dropped=false}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var b=a("body"),d=a(this).data("draggable").options;if(b.css("cursor"))d._cursor=b.css("cursor");b.css("cursor",
|
81 |
+
d.cursor)},stop:function(){if(a(this).data("draggable")){var b=a(this).data("draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}}});a.ui.plugin.add("draggable","iframeFix",{start:function(){var b=a(this).data("draggable").options;a(b.iframeFix===true?"iframe":b.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")})},
|
82 |
+
stop:function(){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(b,d){b=a(d.helper);d=a(this).data("draggable").options;if(b.css("opacity"))d._opacity=b.css("opacity");b.css("opacity",d.opacity)},stop:function(b,d){b=a(this).data("draggable").options;b._opacity&&a(d.helper).css("opacity",b._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("draggable");if(b.scrollParent[0]!=
|
83 |
+
document&&b.scrollParent[0].tagName!="HTML")b.overflowOffset=b.scrollParent.offset()},drag:function(b){var d=a(this).data("draggable"),c=d.options,e=false;if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){if(!c.axis||c.axis!="x")if(d.overflowOffset.top+d.scrollParent[0].offsetHeight-b.pageY<c.scrollSensitivity)d.scrollParent[0].scrollTop=e=d.scrollParent[0].scrollTop+c.scrollSpeed;else if(b.pageY-d.overflowOffset.top<c.scrollSensitivity)d.scrollParent[0].scrollTop=e=d.scrollParent[0].scrollTop-
|
84 |
+
c.scrollSpeed;if(!c.axis||c.axis!="y")if(d.overflowOffset.left+d.scrollParent[0].offsetWidth-b.pageX<c.scrollSensitivity)d.scrollParent[0].scrollLeft=e=d.scrollParent[0].scrollLeft+c.scrollSpeed;else if(b.pageX-d.overflowOffset.left<c.scrollSensitivity)d.scrollParent[0].scrollLeft=e=d.scrollParent[0].scrollLeft-c.scrollSpeed}else{if(!c.axis||c.axis!="x")if(b.pageY-a(document).scrollTop()<c.scrollSensitivity)e=a(document).scrollTop(a(document).scrollTop()-c.scrollSpeed);else if(a(window).height()-
|
85 |
+
(b.pageY-a(document).scrollTop())<c.scrollSensitivity)e=a(document).scrollTop(a(document).scrollTop()+c.scrollSpeed);if(!c.axis||c.axis!="y")if(b.pageX-a(document).scrollLeft()<c.scrollSensitivity)e=a(document).scrollLeft(a(document).scrollLeft()-c.scrollSpeed);else if(a(window).width()-(b.pageX-a(document).scrollLeft())<c.scrollSensitivity)e=a(document).scrollLeft(a(document).scrollLeft()+c.scrollSpeed)}e!==false&&a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(d,b)}});a.ui.plugin.add("draggable",
|
86 |
+
"snap",{start:function(){var b=a(this).data("draggable"),d=b.options;b.snapElements=[];a(d.snap.constructor!=String?d.snap.items||":data(draggable)":d.snap).each(function(){var c=a(this),e=c.offset();this!=b.element[0]&&b.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:e.top,left:e.left})})},drag:function(b,d){for(var c=a(this).data("draggable"),e=c.options,f=e.snapTolerance,m=d.offset.left,n=m+c.helperProportions.width,k=d.offset.top,g=k+c.helperProportions.height,i=
|
87 |
+
c.snapElements.length-1;i>=0;i--){var l=c.snapElements[i].left,o=l+c.snapElements[i].width,r=c.snapElements[i].top,q=r+c.snapElements[i].height;if(l-f<m&&m<o+f&&r-f<k&&k<q+f||l-f<m&&m<o+f&&r-f<g&&g<q+f||l-f<n&&n<o+f&&r-f<k&&k<q+f||l-f<n&&n<o+f&&r-f<g&&g<q+f){if(e.snapMode!="inner"){var p=Math.abs(r-g)<=f,t=Math.abs(q-k)<=f,v=Math.abs(l-n)<=f,h=Math.abs(o-m)<=f;if(p)d.position.top=c._convertPositionTo("relative",{top:r-c.helperProportions.height,left:0}).top-c.margins.top;if(t)d.position.top=c._convertPositionTo("relative",
|
88 |
+
{top:q,left:0}).top-c.margins.top;if(v)d.position.left=c._convertPositionTo("relative",{top:0,left:l-c.helperProportions.width}).left-c.margins.left;if(h)d.position.left=c._convertPositionTo("relative",{top:0,left:o}).left-c.margins.left}var j=p||t||v||h;if(e.snapMode!="outer"){p=Math.abs(r-k)<=f;t=Math.abs(q-g)<=f;v=Math.abs(l-m)<=f;h=Math.abs(o-n)<=f;if(p)d.position.top=c._convertPositionTo("relative",{top:r,left:0}).top-c.margins.top;if(t)d.position.top=c._convertPositionTo("relative",{top:q-c.helperProportions.height,
|
89 |
+
left:0}).top-c.margins.top;if(v)d.position.left=c._convertPositionTo("relative",{top:0,left:l}).left-c.margins.left;if(h)d.position.left=c._convertPositionTo("relative",{top:0,left:o-c.helperProportions.width}).left-c.margins.left}if(!c.snapElements[i].snapping&&(p||t||v||h||j))c.options.snap.snap&&c.options.snap.snap.call(c.element,b,a.extend(c._uiHash(),{snapItem:c.snapElements[i].item}));c.snapElements[i].snapping=p||t||v||h||j}else{c.snapElements[i].snapping&&c.options.snap.release&&c.options.snap.release.call(c.element,
|
90 |
+
b,a.extend(c._uiHash(),{snapItem:c.snapElements[i].item}));c.snapElements[i].snapping=false}}}});a.ui.plugin.add("draggable","stack",{start:function(){var b=a(this).data("draggable").options,d=a.makeArray(a(b.stack.group)).sort(function(c,e){return(parseInt(a(c).css("zIndex"),10)||b.stack.min)-(parseInt(a(e).css("zIndex"),10)||b.stack.min)});a(d).each(function(c){this.style.zIndex=b.stack.min+c});this[0].style.zIndex=b.stack.min+d.length}});a.ui.plugin.add("draggable","zIndex",{start:function(b,d){b=
|
91 |
+
a(d.helper);d=a(this).data("draggable").options;if(b.css("zIndex"))d._zIndex=b.css("zIndex");b.css("zIndex",d.zIndex)},stop:function(b,d){b=a(this).data("draggable").options;b._zIndex&&a(d.helper).css("zIndex",b._zIndex)}})})(jQuery);(function(a){a.widget("ui.droppable",{_init:function(){var b=this.options,d=b.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&&a.isFunction(this.options.accept)?this.options.accept:function(c){return c.is(d)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[this.options.scope]=a.ui.ddmanager.droppables[this.options.scope]||[];a.ui.ddmanager.droppables[this.options.scope].push(this);this.options.addClasses&&
|
92 |
+
this.element.addClass("ui-droppable")},destroy:function(){for(var b=a.ui.ddmanager.droppables[this.options.scope],d=0;d<b.length;d++)b[d]==this&&b.splice(d,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable")},_setData:function(b,d){if(b=="accept")this.options.accept=d&&a.isFunction(d)?d:function(c){return c.is(d)};else a.widget.prototype._setData.apply(this,arguments)},_activate:function(b){var d=a.ui.ddmanager.current;this.options.activeClass&&
|
93 |
+
this.element.addClass(this.options.activeClass);d&&this._trigger("activate",b,this.ui(d))},_deactivate:function(b){var d=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);d&&this._trigger("deactivate",b,this.ui(d))},_over:function(b){var d=a.ui.ddmanager.current;if(!(!d||(d.currentItem||d.element)[0]==this.element[0]))if(this.options.accept.call(this.element[0],d.currentItem||d.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
|
94 |
+
this._trigger("over",b,this.ui(d))}},_out:function(b){var d=a.ui.ddmanager.current;if(!(!d||(d.currentItem||d.element)[0]==this.element[0]))if(this.options.accept.call(this.element[0],d.currentItem||d.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",b,this.ui(d))}},_drop:function(b,d){var c=d||a.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0])return false;var e=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var f=
|
95 |
+
a.data(this,"droppable");if(f.options.greedy&&a.ui.intersect(c,a.extend(f,{offset:f.element.offset()}),f.options.tolerance)){e=true;return false}});if(e)return false;if(this.options.accept.call(this.element[0],c.currentItem||c.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",b,this.ui(c));return this.element}return false},ui:function(b){return{draggable:b.currentItem||
|
96 |
+
b.element,helper:b.helper,position:b.position,absolutePosition:b.positionAbs,offset:b.positionAbs}}});a.extend(a.ui.droppable,{version:"1.7.2",eventPrefix:"drop",defaults:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"}});a.ui.intersect=function(b,d,c){if(!d.offset)return false;var e=(b.positionAbs||b.position.absolute).left,f=e+b.helperProportions.width,m=(b.positionAbs||b.position.absolute).top,n=m+b.helperProportions.height,k=d.offset.left,
|
97 |
+
g=k+d.proportions.width,i=d.offset.top,l=i+d.proportions.height;switch(c){case "fit":return k<e&&f<g&&i<m&&n<l;case "intersect":return k<e+b.helperProportions.width/2&&f-b.helperProportions.width/2<g&&i<m+b.helperProportions.height/2&&n-b.helperProportions.height/2<l;case "pointer":c=(b.positionAbs||b.position.absolute).left+(b.clickOffset||b.offset.click).left;b=(b.positionAbs||b.position.absolute).top+(b.clickOffset||b.offset.click).top;return d=a.ui.isOver(b,c,i,k,d.proportions.height,d.proportions.width);
|
98 |
+
case "touch":return(m>=i&&m<=l||n>=i&&n<=l||m<i&&n>l)&&(e>=k&&e<=g||f>=k&&f<=g||e<k&&f>g);default:return false}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(b,d){var c=a.ui.ddmanager.droppables[b.options.scope],e=d?d.type:null,f=(b.currentItem||b.element).find(":data(droppable)").andSelf(),m=0;a:for(;m<c.length;m++)if(!(c[m].options.disabled||b&&!c[m].options.accept.call(c[m].element[0],b.currentItem||b.element))){for(var n=0;n<f.length;n++)if(f[n]==c[m].element[0]){c[m].proportions.height=
|
99 |
+
0;continue a}c[m].visible=c[m].element.css("display")!="none";if(c[m].visible){c[m].offset=c[m].element.offset();c[m].proportions={width:c[m].element[0].offsetWidth,height:c[m].element[0].offsetHeight};e=="mousedown"&&c[m]._activate.call(c[m],d)}}},drop:function(b,d){var c=false;a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(this.options){if(!this.options.disabled&&this.visible&&a.ui.intersect(b,this,this.options.tolerance))c=this._drop.call(this,d);if(!this.options.disabled&&this.visible&&
|
100 |
+
this.options.accept.call(this.element[0],b.currentItem||b.element)){this.isout=1;this.isover=0;this._deactivate.call(this,d)}}});return c},drag:function(b,d){b.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(b,d);a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var c=a.ui.intersect(b,this,this.options.tolerance);if(c=!c&&this.isover==1?"isout":c&&this.isover==0?"isover":null){var e;if(this.options.greedy){var f=this.element.parents(":data(droppable):eq(0)");
|
101 |
+
if(f.length){e=a.data(f[0],"droppable");e.greedyChild=c=="isover"?1:0}}if(e&&c=="isover"){e.isover=0;e.isout=1;e._out.call(e,d)}this[c]=1;this[c=="isout"?"isover":"isout"]=0;this[c=="isover"?"_over":"_out"].call(this,d);if(e&&c=="isout"){e.isout=0;e.isover=1;e._over.call(e,d)}}}})}}})(jQuery);/*
|
102 |
: Licensed under The MIT License. See license.txt and http://www.datejs.com/license/.
|
103 |
*/
|
104 |
+
(function(){var a=Date,b=a.prototype,d=[];function c(e,f){f||(f=2);return("000"+e).slice(f*-1)}a.normalizeFormat=function(e){d=[];(new Date).$format(e);return d.join("")};a.strftime=function(e,f){return(new Date(f*1000)).$format(e)};a.strtotime=function(e){e=a.parse(e);e.addMinutes(e.getTimezoneOffset()*-1);return Math.round(a.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())/1000)};b.$format=function(e){var f=this,m;
|
105 |
+
function n(k){d.push(k);return f.toString(k)}return e?e.replace(/(%|\\)?.|%%/g,function(k){if(k.charAt(0)==="\\"||k.substring(0,2)==="%%")return k.replace("\\","").replace("%%","%");switch(k){case "d":case "%d":return n("dd");case "D":case "%a":return n("ddd");case "j":case "%e":return n("d");case "l":case "%A":return n("dddd");case "N":case "%u":return f.getDay()+1;case "S":return n("S");case "w":case "%w":return f.getDay();case "z":return f.getOrdinalNumber();case "%j":return c(f.getOrdinalNumber(),
|
106 |
+
3);case "%U":k=f.clone().set({month:0,day:1}).addDays(-1).moveToDayOfWeek(0);var g=f.clone().addDays(1).moveToDayOfWeek(0,-1);return g<k?"00":c((g.getOrdinalNumber()-k.getOrdinalNumber())/7+1);case "W":case "%V":return f.getISOWeek();case "%W":return c(f.getWeek());case "F":case "%B":return n("MMMM");case "m":case "%m":return n("MM");case "M":case "%b":case "%h":return n("MMM");case "n":return n("M");case "t":return a.getDaysInMonth(f.getFullYear(),f.getMonth());case "L":return a.isLeapYear(f.getFullYear())?
|
107 |
1:0;case "o":case "%G":return f.setWeek(f.getISOWeek()).toString("yyyy");case "%g":return f.$format("%G").slice(-2);case "Y":case "%Y":return n("yyyy");case "y":case "%y":return n("yy");case "a":case "%p":return n("tt").toLowerCase();case "A":return n("tt").toUpperCase();case "g":case "%I":return n("h");case "G":return n("H");case "h":return n("hh");case "H":case "%H":return n("HH");case "i":case "%M":return n("mm");case "s":case "%S":return n("ss");case "u":return c(f.getMilliseconds(),3);case "I":return f.isDaylightSavingTime()?
|
108 |
1:0;case "O":return f.getUTCOffset();case "P":m=f.getUTCOffset();return m.substring(0,m.length-2)+":"+m.substring(m.length-2);case "e":case "T":case "%z":case "%Z":return f.getTimezone();case "Z":return f.getTimezoneOffset()*-60;case "B":k=new Date;return Math.floor((k.getHours()*3600+k.getMinutes()*60+k.getSeconds()+(k.getTimezoneOffset()+60)*60)/86.4);case "c":return f.toISOString().replace(/\"/g,"");case "U":return a.strtotime("now");case "%c":return n("d")+" "+n("t");case "%C":return Math.floor(f.getFullYear()/
|
109 |
+
100+1);case "%D":return n("MM/dd/yy");case "%n":return"\\n";case "%t":return"\\t";case "%r":return n("hh:mm tt");case "%R":return n("H:mm");case "%T":return n("H:mm:ss");case "%x":return n("d");case "%X":return n("t");default:d.push(k);return k}}):this._toString()};if(!b.format)b.format=b.$format})();
|
lib/jquery.cookie.js
ADDED
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Cookie plugin
|
3 |
+
*
|
4 |
+
* Copyright (c) 2006 Klaus Hartl (stilbuero.de)
|
5 |
+
* Dual licensed under the MIT and GPL licenses:
|
6 |
+
* http://www.opensource.org/licenses/mit-license.php
|
7 |
+
* http://www.gnu.org/licenses/gpl.html
|
8 |
+
*
|
9 |
+
*/
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Create a cookie with the given name and value and other optional parameters.
|
13 |
+
*
|
14 |
+
* @example $.cookie('the_cookie', 'the_value');
|
15 |
+
* @desc Set the value of a cookie.
|
16 |
+
* @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
|
17 |
+
* @desc Create a cookie with all available options.
|
18 |
+
* @example $.cookie('the_cookie', 'the_value');
|
19 |
+
* @desc Create a session cookie.
|
20 |
+
* @example $.cookie('the_cookie', null);
|
21 |
+
* @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
|
22 |
+
* used when the cookie was set.
|
23 |
+
*
|
24 |
+
* @param String name The name of the cookie.
|
25 |
+
* @param String value The value of the cookie.
|
26 |
+
* @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
|
27 |
+
* @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
|
28 |
+
* If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
|
29 |
+
* If set to null or omitted, the cookie will be a session cookie and will not be retained
|
30 |
+
* when the the browser exits.
|
31 |
+
* @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
|
32 |
+
* @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
|
33 |
+
* @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
|
34 |
+
* require a secure protocol (like HTTPS).
|
35 |
+
* @type undefined
|
36 |
+
*
|
37 |
+
* @name $.cookie
|
38 |
+
* @cat Plugins/Cookie
|
39 |
+
* @author Klaus Hartl/klaus.hartl@stilbuero.de
|
40 |
+
*/
|
41 |
+
|
42 |
+
/**
|
43 |
+
* Get the value of a cookie with the given name.
|
44 |
+
*
|
45 |
+
* @example $.cookie('the_cookie');
|
46 |
+
* @desc Get the value of a cookie.
|
47 |
+
*
|
48 |
+
* @param String name The name of the cookie.
|
49 |
+
* @return The value of the cookie.
|
50 |
+
* @type String
|
51 |
+
*
|
52 |
+
* @name $.cookie
|
53 |
+
* @cat Plugins/Cookie
|
54 |
+
* @author Klaus Hartl/klaus.hartl@stilbuero.de
|
55 |
+
*/
|
56 |
+
jQuery.cookie = function(name, value, options) {
|
57 |
+
if (typeof value != 'undefined') { // name and value given, set cookie
|
58 |
+
options = options || {};
|
59 |
+
if (value === null) {
|
60 |
+
value = '';
|
61 |
+
options.expires = -1;
|
62 |
+
}
|
63 |
+
var expires = '';
|
64 |
+
if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
|
65 |
+
var date;
|
66 |
+
if (typeof options.expires == 'number') {
|
67 |
+
date = new Date();
|
68 |
+
date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
|
69 |
+
} else {
|
70 |
+
date = options.expires;
|
71 |
+
}
|
72 |
+
expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
|
73 |
+
}
|
74 |
+
// CAUTION: Needed to parenthesize options.path and options.domain
|
75 |
+
// in the following expressions, otherwise they evaluate to undefined
|
76 |
+
// in the packed version for some reason...
|
77 |
+
var path = options.path ? '; path=' + (options.path) : '';
|
78 |
+
var domain = options.domain ? '; domain=' + (options.domain) : '';
|
79 |
+
var secure = options.secure ? '; secure' : '';
|
80 |
+
document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
|
81 |
+
} else { // only name given, get cookie
|
82 |
+
var cookieValue = null;
|
83 |
+
if (document.cookie && document.cookie != '') {
|
84 |
+
var cookies = document.cookie.split(';');
|
85 |
+
for (var i = 0; i < cookies.length; i++) {
|
86 |
+
var cookie = jQuery.trim(cookies[i]);
|
87 |
+
// Does this cookie string begin with the name we want?
|
88 |
+
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
89 |
+
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
90 |
+
break;
|
91 |
+
}
|
92 |
+
}
|
93 |
+
}
|
94 |
+
return cookieValue;
|
95 |
+
}
|
96 |
+
};
|
lib/languages/date-el-GR.js
ADDED
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Version: 1.0 Alpha-1
|
3 |
+
* Build Date: 13-Nov-2007
|
4 |
+
* Copyright (c) 2006-2007, Coolite Inc. (http://www.coolite.com/). All rights reserved.
|
5 |
+
* License: Licensed under The MIT License. See license.txt and http://www.datejs.com/license/.
|
6 |
+
* Website: http://www.datejs.com/ or http://www.coolite.com/datejs/
|
7 |
+
*/
|
8 |
+
Date.CultureInfo={name:"el-GR",englishName:"Greek (Greece)",nativeName:"ελληνικά (Ελλάδα)",dayNames:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"],abbreviatedDayNames:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],shortestDayNames:["Κυ","Δε","Τρ","Τε","Πε","Πα","Σά"],firstLetterDayNames:["Κ","Δ","Τ","Τ","Π","Π","Σ"],monthNames:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],abbreviatedMonthNames:["Ιαν","Φεβ","Μαρ","Απρ","Μαϊ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],amDesignator:"πμ",pmDesignator:"μμ",firstDayOfWeek:1,twoDigitYearMax:2029,dateElementOrder:"dmy",formatPatterns:{shortDate:"d/M/yyyy",longDate:"dddd, d MMMM yyyy",shortTime:"h:mm tt",longTime:"h:mm:ss tt",fullDateTime:"dddd, d MMMM yyyy h:mm:ss tt",sortableDateTime:"yyyy-MM-ddTHH:mm:ss",universalSortableDateTime:"yyyy-MM-dd HH:mm:ssZ",rfc1123:"ddd, dd MMM yyyy HH:mm:ss GMT",monthDay:"dd MMMM",yearMonth:"MMMM yyyy"},regexPatterns:{jan:/^ιαν(ουάριος)?/i,feb:/^φεβ(ρουάριος)?/i,mar:/^μάρτιος/i,apr:/^απρ(ίλιος)?/i,may:/^μάιος/i,jun:/^ιούνιος/i,jul:/^ιούλιος/i,aug:/^αύγουστος/i,sep:/^σεπ(τέμβριος)?/i,oct:/^οκτ(ώβριος)?/i,nov:/^νοέμβριος/i,dec:/^δεκ(έμβριος)?/i,sun:/^κυ(ρ(ιακή)?)?/i,mon:/^δε(υ(τέρα)?)?/i,tue:/^τρ(ι(τη)?)?/i,wed:/^τε(τ(άρτη)?)?/i,thu:/^πε(μ(πτη)?)?/i,fri:/^πα(ρ(ασκευή)?)?/i,sat:/^σά(β(βατο)?)?/i,future:/^next/i,past:/^last|past|prev(ious)?/i,add:/^(\+|after|from)/i,subtract:/^(\-|before|ago)/i,yesterday:/^yesterday/i,today:/^t(oday)?/i,tomorrow:/^tomorrow/i,now:/^n(ow)?/i,millisecond:/^ms|milli(second)?s?/i,second:/^sec(ond)?s?/i,minute:/^min(ute)?s?/i,hour:/^h(ou)?rs?/i,week:/^w(ee)?k/i,month:/^m(o(nth)?s?)?/i,day:/^d(ays?)?/i,year:/^y((ea)?rs?)?/i,shortMeridian:/^(a|p)/i,longMeridian:/^(a\.?m?\.?|p\.?m?\.?)/i,timezone:/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\s*(\+|\-)\s*\d\d\d\d?)|gmt)/i,ordinalSuffix:/^\s*(st|nd|rd|th)/i,timeContext:/^\s*(\:|a|p)/i},abbreviatedTimeZoneStandard:{GMT:"-000",EST:"-0400",CST:"-0500",MST:"-0600",PST:"-0700"},abbreviatedTimeZoneDST:{GMT:"-000",EDT:"-0500",CDT:"-0600",MDT:"-0700",PDT:"-0800"}};
|
9 |
+
Date.getMonthNumberFromName=function(name){var n=Date.CultureInfo.monthNames,m=Date.CultureInfo.abbreviatedMonthNames,s=name.toLowerCase();for(var i=0;i<n.length;i++){if(n[i].toLowerCase()==s||m[i].toLowerCase()==s){return i;}}
|
10 |
+
return-1;};Date.getDayNumberFromName=function(name){var n=Date.CultureInfo.dayNames,m=Date.CultureInfo.abbreviatedDayNames,o=Date.CultureInfo.shortestDayNames,s=name.toLowerCase();for(var i=0;i<n.length;i++){if(n[i].toLowerCase()==s||m[i].toLowerCase()==s){return i;}}
|
11 |
+
return-1;};Date.isLeapYear=function(year){return(((year%4===0)&&(year%100!==0))||(year%400===0));};Date.getDaysInMonth=function(year,month){return[31,(Date.isLeapYear(year)?29:28),31,30,31,30,31,31,30,31,30,31][month];};Date.getTimezoneOffset=function(s,dst){return(dst||false)?Date.CultureInfo.abbreviatedTimeZoneDST[s.toUpperCase()]:Date.CultureInfo.abbreviatedTimeZoneStandard[s.toUpperCase()];};Date.getTimezoneAbbreviation=function(offset,dst){var n=(dst||false)?Date.CultureInfo.abbreviatedTimeZoneDST:Date.CultureInfo.abbreviatedTimeZoneStandard,p;for(p in n){if(n[p]===offset){return p;}}
|
12 |
+
return null;};Date.prototype.clone=function(){return new Date(this.getTime());};Date.prototype.compareTo=function(date){if(isNaN(this)){throw new Error(this);}
|
13 |
+
if(date instanceof Date&&!isNaN(date)){return(this>date)?1:(this<date)?-1:0;}else{throw new TypeError(date);}};Date.prototype.equals=function(date){return(this.compareTo(date)===0);};Date.prototype.between=function(start,end){var t=this.getTime();return t>=start.getTime()&&t<=end.getTime();};Date.prototype.addMilliseconds=function(value){this.setMilliseconds(this.getMilliseconds()+value);return this;};Date.prototype.addSeconds=function(value){return this.addMilliseconds(value*1000);};Date.prototype.addMinutes=function(value){return this.addMilliseconds(value*60000);};Date.prototype.addHours=function(value){return this.addMilliseconds(value*3600000);};Date.prototype.addDays=function(value){return this.addMilliseconds(value*86400000);};Date.prototype.addWeeks=function(value){return this.addMilliseconds(value*604800000);};Date.prototype.addMonths=function(value){var n=this.getDate();this.setDate(1);this.setMonth(this.getMonth()+value);this.setDate(Math.min(n,this.getDaysInMonth()));return this;};Date.prototype.addYears=function(value){return this.addMonths(value*12);};Date.prototype.add=function(config){if(typeof config=="number"){this._orient=config;return this;}
|
14 |
+
var x=config;if(x.millisecond||x.milliseconds){this.addMilliseconds(x.millisecond||x.milliseconds);}
|
15 |
+
if(x.second||x.seconds){this.addSeconds(x.second||x.seconds);}
|
16 |
+
if(x.minute||x.minutes){this.addMinutes(x.minute||x.minutes);}
|
17 |
+
if(x.hour||x.hours){this.addHours(x.hour||x.hours);}
|
18 |
+
if(x.month||x.months){this.addMonths(x.month||x.months);}
|
19 |
+
if(x.year||x.years){this.addYears(x.year||x.years);}
|
20 |
+
if(x.day||x.days){this.addDays(x.day||x.days);}
|
21 |
+
return this;};Date._validate=function(value,min,max,name){if(typeof value!="number"){throw new TypeError(value+" is not a Number.");}else if(value<min||value>max){throw new RangeError(value+" is not a valid value for "+name+".");}
|
22 |
+
return true;};Date.validateMillisecond=function(n){return Date._validate(n,0,999,"milliseconds");};Date.validateSecond=function(n){return Date._validate(n,0,59,"seconds");};Date.validateMinute=function(n){return Date._validate(n,0,59,"minutes");};Date.validateHour=function(n){return Date._validate(n,0,23,"hours");};Date.validateDay=function(n,year,month){return Date._validate(n,1,Date.getDaysInMonth(year,month),"days");};Date.validateMonth=function(n){return Date._validate(n,0,11,"months");};Date.validateYear=function(n){return Date._validate(n,1,9999,"seconds");};Date.prototype.set=function(config){var x=config;if(!x.millisecond&&x.millisecond!==0){x.millisecond=-1;}
|
23 |
+
if(!x.second&&x.second!==0){x.second=-1;}
|
24 |
+
if(!x.minute&&x.minute!==0){x.minute=-1;}
|
25 |
+
if(!x.hour&&x.hour!==0){x.hour=-1;}
|
26 |
+
if(!x.day&&x.day!==0){x.day=-1;}
|
27 |
+
if(!x.month&&x.month!==0){x.month=-1;}
|
28 |
+
if(!x.year&&x.year!==0){x.year=-1;}
|
29 |
+
if(x.millisecond!=-1&&Date.validateMillisecond(x.millisecond)){this.addMilliseconds(x.millisecond-this.getMilliseconds());}
|
30 |
+
if(x.second!=-1&&Date.validateSecond(x.second)){this.addSeconds(x.second-this.getSeconds());}
|
31 |
+
if(x.minute!=-1&&Date.validateMinute(x.minute)){this.addMinutes(x.minute-this.getMinutes());}
|
32 |
+
if(x.hour!=-1&&Date.validateHour(x.hour)){this.addHours(x.hour-this.getHours());}
|
33 |
+
if(x.month!==-1&&Date.validateMonth(x.month)){this.addMonths(x.month-this.getMonth());}
|
34 |
+
if(x.year!=-1&&Date.validateYear(x.year)){this.addYears(x.year-this.getFullYear());}
|
35 |
+
if(x.day!=-1&&Date.validateDay(x.day,this.getFullYear(),this.getMonth())){this.addDays(x.day-this.getDate());}
|
36 |
+
if(x.timezone){this.setTimezone(x.timezone);}
|
37 |
+
if(x.timezoneOffset){this.setTimezoneOffset(x.timezoneOffset);}
|
38 |
+
return this;};Date.prototype.clearTime=function(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);return this;};Date.prototype.isLeapYear=function(){var y=this.getFullYear();return(((y%4===0)&&(y%100!==0))||(y%400===0));};Date.prototype.isWeekday=function(){return!(this.is().sat()||this.is().sun());};Date.prototype.getDaysInMonth=function(){return Date.getDaysInMonth(this.getFullYear(),this.getMonth());};Date.prototype.moveToFirstDayOfMonth=function(){return this.set({day:1});};Date.prototype.moveToLastDayOfMonth=function(){return this.set({day:this.getDaysInMonth()});};Date.prototype.moveToDayOfWeek=function(day,orient){var diff=(day-this.getDay()+7*(orient||+1))%7;return this.addDays((diff===0)?diff+=7*(orient||+1):diff);};Date.prototype.moveToMonth=function(month,orient){var diff=(month-this.getMonth()+12*(orient||+1))%12;return this.addMonths((diff===0)?diff+=12*(orient||+1):diff);};Date.prototype.getDayOfYear=function(){return Math.floor((this-new Date(this.getFullYear(),0,1))/86400000);};Date.prototype.getWeekOfYear=function(firstDayOfWeek){var y=this.getFullYear(),m=this.getMonth(),d=this.getDate();var dow=firstDayOfWeek||Date.CultureInfo.firstDayOfWeek;var offset=7+1-new Date(y,0,1).getDay();if(offset==8){offset=1;}
|
39 |
+
var daynum=((Date.UTC(y,m,d,0,0,0)-Date.UTC(y,0,1,0,0,0))/86400000)+1;var w=Math.floor((daynum-offset+7)/7);if(w===dow){y--;var prevOffset=7+1-new Date(y,0,1).getDay();if(prevOffset==2||prevOffset==8){w=53;}else{w=52;}}
|
40 |
+
return w;};Date.prototype.isDST=function(){console.log('isDST');return this.toString().match(/(E|C|M|P)(S|D)T/)[2]=="D";};Date.prototype.getTimezone=function(){return Date.getTimezoneAbbreviation(this.getUTCOffset,this.isDST());};Date.prototype.setTimezoneOffset=function(s){var here=this.getTimezoneOffset(),there=Number(s)*-6/10;this.addMinutes(there-here);return this;};Date.prototype.setTimezone=function(s){return this.setTimezoneOffset(Date.getTimezoneOffset(s));};Date.prototype.getUTCOffset=function(){var n=this.getTimezoneOffset()*-10/6,r;if(n<0){r=(n-10000).toString();return r[0]+r.substr(2);}else{r=(n+10000).toString();return"+"+r.substr(1);}};Date.prototype.getDayName=function(abbrev){return abbrev?Date.CultureInfo.abbreviatedDayNames[this.getDay()]:Date.CultureInfo.dayNames[this.getDay()];};Date.prototype.getMonthName=function(abbrev){return abbrev?Date.CultureInfo.abbreviatedMonthNames[this.getMonth()]:Date.CultureInfo.monthNames[this.getMonth()];};Date.prototype._toString=Date.prototype.toString;Date.prototype.toString=function(format){var self=this;var p=function p(s){return(s.toString().length==1)?"0"+s:s;};return format?format.replace(/dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?/g,function(format){switch(format){case"hh":return p(self.getHours()<13?self.getHours():(self.getHours()-12));case"h":return self.getHours()<13?self.getHours():(self.getHours()-12);case"HH":return p(self.getHours());case"H":return self.getHours();case"mm":return p(self.getMinutes());case"m":return self.getMinutes();case"ss":return p(self.getSeconds());case"s":return self.getSeconds();case"yyyy":return self.getFullYear();case"yy":return self.getFullYear().toString().substring(2,4);case"dddd":return self.getDayName();case"ddd":return self.getDayName(true);case"dd":return p(self.getDate());case"d":return self.getDate().toString();case"MMMM":return self.getMonthName();case"MMM":return self.getMonthName(true);case"MM":return p((self.getMonth()+1));case"M":return self.getMonth()+1;case"t":return self.getHours()<12?Date.CultureInfo.amDesignator.substring(0,1):Date.CultureInfo.pmDesignator.substring(0,1);case"tt":return self.getHours()<12?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator;case"zzz":case"zz":case"z":return"";}}):this._toString();};
|
41 |
+
Date.now=function(){return new Date();};Date.today=function(){return Date.now().clearTime();};Date.prototype._orient=+1;Date.prototype.next=function(){this._orient=+1;return this;};Date.prototype.last=Date.prototype.prev=Date.prototype.previous=function(){this._orient=-1;return this;};Date.prototype._is=false;Date.prototype.is=function(){this._is=true;return this;};Number.prototype._dateElement="day";Number.prototype.fromNow=function(){var c={};c[this._dateElement]=this;return Date.now().add(c);};Number.prototype.ago=function(){var c={};c[this._dateElement]=this*-1;return Date.now().add(c);};(function(){var $D=Date.prototype,$N=Number.prototype;var dx=("sunday monday tuesday wednesday thursday friday saturday").split(/\s/),mx=("january february march april may june july august september october november december").split(/\s/),px=("Millisecond Second Minute Hour Day Week Month Year").split(/\s/),de;var df=function(n){return function(){if(this._is){this._is=false;return this.getDay()==n;}
|
42 |
+
return this.moveToDayOfWeek(n,this._orient);};};for(var i=0;i<dx.length;i++){$D[dx[i]]=$D[dx[i].substring(0,3)]=df(i);}
|
43 |
+
var mf=function(n){return function(){if(this._is){this._is=false;return this.getMonth()===n;}
|
44 |
+
return this.moveToMonth(n,this._orient);};};for(var j=0;j<mx.length;j++){$D[mx[j]]=$D[mx[j].substring(0,3)]=mf(j);}
|
45 |
+
var ef=function(j){return function(){if(j.substring(j.length-1)!="s"){j+="s";}
|
46 |
+
return this["add"+j](this._orient);};};var nf=function(n){return function(){this._dateElement=n;return this;};};for(var k=0;k<px.length;k++){de=px[k].toLowerCase();$D[de]=$D[de+"s"]=ef(px[k]);$N[de]=$N[de+"s"]=nf(de);}}());Date.prototype.toJSONString=function(){return this.toString("yyyy-MM-ddThh:mm:ssZ");};Date.prototype.toShortDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortDatePattern);};Date.prototype.toLongDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.longDatePattern);};Date.prototype.toShortTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortTimePattern);};Date.prototype.toLongTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.longTimePattern);};Date.prototype.getOrdinal=function(){switch(this.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th";}};
|
47 |
+
(function(){Date.Parsing={Exception:function(s){this.message="Parse error at '"+s.substring(0,10)+" ...'";}};var $P=Date.Parsing;var _=$P.Operators={rtoken:function(r){return function(s){var mx=s.match(r);if(mx){return([mx[0],s.substring(mx[0].length)]);}else{throw new $P.Exception(s);}};},token:function(s){return function(s){return _.rtoken(new RegExp("^\s*"+s+"\s*"))(s);};},stoken:function(s){return _.rtoken(new RegExp("^"+s));},until:function(p){return function(s){var qx=[],rx=null;while(s.length){try{rx=p.call(this,s);}catch(e){qx.push(rx[0]);s=rx[1];continue;}
|
48 |
+
break;}
|
49 |
+
return[qx,s];};},many:function(p){return function(s){var rx=[],r=null;while(s.length){try{r=p.call(this,s);}catch(e){return[rx,s];}
|
50 |
+
rx.push(r[0]);s=r[1];}
|
51 |
+
return[rx,s];};},optional:function(p){return function(s){var r=null;try{r=p.call(this,s);}catch(e){return[null,s];}
|
52 |
+
return[r[0],r[1]];};},not:function(p){return function(s){try{p.call(this,s);}catch(e){return[null,s];}
|
53 |
+
throw new $P.Exception(s);};},ignore:function(p){return p?function(s){var r=null;r=p.call(this,s);return[null,r[1]];}:null;},product:function(){var px=arguments[0],qx=Array.prototype.slice.call(arguments,1),rx=[];for(var i=0;i<px.length;i++){rx.push(_.each(px[i],qx));}
|
54 |
+
return rx;},cache:function(rule){var cache={},r=null;return function(s){try{r=cache[s]=(cache[s]||rule.call(this,s));}catch(e){r=cache[s]=e;}
|
55 |
+
if(r instanceof $P.Exception){throw r;}else{return r;}};},any:function(){var px=arguments;return function(s){var r=null;for(var i=0;i<px.length;i++){if(px[i]==null){continue;}
|
56 |
+
try{r=(px[i].call(this,s));}catch(e){r=null;}
|
57 |
+
if(r){return r;}}
|
58 |
+
throw new $P.Exception(s);};},each:function(){var px=arguments;return function(s){var rx=[],r=null;for(var i=0;i<px.length;i++){if(px[i]==null){continue;}
|
59 |
+
try{r=(px[i].call(this,s));}catch(e){throw new $P.Exception(s);}
|
60 |
+
rx.push(r[0]);s=r[1];}
|
61 |
+
return[rx,s];};},all:function(){var px=arguments,_=_;return _.each(_.optional(px));},sequence:function(px,d,c){d=d||_.rtoken(/^\s*/);c=c||null;if(px.length==1){return px[0];}
|
62 |
+
return function(s){var r=null,q=null;var rx=[];for(var i=0;i<px.length;i++){try{r=px[i].call(this,s);}catch(e){break;}
|
63 |
+
rx.push(r[0]);try{q=d.call(this,r[1]);}catch(ex){q=null;break;}
|
64 |
+
s=q[1];}
|
65 |
+
if(!r){throw new $P.Exception(s);}
|
66 |
+
if(q){throw new $P.Exception(q[1]);}
|
67 |
+
if(c){try{r=c.call(this,r[1]);}catch(ey){throw new $P.Exception(r[1]);}}
|
68 |
+
return[rx,(r?r[1]:s)];};},between:function(d1,p,d2){d2=d2||d1;var _fn=_.each(_.ignore(d1),p,_.ignore(d2));return function(s){var rx=_fn.call(this,s);return[[rx[0][0],r[0][2]],rx[1]];};},list:function(p,d,c){d=d||_.rtoken(/^\s*/);c=c||null;return(p instanceof Array?_.each(_.product(p.slice(0,-1),_.ignore(d)),p.slice(-1),_.ignore(c)):_.each(_.many(_.each(p,_.ignore(d))),px,_.ignore(c)));},set:function(px,d,c){d=d||_.rtoken(/^\s*/);c=c||null;return function(s){var r=null,p=null,q=null,rx=null,best=[[],s],last=false;for(var i=0;i<px.length;i++){q=null;p=null;r=null;last=(px.length==1);try{r=px[i].call(this,s);}catch(e){continue;}
|
69 |
+
rx=[[r[0]],r[1]];if(r[1].length>0&&!last){try{q=d.call(this,r[1]);}catch(ex){last=true;}}else{last=true;}
|
70 |
+
if(!last&&q[1].length===0){last=true;}
|
71 |
+
if(!last){var qx=[];for(var j=0;j<px.length;j++){if(i!=j){qx.push(px[j]);}}
|
72 |
+
p=_.set(qx,d).call(this,q[1]);if(p[0].length>0){rx[0]=rx[0].concat(p[0]);rx[1]=p[1];}}
|
73 |
+
if(rx[1].length<best[1].length){best=rx;}
|
74 |
+
if(best[1].length===0){break;}}
|
75 |
+
if(best[0].length===0){return best;}
|
76 |
+
if(c){try{q=c.call(this,best[1]);}catch(ey){throw new $P.Exception(best[1]);}
|
77 |
+
best[1]=q[1];}
|
78 |
+
return best;};},forward:function(gr,fname){return function(s){return gr[fname].call(this,s);};},replace:function(rule,repl){return function(s){var r=rule.call(this,s);return[repl,r[1]];};},process:function(rule,fn){return function(s){var r=rule.call(this,s);return[fn.call(this,r[0]),r[1]];};},min:function(min,rule){return function(s){var rx=rule.call(this,s);if(rx[0].length<min){throw new $P.Exception(s);}
|
79 |
+
return rx;};}};var _generator=function(op){return function(){var args=null,rx=[];if(arguments.length>1){args=Array.prototype.slice.call(arguments);}else if(arguments[0]instanceof Array){args=arguments[0];}
|
80 |
+
if(args){for(var i=0,px=args.shift();i<px.length;i++){args.unshift(px[i]);rx.push(op.apply(null,args));args.shift();return rx;}}else{return op.apply(null,arguments);}};};var gx="optional not ignore cache".split(/\s/);for(var i=0;i<gx.length;i++){_[gx[i]]=_generator(_[gx[i]]);}
|
81 |
+
var _vector=function(op){return function(){if(arguments[0]instanceof Array){return op.apply(null,arguments[0]);}else{return op.apply(null,arguments);}};};var vx="each any all".split(/\s/);for(var j=0;j<vx.length;j++){_[vx[j]]=_vector(_[vx[j]]);}}());(function(){var flattenAndCompact=function(ax){var rx=[];for(var i=0;i<ax.length;i++){if(ax[i]instanceof Array){rx=rx.concat(flattenAndCompact(ax[i]));}else{if(ax[i]){rx.push(ax[i]);}}}
|
82 |
+
return rx;};Date.Grammar={};Date.Translator={hour:function(s){return function(){this.hour=Number(s);};},minute:function(s){return function(){this.minute=Number(s);};},second:function(s){return function(){this.second=Number(s);};},meridian:function(s){return function(){this.meridian=s.slice(0,1).toLowerCase();};},timezone:function(s){return function(){var n=s.replace(/[^\d\+\-]/g,"");if(n.length){this.timezoneOffset=Number(n);}else{this.timezone=s.toLowerCase();}};},day:function(x){var s=x[0];return function(){this.day=Number(s.match(/\d+/)[0]);};},month:function(s){return function(){this.month=((s.length==3)?Date.getMonthNumberFromName(s):(Number(s)-1));};},year:function(s){return function(){var n=Number(s);this.year=((s.length>2)?n:(n+(((n+2000)<Date.CultureInfo.twoDigitYearMax)?2000:1900)));};},rday:function(s){return function(){switch(s){case"yesterday":this.days=-1;break;case"tomorrow":this.days=1;break;case"today":this.days=0;break;case"now":this.days=0;this.now=true;break;}};},finishExact:function(x){x=(x instanceof Array)?x:[x];var now=new Date();this.year=now.getFullYear();this.month=now.getMonth();this.day=1;this.hour=0;this.minute=0;this.second=0;for(var i=0;i<x.length;i++){if(x[i]){x[i].call(this);}}
|
83 |
+
this.hour=(this.meridian=="p"&&this.hour<13)?this.hour+12:this.hour;if(this.day>Date.getDaysInMonth(this.year,this.month)){throw new RangeError(this.day+" is not a valid value for days.");}
|
84 |
+
var r=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second);if(this.timezone){r.set({timezone:this.timezone});}else if(this.timezoneOffset){r.set({timezoneOffset:this.timezoneOffset});}
|
85 |
+
return r;},finish:function(x){x=(x instanceof Array)?flattenAndCompact(x):[x];if(x.length===0){return null;}
|
86 |
+
for(var i=0;i<x.length;i++){if(typeof x[i]=="function"){x[i].call(this);}}
|
87 |
+
if(this.now){return new Date();}
|
88 |
+
var today=Date.today();var method=null;var expression=!!(this.days!=null||this.orient||this.operator);if(expression){var gap,mod,orient;orient=((this.orient=="past"||this.operator=="subtract")?-1:1);if(this.weekday){this.unit="day";gap=(Date.getDayNumberFromName(this.weekday)-today.getDay());mod=7;this.days=gap?((gap+(orient*mod))%mod):(orient*mod);}
|
89 |
+
if(this.month){this.unit="month";gap=(this.month-today.getMonth());mod=12;this.months=gap?((gap+(orient*mod))%mod):(orient*mod);this.month=null;}
|
90 |
+
if(!this.unit){this.unit="day";}
|
91 |
+
if(this[this.unit+"s"]==null||this.operator!=null){if(!this.value){this.value=1;}
|
92 |
+
if(this.unit=="week"){this.unit="day";this.value=this.value*7;}
|
93 |
+
this[this.unit+"s"]=this.value*orient;}
|
94 |
+
return today.add(this);}else{if(this.meridian&&this.hour){this.hour=(this.hour<13&&this.meridian=="p")?this.hour+12:this.hour;}
|
95 |
+
if(this.weekday&&!this.day){this.day=(today.addDays((Date.getDayNumberFromName(this.weekday)-today.getDay()))).getDate();}
|
96 |
+
if(this.month&&!this.day){this.day=1;}
|
97 |
+
return today.set(this);}}};var _=Date.Parsing.Operators,g=Date.Grammar,t=Date.Translator,_fn;g.datePartDelimiter=_.rtoken(/^([\s\-\.\,\/\x27]+)/);g.timePartDelimiter=_.stoken(":");g.whiteSpace=_.rtoken(/^\s*/);g.generalDelimiter=_.rtoken(/^(([\s\,]|at|on)+)/);var _C={};g.ctoken=function(keys){var fn=_C[keys];if(!fn){var c=Date.CultureInfo.regexPatterns;var kx=keys.split(/\s+/),px=[];for(var i=0;i<kx.length;i++){px.push(_.replace(_.rtoken(c[kx[i]]),kx[i]));}
|
98 |
+
fn=_C[keys]=_.any.apply(null,px);}
|
99 |
+
return fn;};g.ctoken2=function(key){return _.rtoken(Date.CultureInfo.regexPatterns[key]);};g.h=_.cache(_.process(_.rtoken(/^(0[0-9]|1[0-2]|[1-9])/),t.hour));g.hh=_.cache(_.process(_.rtoken(/^(0[0-9]|1[0-2])/),t.hour));g.H=_.cache(_.process(_.rtoken(/^([0-1][0-9]|2[0-3]|[0-9])/),t.hour));g.HH=_.cache(_.process(_.rtoken(/^([0-1][0-9]|2[0-3])/),t.hour));g.m=_.cache(_.process(_.rtoken(/^([0-5][0-9]|[0-9])/),t.minute));g.mm=_.cache(_.process(_.rtoken(/^[0-5][0-9]/),t.minute));g.s=_.cache(_.process(_.rtoken(/^([0-5][0-9]|[0-9])/),t.second));g.ss=_.cache(_.process(_.rtoken(/^[0-5][0-9]/),t.second));g.hms=_.cache(_.sequence([g.H,g.mm,g.ss],g.timePartDelimiter));g.t=_.cache(_.process(g.ctoken2("shortMeridian"),t.meridian));g.tt=_.cache(_.process(g.ctoken2("longMeridian"),t.meridian));g.z=_.cache(_.process(_.rtoken(/^(\+|\-)?\s*\d\d\d\d?/),t.timezone));g.zz=_.cache(_.process(_.rtoken(/^(\+|\-)\s*\d\d\d\d/),t.timezone));g.zzz=_.cache(_.process(g.ctoken2("timezone"),t.timezone));g.timeSuffix=_.each(_.ignore(g.whiteSpace),_.set([g.tt,g.zzz]));g.time=_.each(_.optional(_.ignore(_.stoken("T"))),g.hms,g.timeSuffix);g.d=_.cache(_.process(_.each(_.rtoken(/^([0-2]\d|3[0-1]|\d)/),_.optional(g.ctoken2("ordinalSuffix"))),t.day));g.dd=_.cache(_.process(_.each(_.rtoken(/^([0-2]\d|3[0-1])/),_.optional(g.ctoken2("ordinalSuffix"))),t.day));g.ddd=g.dddd=_.cache(_.process(g.ctoken("sun mon tue wed thu fri sat"),function(s){return function(){this.weekday=s;};}));g.M=_.cache(_.process(_.rtoken(/^(1[0-2]|0\d|\d)/),t.month));g.MM=_.cache(_.process(_.rtoken(/^(1[0-2]|0\d)/),t.month));g.MMM=g.MMMM=_.cache(_.process(g.ctoken("jan feb mar apr may jun jul aug sep oct nov dec"),t.month));g.y=_.cache(_.process(_.rtoken(/^(\d\d?)/),t.year));g.yy=_.cache(_.process(_.rtoken(/^(\d\d)/),t.year));g.yyy=_.cache(_.process(_.rtoken(/^(\d\d?\d?\d?)/),t.year));g.yyyy=_.cache(_.process(_.rtoken(/^(\d\d\d\d)/),t.year));_fn=function(){return _.each(_.any.apply(null,arguments),_.not(g.ctoken2("timeContext")));};g.day=_fn(g.d,g.dd);g.month=_fn(g.M,g.MMM);g.year=_fn(g.yyyy,g.yy);g.orientation=_.process(g.ctoken("past future"),function(s){return function(){this.orient=s;};});g.operator=_.process(g.ctoken("add subtract"),function(s){return function(){this.operator=s;};});g.rday=_.process(g.ctoken("yesterday tomorrow today now"),t.rday);g.unit=_.process(g.ctoken("minute hour day week month year"),function(s){return function(){this.unit=s;};});g.value=_.process(_.rtoken(/^\d\d?(st|nd|rd|th)?/),function(s){return function(){this.value=s.replace(/\D/g,"");};});g.expression=_.set([g.rday,g.operator,g.value,g.unit,g.orientation,g.ddd,g.MMM]);_fn=function(){return _.set(arguments,g.datePartDelimiter);};g.mdy=_fn(g.ddd,g.month,g.day,g.year);g.ymd=_fn(g.ddd,g.year,g.month,g.day);g.dmy=_fn(g.ddd,g.day,g.month,g.year);g.date=function(s){return((g[Date.CultureInfo.dateElementOrder]||g.mdy).call(this,s));};g.format=_.process(_.many(_.any(_.process(_.rtoken(/^(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?)/),function(fmt){if(g[fmt]){return g[fmt];}else{throw Date.Parsing.Exception(fmt);}}),_.process(_.rtoken(/^[^dMyhHmstz]+/),function(s){return _.ignore(_.stoken(s));}))),function(rules){return _.process(_.each.apply(null,rules),t.finishExact);});var _F={};var _get=function(f){return _F[f]=(_F[f]||g.format(f)[0]);};g.formats=function(fx){if(fx instanceof Array){var rx=[];for(var i=0;i<fx.length;i++){rx.push(_get(fx[i]));}
|
100 |
+
return _.any.apply(null,rx);}else{return _get(fx);}};g._formats=g.formats(["yyyy-MM-ddTHH:mm:ss","ddd, MMM dd, yyyy H:mm:ss tt","ddd MMM d yyyy HH:mm:ss zzz","d"]);g._start=_.process(_.set([g.date,g.time,g.expression],g.generalDelimiter,g.whiteSpace),t.finish);g.start=function(s){try{var r=g._formats.call({},s);if(r[1].length===0){return r;}}catch(e){}
|
101 |
+
return g._start.call({},s);};}());Date._parse=Date.parse;Date.parse=function(s){var r=null;if(!s){return null;}
|
102 |
+
try{r=Date.Grammar.start.call({},s);}catch(e){return null;}
|
103 |
+
return((r[1].length===0)?r[0]:null);};Date.getParseFunction=function(fx){var fn=Date.Grammar.formats(fx);return function(s){var r=null;try{r=fn.call({},s);}catch(e){return null;}
|
104 |
+
return((r[1].length===0)?r[0]:null);};};Date.parseExact=function(s,fx){return Date.getParseFunction(fx)(s);};
|
lib/languages/date-pl-PL.js
ADDED
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Version: 1.0 Alpha-1
|
3 |
+
* Build Date: 13-Nov-2007
|
4 |
+
* Copyright (c) 2006-2007, Coolite Inc. (http://www.coolite.com/). All rights reserved.
|
5 |
+
* License: Licensed under The MIT License. See license.txt and http://www.datejs.com/license/.
|
6 |
+
* Website: http://www.datejs.com/ or http://www.coolite.com/datejs/
|
7 |
+
*/
|
8 |
+
Date.CultureInfo={name:"pl-PL",englishName:"Polish (Poland)",nativeName:"polski (Polska)",dayNames:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"],abbreviatedDayNames:["N","Pn","Wt","Śr","Cz","Pt","So"],shortestDayNames:["N","Pn","Wt","Śr","Cz","Pt","So"],firstLetterDayNames:["N","P","W","Ś","C","P","S"],monthNames:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],abbreviatedMonthNames:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],amDesignator:"",pmDesignator:"",firstDayOfWeek:1,twoDigitYearMax:2029,dateElementOrder:"ymd",formatPatterns:{shortDate:"yyyy-MM-dd",longDate:"d MMMM yyyy",shortTime:"HH:mm",longTime:"HH:mm:ss",fullDateTime:"d MMMM yyyy HH:mm:ss",sortableDateTime:"yyyy-MM-ddTHH:mm:ss",universalSortableDateTime:"yyyy-MM-dd HH:mm:ssZ",rfc1123:"ddd, dd MMM yyyy HH:mm:ss GMT",monthDay:"d MMMM",yearMonth:"MMMM yyyy"},regexPatterns:{jan:/^sty(czeń)?/i,feb:/^lut(y)?/i,mar:/^mar(zec)?/i,apr:/^kwi(ecień)?/i,may:/^maj/i,jun:/^cze(rwiec)?/i,jul:/^lip(iec)?/i,aug:/^sie(rpień)?/i,sep:/^wrz(esień)?/i,oct:/^paź(dziernik)?/i,nov:/^lis(topad)?/i,dec:/^gru(dzień)?/i,sun:/^niedziela/i,mon:/^poniedziałek/i,tue:/^wtorek/i,wed:/^środa/i,thu:/^czwartek/i,fri:/^piątek/i,sat:/^sobota/i,future:/^next/i,past:/^last|past|prev(ious)?/i,add:/^(\+|after|from)/i,subtract:/^(\-|before|ago)/i,yesterday:/^yesterday/i,today:/^t(oday)?/i,tomorrow:/^tomorrow/i,now:/^n(ow)?/i,millisecond:/^ms|milli(second)?s?/i,second:/^sec(ond)?s?/i,minute:/^min(ute)?s?/i,hour:/^h(ou)?rs?/i,week:/^w(ee)?k/i,month:/^m(o(nth)?s?)?/i,day:/^d(ays?)?/i,year:/^y((ea)?rs?)?/i,shortMeridian:/^(a|p)/i,longMeridian:/^(a\.?m?\.?|p\.?m?\.?)/i,timezone:/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\s*(\+|\-)\s*\d\d\d\d?)|gmt)/i,ordinalSuffix:/^\s*(st|nd|rd|th)/i,timeContext:/^\s*(\:|a|p)/i},abbreviatedTimeZoneStandard:{GMT:"-000",EST:"-0400",CST:"-0500",MST:"-0600",PST:"-0700"},abbreviatedTimeZoneDST:{GMT:"-000",EDT:"-0500",CDT:"-0600",MDT:"-0700",PDT:"-0800"}};
|
9 |
+
Date.getMonthNumberFromName=function(name){var n=Date.CultureInfo.monthNames,m=Date.CultureInfo.abbreviatedMonthNames,s=name.toLowerCase();for(var i=0;i<n.length;i++){if(n[i].toLowerCase()==s||m[i].toLowerCase()==s){return i;}}
|
10 |
+
return-1;};Date.getDayNumberFromName=function(name){var n=Date.CultureInfo.dayNames,m=Date.CultureInfo.abbreviatedDayNames,o=Date.CultureInfo.shortestDayNames,s=name.toLowerCase();for(var i=0;i<n.length;i++){if(n[i].toLowerCase()==s||m[i].toLowerCase()==s){return i;}}
|
11 |
+
return-1;};Date.isLeapYear=function(year){return(((year%4===0)&&(year%100!==0))||(year%400===0));};Date.getDaysInMonth=function(year,month){return[31,(Date.isLeapYear(year)?29:28),31,30,31,30,31,31,30,31,30,31][month];};Date.getTimezoneOffset=function(s,dst){return(dst||false)?Date.CultureInfo.abbreviatedTimeZoneDST[s.toUpperCase()]:Date.CultureInfo.abbreviatedTimeZoneStandard[s.toUpperCase()];};Date.getTimezoneAbbreviation=function(offset,dst){var n=(dst||false)?Date.CultureInfo.abbreviatedTimeZoneDST:Date.CultureInfo.abbreviatedTimeZoneStandard,p;for(p in n){if(n[p]===offset){return p;}}
|
12 |
+
return null;};Date.prototype.clone=function(){return new Date(this.getTime());};Date.prototype.compareTo=function(date){if(isNaN(this)){throw new Error(this);}
|
13 |
+
if(date instanceof Date&&!isNaN(date)){return(this>date)?1:(this<date)?-1:0;}else{throw new TypeError(date);}};Date.prototype.equals=function(date){return(this.compareTo(date)===0);};Date.prototype.between=function(start,end){var t=this.getTime();return t>=start.getTime()&&t<=end.getTime();};Date.prototype.addMilliseconds=function(value){this.setMilliseconds(this.getMilliseconds()+value);return this;};Date.prototype.addSeconds=function(value){return this.addMilliseconds(value*1000);};Date.prototype.addMinutes=function(value){return this.addMilliseconds(value*60000);};Date.prototype.addHours=function(value){return this.addMilliseconds(value*3600000);};Date.prototype.addDays=function(value){return this.addMilliseconds(value*86400000);};Date.prototype.addWeeks=function(value){return this.addMilliseconds(value*604800000);};Date.prototype.addMonths=function(value){var n=this.getDate();this.setDate(1);this.setMonth(this.getMonth()+value);this.setDate(Math.min(n,this.getDaysInMonth()));return this;};Date.prototype.addYears=function(value){return this.addMonths(value*12);};Date.prototype.add=function(config){if(typeof config=="number"){this._orient=config;return this;}
|
14 |
+
var x=config;if(x.millisecond||x.milliseconds){this.addMilliseconds(x.millisecond||x.milliseconds);}
|
15 |
+
if(x.second||x.seconds){this.addSeconds(x.second||x.seconds);}
|
16 |
+
if(x.minute||x.minutes){this.addMinutes(x.minute||x.minutes);}
|
17 |
+
if(x.hour||x.hours){this.addHours(x.hour||x.hours);}
|
18 |
+
if(x.month||x.months){this.addMonths(x.month||x.months);}
|
19 |
+
if(x.year||x.years){this.addYears(x.year||x.years);}
|
20 |
+
if(x.day||x.days){this.addDays(x.day||x.days);}
|
21 |
+
return this;};Date._validate=function(value,min,max,name){if(typeof value!="number"){throw new TypeError(value+" is not a Number.");}else if(value<min||value>max){throw new RangeError(value+" is not a valid value for "+name+".");}
|
22 |
+
return true;};Date.validateMillisecond=function(n){return Date._validate(n,0,999,"milliseconds");};Date.validateSecond=function(n){return Date._validate(n,0,59,"seconds");};Date.validateMinute=function(n){return Date._validate(n,0,59,"minutes");};Date.validateHour=function(n){return Date._validate(n,0,23,"hours");};Date.validateDay=function(n,year,month){return Date._validate(n,1,Date.getDaysInMonth(year,month),"days");};Date.validateMonth=function(n){return Date._validate(n,0,11,"months");};Date.validateYear=function(n){return Date._validate(n,1,9999,"seconds");};Date.prototype.set=function(config){var x=config;if(!x.millisecond&&x.millisecond!==0){x.millisecond=-1;}
|
23 |
+
if(!x.second&&x.second!==0){x.second=-1;}
|
24 |
+
if(!x.minute&&x.minute!==0){x.minute=-1;}
|
25 |
+
if(!x.hour&&x.hour!==0){x.hour=-1;}
|
26 |
+
if(!x.day&&x.day!==0){x.day=-1;}
|
27 |
+
if(!x.month&&x.month!==0){x.month=-1;}
|
28 |
+
if(!x.year&&x.year!==0){x.year=-1;}
|
29 |
+
if(x.millisecond!=-1&&Date.validateMillisecond(x.millisecond)){this.addMilliseconds(x.millisecond-this.getMilliseconds());}
|
30 |
+
if(x.second!=-1&&Date.validateSecond(x.second)){this.addSeconds(x.second-this.getSeconds());}
|
31 |
+
if(x.minute!=-1&&Date.validateMinute(x.minute)){this.addMinutes(x.minute-this.getMinutes());}
|
32 |
+
if(x.hour!=-1&&Date.validateHour(x.hour)){this.addHours(x.hour-this.getHours());}
|
33 |
+
if(x.month!==-1&&Date.validateMonth(x.month)){this.addMonths(x.month-this.getMonth());}
|
34 |
+
if(x.year!=-1&&Date.validateYear(x.year)){this.addYears(x.year-this.getFullYear());}
|
35 |
+
if(x.day!=-1&&Date.validateDay(x.day,this.getFullYear(),this.getMonth())){this.addDays(x.day-this.getDate());}
|
36 |
+
if(x.timezone){this.setTimezone(x.timezone);}
|
37 |
+
if(x.timezoneOffset){this.setTimezoneOffset(x.timezoneOffset);}
|
38 |
+
return this;};Date.prototype.clearTime=function(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);return this;};Date.prototype.isLeapYear=function(){var y=this.getFullYear();return(((y%4===0)&&(y%100!==0))||(y%400===0));};Date.prototype.isWeekday=function(){return!(this.is().sat()||this.is().sun());};Date.prototype.getDaysInMonth=function(){return Date.getDaysInMonth(this.getFullYear(),this.getMonth());};Date.prototype.moveToFirstDayOfMonth=function(){return this.set({day:1});};Date.prototype.moveToLastDayOfMonth=function(){return this.set({day:this.getDaysInMonth()});};Date.prototype.moveToDayOfWeek=function(day,orient){var diff=(day-this.getDay()+7*(orient||+1))%7;return this.addDays((diff===0)?diff+=7*(orient||+1):diff);};Date.prototype.moveToMonth=function(month,orient){var diff=(month-this.getMonth()+12*(orient||+1))%12;return this.addMonths((diff===0)?diff+=12*(orient||+1):diff);};Date.prototype.getDayOfYear=function(){return Math.floor((this-new Date(this.getFullYear(),0,1))/86400000);};Date.prototype.getWeekOfYear=function(firstDayOfWeek){var y=this.getFullYear(),m=this.getMonth(),d=this.getDate();var dow=firstDayOfWeek||Date.CultureInfo.firstDayOfWeek;var offset=7+1-new Date(y,0,1).getDay();if(offset==8){offset=1;}
|
39 |
+
var daynum=((Date.UTC(y,m,d,0,0,0)-Date.UTC(y,0,1,0,0,0))/86400000)+1;var w=Math.floor((daynum-offset+7)/7);if(w===dow){y--;var prevOffset=7+1-new Date(y,0,1).getDay();if(prevOffset==2||prevOffset==8){w=53;}else{w=52;}}
|
40 |
+
return w;};Date.prototype.isDST=function(){console.log('isDST');return this.toString().match(/(E|C|M|P)(S|D)T/)[2]=="D";};Date.prototype.getTimezone=function(){return Date.getTimezoneAbbreviation(this.getUTCOffset,this.isDST());};Date.prototype.setTimezoneOffset=function(s){var here=this.getTimezoneOffset(),there=Number(s)*-6/10;this.addMinutes(there-here);return this;};Date.prototype.setTimezone=function(s){return this.setTimezoneOffset(Date.getTimezoneOffset(s));};Date.prototype.getUTCOffset=function(){var n=this.getTimezoneOffset()*-10/6,r;if(n<0){r=(n-10000).toString();return r[0]+r.substr(2);}else{r=(n+10000).toString();return"+"+r.substr(1);}};Date.prototype.getDayName=function(abbrev){return abbrev?Date.CultureInfo.abbreviatedDayNames[this.getDay()]:Date.CultureInfo.dayNames[this.getDay()];};Date.prototype.getMonthName=function(abbrev){return abbrev?Date.CultureInfo.abbreviatedMonthNames[this.getMonth()]:Date.CultureInfo.monthNames[this.getMonth()];};Date.prototype._toString=Date.prototype.toString;Date.prototype.toString=function(format){var self=this;var p=function p(s){return(s.toString().length==1)?"0"+s:s;};return format?format.replace(/dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?/g,function(format){switch(format){case"hh":return p(self.getHours()<13?self.getHours():(self.getHours()-12));case"h":return self.getHours()<13?self.getHours():(self.getHours()-12);case"HH":return p(self.getHours());case"H":return self.getHours();case"mm":return p(self.getMinutes());case"m":return self.getMinutes();case"ss":return p(self.getSeconds());case"s":return self.getSeconds();case"yyyy":return self.getFullYear();case"yy":return self.getFullYear().toString().substring(2,4);case"dddd":return self.getDayName();case"ddd":return self.getDayName(true);case"dd":return p(self.getDate());case"d":return self.getDate().toString();case"MMMM":return self.getMonthName();case"MMM":return self.getMonthName(true);case"MM":return p((self.getMonth()+1));case"M":return self.getMonth()+1;case"t":return self.getHours()<12?Date.CultureInfo.amDesignator.substring(0,1):Date.CultureInfo.pmDesignator.substring(0,1);case"tt":return self.getHours()<12?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator;case"zzz":case"zz":case"z":return"";}}):this._toString();};
|
41 |
+
Date.now=function(){return new Date();};Date.today=function(){return Date.now().clearTime();};Date.prototype._orient=+1;Date.prototype.next=function(){this._orient=+1;return this;};Date.prototype.last=Date.prototype.prev=Date.prototype.previous=function(){this._orient=-1;return this;};Date.prototype._is=false;Date.prototype.is=function(){this._is=true;return this;};Number.prototype._dateElement="day";Number.prototype.fromNow=function(){var c={};c[this._dateElement]=this;return Date.now().add(c);};Number.prototype.ago=function(){var c={};c[this._dateElement]=this*-1;return Date.now().add(c);};(function(){var $D=Date.prototype,$N=Number.prototype;var dx=("sunday monday tuesday wednesday thursday friday saturday").split(/\s/),mx=("january february march april may june july august september october november december").split(/\s/),px=("Millisecond Second Minute Hour Day Week Month Year").split(/\s/),de;var df=function(n){return function(){if(this._is){this._is=false;return this.getDay()==n;}
|
42 |
+
return this.moveToDayOfWeek(n,this._orient);};};for(var i=0;i<dx.length;i++){$D[dx[i]]=$D[dx[i].substring(0,3)]=df(i);}
|
43 |
+
var mf=function(n){return function(){if(this._is){this._is=false;return this.getMonth()===n;}
|
44 |
+
return this.moveToMonth(n,this._orient);};};for(var j=0;j<mx.length;j++){$D[mx[j]]=$D[mx[j].substring(0,3)]=mf(j);}
|
45 |
+
var ef=function(j){return function(){if(j.substring(j.length-1)!="s"){j+="s";}
|
46 |
+
return this["add"+j](this._orient);};};var nf=function(n){return function(){this._dateElement=n;return this;};};for(var k=0;k<px.length;k++){de=px[k].toLowerCase();$D[de]=$D[de+"s"]=ef(px[k]);$N[de]=$N[de+"s"]=nf(de);}}());Date.prototype.toJSONString=function(){return this.toString("yyyy-MM-ddThh:mm:ssZ");};Date.prototype.toShortDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortDatePattern);};Date.prototype.toLongDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.longDatePattern);};Date.prototype.toShortTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortTimePattern);};Date.prototype.toLongTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.longTimePattern);};Date.prototype.getOrdinal=function(){switch(this.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th";}};
|
47 |
+
(function(){Date.Parsing={Exception:function(s){this.message="Parse error at '"+s.substring(0,10)+" ...'";}};var $P=Date.Parsing;var _=$P.Operators={rtoken:function(r){return function(s){var mx=s.match(r);if(mx){return([mx[0],s.substring(mx[0].length)]);}else{throw new $P.Exception(s);}};},token:function(s){return function(s){return _.rtoken(new RegExp("^\s*"+s+"\s*"))(s);};},stoken:function(s){return _.rtoken(new RegExp("^"+s));},until:function(p){return function(s){var qx=[],rx=null;while(s.length){try{rx=p.call(this,s);}catch(e){qx.push(rx[0]);s=rx[1];continue;}
|
48 |
+
break;}
|
49 |
+
return[qx,s];};},many:function(p){return function(s){var rx=[],r=null;while(s.length){try{r=p.call(this,s);}catch(e){return[rx,s];}
|
50 |
+
rx.push(r[0]);s=r[1];}
|
51 |
+
return[rx,s];};},optional:function(p){return function(s){var r=null;try{r=p.call(this,s);}catch(e){return[null,s];}
|
52 |
+
return[r[0],r[1]];};},not:function(p){return function(s){try{p.call(this,s);}catch(e){return[null,s];}
|
53 |
+
throw new $P.Exception(s);};},ignore:function(p){return p?function(s){var r=null;r=p.call(this,s);return[null,r[1]];}:null;},product:function(){var px=arguments[0],qx=Array.prototype.slice.call(arguments,1),rx=[];for(var i=0;i<px.length;i++){rx.push(_.each(px[i],qx));}
|
54 |
+
return rx;},cache:function(rule){var cache={},r=null;return function(s){try{r=cache[s]=(cache[s]||rule.call(this,s));}catch(e){r=cache[s]=e;}
|
55 |
+
if(r instanceof $P.Exception){throw r;}else{return r;}};},any:function(){var px=arguments;return function(s){var r=null;for(var i=0;i<px.length;i++){if(px[i]==null){continue;}
|
56 |
+
try{r=(px[i].call(this,s));}catch(e){r=null;}
|
57 |
+
if(r){return r;}}
|
58 |
+
throw new $P.Exception(s);};},each:function(){var px=arguments;return function(s){var rx=[],r=null;for(var i=0;i<px.length;i++){if(px[i]==null){continue;}
|
59 |
+
try{r=(px[i].call(this,s));}catch(e){throw new $P.Exception(s);}
|
60 |
+
rx.push(r[0]);s=r[1];}
|
61 |
+
return[rx,s];};},all:function(){var px=arguments,_=_;return _.each(_.optional(px));},sequence:function(px,d,c){d=d||_.rtoken(/^\s*/);c=c||null;if(px.length==1){return px[0];}
|
62 |
+
return function(s){var r=null,q=null;var rx=[];for(var i=0;i<px.length;i++){try{r=px[i].call(this,s);}catch(e){break;}
|
63 |
+
rx.push(r[0]);try{q=d.call(this,r[1]);}catch(ex){q=null;break;}
|
64 |
+
s=q[1];}
|
65 |
+
if(!r){throw new $P.Exception(s);}
|
66 |
+
if(q){throw new $P.Exception(q[1]);}
|
67 |
+
if(c){try{r=c.call(this,r[1]);}catch(ey){throw new $P.Exception(r[1]);}}
|
68 |
+
return[rx,(r?r[1]:s)];};},between:function(d1,p,d2){d2=d2||d1;var _fn=_.each(_.ignore(d1),p,_.ignore(d2));return function(s){var rx=_fn.call(this,s);return[[rx[0][0],r[0][2]],rx[1]];};},list:function(p,d,c){d=d||_.rtoken(/^\s*/);c=c||null;return(p instanceof Array?_.each(_.product(p.slice(0,-1),_.ignore(d)),p.slice(-1),_.ignore(c)):_.each(_.many(_.each(p,_.ignore(d))),px,_.ignore(c)));},set:function(px,d,c){d=d||_.rtoken(/^\s*/);c=c||null;return function(s){var r=null,p=null,q=null,rx=null,best=[[],s],last=false;for(var i=0;i<px.length;i++){q=null;p=null;r=null;last=(px.length==1);try{r=px[i].call(this,s);}catch(e){continue;}
|
69 |
+
rx=[[r[0]],r[1]];if(r[1].length>0&&!last){try{q=d.call(this,r[1]);}catch(ex){last=true;}}else{last=true;}
|
70 |
+
if(!last&&q[1].length===0){last=true;}
|
71 |
+
if(!last){var qx=[];for(var j=0;j<px.length;j++){if(i!=j){qx.push(px[j]);}}
|
72 |
+
p=_.set(qx,d).call(this,q[1]);if(p[0].length>0){rx[0]=rx[0].concat(p[0]);rx[1]=p[1];}}
|
73 |
+
if(rx[1].length<best[1].length){best=rx;}
|
74 |
+
if(best[1].length===0){break;}}
|
75 |
+
if(best[0].length===0){return best;}
|
76 |
+
if(c){try{q=c.call(this,best[1]);}catch(ey){throw new $P.Exception(best[1]);}
|
77 |
+
best[1]=q[1];}
|
78 |
+
return best;};},forward:function(gr,fname){return function(s){return gr[fname].call(this,s);};},replace:function(rule,repl){return function(s){var r=rule.call(this,s);return[repl,r[1]];};},process:function(rule,fn){return function(s){var r=rule.call(this,s);return[fn.call(this,r[0]),r[1]];};},min:function(min,rule){return function(s){var rx=rule.call(this,s);if(rx[0].length<min){throw new $P.Exception(s);}
|
79 |
+
return rx;};}};var _generator=function(op){return function(){var args=null,rx=[];if(arguments.length>1){args=Array.prototype.slice.call(arguments);}else if(arguments[0]instanceof Array){args=arguments[0];}
|
80 |
+
if(args){for(var i=0,px=args.shift();i<px.length;i++){args.unshift(px[i]);rx.push(op.apply(null,args));args.shift();return rx;}}else{return op.apply(null,arguments);}};};var gx="optional not ignore cache".split(/\s/);for(var i=0;i<gx.length;i++){_[gx[i]]=_generator(_[gx[i]]);}
|
81 |
+
var _vector=function(op){return function(){if(arguments[0]instanceof Array){return op.apply(null,arguments[0]);}else{return op.apply(null,arguments);}};};var vx="each any all".split(/\s/);for(var j=0;j<vx.length;j++){_[vx[j]]=_vector(_[vx[j]]);}}());(function(){var flattenAndCompact=function(ax){var rx=[];for(var i=0;i<ax.length;i++){if(ax[i]instanceof Array){rx=rx.concat(flattenAndCompact(ax[i]));}else{if(ax[i]){rx.push(ax[i]);}}}
|
82 |
+
return rx;};Date.Grammar={};Date.Translator={hour:function(s){return function(){this.hour=Number(s);};},minute:function(s){return function(){this.minute=Number(s);};},second:function(s){return function(){this.second=Number(s);};},meridian:function(s){return function(){this.meridian=s.slice(0,1).toLowerCase();};},timezone:function(s){return function(){var n=s.replace(/[^\d\+\-]/g,"");if(n.length){this.timezoneOffset=Number(n);}else{this.timezone=s.toLowerCase();}};},day:function(x){var s=x[0];return function(){this.day=Number(s.match(/\d+/)[0]);};},month:function(s){return function(){this.month=((s.length==3)?Date.getMonthNumberFromName(s):(Number(s)-1));};},year:function(s){return function(){var n=Number(s);this.year=((s.length>2)?n:(n+(((n+2000)<Date.CultureInfo.twoDigitYearMax)?2000:1900)));};},rday:function(s){return function(){switch(s){case"yesterday":this.days=-1;break;case"tomorrow":this.days=1;break;case"today":this.days=0;break;case"now":this.days=0;this.now=true;break;}};},finishExact:function(x){x=(x instanceof Array)?x:[x];var now=new Date();this.year=now.getFullYear();this.month=now.getMonth();this.day=1;this.hour=0;this.minute=0;this.second=0;for(var i=0;i<x.length;i++){if(x[i]){x[i].call(this);}}
|
83 |
+
this.hour=(this.meridian=="p"&&this.hour<13)?this.hour+12:this.hour;if(this.day>Date.getDaysInMonth(this.year,this.month)){throw new RangeError(this.day+" is not a valid value for days.");}
|
84 |
+
var r=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second);if(this.timezone){r.set({timezone:this.timezone});}else if(this.timezoneOffset){r.set({timezoneOffset:this.timezoneOffset});}
|
85 |
+
return r;},finish:function(x){x=(x instanceof Array)?flattenAndCompact(x):[x];if(x.length===0){return null;}
|
86 |
+
for(var i=0;i<x.length;i++){if(typeof x[i]=="function"){x[i].call(this);}}
|
87 |
+
if(this.now){return new Date();}
|
88 |
+
var today=Date.today();var method=null;var expression=!!(this.days!=null||this.orient||this.operator);if(expression){var gap,mod,orient;orient=((this.orient=="past"||this.operator=="subtract")?-1:1);if(this.weekday){this.unit="day";gap=(Date.getDayNumberFromName(this.weekday)-today.getDay());mod=7;this.days=gap?((gap+(orient*mod))%mod):(orient*mod);}
|
89 |
+
if(this.month){this.unit="month";gap=(this.month-today.getMonth());mod=12;this.months=gap?((gap+(orient*mod))%mod):(orient*mod);this.month=null;}
|
90 |
+
if(!this.unit){this.unit="day";}
|
91 |
+
if(this[this.unit+"s"]==null||this.operator!=null){if(!this.value){this.value=1;}
|
92 |
+
if(this.unit=="week"){this.unit="day";this.value=this.value*7;}
|
93 |
+
this[this.unit+"s"]=this.value*orient;}
|
94 |
+
return today.add(this);}else{if(this.meridian&&this.hour){this.hour=(this.hour<13&&this.meridian=="p")?this.hour+12:this.hour;}
|
95 |
+
if(this.weekday&&!this.day){this.day=(today.addDays((Date.getDayNumberFromName(this.weekday)-today.getDay()))).getDate();}
|
96 |
+
if(this.month&&!this.day){this.day=1;}
|
97 |
+
return today.set(this);}}};var _=Date.Parsing.Operators,g=Date.Grammar,t=Date.Translator,_fn;g.datePartDelimiter=_.rtoken(/^([\s\-\.\,\/\x27]+)/);g.timePartDelimiter=_.stoken(":");g.whiteSpace=_.rtoken(/^\s*/);g.generalDelimiter=_.rtoken(/^(([\s\,]|at|on)+)/);var _C={};g.ctoken=function(keys){var fn=_C[keys];if(!fn){var c=Date.CultureInfo.regexPatterns;var kx=keys.split(/\s+/),px=[];for(var i=0;i<kx.length;i++){px.push(_.replace(_.rtoken(c[kx[i]]),kx[i]));}
|
98 |
+
fn=_C[keys]=_.any.apply(null,px);}
|
99 |
+
return fn;};g.ctoken2=function(key){return _.rtoken(Date.CultureInfo.regexPatterns[key]);};g.h=_.cache(_.process(_.rtoken(/^(0[0-9]|1[0-2]|[1-9])/),t.hour));g.hh=_.cache(_.process(_.rtoken(/^(0[0-9]|1[0-2])/),t.hour));g.H=_.cache(_.process(_.rtoken(/^([0-1][0-9]|2[0-3]|[0-9])/),t.hour));g.HH=_.cache(_.process(_.rtoken(/^([0-1][0-9]|2[0-3])/),t.hour));g.m=_.cache(_.process(_.rtoken(/^([0-5][0-9]|[0-9])/),t.minute));g.mm=_.cache(_.process(_.rtoken(/^[0-5][0-9]/),t.minute));g.s=_.cache(_.process(_.rtoken(/^([0-5][0-9]|[0-9])/),t.second));g.ss=_.cache(_.process(_.rtoken(/^[0-5][0-9]/),t.second));g.hms=_.cache(_.sequence([g.H,g.mm,g.ss],g.timePartDelimiter));g.t=_.cache(_.process(g.ctoken2("shortMeridian"),t.meridian));g.tt=_.cache(_.process(g.ctoken2("longMeridian"),t.meridian));g.z=_.cache(_.process(_.rtoken(/^(\+|\-)?\s*\d\d\d\d?/),t.timezone));g.zz=_.cache(_.process(_.rtoken(/^(\+|\-)\s*\d\d\d\d/),t.timezone));g.zzz=_.cache(_.process(g.ctoken2("timezone"),t.timezone));g.timeSuffix=_.each(_.ignore(g.whiteSpace),_.set([g.tt,g.zzz]));g.time=_.each(_.optional(_.ignore(_.stoken("T"))),g.hms,g.timeSuffix);g.d=_.cache(_.process(_.each(_.rtoken(/^([0-2]\d|3[0-1]|\d)/),_.optional(g.ctoken2("ordinalSuffix"))),t.day));g.dd=_.cache(_.process(_.each(_.rtoken(/^([0-2]\d|3[0-1])/),_.optional(g.ctoken2("ordinalSuffix"))),t.day));g.ddd=g.dddd=_.cache(_.process(g.ctoken("sun mon tue wed thu fri sat"),function(s){return function(){this.weekday=s;};}));g.M=_.cache(_.process(_.rtoken(/^(1[0-2]|0\d|\d)/),t.month));g.MM=_.cache(_.process(_.rtoken(/^(1[0-2]|0\d)/),t.month));g.MMM=g.MMMM=_.cache(_.process(g.ctoken("jan feb mar apr may jun jul aug sep oct nov dec"),t.month));g.y=_.cache(_.process(_.rtoken(/^(\d\d?)/),t.year));g.yy=_.cache(_.process(_.rtoken(/^(\d\d)/),t.year));g.yyy=_.cache(_.process(_.rtoken(/^(\d\d?\d?\d?)/),t.year));g.yyyy=_.cache(_.process(_.rtoken(/^(\d\d\d\d)/),t.year));_fn=function(){return _.each(_.any.apply(null,arguments),_.not(g.ctoken2("timeContext")));};g.day=_fn(g.d,g.dd);g.month=_fn(g.M,g.MMM);g.year=_fn(g.yyyy,g.yy);g.orientation=_.process(g.ctoken("past future"),function(s){return function(){this.orient=s;};});g.operator=_.process(g.ctoken("add subtract"),function(s){return function(){this.operator=s;};});g.rday=_.process(g.ctoken("yesterday tomorrow today now"),t.rday);g.unit=_.process(g.ctoken("minute hour day week month year"),function(s){return function(){this.unit=s;};});g.value=_.process(_.rtoken(/^\d\d?(st|nd|rd|th)?/),function(s){return function(){this.value=s.replace(/\D/g,"");};});g.expression=_.set([g.rday,g.operator,g.value,g.unit,g.orientation,g.ddd,g.MMM]);_fn=function(){return _.set(arguments,g.datePartDelimiter);};g.mdy=_fn(g.ddd,g.month,g.day,g.year);g.ymd=_fn(g.ddd,g.year,g.month,g.day);g.dmy=_fn(g.ddd,g.day,g.month,g.year);g.date=function(s){return((g[Date.CultureInfo.dateElementOrder]||g.mdy).call(this,s));};g.format=_.process(_.many(_.any(_.process(_.rtoken(/^(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?)/),function(fmt){if(g[fmt]){return g[fmt];}else{throw Date.Parsing.Exception(fmt);}}),_.process(_.rtoken(/^[^dMyhHmstz]+/),function(s){return _.ignore(_.stoken(s));}))),function(rules){return _.process(_.each.apply(null,rules),t.finishExact);});var _F={};var _get=function(f){return _F[f]=(_F[f]||g.format(f)[0]);};g.formats=function(fx){if(fx instanceof Array){var rx=[];for(var i=0;i<fx.length;i++){rx.push(_get(fx[i]));}
|
100 |
+
return _.any.apply(null,rx);}else{return _get(fx);}};g._formats=g.formats(["yyyy-MM-ddTHH:mm:ss","ddd, MMM dd, yyyy H:mm:ss tt","ddd MMM d yyyy HH:mm:ss zzz","d"]);g._start=_.process(_.set([g.date,g.time,g.expression],g.generalDelimiter,g.whiteSpace),t.finish);g.start=function(s){try{var r=g._formats.call({},s);if(r[1].length===0){return r;}}catch(e){}
|
101 |
+
return g._start.call({},s);};}());Date._parse=Date.parse;Date.parse=function(s){var r=null;if(!s){return null;}
|
102 |
+
try{r=Date.Grammar.start.call({},s);}catch(e){return null;}
|
103 |
+
return((r[1].length===0)?r[0]:null);};Date.getParseFunction=function(fx){var fn=Date.Grammar.formats(fx);return function(s){var r=null;try{r=fn.call({},s);}catch(e){return null;}
|
104 |
+
return((r[1].length===0)?r[0]:null);};};Date.parseExact=function(s,fx){return Date.getParseFunction(fx)(s);};
|
lib/lib.txt
CHANGED
@@ -19,6 +19,11 @@ JQuery tools supports the scrolling.
|
|
19 |
http://flowplayer.org/tools/index.html
|
20 |
MIT license
|
21 |
|
|
|
|
|
|
|
|
|
|
|
22 |
timePicker.css
|
23 |
jquery.timepicker.js
|
24 |
The JQuery time picker shows a nice time picker when you edit the post time.
|
19 |
http://flowplayer.org/tools/index.html
|
20 |
MIT license
|
21 |
|
22 |
+
jquery.cookie.js
|
23 |
+
A nice utility for setting and reading cookies.
|
24 |
+
http://plugins.jquery.com/project/Cookie
|
25 |
+
MIT license
|
26 |
+
|
27 |
timePicker.css
|
28 |
jquery.timepicker.js
|
29 |
The JQuery time picker shows a nice time picker when you edit the post time.
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
=== Editorial Calendar ===
|
2 |
Contributors: cvernon, justinstresslimit, MaryVogt, zgrossbart
|
3 |
Tags: posts, post, calendar, AJAX, admin, administration
|
4 |
Requires at least: 2.8.5
|
5 |
Tested up to: 2.9.2
|
6 |
-
Stable tag: 0.
|
7 |
|
8 |
The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
|
9 |
|
@@ -40,6 +40,18 @@ The editorial calendar is getting closer and closer to version 1.0. We have a f
|
|
40 |
|
41 |
Check out our demo installation at <a href="http://www.zackgrossbart.com/extras/sandbox/wp-admin/edit.php?page=cal">Zack's WordPress Sandbox</a>.
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
= How do I navigate in the calendar? =
|
44 |
|
45 |
You can move around in the calendar using the arrows next to the months at the top or your mouse wheel, You can also move using your keyboard:
|
@@ -51,9 +63,17 @@ You can move around in the calendar using the arrows next to the months at the t
|
|
51 |
<li>Jump multiple weeks into the future - Page Down or Ctrl+Down Arrow</li>
|
52 |
</ul>
|
53 |
|
|
|
|
|
|
|
|
|
54 |
= What languages does the calendar support? =
|
55 |
|
56 |
-
The calendar is available in English, French,
|
|
|
|
|
|
|
|
|
57 |
|
58 |
= Can I add new languages? =
|
59 |
|
@@ -63,7 +83,6 @@ Yes please! We are looking for translators. It only takes about 20 minutes. I
|
|
63 |
|
64 |
The editorial calendar appears differently based on your permissions. Administrators and Editors can use every feature available in the calendar. Authors can use the calendar to edit and move their own posts, but other people's posts are read-only. Contributors and Subscribers can't see the calendar.
|
65 |
|
66 |
-
|
67 |
= Can I use the editorial calendar with pages? =
|
68 |
|
69 |
Right now the calendar only supports posts. We're considering adding pages. If you would like to see support for pages let us know.
|
@@ -81,10 +100,6 @@ No. The calendar is only an administration tool. None of your readers will kno
|
|
81 |
|
82 |
Moving published posts can cause problems with some RSS feeds and is generally not a very popular thing to do. The calendar only allows you to move scheduled and draft posts.
|
83 |
|
84 |
-
= Why doesn't the calendar work with Live Countdown Timer? =
|
85 |
-
|
86 |
-
If you use the plugin <a href="http://wordpress.org/extend/plugins/live-countdown-timer/">Live Countdown Timer</a> the editorial calendar will not work. There is a conflict in some JavaScript libraries. They're working on it. For now you must disable Live Countdown Timer if you want to use the WordPress Editorial Calendar.
|
87 |
-
|
88 |
== Screenshots ==
|
89 |
|
90 |
1. The calendar integrates seamlessly into the WordPress administration console
|
@@ -95,6 +110,15 @@ If you use the plugin <a href="http://wordpress.org/extend/plugins/live-countdow
|
|
95 |
|
96 |
== Changelog ==
|
97 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
= 0.7 =
|
99 |
* You can now edit post contents, title, and time directly in the calendar. You can also schedule a post for publication.
|
100 |
* The layout of posts in the calendar has been optimized to you can see the maximum number of posts in a single day without scrolling.
|
1 |
+
=== Editorial Calendar ===
|
2 |
Contributors: cvernon, justinstresslimit, MaryVogt, zgrossbart
|
3 |
Tags: posts, post, calendar, AJAX, admin, administration
|
4 |
Requires at least: 2.8.5
|
5 |
Tested up to: 2.9.2
|
6 |
+
Stable tag: 0.8
|
7 |
|
8 |
The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
|
9 |
|
40 |
|
41 |
Check out our demo installation at <a href="http://www.zackgrossbart.com/extras/sandbox/wp-admin/edit.php?page=cal">Zack's WordPress Sandbox</a>.
|
42 |
|
43 |
+
= What are other people saying about the calendar? =
|
44 |
+
|
45 |
+
From time to time people write articles about the editorial calendar. We appreciate every one.
|
46 |
+
|
47 |
+
<a href="http://chrisg.org/drag-and-drop-post-scheduling-with-the-editorial-calendar-wordpress-plugin/">Drag and Drop Post Scheduling with the Editorial Calendar WordPress plugin</a> by <a href="http://chrisg.org/">Chris Garrett</a>
|
48 |
+
|
49 |
+
<a href="http://theincidentaleconomist.com/wordpress-plug-in-plug-editorial-calendar/">WordPress Plug-In Plug: Editorial Calendar</a> on <a href="http://theincidentaleconomist.com/">The Incidental Economist</a>
|
50 |
+
|
51 |
+
<a href="http://wordcastnet.com/2010/01/12/visually-manage-your-post-publication-dates-with-the-editorial-calendar-wordpress-plugin/">Visually Manage Your Post Publication Dates with the Editorial Calendar WordPress Plugin</a> on <a href="http://wordcastnet.com/">WordCast</a>
|
52 |
+
|
53 |
+
<a href="http://websuccessdiva.com/seo-copywriting-checklist/">SEO Copywriting Checklist for Wordpress Blogs</a> on <a href="http://websuccessdiva.com/">@WebSuccessDiva</a> is a good article about SEO and using an editorial calendar.
|
54 |
+
|
55 |
= How do I navigate in the calendar? =
|
56 |
|
57 |
You can move around in the calendar using the arrows next to the months at the top or your mouse wheel, You can also move using your keyboard:
|
63 |
<li>Jump multiple weeks into the future - Page Down or Ctrl+Down Arrow</li>
|
64 |
</ul>
|
65 |
|
66 |
+
= How do I change the first day of the week? =
|
67 |
+
|
68 |
+
The editorial calendar follows the Week Starts On preference on the WordPress General Settings page. Just change the setting and the calendar will use that day of the week as the first one.
|
69 |
+
|
70 |
= What languages does the calendar support? =
|
71 |
|
72 |
+
The calendar is available in Croatian, Czechoslovakian, English, French, and Greek.
|
73 |
+
|
74 |
+
= How does the calendar work =
|
75 |
+
|
76 |
+
The calendar is written in JavaScript. It contacts your blog when it scrolls to get data about your posts. Just like Google Maps. <a href="http://www.zackgrossbart.com/hackito/edcal/">Creating a JQuery Powered Posts Calendar for WordPress</a> explains a lot of the technical details.
|
77 |
|
78 |
= Can I add new languages? =
|
79 |
|
83 |
|
84 |
The editorial calendar appears differently based on your permissions. Administrators and Editors can use every feature available in the calendar. Authors can use the calendar to edit and move their own posts, but other people's posts are read-only. Contributors and Subscribers can't see the calendar.
|
85 |
|
|
|
86 |
= Can I use the editorial calendar with pages? =
|
87 |
|
88 |
Right now the calendar only supports posts. We're considering adding pages. If you would like to see support for pages let us know.
|
100 |
|
101 |
Moving published posts can cause problems with some RSS feeds and is generally not a very popular thing to do. The calendar only allows you to move scheduled and draft posts.
|
102 |
|
|
|
|
|
|
|
|
|
103 |
== Screenshots ==
|
104 |
|
105 |
1. The calendar integrates seamlessly into the WordPress administration console
|
110 |
|
111 |
== Changelog ==
|
112 |
|
113 |
+
= 0.8 =
|
114 |
+
* We got the message and added an edit link that takes you to the WordPress edit page in addition to a link for the quick edit dialog in the calendar.
|
115 |
+
* The calendar will now remember the last date and start there again the next time you access it.
|
116 |
+
* Fixed a large performance problem that was causing the calendar to load the posts for and render many more weeks than it needed to. The calendar is now faster than ever!
|
117 |
+
* The calendar quick edit screen now shows the post author.
|
118 |
+
* Sticky posts are now available in the calendar. Schedule them like any other post.
|
119 |
+
* The calendar now supports Greek. Thanks to <a href="http://aenaon.biz/">Mihalis Papanousis</a>.
|
120 |
+
* We also support Polish. Thanks to Krzysztof Nowak who uses the Editorial Calendar on his site <a href="http://classica-mediaevalia.pl">Classica, mediaevalia et cetera</a>.
|
121 |
+
|
122 |
= 0.7 =
|
123 |
* You can now edit post contents, title, and time directly in the calendar. You can also schedule a post for publication.
|
124 |
* The layout of posts in the calendar has been optimized to you can see the maximum number of posts in a single day without scrolling.
|