Event List - Version 0.2.1

Version Description

(2012-10-26) =

  • changed field order and align in new/edit event form
  • added datepicker for start and end date in new/edit event form
  • improved multiday event selection in new/edit event form
  • small changes in event table on admin page
Download this release

Release Info

Developer mibuthu
Plugin Icon 128x128 Event List
Version 0.2.1
Comparing to
See all releases

Code changes from version 0.2.0 to 0.2.1

css/admin_main.css ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .wp-list-table .column-date {
2
+ width: 140px;
3
+ }
4
+ .wp-list-table .column-title {
5
+ width: 35%;
6
+ }
7
+ .wp-list-table .column-location {
8
+ width: 25%
9
+ }
10
+ .wp-list-table .column-details {
11
+ width: 40%;
12
+ }
13
+ .wp-list-table .column-pub_user {
14
+ width: 90px;
15
+ }
16
+ .wp-list-table .column-pub_date {
17
+ width: 150px;
18
+ }
19
+
20
+ span.time {
21
+ font-style: italic;
22
+ }
css/admin_new.css ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import url("datepicker/jquery-ui-datepicker.css");
2
+
3
+ #title, #location {
4
+ width: 400px;
5
+ }
6
+
7
+ #start_date, #end_date, #time {
8
+ width: 110px;
9
+ }
10
+
11
+ img.ui-datepicker-trigger {
12
+ vertical-align: middle;
13
+ }
14
+
15
+ p.note {
16
+ margin: 2px;
17
+ font-style: italic;
18
+ }
19
+
20
+ p.submit {
21
+ text-align: center;
22
+ }
css/datepicker/images/ui-bg_flat_0_aaaaaa_40x100.png ADDED
Binary file
css/datepicker/images/ui-bg_flat_75_ffffff_40x100.png ADDED
Binary file
css/datepicker/images/ui-bg_glass_55_fbf9ee_1x400.png ADDED
Binary file
css/datepicker/images/ui-bg_glass_65_ffffff_1x400.png ADDED
Binary file
css/datepicker/images/ui-bg_glass_75_dadada_1x400.png ADDED
Binary file
css/datepicker/images/ui-bg_glass_75_e6e6e6_1x400.png ADDED
Binary file
css/datepicker/images/ui-bg_glass_95_fef1ec_1x400.png ADDED
Binary file
css/datepicker/images/ui-bg_highlight-soft_75_cccccc_1x100.png ADDED
Binary file
css/datepicker/images/ui-icons_222222_256x240.png ADDED
Binary file
css/datepicker/images/ui-icons_2e83ff_256x240.png ADDED
Binary file
css/datepicker/images/ui-icons_454545_256x240.png ADDED
Binary file
css/datepicker/images/ui-icons_888888_256x240.png ADDED
Binary file
css/datepicker/images/ui-icons_cd0a0a_256x240.png ADDED
Binary file
css/datepicker/jquery-ui-datepicker.css ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ /*! jQuery UI - v1.9.1 - 2012-10-26
2
+ * http://jqueryui.com
3
+ * Includes: jquery.ui.core.css, jquery.ui.datepicker.css
4
+ * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana%2CArial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
5
+ * Copyright (c) 2012 jQuery Foundation and other contributors Licensed MIT */.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{position:absolute!important;clip:rect(1px);clip:rect(1px,1px,1px,1px)}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{zoom:1}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:absolute;top:0;left:0;width:100%;height:100%}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month-year{width:100%}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0em}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current{float:right}.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-datepicker-cover{position:absolute;z-index:-1;filter:mask();top:-4px;left:-4px;width:200px;height:200px}.ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Verdana,Arial,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #aaa;background:#fff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x;color:#222}.ui-widget-content a{color:#222}.ui-widget-header{border:1px solid #aaa;background:#ccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x;color:#222;font-weight:bold}.ui-widget-header a{color:#222}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #d3d3d3;background:#e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#555}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#555;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #999;background:#dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#212121}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited{color:#212121;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #aaa;background:#fff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#212121}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#212121;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fcefa1;background:#fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x;color:#cd0a0a}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#cd0a0a}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#cd0a0a}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px;background-image:url(images/ui-icons_222222_256x240.png)}.ui-widget-content .ui-icon{background-image:url(images/ui-icons_222222_256x240.png)}.ui-widget-header .ui-icon{background-image:url(images/ui-icons_222222_256x240.png)}.ui-state-default .ui-icon{background-image:url(images/ui-icons_888888_256x240.png)}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url(images/ui-icons_454545_256x240.png)}.ui-state-active .ui-icon{background-image:url(images/ui-icons_454545_256x240.png)}.ui-state-highlight .ui-icon{background-image:url(images/ui-icons_2e83ff_256x240.png)}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url(images/ui-icons_cd0a0a_256x240.png)}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;-khtml-border-top-left-radius:4px;border-top-left-radius:4px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;-khtml-border-top-right-radius:4px;border-top-right-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;-khtml-border-bottom-left-radius:4px;border-bottom-left-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;-khtml-border-bottom-right-radius:4px;border-bottom-right-radius:4px}.ui-widget-overlay{background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30)}.ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30);-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px}
event-list.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Event List
4
  Plugin URI: http://wordpress.org/extend/plugins/event-list/
5
  Description: Manage your events and show them in a list view on your site.
6
- Version: 0.2.0
7
  Author: Michael Burtscher
8
  Author URI: http://wordpress.org/extend/plugins/event-list/
9
  License: GPLv2
@@ -62,10 +62,9 @@ function on_el_admin() {
62
  require_once( 'php/admin.php' );
63
  add_menu_page( 'Event List', 'Event List', 'edit_posts', 'el_admin_main', array( 'el_admin', 'show_main' ) );
64
  $page = add_submenu_page( 'el_admin_main', 'Events', 'All Events', 'edit_posts', 'el_admin_main', array( 'el_admin', 'show_main' ) );
65
- add_action( 'admin_head-'.$page, array( 'el_admin', 'embed_admin_js' ) );
66
- add_action( 'admin_head-'.$page, array( 'el_admin', 'embed_table_style' ) );
67
  $page = add_submenu_page( 'el_admin_main', 'Add New Event', 'Add New', 'edit_posts', 'el_admin_new', array( 'el_admin', 'show_new' ) );
68
- add_action( 'admin_head-'.$page, array( 'el_admin', 'embed_admin_js' ) );
69
  add_submenu_page( 'el_admin_main', 'Event List Settings', 'Settings', 'manage_options', 'el_admin_settings', array( 'el_admin', 'show_settings' ) );
70
  add_submenu_page( 'el_admin_main', 'About Event List', 'About', 'manage_options', 'el_admin_about', array( 'el_admin', 'show_about' ) );
71
  }
3
  Plugin Name: Event List
4
  Plugin URI: http://wordpress.org/extend/plugins/event-list/
5
  Description: Manage your events and show them in a list view on your site.
6
+ Version: 0.2.1
7
  Author: Michael Burtscher
8
  Author URI: http://wordpress.org/extend/plugins/event-list/
9
  License: GPLv2
62
  require_once( 'php/admin.php' );
63
  add_menu_page( 'Event List', 'Event List', 'edit_posts', 'el_admin_main', array( 'el_admin', 'show_main' ) );
64
  $page = add_submenu_page( 'el_admin_main', 'Events', 'All Events', 'edit_posts', 'el_admin_main', array( 'el_admin', 'show_main' ) );
65
+ add_action( 'admin_print_scripts-'.$page, array( 'el_admin', 'embed_admin_main_scripts' ) );
 
66
  $page = add_submenu_page( 'el_admin_main', 'Add New Event', 'Add New', 'edit_posts', 'el_admin_new', array( 'el_admin', 'show_new' ) );
67
+ add_action( 'admin_print_scripts-'.$page, array( 'el_admin', 'embed_admin_new_scripts' ) );
68
  add_submenu_page( 'el_admin_main', 'Event List Settings', 'Settings', 'manage_options', 'el_admin_settings', array( 'el_admin', 'show_settings' ) );
69
  add_submenu_page( 'el_admin_main', 'About Event List', 'About', 'manage_options', 'el_admin_about', array( 'el_admin', 'show_about' ) );
70
  }
images/calendar-icon.png ADDED
Binary file
js/admin.js DELETED
@@ -1,45 +0,0 @@
1
- // Date helpers
2
- jQuery(document).ready(function( $ ) {
3
- // $(".datepicker").datepick({
4
- // dateFormat: 'yyyy-mm-dd',
5
- // onSelect: function(dates) {
6
- // if ($("#multiday").is('checked')) {
7
- // check the end day is greater
8
- // if ($("#start_date").val() > $("#end_date").val()) {
9
- // $("#end_date").val($("#start_date").val());
10
- // }
11
- // }
12
- // else {
13
- // single day! make em match
14
- // $("#end_date").val($("#start_date").val());
15
- // }
16
- // }
17
- // });
18
-
19
- if ($("#start_date").val() == $("#end_date").val()) {
20
- $("#end_date_row").hide();
21
- }
22
- else {
23
- $("#multiday").attr('checked', true);
24
- }
25
-
26
- $("#multiday").click(function() {
27
- if (this.checked) {
28
- $("#end_date").val($("#start_date").val());
29
- $("#end_date_row").fadeIn();
30
- }
31
- else {
32
- $("#end_date_row").fadeOut();
33
- $("#end_date").val($("#start_date").val());
34
- }
35
- });
36
-
37
-
38
- });
39
-
40
- // Confirmation for event deletion
41
- function eventlist_deleteEvent (id) {
42
- if (confirm("Are you sure you want to delete this event from you the database? This is a permanent action.")) {
43
- document.location.href = "?page=el_admin_main&id=" + id + "&action=delete";
44
- }
45
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/admin_main.js ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ // Javascript functions for event-list admin_main page
2
+
3
+ // Confirmation for event deletion
4
+ function eventlist_deleteEvent (id) {
5
+ if (confirm("Are you sure you want to delete this event from you the database? This is a permanent action.")) {
6
+ document.location.href = "?page=el_admin_main&id=" + id + "&action=delete";
7
+ }
8
+ }
js/admin_new.js ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Javascript functions for event-list admin_new page
2
+
3
+ // Date helpers
4
+ jQuery(document).ready(function( $ ) {
5
+ // Read required config data from hidden field json_for_js
6
+ var json = $("#json_for_js").val();
7
+ var conf = eval('(' + json + ')');
8
+
9
+ // Show or hide end_date
10
+ if ($("#start_date").val() == $("#end_date").val()) {
11
+ $("#end_date_area").hide();
12
+ }
13
+ else {
14
+ $("#multiday").attr('checked', true);
15
+ }
16
+
17
+ // Datepickers
18
+ $("#start_date").datepicker( {
19
+ dateFormat: "yy-mm-dd",
20
+ firstDay: 1,
21
+ changeMonth: true,
22
+ changeYear: true,
23
+ numberOfMonths: 3,
24
+ showOn: "both",
25
+ buttonImage: conf.el_url + "images/calendar-icon.png",
26
+ buttonImageOnly: true,
27
+ constrainInput: true,
28
+ onClose: function(selectedDate) {
29
+ minDate = new Date(selectedDate);
30
+ timestamp = minDate.getTime() + 1*24*60*60*1000;
31
+ minDate.setTime(timestamp);
32
+ $("#end_date").datepicker("option", "minDate", minDate);
33
+ }
34
+ });
35
+ $("#end_date").datepicker( {
36
+ dateFormat: "yy-mm-dd",
37
+ firstDay: 1,
38
+ changeMonth: true,
39
+ changeYear: true,
40
+ numberOfMonths: 3,
41
+ showOn: "both",
42
+ buttonImage: conf.el_url + "images/calendar-icon.png",
43
+ buttonImageOnly: true,
44
+ constrainInput: true
45
+ });
46
+
47
+ // Toogle end_date visibility and insert the correct date
48
+ $("#multiday").click(function() {
49
+ var enddate = $("#start_date").datepicker("getDate");
50
+ if (this.checked) {
51
+ timestamp = enddate.getTime() + 1*24*60*60*1000;
52
+ enddate.setTime(timestamp);
53
+ $("#end_date_area").fadeIn();
54
+ $("#end_date").datepicker("option", "minDate", enddate);
55
+ }
56
+ else {
57
+ $("#end_date_area").fadeOut();
58
+ $("#end_date").datepicker("option", "minDate", null);
59
+ }
60
+ $("#end_date").datepicker("setDate", enddate);
61
+ });
62
+ });
php/admin.php CHANGED
@@ -7,7 +7,7 @@ require_once( EL_PATH.'php/admin_event_table.php' );
7
  class el_admin {
8
  private static $event_action = false;
9
  private static $event_action_error = false;
10
-
11
  // show the main admin page as a submenu of "Comments"
12
  public static function show_main() {
13
  if ( !current_user_can( 'edit_posts' ) ) {
@@ -152,21 +152,22 @@ class el_admin {
152
  echo $out;
153
  }
154
 
155
- public static function embed_admin_js() {
156
- echo '<script type="text/javascript" src="'.EL_URL.'/js/admin.js"></script>';
 
 
 
 
 
 
 
 
157
  }
158
 
159
- public static function embed_table_style() {
160
- // add styles for event table
161
- $out = '<style type="text/css">
162
- .wp-list-table .column-date { width: 140px; }
163
- .wp-list-table .column-title { width: 35%; }
164
- .wp-list-table .column-location { width: 25% }
165
- .wp-list-table .column-details { width: 40%; }
166
- .wp-list-table .column-pub_user { width: 90px; }
167
- .wp-list-table .column-pub_date { width: 150px; }
168
- </style>';
169
- echo $out;
170
  }
171
 
172
  private static function list_events() {
@@ -197,40 +198,34 @@ class el_admin {
197
  if( isset( $_GET['id'] ) && is_numeric( $_GET['id'] ) ) {
198
  // existing event
199
  $event = el_db::get_event( $_GET['id'] );
200
- if( isset( $_GET['action'] ) && $_GET['action'] === 'copy' ) {
201
- // copy of existing event
202
- $start_date = date('Y-m-d');
203
- $end_date = date('Y-m-d');
204
- }
205
- else {
206
- // edit existing event
207
- $start_date = $event->start_date;
208
- $end_date = $event->end_date;
209
  $edit = true;
210
  }
 
 
211
  }
212
  else {
213
  //new event
214
- $start_date = date('Y-m-d');
215
- $end_date = date('Y-m-d');
216
  }
217
 
218
- $out = '<form method="POST" action="?page=el_admin_main">';
219
- if ( true === $edit ) {
 
 
 
220
  $out .= '<input type="hidden" name="id" value="'.$_GET['id'].'" />';
221
  }
222
  $out .= '<table class="form-table">
223
  <tr>
224
- <th><label>Start Date (required)</label></th>
225
- <td><input type="text" class="text datepicker form-required" name="start_date" id="start_date" value="'.$start_date.'" /> <label><input type="checkbox" name="multiday" id="multiday" value="1" /> Multiple Day Event</label></td>
226
- </tr>
227
- <tr id="end_date_row">
228
- <th><label>End Date</label></th>
229
- <td><input type="text" class="text datepicker" name="end_date" id="end_date" value="'.$end_date.'" /></td>
230
  </tr>
231
  <tr>
232
- <th><label>Event Title (required)</label></th>
233
- <td><input type="text" class="text form-required" style="width:350px;" name="title" id="title" value="'.str_replace( '"', '&quot;', isset( $event->title ) ? $event->title : '' ).'" /></td>
234
  </tr>
235
  <tr>
236
  <th><label>Event Time</label></th>
@@ -254,13 +249,13 @@ class el_admin {
254
  wp_editor( isset( $event->details ) ? $event->details : '', 'details', $editor_settings);
255
  $out .= ob_get_contents();
256
  ob_end_clean();
257
- $out .= '<p style="margin:2px;"><i>NOTE: In the text editor, use RETURN to start a new paragraph - use SHIFT-RETURN to start a new line.</i></p></td>
258
  </tr>
259
  </table>';
260
- $out .= '<p class="submit"><input type="submit" class="button-primary" name="save" value="Save Event" id="submitbutton"> <a href="?page=el_admin_main" class="button-secondary">Cancel</a></p></form>';
261
  return $out;
262
  }
263
-
264
  private static function show_messages() {
265
  $out = '';
266
  // event added
7
  class el_admin {
8
  private static $event_action = false;
9
  private static $event_action_error = false;
10
+
11
  // show the main admin page as a submenu of "Comments"
12
  public static function show_main() {
13
  if ( !current_user_can( 'edit_posts' ) ) {
152
  echo $out;
153
  }
154
 
155
+ public static function embed_admin_main_scripts() {
156
+ // If edit event is selected switch to embed admin_new
157
+ if( isset( $_GET['action'] ) && 'edit' === $_GET['action'] ) {
158
+ self::embed_admin_new_scripts();
159
+ }
160
+ else {
161
+ // Proceed with embedding for admin_main
162
+ wp_enqueue_script( 'eventlist_admin_main_js', EL_URL.'js/admin_main.js' );
163
+ wp_enqueue_style( 'eventlist_admin_main_css', EL_URL.'css/admin_main.css' );
164
+ }
165
  }
166
 
167
+ public static function embed_admin_new_scripts() {
168
+ wp_print_scripts( 'jquery-ui-datepicker' );
169
+ wp_enqueue_script( 'eventlist_admin_new_js', EL_URL.'js/admin_new.js' );
170
+ wp_enqueue_style( 'eventlist_admin_new_css', EL_URL.'css/admin_new.css' );
 
 
 
 
 
 
 
171
  }
172
 
173
  private static function list_events() {
198
  if( isset( $_GET['id'] ) && is_numeric( $_GET['id'] ) ) {
199
  // existing event
200
  $event = el_db::get_event( $_GET['id'] );
201
+ if( isset( $_GET['action'] ) && $_GET['action'] === 'edit' ) {
202
+ // editing of an existing event, if not it would be copy of an existing event
 
 
 
 
 
 
 
203
  $edit = true;
204
  }
205
+ $start_date = $event->start_date;
206
+ $end_date = $event->end_date;
207
  }
208
  else {
209
  //new event
210
+ $start_date = date( 'Y-m-d', time()+1*24*60*60 );
211
+ $end_date = $start_date;
212
  }
213
 
214
+ // Add required data for javascript in a hidden field
215
+ $json = json_encode( Array( 'el_url' => EL_URL ) );
216
+ $out = "<input type='hidden' id='json_for_js' value='".$json."' />";
217
+ $out .= '<form method="POST" action="?page=el_admin_main">';
218
+ if( true === $edit ) {
219
  $out .= '<input type="hidden" name="id" value="'.$_GET['id'].'" />';
220
  }
221
  $out .= '<table class="form-table">
222
  <tr>
223
+ <th><label>Event Title (required)</label></th>
224
+ <td><input type="text" class="text form-required" name="title" id="title" value="'.str_replace( '"', '&quot;', isset( $event->title ) ? $event->title : '' ).'" /></td>
 
 
 
 
225
  </tr>
226
  <tr>
227
+ <th><label>Event Date (required)</label></th>
228
+ <td><input type="text" class="text datepicker form-required" name="start_date" id="start_date" value="'.$start_date.'" /><span id="end_date_area"> - <input type="text" class="text datepicker" name="end_date" id="end_date" value="'.$end_date.'" /></span> <label><input type="checkbox" name="multiday" id="multiday" value="1" /> Multi-Day Event</label></td>
229
  </tr>
230
  <tr>
231
  <th><label>Event Time</label></th>
249
  wp_editor( isset( $event->details ) ? $event->details : '', 'details', $editor_settings);
250
  $out .= ob_get_contents();
251
  ob_end_clean();
252
+ $out .= '<p class="note">NOTE: In the text editor, use RETURN to start a new paragraph - use SHIFT-RETURN to start a new line.</p></td>
253
  </tr>
254
  </table>';
255
+ $out .= '<p class="submit"><input type="submit" class="button-primary" name="publish" value="Publish" id="submitbutton"> <a href="?page=el_admin_main" class="button-secondary">Cancel</a></p></form>';
256
  return $out;
257
  }
258
+
259
  private static function show_messages() {
260
  $out = '';
261
  // event added
php/admin_event_table.php CHANGED
@@ -258,7 +258,7 @@ class Admin_Event_Table extends WP_List_Table {
258
  $out .= date("M j, Y", $start_date).'-<br />'.date("M j, Y", $end_date).'&nbsp;';
259
  }
260
  $out .= '<br />
261
- '.$start_time.'</span>';
262
  return $out;
263
  }
264
 
258
  $out .= date("M j, Y", $start_date).'-<br />'.date("M j, Y", $end_date).'&nbsp;';
259
  }
260
  $out .= '<br />
261
+ <span class="time">'.$start_time.'</span></span>';
262
  return $out;
263
  }
264
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: event, events, list, listview, calendar, schedule, shortcode, page, category, categories, admin, attribute, widget, sidebar
5
  Requires at least: 3.3
6
  Tested up to: 3.4.2
7
- Stable tag: 0.2.0
8
  Plugin URI: http://wordpress.org/extend/plugins/event-list
9
  Licence: GPLv2
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -53,6 +53,13 @@ not available yet
53
 
54
  == Changelog ==
55
 
 
 
 
 
 
 
 
56
  = 0.2.0 (2012-09-29) =
57
 
58
  * adapted menu names to wordpress standard (similar to posts and pages)
4
  Tags: event, events, list, listview, calendar, schedule, shortcode, page, category, categories, admin, attribute, widget, sidebar
5
  Requires at least: 3.3
6
  Tested up to: 3.4.2
7
+ Stable tag: 0.2.1
8
  Plugin URI: http://wordpress.org/extend/plugins/event-list
9
  Licence: GPLv2
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
53
 
54
  == Changelog ==
55
 
56
+ = 0.2.1 (2012-10-26) =
57
+
58
+ * changed field order and align in new/edit event form
59
+ * added datepicker for start and end date in new/edit event form
60
+ * improved multiday event selection in new/edit event form
61
+ * small changes in event table on admin page
62
+
63
  = 0.2.0 (2012-09-29) =
64
 
65
  * adapted menu names to wordpress standard (similar to posts and pages)