My Calendar - Version 1.4.6

Version Description

  • Fixed: Flash of unstyled content prevention scripts weren't disabled when other scripting was disabled.
  • Fixed: Categories which started with numerals couldn't have custom styles.
  • Fixed: Locations required valid 0 float value to save records on some servers; now supplied by default.
Download this release

Release Info

Developer joedolson
Plugin Icon 128x128 My Calendar
Version 1.4.6
Comparing to
See all releases

Code changes from version 1.4.3 to 1.4.6

js/jquery-colorpicker.js DELETED
@@ -1,44 +0,0 @@
1
- ;(function($){var _remove=$.fn.remove;$.fn.remove=function(){$("*",this).add(this).triggerHandler("remove");return _remove.apply(this,arguments);};function isVisible(element){function checkStyles(element){var style=element.style;return(style.display!='none'&&style.visibility!='hidden');}
2
- var visible=checkStyles(element);(visible&&$.each($.dir(element,'parentNode'),function(){return(visible=checkStyles(this));}));return visible;}
3
- $.extend($.expr[':'],{data:function(a,i,m){return $.data(a,m[3]);},tabbable:function(a,i,m){var nodeName=a.nodeName.toLowerCase();return(a.tabIndex>=0&&(('a'==nodeName&&a.href)||(/input|select|textarea|button/.test(nodeName)&&'hidden'!=a.type&&!a.disabled))&&isVisible(a));}});$.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,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38};function getter(namespace,plugin,method,args){function getMethods(type){var methods=$[namespace][plugin][type]||[];return(typeof methods=='string'?methods.split(/,?\s+/):methods);}
4
- var methods=getMethods('getter');if(args.length==1&&typeof args[0]=='string'){methods=methods.concat(getMethods('getterSetter'));}
5
- return($.inArray(method,methods)!=-1);}
6
- $.widget=function(name,prototype){var namespace=name.split(".")[0];name=name.split(".")[1];$.fn[name]=function(options){var isMethodCall=(typeof options=='string'),args=Array.prototype.slice.call(arguments,1);if(isMethodCall&&options.substring(0,1)=='_'){return this;}
7
- if(isMethodCall&&getter(namespace,name,options,args)){var instance=$.data(this[0],name);return(instance?instance[options].apply(instance,args):undefined);}
8
- return this.each(function(){var instance=$.data(this,name);(!instance&&!isMethodCall&&$.data(this,name,new $[namespace][name](this,options)));(instance&&isMethodCall&&$.isFunction(instance[options])&&instance[options].apply(instance,args));});};$[namespace][name]=function(element,options){var self=this;this.widgetName=name;this.widgetEventPrefix=$[namespace][name].eventPrefix||name;this.widgetBaseClass=namespace+'-'+name;this.options=$.extend({},$.widget.defaults,$[namespace][name].defaults,$.metadata&&$.metadata.get(element)[name],options);this.element=$(element).bind('setData.'+name,function(e,key,value){return self._setData(key,value);}).bind('getData.'+name,function(e,key){return self._getData(key);}).bind('remove',function(){return self.destroy();});this._init();};$[namespace][name].prototype=$.extend({},$.widget.prototype,prototype);$[namespace][name].getterSetter='option';};$.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName);},option:function(key,value){var options=key,self=this;if(typeof key=="string"){if(value===undefined){return this._getData(key);}
9
- options={};options[key]=value;}
10
- $.each(options,function(key,value){self._setData(key,value);});},_getData:function(key){return this.options[key];},_setData:function(key,value){this.options[key]=value;if(key=='disabled'){this.element[value?'addClass':'removeClass'](this.widgetBaseClass+'-disabled');}},enable:function(){this._setData('disabled',false);},disable:function(){this._setData('disabled',true);},_trigger:function(type,e,data){var eventName=(type==this.widgetEventPrefix?type:this.widgetEventPrefix+type);e=e||$.event.fix({type:eventName,target:this.element[0]});return this.element.triggerHandler(eventName,[e,data],this.options[type]);}};$.widget.defaults={disabled:false};$.ui={plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]]);}},call:function(instance,name,args){var set=instance.plugins[name];if(!set){return;}
11
- for(var i=0;i<set.length;i++){if(instance.options[set[i][0]]){set[i][1].apply(instance.element,args);}}}},cssCache:{},css:function(name){if($.ui.cssCache[name]){return $.ui.cssCache[name];}
12
- var tmp=$('<div class="ui-gen">').addClass(name).css({position:'absolute',top:'-5000px',left:'-5000px',display:'block'}).appendTo('body');$.ui.cssCache[name]=!!((!(/auto|default/).test(tmp.css('cursor'))||(/^[1-9]/).test(tmp.css('height'))||(/^[1-9]/).test(tmp.css('width'))||!(/none/).test(tmp.css('backgroundImage'))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css('backgroundColor'))));try{$('body').get(0).removeChild(tmp.get(0));}catch(e){}
13
- return $.ui.cssCache[name];},disableSelection:function(el){return $(el).attr('unselectable','on').css('MozUserSelect','none').bind('selectstart.ui',function(){return false;});},enableSelection:function(el){return $(el).attr('unselectable','off').css('MozUserSelect','').unbind('selectstart.ui');},hasScroll:function(e,a){if($(e).css('overflow')=='hidden'){return false;}
14
- var scroll=(a&&a=='left')?'scrollLeft':'scrollTop',has=false;if(e[scroll]>0){return true;}
15
- e[scroll]=1;has=(e[scroll]>0);e[scroll]=0;return has;}};$.ui.mouse={_mouseInit:function(){var self=this;this.element.bind('mousedown.'+this.widgetName,function(e){return self._mouseDown(e);});if($.browser.msie){this._mouseUnselectable=this.element.attr('unselectable');this.element.attr('unselectable','on');}
16
- this.started=false;},_mouseDestroy:function(){this.element.unbind('.'+this.widgetName);($.browser.msie&&this.element.attr('unselectable',this._mouseUnselectable));},_mouseDown:function(e){(this._mouseStarted&&this._mouseUp(e));this._mouseDownEvent=e;var self=this,btnIsLeft=(e.which==1),elIsCancel=(typeof this.options.cancel=="string"?$(e.target).parents().add(e.target).filter(this.options.cancel).length:false);if(!btnIsLeft||elIsCancel||!this._mouseCapture(e)){return true;}
17
- this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){self.mouseDelayMet=true;},this.options.delay);}
18
- if(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)){this._mouseStarted=(this._mouseStart(e)!==false);if(!this._mouseStarted){e.preventDefault();return true;}}
19
- this._mouseMoveDelegate=function(e){return self._mouseMove(e);};this._mouseUpDelegate=function(e){return self._mouseUp(e);};$(document).bind('mousemove.'+this.widgetName,this._mouseMoveDelegate).bind('mouseup.'+this.widgetName,this._mouseUpDelegate);return false;},_mouseMove:function(e){if($.browser.msie&&!e.button){return this._mouseUp(e);}
20
- if(this._mouseStarted){this._mouseDrag(e);return false;}
21
- if(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,e)!==false);(this._mouseStarted?this._mouseDrag(e):this._mouseUp(e));}
22
- return!this._mouseStarted;},_mouseUp:function(e){$(document).unbind('mousemove.'+this.widgetName,this._mouseMoveDelegate).unbind('mouseup.'+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._mouseStop(e);}
23
- return false;},_mouseDistanceMet:function(e){return(Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance);},_mouseDelayMet:function(e){return this.mouseDelayMet;},_mouseStart:function(e){},_mouseDrag:function(e){},_mouseStop:function(e){},_mouseCapture:function(e){return true;}};$.ui.mouse.defaults={cancel:null,distance:1,delay:0};})(jQuery);(function($){$.widget("ui.colorpicker",{_init:function(){this.charMin=65;var o=this.options,self=this,tpl='<div class="ui-colorpicker clearfix"><div class="ui-colorpicker-color"><div><div></div></div></div><div class="ui-colorpicker-hue"><div></div></div><div class="ui-colorpicker-new-color"></div><div class="ui-colorpicker-current-color"></div><div class="ui-colorpicker-hex"><label for="ui-colorpicker-hex" title="hex"></label><input type="text" maxlength="6" size="6" /></div><div class="ui-colorpicker-rgb-r ui-colorpicker-field"><label for="ui-colorpicker-rgb-r"></label><input type="text" maxlength="3" size="2" /><span></span></div><div class="ui-colorpicker-rgb-g ui-colorpicker-field"><label for="ui-colorpicker-rgb-g"></label><input type="text" maxlength="3" size="2" /><span></span></div><div class="ui-colorpicker-rgb-b ui-colorpicker-field"><label for="ui-colorpicker-rgb-b"</label><input type="text" maxlength="3" size="2" /><span></span></div><div class="ui-colorpicker-hsb-h ui-colorpicker-field"><label for="ui-colorpicker-hsb-h"></label><input type="text" maxlength="3" size="2" /><span></span></div><div class="ui-colorpicker-hsb-s ui-colorpicker-field"><label for="ui-colorpicker-hsb-s"></label><input type="text" maxlength="3" size="2" /><span></span></div><div class="ui-colorpicker-hsb-b ui-colorpicker-field"><label for="ui-colorpicker-hsb-b"></label><input type="text" maxlength="3" size="2" /><span></span></div><button class="ui-colorpicker-submit ui-default-state" name="submit" type="button">Done</button></div>';if(typeof o.color=='string'){this.color=this._HexToHSB(o.color);}else if(o.color.r!=undefined&&o.color.g!=undefined&&o.color.b!=undefined){this.color=this._RGBToHSB(o.color);}else if(o.color.h!=undefined&&o.color.s!=undefined&&o.color.b!=undefined){this.color=this._fixHSB(o.color);}else{return this;}
24
- this.origColor=this.color;this.picker=$(tpl);if(o.flat){this.picker.appendTo(this.element).show();}else{this.picker.appendTo(document.body);}
25
- this.fields=this.picker.find('input').bind('keydown',function(e){return self._keyDown.call(self,e);}).bind('change',function(e){return self._change.call(self,e);}).bind('blur',function(e){return self._blur.call(self,e);}).bind('focus',function(e){return self._focus.call(self,e);});this.picker.find('span').bind('mousedown',function(e){return self._downIncrement.call(self,e);});this.selector=this.picker.find('div.ui-colorpicker-color').bind('mousedown',function(e){return self._downSelector.call(self,e);});this.selectorIndic=this.selector.find('div div');this.hue=this.picker.find('div.ui-colorpicker-hue div');this.picker.find('div.ui-colorpicker-hue').bind('mousedown',function(e){return self._downHue.call(self,e);});this.newColor=this.picker.find('div.ui-colorpicker-new-color');this.currentColor=this.picker.find('div.ui-colorpicker-current-color');this.picker.find('.ui-colorpicker-submit').bind('mouseenter',function(e){return self._enterSubmit.call(self,e);}).bind('mouseleave',function(e){return self._leaveSubmit.call(self,e);}).bind('click',function(e){return self._clickSubmit.call(self,e);});this._fillRGBFields(this.color);this._fillHSBFields(this.color);this._fillHexFields(this.color);this._setHue(this.color);this._setSelector(this.color);this._setCurrentColor(this.color);this._setNewColor(this.color);if(o.flat){this.picker.css({position:'relative',display:'block'});}else{$(this.element).bind(o.eventName+".colorpicker",function(e){return self._show.call(self,e);});}},destroy:function(){this.picker.remove();this.element.removeData("colorpicker").unbind(".colorpicker");},_fillRGBFields:function(hsb){var rgb=this._HSBToRGB(hsb);this.fields.eq(1).val(rgb.r).end().eq(2).val(rgb.g).end().eq(3).val(rgb.b).end();},_fillHSBFields:function(hsb){this.fields.eq(4).val(hsb.h).end().eq(5).val(hsb.s).end().eq(6).val(hsb.b).end();},_fillHexFields:function(hsb){this.fields.eq(0).val(this._HSBToHex(hsb)).end();},_setSelector:function(hsb){this.selector.css('backgroundColor','#'+this._HSBToHex({h:hsb.h,s:100,b:100}));this.selectorIndic.css({left:parseInt(150*hsb.s/100,10),top:parseInt(150*(100-hsb.b)/100,10)});},_setHue:function(hsb){this.hue.css('top',parseInt(150-150*hsb.h/360,10));},_setCurrentColor:function(hsb){this.currentColor.css('backgroundColor','#'+this._HSBToHex(hsb));},_setNewColor:function(hsb){this.newColor.css('backgroundColor','#'+this._HSBToHex(hsb));},_keyDown:function(e){var pressedKey=e.charCode||e.keyCode||-1;if((pressedKey>=this.charMin&&pressedKey<=90)||pressedKey==32){return false;}},_change:function(e,target){var col;target=target||e.target;if(target.parentNode.className.indexOf('-hex')>0){this.color=col=this._HexToHSB(this.value);this._fillRGBFields(col.color);this._fillHSBFields(col);}else if(target.parentNode.className.indexOf('-hsb')>0){this.color=col=this._fixHSB({h:parseInt(this.fields.eq(4).val(),10),s:parseInt(this.fields.eq(5).val(),10),b:parseInt(this.fields.eq(6).val(),10)});this._fillRGBFields(col);this._fillHexFields(col);}else{this.color=col=this._RGBToHSB(this._fixRGB({r:parseInt(this.fields.eq(1).val(),10),g:parseInt(this.fields.eq(2).val(),10),b:parseInt(this.fields.eq(3).val(),10)}));this._fillHexFields(col);this._fillHSBFields(col);}
26
- this._setSelector(col);this._setHue(col);this._setNewColor(col);this._trigger('change',e,{options:this.options,hsb:col,hex:this._HSBToHex(col),rgb:this._HSBToRGB(col)});},_blur:function(e){var col=this.color;this._fillRGBFields(col);this._fillHSBFields(col);this._fillHexFields(col);this._setHue(col);this._setSelector(col);this._setNewColor(col);this.fields.parent().removeClass('ui-colorpicker-focus');},_focus:function(e){this.charMin=e.target.parentNode.className.indexOf('-hex')>0?70:65;this.fields.parent().removeClass('ui-colorpicker-focus');$(e.target.parentNode).addClass('ui-colorpicker-focus');},_downIncrement:function(e){var field=$(e.target).parent().find('input').focus(),self=this;this.currentIncrement={el:$(e.target).parent().addClass('ui-colorpicker-slider'),max:e.target.parentNode.className.indexOf('-hsb-h')>0?360:(e.target.parentNode.className.indexOf('-hsb')>0?100:255),y:e.pageY,field:field,val:parseInt(field.val(),10)};$(document).bind('mouseup.cpSlider',function(e){return self._upIncrement.call(self,e);});$(document).bind('mousemove.cpSlider',function(e){return self._moveIncrement.call(self,e);});return false;},_moveIncrement:function(e){this.currentIncrement.field.val(Math.max(0,Math.min(this.currentIncrement.max,parseInt(this.currentIncrement.val+e.pageY-this.currentIncrement.y,10))));this._change.apply(this,[e,this.currentIncrement.field.get(0)]);return false;},_upIncrement:function(e){this.currentIncrement.el.removeClass('ui-colorpicker-slider').find('input').focus();this._change.apply(this,[e,this.currentIncrement.field.get(0)]);$(document).unbind('mouseup.cpSlider');$(document).unbind('mousemove.cpSlider');return false;},_downHue:function(e){this.currentHue={y:this.picker.find('div.ui-colorpicker-hue').offset().top};this._change.apply(this,[e,this.fields.eq(4).val(parseInt(360*(150-Math.max(0,Math.min(150,(e.pageY-this.currentHue.y))))/150,10)).get(0)]);var self=this;$(document).bind('mouseup.cpSlider',function(e){return self._upHue.call(self,e);});$(document).bind('mousemove.cpSlider',function(e){return self._moveHue.call(self,e);});return false;},_moveHue:function(e){this._change.apply(this,[e,this.fields.eq(4).val(parseInt(360*(150-Math.max(0,Math.min(150,(e.pageY-this.currentHue.y))))/150,10)).get(0)]);return false;},_upHue:function(e){$(document).unbind('mouseup.cpSlider');$(document).unbind('mousemove.cpSlider');return false;},_downSelector:function(e){var self=this;this.currentSelector={pos:this.picker.find('div.ui-colorpicker-color').offset()};this._change.apply(this,[e,this.fields.eq(6).val(parseInt(100*(150-Math.max(0,Math.min(150,(e.pageY-this.currentSelector.pos.top))))/150,10)).end().eq(5).val(parseInt(100*(Math.max(0,Math.min(150,(e.pageX-this.currentSelector.pos.left))))/150,10)).get(0)]);$(document).bind('mouseup.cpSlider',function(e){return self._upSelector.call(self,e);});$(document).bind('mousemove.cpSlider',function(e){return self._moveSelector.call(self,e);});return false;},_moveSelector:function(e){this._change.apply(this,[e,this.fields.eq(6).val(parseInt(100*(150-Math.max(0,Math.min(150,(e.pageY-this.currentSelector.pos.top))))/150,10)).end().eq(5).val(parseInt(100*(Math.max(0,Math.min(150,(e.pageX-this.currentSelector.pos.left))))/150,10)).get(0)]);return false;},_upSelector:function(e){$(document).unbind('mouseup.cpSlider');$(document).unbind('mousemove.cpSlider');return false;},_enterSubmit:function(e){this.picker.find('.ui-colorpicker-submit').addClass('ui-colorpicker-focus');},_leaveSubmit:function(e){this.picker.find('.ui-colorpicker-submit').removeClass('ui-colorpicker-focus');},_clickSubmit:function(e){var col=this.color;this.origColor=col;this._setCurrentColor(col);this._trigger("submit",e,{options:this.options,hsb:col,hex:this._HSBToHex(col),rgb:this._HSBToRGB(col)});return false;},_show:function(e){this._trigger("beforeShow",e,{options:this.options,hsb:this.color,hex:this._HSBToHex(this.color),rgb:this._HSBToRGB(this.color)});var pos=this.element.offset();var viewPort=this._getScroll();var top=pos.top+this.element[0].offsetHeight;var left=pos.left;if(top+176>viewPort.t+Math.min(viewPort.h,viewPort.ih)){top-=this.element[0].offsetHeight+176;}
27
- if(left+356>viewPort.l+Math.min(viewPort.w,viewPort.iw)){left-=356;}
28
- this.picker.css({left:left+'px',top:top+'px'});if(this._trigger("show",e,{options:this.options,hsb:this.color,hex:this._HSBToHex(this.color),rgb:this._HSBToRGB(this.color)})!=false){this.picker.show();}
29
- var self=this;$(document).bind('mousedown.colorpicker',function(e){return self._hide.call(self,e);});return false;},_hide:function(e){if(!this._isChildOf(this.picker[0],e.target,this.picker[0])){if(this._trigger("hide",e,{options:this.options,hsb:this.color,hex:this._HSBToHex(this.color),rgb:this._HSBToRGB(this.color)})!=false){this.picker.hide();}
30
- $(document).unbind('mousedown.colorpicker');}},_isChildOf:function(parentEl,el,container){if(parentEl==el){return true;}
31
- if(parentEl.contains&&!$.browser.safari){return parentEl.contains(el);}
32
- if(parentEl.compareDocumentPosition){return!!(parentEl.compareDocumentPosition(el)&16);}
33
- var prEl=el.parentNode;while(prEl&&prEl!=container){if(prEl==parentEl)
34
- return true;prEl=prEl.parentNode;}
35
- return false;},_getScroll:function(){var t,l,w,h,iw,ih;if(document.documentElement){t=document.documentElement.scrollTop;l=document.documentElement.scrollLeft;w=document.documentElement.scrollWidth;h=document.documentElement.scrollHeight;}else{t=document.body.scrollTop;l=document.body.scrollLeft;w=document.body.scrollWidth;h=document.body.scrollHeight;}
36
- iw=self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0;ih=self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0;return{t:t,l:l,w:w,h:h,iw:iw,ih:ih};},_fixHSB:function(hsb){return{h:Math.min(360,Math.max(0,hsb.h)),s:Math.min(100,Math.max(0,hsb.s)),b:Math.min(100,Math.max(0,hsb.b))};},_fixRGB:function(rgb){return{r:Math.min(255,Math.max(0,rgb.r)),g:Math.min(255,Math.max(0,rgb.g)),b:Math.min(255,Math.max(0,rgb.b))};},_HexToRGB:function(hex){var hex=parseInt(((hex.indexOf('#')>-1)?hex.substring(1):hex),16);return{r:hex>>16,g:(hex&0x00FF00)>>8,b:(hex&0x0000FF)};},_HexToHSB:function(hex){return this._RGBToHSB(this._HexToRGB(hex));},_RGBToHSB:function(rgb){var hsb={};hsb.b=Math.max(Math.max(rgb.r,rgb.g),rgb.b);hsb.s=(hsb.b<=0)?0:Math.round(100*(hsb.b-Math.min(Math.min(rgb.r,rgb.g),rgb.b))/hsb.b);hsb.b=Math.round((hsb.b/255)*100);if((rgb.r==rgb.g)&&(rgb.g==rgb.b))hsb.h=0;else if(rgb.r>=rgb.g&&rgb.g>=rgb.b)hsb.h=60*(rgb.g-rgb.b)/(rgb.r-rgb.b);else if(rgb.g>=rgb.r&&rgb.r>=rgb.b)hsb.h=60+60*(rgb.g-rgb.r)/(rgb.g-rgb.b);else if(rgb.g>=rgb.b&&rgb.b>=rgb.r)hsb.h=120+60*(rgb.b-rgb.r)/(rgb.g-rgb.r);else if(rgb.b>=rgb.g&&rgb.g>=rgb.r)hsb.h=180+60*(rgb.b-rgb.g)/(rgb.b-rgb.r);else if(rgb.b>=rgb.r&&rgb.r>=rgb.g)hsb.h=240+60*(rgb.r-rgb.g)/(rgb.b-rgb.g);else if(rgb.r>=rgb.b&&rgb.b>=rgb.g)hsb.h=300+60*(rgb.r-rgb.b)/(rgb.r-rgb.g);else hsb.h=0;hsb.h=Math.round(hsb.h);return hsb;},_HSBToRGB:function(hsb){var rgb={};var h=Math.round(hsb.h);var s=Math.round(hsb.s*255/100);var v=Math.round(hsb.b*255/100);if(s==0){rgb.r=rgb.g=rgb.b=v;}else{var t1=v;var t2=(255-s)*v/255;var t3=(t1-t2)*(h%60)/60;if(h==360)h=0;if(h<60){rgb.r=t1;rgb.b=t2;rgb.g=t2+t3;}
37
- else if(h<120){rgb.g=t1;rgb.b=t2;rgb.r=t1-t3;}
38
- else if(h<180){rgb.g=t1;rgb.r=t2;rgb.b=t2+t3;}
39
- else if(h<240){rgb.b=t1;rgb.r=t2;rgb.g=t1-t3;}
40
- else if(h<300){rgb.b=t1;rgb.g=t2;rgb.r=t2+t3;}
41
- else if(h<360){rgb.r=t1;rgb.g=t2;rgb.b=t1-t3;}
42
- else{rgb.r=0;rgb.g=0;rgb.b=0;}}
43
- return{r:Math.round(rgb.r),g:Math.round(rgb.g),b:Math.round(rgb.b)};},_RGBToHex:function(rgb){var hex=[rgb.r.toString(16),rgb.g.toString(16),rgb.b.toString(16)];$.each(hex,function(nr,val){if(val.length==1){hex[nr]='0'+val;}});return hex.join('');},_HSBToHex:function(hsb){return this._RGBToHex(this._HSBToRGB(hsb));},setColor:function(col){if(typeof col=='string'){col=this._HexToHSB(col);}else if(col.r!=undefined&&col.g!=undefined&&col.b!=undefined){col=this._RGBToHSB(col);}else if(col.h!=undefined&&col.s!=undefined&&col.b!=undefined){col=this._fixHSB(col);}else{return this;}
44
- this.color=col;this.origColor=col;this._fillRGBFields(col);this._fillHSBFields(col);this._fillHexFields(col);this._setHue(col);this._setSelector(col);this._setCurrentColor(col);this._setNewColor(col);}});$.extend($.ui.colorpicker,{defaults:{eventName:'click',color:'ff0000',flat:false}});})(jQuery);
my-calendar-categories.php CHANGED
@@ -36,20 +36,59 @@ echo my_calendar_check_db();
36
// We do some checking to see what we're doing
37
if (isset($_POST['mode']) && $_POST['mode'] == 'add') {
38
$sql = "INSERT INTO " . MY_CALENDAR_CATEGORIES_TABLE . " SET category_name='".mysql_real_escape_string($_POST['category_name'])."', category_color='".mysql_real_escape_string($_POST['category_color'])."', category_icon='".mysql_real_escape_string($_POST['category_icon'])."'";
39
- $wpdb->get_results($sql);
40
echo "<div class=\"updated\"><p><strong>".__('Category added successfully','my-calendar')."</strong></p></div>";
41
} else if (isset($_GET['mode']) && isset($_GET['category_id']) && $_GET['mode'] == 'delete') {
42
$sql = "DELETE FROM " . MY_CALENDAR_CATEGORIES_TABLE . " WHERE category_id=".mysql_real_escape_string($_GET['category_id']);
43
- $wpdb->get_results($sql);
44
- $sql = "UPDATE " . MY_CALENDAR_TABLE . " SET event_category=1 WHERE event_category=".mysql_real_escape_string($_GET['category_id']);
45
- $wpdb->get_results($sql);
46
- echo "<div class=\"updated\"><p><strong>".__('Category deleted successfully','my-calendar')."</strong></p></div>";
47
} else if (isset($_GET['mode']) && isset($_GET['category_id']) && $_GET['mode'] == 'edit' && !isset($_POST['mode'])) {
48
$sql = "SELECT * FROM " . MY_CALENDAR_CATEGORIES_TABLE . " WHERE category_id=".mysql_real_escape_string($_GET['category_id']);
49
$cur_cat = $wpdb->get_row($sql);
50
- ?>
51
- <h2><?php _e('Edit Category','my-calendar'); ?></h2>
52
53
54
<?php jd_show_support_box(); ?>
55
<div id="poststuff" class="jd-my-calendar">
@@ -58,23 +97,23 @@ echo my_calendar_check_db();
58
<h3><?php _e('Category Editor','my-calendar'); ?></h3>
59
<div class="inside">
60
<form name="my-calendar" id="my-calendar" method="post" action="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar-categories">
61
<div>
62
<input type="hidden" name="mode" value="edit" />
63
<input type="hidden" name="category_id" value="<?php echo $cur_cat->category_id ?>" />
64
- </div>
65
<fieldset>
66
<legend><?php _e('Edit Category','my-calendar'); ?></legend>
67
<label for="category_name"><?php _e('Category Name','my-calendar'); ?>:</label> <input type="text" id="category_name" name="category_name" class="input" size="30" value="<?php echo $cur_cat->category_name ?>" /><br />
68
<label for="category_color"><?php _e('Category Color (Hex format)','my-calendar'); ?>:</label> <input type="text" id="category_color" name="category_color" class="input" size="10" maxlength="7" value="<?php echo $cur_cat->category_color ?>" /><br />
69
<label for="category_icon"><?php _e('Category Icon','my-calendar'); ?>:</label> <select name="category_icon" id="category_icon">
70
<?php
71
- if ( file_exists( WP_PLUGIN_DIR . '/my-calendar-custom/' ) ) {
72
- $directory = WP_PLUGIN_DIR . '/my-calendar-custom/';
73
- $path = '/my-calendar-custom';
74
- } else {
75
- $directory = dirname(__FILE__).'/icons/';
76
- $path = '/my-calendar/icons';
77
- }
78
$files = my_dirlist($directory);
79
foreach ($files as $value) {
80
if ($cur_cat->category_icon == $value) {
@@ -93,56 +132,15 @@ if ($cur_cat->category_icon == $value) {
93
</form>
94
</div>
95
</div>
96
</div>
97
- <?php
98
- } else if (isset($_POST['mode']) && isset($_POST['category_id']) && isset($_POST['category_name']) && isset($_POST['category_color']) && $_POST['mode'] == 'edit') {
99
- $sql = "UPDATE " . MY_CALENDAR_CATEGORIES_TABLE . " SET category_name='".mysql_real_escape_string($_POST['category_name'])."', category_color='".mysql_real_escape_string($_POST['category_color'])."', category_icon='".mysql_real_escape_string($_POST['category_icon'])."' WHERE category_id=".mysql_real_escape_string($_POST['category_id']);
100
- $wpdb->get_results($sql);
101
- echo "<div class=\"updated\"><p><strong>".__('Category edited successfully','my-calendar')."</strong></p></div>";
102
- }
103
-
104
- if ($_GET['mode'] != 'edit' || $_POST['mode'] == 'edit') {
105
- ?>
106
-
107
- <h2><?php _e('Add Category','my-calendar'); ?></h2>
108
- <?php jd_show_support_box(); ?>
109
- <div id="poststuff" class="jd-my-calendar">
110
- <div class="postbox">
111
- <h3><?php _e('Add New Category','my-calendar'); ?></h3>
112
- <div class="inside">
113
- <form name="my-calendar" id="my-calendar" method="post" action="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar-categories">
114
- <div>
115
- <input type="hidden" name="mode" value="add" />
116
- <input type="hidden" name="category_id" value="" />
117
- </div>
118
- <fieldset>
119
- <legend><?php _e('Add Category'); ?></legend>
120
- <label for="category_name"><?php _e('Category Name','my-calendar'); ?>:</label> <input type="text" id="category_name" name="category_name" class="input" size="30" value="" /><br />
121
- <label for="category_color"><?php _e('Category Color (Hex format)','my-calendar'); ?>:</label> <input type="text" id="category_color" name="category_color" class="input" size="10" maxlength="7" value="#" /><br />
122
- <label for="category_icon"><?php _e('Category Icon','my-calendar'); ?>:</label> <select name="category_icon" id="category_icon">
123
<?php
124
- if ( file_exists( WP_PLUGIN_DIR . '/my-calendar-custom/' ) ) {
125
- $directory = WP_PLUGIN_DIR . '/my-calendar-custom/';
126
- $path = '/my-calendar-custom';
127
- } else {
128
- $directory = dirname(__FILE__).'/icons/';
129
- $path = '/my-calendar/icons';
130
- }
131
- $files = my_dirlist($directory);
132
- foreach ($files as $value) {
133
- echo "<option value='$value' style='background: url(".WP_PLUGIN_URL."$path/$value) no-repeat;'>$value</option>";
134
}
135
- ?>
136
- </select>
137
- </fieldset>
138
- <p>
139
- <input type="submit" name="save" class="button-primary" value="<?php _e('Add Category','my-calendar'); ?> &raquo;" />
140
- </p>
141
- </form>
142
- </div>
143
- </div>
144
- </div>
145
- <h2><?php _e('Manage Categories','my-calendar'); ?></h2>
146
<?php
147
148
// We pull the categories from the database
@@ -195,9 +193,4 @@ foreach ($files as $value) {
195
</div>
196
197
<?php
198
- }
199
- ?>
200
- </div>
201
- <?php
202
- }
203
- ?>
36
// We do some checking to see what we're doing
37
if (isset($_POST['mode']) && $_POST['mode'] == 'add') {
38
$sql = "INSERT INTO " . MY_CALENDAR_CATEGORIES_TABLE . " SET category_name='".mysql_real_escape_string($_POST['category_name'])."', category_color='".mysql_real_escape_string($_POST['category_color'])."', category_icon='".mysql_real_escape_string($_POST['category_icon'])."'";
39
+ $results = $wpdb->query($sql);
40
+ if ( $results ) {
41
echo "<div class=\"updated\"><p><strong>".__('Category added successfully','my-calendar')."</strong></p></div>";
42
+ } else {
43
+ echo "<div class=\"error\"><p><strong>".__('Category addition failed.','my-calendar')."</strong></p></div>";
44
+ }
45
} else if (isset($_GET['mode']) && isset($_GET['category_id']) && $_GET['mode'] == 'delete') {
46
$sql = "DELETE FROM " . MY_CALENDAR_CATEGORIES_TABLE . " WHERE category_id=".mysql_real_escape_string($_GET['category_id']);
47
+ $results = $wpdb->query($sql);
48
+ if ($results) {
49
+ $sql = "UPDATE " . MY_CALENDAR_TABLE . " SET event_category=1 WHERE event_category=".mysql_real_escape_string($_GET['category_id']);
50
+ $cal_results = $wpdb->query($sql);
51
+ }
52
+ if ($results && $cal_results) {
53
+ echo "<div class=\"updated\"><p><strong>".__('Category deleted successfully. Categories in calendar updated.','my-calendar')."</strong></p></div>";
54
+ } else if ( $results && !$cal_results ) {
55
+ echo "<div class=\"updated\"><p><strong>".__('Category deleted successfully. Categories in calendar not updated.','my-calendar')."</strong></p></div>";
56
+ } else if ( !$results && $cal_results ) {
57
+ echo "<div class=\"updated\"><p><strong>".__('Category not deleted. Categories in calendar updated.','my-calendar')."</strong></p></div>";
58
+ }
59
} else if (isset($_GET['mode']) && isset($_GET['category_id']) && $_GET['mode'] == 'edit' && !isset($_POST['mode'])) {
60
$sql = "SELECT * FROM " . MY_CALENDAR_CATEGORIES_TABLE . " WHERE category_id=".mysql_real_escape_string($_GET['category_id']);
61
$cur_cat = $wpdb->get_row($sql);
62
+ mc_edit_category_form('edit',$cur_cat);
63
+ } else if (isset($_POST['mode']) && isset($_POST['category_id']) && isset($_POST['category_name']) && isset($_POST['category_color']) && $_POST['mode'] == 'edit') {
64
+ $sql = "UPDATE " . MY_CALENDAR_CATEGORIES_TABLE . " SET category_name='".mysql_real_escape_string($_POST['category_name'])."', category_color='".mysql_real_escape_string($_POST['category_color'])."', category_icon='".mysql_real_escape_string($_POST['category_icon'])."' WHERE category_id=".mysql_real_escape_string($_POST['category_id']);
65
+ $wpdb->get_results($sql);
66
+ echo "<div class=\"updated\"><p><strong>".__('Category edited successfully','my-calendar')."</strong></p></div>";
67
+ }
68
69
+ if ($_GET['mode'] != 'edit' || $_POST['mode'] == 'edit') {
70
+ mc_edit_category_form('add');
71
+ }
72
+ ?>
73
+ </div>
74
+ <?php
75
+ }
76
+
77
+ function mc_edit_category_form($view='edit',$cur_cat='') {
78
+ global $path;
79
+ if ( file_exists( WP_PLUGIN_DIR . '/my-calendar-custom/' ) ) {
80
+ $directory = WP_PLUGIN_DIR . '/my-calendar-custom/';
81
+ $path = '/my-calendar-custom';
82
+ } else {
83
+ $directory = dirname(__FILE__).'/icons/';
84
+ $path = '/my-calendar/icons';
85
+ }
86
+ ?>
87
+ <?php if ($view == 'add') { ?>
88
+ <h2><?php _e('Add Category','my-calendar'); ?></h2>
89
+ <?php } else { ?>
90
+ <h2><?php _e('Edit Category','my-calendar'); ?></h2>
91
+ <?php } ?>
92
93
<?php jd_show_support_box(); ?>
94
<div id="poststuff" class="jd-my-calendar">
97
<h3><?php _e('Category Editor','my-calendar'); ?></h3>
98
<div class="inside">
99
<form name="my-calendar" id="my-calendar" method="post" action="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar-categories">
100
+ <?php if ($view == 'add') { ?>
101
+ <div>
102
+ <input type="hidden" name="mode" value="add" />
103
+ <input type="hidden" name="category_id" value="" />
104
+ </div>
105
+ <?php } else { ?>
106
<div>
107
<input type="hidden" name="mode" value="edit" />
108
<input type="hidden" name="category_id" value="<?php echo $cur_cat->category_id ?>" />
109
+ </div>
110
+ <?php } ?>
111
<fieldset>
112
<legend><?php _e('Edit Category','my-calendar'); ?></legend>
113
<label for="category_name"><?php _e('Category Name','my-calendar'); ?>:</label> <input type="text" id="category_name" name="category_name" class="input" size="30" value="<?php echo $cur_cat->category_name ?>" /><br />
114
<label for="category_color"><?php _e('Category Color (Hex format)','my-calendar'); ?>:</label> <input type="text" id="category_color" name="category_color" class="input" size="10" maxlength="7" value="<?php echo $cur_cat->category_color ?>" /><br />
115
<label for="category_icon"><?php _e('Category Icon','my-calendar'); ?>:</label> <select name="category_icon" id="category_icon">
116
<?php
117
$files = my_dirlist($directory);
118
foreach ($files as $value) {
119
if ($cur_cat->category_icon == $value) {
132
</form>
133
</div>
134
</div>
135
+ <?php mc_manage_categories(); ?>
136
</div>
137
<?php
138
}
139
+
140
+ function mc_manage_categories() {
141
+ global $wpdb, $path;
142
+ ?>
143
+ <h2><?php _e('Manage Categories','my-calendar'); ?></h2>
144
<?php
145
146
// We pull the categories from the database
193
</div>
194
195
<?php
196
+ }
my-calendar-da_DK.mo ADDED
Binary file
my-calendar-da_DK.po ADDED
@@ -0,0 +1,1268 @@
1
+ # Translation of the WordPress plugin My Calendar 1.4.3 by Joseph C Dolson.
2
+ # Copyright (C) 2010 Joseph C Dolson
3
+ # This file is distributed under the same license as the My Calendar package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: My Calendar 1.4.3\n"
9
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/my-calendar\n"
10
+ "POT-Creation-Date: 2010-08-03 17:58+0000\n"
11
+ "PO-Revision-Date: 2010-08-12 11:18+0100\n"
12
+ "Last-Translator: Jakob Smith <jakob@omkalfatring.dk>\n"
13
+ "Language-Team: omkalfatring.dk <jakob@omkalfatring.dk>\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: Danish\n"
18
+ "X-Poedit-Country: DENMARK\n"
19
+ "X-Poedit-SourceCharset: utf-8\n"
20
+
21
+ #: my-calendar-categories.php:40
22
+ msgid "Category added successfully"
23
+ msgstr "Kategori tilføjet"
24
+
25
+ #: my-calendar-categories.php:46
26
+ msgid "Category deleted successfully"
27
+ msgstr "Kategori slettet"
28
+
29
+ #: my-calendar-categories.php:51
30
+ #: my-calendar-categories.php:66
31
+ msgid "Edit Category"
32
+ msgstr "Rediger kategori"
33
+
34
+ #: my-calendar-categories.php:58
35
+ msgid "Category Editor"
36
+ msgstr "Kategoriredigering"
37
+
38
+ #: my-calendar-categories.php:67
39
+ #: my-calendar-categories.php:120
40
+ #: my-calendar-categories.php:158
41
+ msgid "Category Name"
42
+ msgstr "Kategori Navn"
43
+
44
+ #: my-calendar-categories.php:68
45
+ #: my-calendar-categories.php:121
46
+ msgid "Category Color (Hex format)"
47
+ msgstr "Kategori Farve (Hex format)"
48
+
49
+ #: my-calendar-categories.php:69
50
+ #: my-calendar-categories.php:122
51
+ #: my-calendar-categories.php:160
52
+ msgid "Category Icon"
53
+ msgstr "Kategori Ikon"
54
+
55
+ #: my-calendar-categories.php:91
56
+ #: my-calendar-locations.php:82
57
+ msgid "Save Changes"
58
+ msgstr "Gem Ændringer"
59
+
60
+ #: my-calendar-categories.php:101
61
+ msgid "Category edited successfully"
62
+ msgstr "Kategori redigeret"
63
+
64
+ #: my-calendar-categories.php:107
65
+ #: my-calendar-categories.php:119
66
+ #: my-calendar-categories.php:139
67
+ msgid "Add Category"
68
+ msgstr "Tilføj Kategori"
69
+
70
+ #: my-calendar-categories.php:111
71
+ msgid "Add New Category"
72
+ msgstr "Tilføj Ny Kategori"
73
+
74
+ #: my-calendar-categories.php:145
75
+ #: my-calendar.php:169
76
+ msgid "Manage Categories"
77
+ msgstr "Administrer Kategorier"
78
+
79
+ #: my-calendar-categories.php:157
80
+ #: my-calendar-event-manager.php:836
81
+ #: my-calendar-locations.php:171
82
+ msgid "ID"
83
+ msgstr "ID"
84
+
85
+ #: my-calendar-categories.php:159
86
+ msgid "Category Color"
87
+ msgstr "Kategori Farve"
88
+
89
+ #: my-calendar-categories.php:161
90
+ #: my-calendar-categories.php:175
91
+ #: my-calendar-event-manager.php:887
92
+ #: my-calendar-locations.php:173
93
+ #: my-calendar-locations.php:185
94
+ msgid "Edit"
95
+ msgstr "Rediger"
96
+
97
+ #: my-calendar-categories.php:162
98
+ #: my-calendar-categories.php:181
99
+ #: my-calendar-event-manager.php:57
100
+ #: my-calendar-event-manager.php:887
101
+ #: my-calendar-locations.php:174
102
+ #: my-calendar-locations.php:186
103
+ msgid "Delete"
104
+ msgstr "Slet"
105
+
106
+ #: my-calendar-categories.php:178
107
+ #: my-calendar-event-manager.php:873
108
+ #: my-calendar-settings.php:209
109
+ #: my-calendar.php:710
110
+ msgid "N/A"
111
+ msgstr "Ikke oplyst"
112
+
113
+ #: my-calendar-categories.php:181
114
+ #: my-calendar-locations.php:186
115
+ msgid "Are you sure you want to delete this category?"
116
+ msgstr "Er du sikker på, at du vil slette denne kategori?"
117
+
118
+ #: my-calendar-categories.php:192
119
+ msgid "There are no categories in the database - something has gone wrong!"
120
+ msgstr "Der er ingen kategorier i databasen - noget er gået galt!"
121
+
122
+ #: my-calendar-event-manager.php:13
123
+ #: my-calendar-settings.php:249
124
+ msgid "My Calendar has identified that you have the Calendar plugin by Kieran O'Shea installed. You can import those events and categories into the My Calendar database. Would you like to import these events?"
125
+ msgstr "My Calendar har registreret, at du har Kieran O'Sheas Calendar-plugin installeret. Du kan importere begivenheder og kategorier derfra til din My Calendar-database. Ønsker du at gøre dette?"
126
+
127
+ #: my-calendar-event-manager.php:19
128
+ #: my-calendar-settings.php:255
129
+ msgid "Import from Calendar"
130
+ msgstr "Importer fra Calendar"
131
+
132
+ #: my-calendar-event-manager.php:24
133
+ msgid "Although it is possible that this import could fail to import your events correctly, it should not have any impact on your existing Calendar database. If you encounter any problems, <a href=\"http://www.joedolson.com/contact.php\">please contact me</a>!"
134
+ msgstr "Selvom det er muligt, at denne import ikke kan importere dine begivenheder korrekt, skulle det ikke have nogen indvirkning på din eksisterende Calendar-database. <a href=\"http://www.joedolson.com/contact.php\">Kontakt mig venligst</a>, hvis du kommer ud for problemer."
135
+
136
+ #: my-calendar-event-manager.php:52
137
+ msgid "Delete Event"
138
+ msgstr "Slet Begivenhed"
139
+
140
+ #: my-calendar-event-manager.php:52
141
+ msgid "Are you sure you want to delete this event?"
142
+ msgstr "Er du sikker på, at du vil slette denne begivenhed?"
143
+
144
+ #: my-calendar-event-manager.php:65
145
+ msgid "You do not have permission to delete that event."
146
+ msgstr "Du har ikke tilladelse til at slette denne begivenhed."
147
+
148
+ #: my-calendar-event-manager.php:156
149
+ #: my-calendar-event-manager.php:161
150
+ #: my-calendar-event-manager.php:166
151
+ #: my-calendar-event-manager.php:176
152
+ #: my-calendar-event-manager.php:184
153
+ #: my-calendar-event-manager.php:193
154
+ #: my-calendar-event-manager.php:201
155
+ #: my-calendar-event-manager.php:239
156
+ #: my-calendar-event-manager.php:368
157
+ #: my-calendar-event-manager.php:373
158
+ #: my-calendar-event-manager.php:378
159
+ #: my-calendar-event-manager.php:388
160
+ #: my-calendar-event-manager.php:396
161
+ #: my-calendar-event-manager.php:405
162
+ #: my-calendar-event-manager.php:413
163
+ #: my-calendar-event-manager.php:498
164
+ #: my-calendar-event-manager.php:513
165
+ msgid "Error"
166
+ msgstr "Fejl"
167
+
168
+ #: my-calendar-event-manager.php:156
169
+ #: my-calendar-event-manager.php:368
170
+ msgid "Your event end date must be either after or the same as your event begin date"
171
+ msgstr "Din begivenheds slutdato må enten ligge efter eller være lig med begivenhedens startdato."
172
+
173
+ #: my-calendar-event-manager.php:161
174
+ #: my-calendar-event-manager.php:373
175
+ msgid "Your date formatting is correct but one or more of your dates is invalid. Check for number of days in month and leap year related errors."
176
+ msgstr "Din datoformattering er korrekt, men en eller flere af dine datoer er ugyldige. Tjek for fejl relateret til enten antal dage i måneden eller skudår."
177
+
178
+ #: my-calendar-event-manager.php:166
179
+ #: my-calendar-event-manager.php:378
180
+ msgid "Both start and end dates must be entered and be in the format YYYY-MM-DD"
181
+ msgstr "Både start- og slutdato skal indtastes og være i formatet ÅÅÅÅ-MM-DD"
182
+
183
+ #: my-calendar-event-manager.php:176
184
+ #: my-calendar-event-manager.php:388
185
+ msgid "The time field must either be blank or be entered in the format hh:mm"
186
+ msgstr "Feltet for tidspunkt skal enten være blankt eller indtastes i formatet tt:mm"
187
+
188
+ #: my-calendar-event-manager.php:184
189
+ #: my-calendar-event-manager.php:396
190
+ msgid "The URL entered must either be prefixed with http:// or be completely blank"
191
+ msgstr "Den indtastede URL skal enten være foranstillet med http:// eller være helt blank"
192
+
193
+ #: my-calendar-event-manager.php:193
194
+ #: my-calendar-event-manager.php:405
195
+ msgid "The event title must be between 1 and 255 characters in length."
196
+ msgstr "Begivenhedens titel skal være mellem 1 og 255 tegn i længde."
197
+
198
+ #: my-calendar-event-manager.php:201
199
+ #: my-calendar-event-manager.php:413
200
+ msgid "The repetition value must be 0 unless a type of recurrance is selected in which case the repetition value must be 0 or higher"
201
+ msgstr "Værdien for gentagelse skal være 0, medmindre der er er valgt en type af gentagelse, i hvilket tilfælde værdien for gentagelse skal sættes til 0 eller højere."
202
+
203
+ #: my-calendar-event-manager.php:239
204
+ msgid "An event with the details you submitted could not be found in the database. This may indicate a problem with your database or the way in which it is configured."
205
+ msgstr "En begivenhed med de angivne detaljer kunne ikke findes i databasen. Dette indikerer muligvis et problem med din database eller måden, den er konfigureret på."
206
+
207
+ #: my-calendar-event-manager.php:243
208
+ msgid "Event added. It will now show in your calendar."
209
+ msgstr "Begivenhed tilføjet. Den vises nu i din kalender."
210
+
211
+ #: my-calendar-event-manager.php:345
212
+ #: my-calendar-event-manager.php:451
213
+ msgid "Failure"
214
+ msgstr "FEJL"
215
+
216
+ #: my-calendar-event-manager.php:345
217
+ msgid "You can't update an event if you haven't submitted an event id"
218
+ msgstr "Du kan ikke opdatere en begivenhed, hvis du ikke har sendt et begivenheds-id."
219
+
220
+ #: my-calendar-event-manager.php:451
221
+ msgid "Your event was not updated."
222
+ msgstr "Din begivenhed blev ikke opdateret."
223
+
224
+ #: my-calendar-event-manager.php:455
225
+ msgid "Event updated successfully"
226
+ msgstr "Begivenhed opdateret"
227
+
228
+ #: my-calendar-event-manager.php:489
229
+ msgid "You do not have sufficient permissions to edit that event."
230
+ msgstr "Du har ikke tilstrækkelige tilladelser til at redigere denne begivenhed."
231
+
232
+ #: my-calendar-event-manager.php:498
233
+ msgid "You can't delete an event if you haven't submitted an event id"
234
+ msgstr "Du kan ikke redigere en begivenhed, hvis du ikke har sendt et begivenheds-id."
235
+
236
+ #: my-calendar-event-manager.php:509
237
+ msgid "Event deleted successfully"
238
+ msgstr "Begivenhed slettet"
239
+
240
+ #: my-calendar-event-manager.php:513
241
+ msgid "Despite issuing a request to delete, the event still remains in the database. Please investigate."
242
+ msgstr "Selvom der blev sendt en forespørgsel om sletning, eksisterer begivenheden stadig i databasen. Undersøg venligst."
243
+
244
+ #: my-calendar-event-manager.php:531
245
+ #: my-calendar-event-manager.php:604
246
+ msgid "Edit Event"
247
+ msgstr "Rediger Begivenhed"
248
+
249
+ #: my-calendar-event-manager.php:535
250
+ msgid "You must provide an event id in order to edit it"
251
+ msgstr "Du skal angive et begivenheds-id for at kunne redigere den"
252
+
253
+ #: my-calendar-event-manager.php:541
254
+ msgid "Add Event"
255
+ msgstr "Tilføj Begivenhed"
256
+
257
+ #: my-calendar-event-manager.php:546
258
+ msgid "Manage Events"
259
+ msgstr "Administrer Begivenheder"
260
+
261
+ #: my-calendar-event-manager.php:580
262
+ msgid "Sorry! That's an invalid event key."
263
+ msgstr "Beklager! Det er et ugyldigt begivenheds-ID."
264
+
265
+ #: my-calendar-event-manager.php:585
266
+ msgid "Sorry! We couldn't find an event with that ID."
267
+ msgstr "Beklager! Vi kunne ikke finde en begivenhed med det ID."
268
+
269
+ #: my-calendar-event-manager.php:604
270
+ msgid "Add an Event"
271
+ msgstr "Tilføj en Begivenhed"
272
+
273
+ #: my-calendar-event-manager.php:613
274
+ msgid "Enter your Event Information"
275
+ msgstr "Indtast oplysninger om begivenheden"
276
+
277
+ #: my-calendar-event-manager.php:615
278
+ msgid "Event Title"
279
+ msgstr "Begivenheds Titel"
280
+
281
+ #: my-calendar-event-manager.php:618
282
+ msgid "Event Description (<abbr title=\"hypertext markup language\">HTML</abbr> allowed)"
283
+ msgstr "Beskrivelse af begivenhed (<abbr title=\"hypertext markup language\">HTML</abbr> tilladt)"
284
+
285
+ #: my-calendar-event-manager.php:621
286
+ msgid "Event Category"
287
+ msgstr "Begivenheds Kategori"
288
+
289
+ #: my-calendar-event-manager.php:640
290
+ msgid "Event Link (Optional)"
291
+ msgstr "Begivenheds Link (valgfri)"
292
+
293
+ #: my-calendar-event-manager.php:640
294
+ msgid "This link will expire when the event passes."
295
+ msgstr "Dette link udløber, når begivenheden er overstået."
296
+
297
+ #: my-calendar-event-manager.php:643
298
+ msgid "Start Date (YYYY-MM-DD)"
299
+ msgstr "Startdato (ÅÅÅÅ-MM-DD)"
300
+
301
+ #: my-calendar-event-manager.php:646
302
+ msgid "End Date (YYYY-MM-DD) (Optional)"
303
+ msgstr "Slutdato (ÅÅÅÅ-MM-DD)"
304
+
305
+ #: my-calendar-event-manager.php:649
306
+ msgid "Time (hh:mm)"
307
+ msgstr "Tidspunkt (tt:mm)"
308
+
309
+ #: my-calendar-event-manager.php:660
310
+ msgid "Optional, set blank if your event is an all-day event or does not happen at a specific time."
311
+ msgstr "Valgfri, lad feltet være tomt, hvis begivenheden er en heldagsbegivenhed eller ikke foregår på et bestemt tidspunkt."
312
+
313
+ #: my-calendar-event-manager.php:660
314
+ msgid "Current time difference from GMT is "
315
+ msgstr "Nuværende tidsforskel fra GMT er "
316
+
317
+ #: my-calendar-event-manager.php:660
318
+ msgid " hour(s)"
319
+ msgstr " time(r)."
320
+
321
+ #: my-calendar-event-manager.php:663
322
+ msgid "End Time (hh:mm)"
323
+ msgstr "Sluttidspunkt (tt:mm)"
324
+
325
+ #: my-calendar-event-manager.php:674
326
+ msgid "Optional. End times will not be displayed on events where this is not set."
327
+ msgstr "Valgfri. Sluttidspunkter bliver ikke vist på begivenheder, hvor de ikke er valgt."
328
+
329
+ #: my-calendar-event-manager.php:678
330
+ msgid "Recurring Events"
331
+ msgstr "Tilbagevendende begivenheder"
332
+
333
+ #: my-calendar-event-manager.php:699
334
+ msgid "Repeats for"
335
+ msgstr "Gentages"
336
+
337
+ #: my-calendar-event-manager.php:700
338
+ msgid "Units"
339
+ msgstr "gange"
340
+
341
+ #: my-calendar-event-manager.php:701
342
+ msgid "Does not recur"
343
+ msgstr "Gentages ikke"
344
+
345
+ #: my-calendar-event-manager.php:702
346
+ #: my-calendar-event-manager.php:866
347
+ msgid "Daily"
348
+ msgstr "Dagligt"
349
+
350
+ #: my-calendar-event-manager.php:703
351
+ #: my-calendar-event-manager.php:867
352
+ msgid "Weekly"
353
+ msgstr "Ugentligt"
354
+
355
+ #: my-calendar-event-manager.php:704
356
+ msgid "Bi-weekly"
357
+ msgstr "Hveranden uge"
358
+
359
+ #: my-calendar-event-manager.php:705
360
+ #: my-calendar-event-manager.php:869
361
+ msgid "Monthly"
362
+ msgstr "Månedligt"
363
+
364
+ #: my-calendar-event-manager.php:706
365
+ msgid "Annually"
366
+ msgstr "Årligt"
367
+
368
+ #: my-calendar-event-manager.php:708
369
+ msgid "Entering 0 means forever, if a unit is selected. If the recurrance unit is left at \"Does not recur,\" the event will not reoccur."
370
+ msgstr "Indtastning af 0 betyder \"altid\", hvis en type af gentagelse er valgt. Hvis typen af gentagelse er sat til \"Gentages ikke\", vil begivenheden ikke gentages."
371
+
372
+ #: my-calendar-event-manager.php:715
373
+ #: my-calendar-locations.php:44
374
+ #: my-calendar-locations.php:113
375
+ msgid "All location fields are optional: <em>insufficient information may result in an inaccurate map</em>."
376
+ msgstr "Alle stedrelaterede felter er valgfri: <em>Utilstrækkelige oplysninger kan resultere i et upræcist kort</em>."
377
+
378
+ #: my-calendar-event-manager.php:721
379
+ msgid "Choose a preset location:"
380
+ msgstr "Vælg et forudindstillet sted:"
381
+
382
+ #: my-calendar-event-manager.php:735
383
+ msgid "Add recurring locations for later use."
384
+ msgstr "Tilføj tilbagevendende steder til senere brug."
385
+
386
+ #: my-calendar-event-manager.php:740
387
+ #: my-calendar-locations.php:47
388
+ #: my-calendar-locations.php:116
389
+ msgid "Name of Location (e.g. <em>Joe's Bar and Grill</em>)"
390
+ msgstr "Stednavn (f.eks. <em>Joe's Bar & Grill</em>)"
391
+
392
+ #: my-calendar-event-manager.php:743
393
+ #: my-calendar-locations.php:50
394
+ #: my-calendar-locations.php:119
395
+ msgid "Street Address"
396
+ msgstr "Gadenavn"
397
+
398
+ #: my-calendar-event-manager.php:746
399
+ #: my-calendar-locations.php:53
400
+ #: my-calendar-locations.php:122
401
+ msgid "Street Address (2)"
402
+ msgstr "Gadenavn (2)"
403
+
404
+ #: my-calendar-event-manager.php:749
405
+ #: my-calendar-locations.php:56
406
+ #: my-calendar-locations.php:125
407
+ msgid "City"
408
+ msgstr "By"
409
+
410
+ #: my-calendar-event-manager.php:749
411
+ #: my-calendar-locations.php:56
412
+ #: my-calendar-locations.php:125
413
+ msgid "State/Province"
414
+ msgstr "Stat/Provins"
415
+
416
+ #: my-calendar-event-manager.php:749
417
+ #: my-calendar-locations.php:56
418
+ #: my-calendar-locations.php:125
419
+ msgid "Postal Code"
420
+ msgstr "Postnummer"
421
+
422
+ #: my-calendar-event-manager.php:752
423
+ #: my-calendar-locations.php:59
424
+ #: my-calendar-locations.php:128
425
+ msgid "Country"
426
+ msgstr "Land"
427
+
428
+ #: my-calendar-event-manager.php:755
429
+ #: my-calendar-locations.php:62
430
+ #: my-calendar-locations.php:131
431
+ msgid "Initial Zoom"
432
+ msgstr "Indledende Zoom"
433
+
434
+ #: my-calendar-event-manager.php:757
435
+ #: my-calendar-locations.php:64
436
+ #: my-calendar-locations.php:133
437
+ msgid "Neighborhood"
438
+ msgstr "Nabolag"
439
+
440
+ #: my-calendar-event-manager.php:758
441
+ #: my-calendar-locations.php:65
442
+ #: my-calendar-locations.php:134
443
+ msgid "Small City"
444
+ msgstr "Lille By"
445
+
446
+ #: my-calendar-event-manager.php:759
447
+ #: my-calendar-locations.php:66
448
+ #: my-calendar-locations.php:135
449
+ msgid "Large City"
450
+ msgstr "Stor By"
451
+
452
+ #: my-calendar-event-manager.php:760
453
+ #: my-calendar-locations.php:67
454
+ #: my-calendar-locations.php:136
455
+ msgid "Greater Metro Area"
456
+ msgstr "Større byområde"
457
+
458
+ #: my-calendar-event-manager.php:761
459
+ #: my-calendar-locations.php:68
460
+ #: my-calendar-locations.php:137
461
+ msgid "State"
462
+ msgstr "Kommune"
463
+
464
+ #: my-calendar-event-manager.php:762
465
+ #: my-calendar-locations.php:69
466
+ #: my-calendar-locations.php:138
467
+ msgid "Region"
468
+ msgstr "Region"
469
+
470
+ #: my-calendar-event-manager.php:766
471
+ #: my-calendar-locations.php:73
472
+ #: my-calendar-locations.php:142
473
+ msgid "GPS Coordinates (optional)"
474
+ msgstr "GPS Koordinater (valgfri)"
475
+
476
+ #: my-calendar-event-manager.php:768
477
+ #: my-calendar-locations.php:75
478
+ #: my-calendar-locations.php:144
479
+ msgid "If you supply GPS coordinates for your location, they will be used in place of any other address information to pinpoint your location."
480
+ msgstr "Hvis du oplyser GPS koordinater for dit sted, bliver de brugt i stedet for enhver af de andre adresseoplysninger til at identificere stedet."
481
+
482
+ #: my-calendar-event-manager.php:771
483
+ #: my-calendar-locations.php:78
484
+ #: my-calendar-locations.php:147
485
+ msgid "Longitude"
486
+ msgstr "Længdegrad"
487
+
488
+ #: my-calendar-event-manager.php:771
489
+ #: my-calendar-locations.php:78
490
+ #: my-calendar-locations.php:147
491
+ msgid "Latitude"
492
+ msgstr "Breddegrad"
493
+
494
+ #: my-calendar-event-manager.php:777
495
+ msgid "Save Event"
496
+ msgstr "Gem begivenhed"
497
+
498
+ #: my-calendar-event-manager.php:837
499
+ #: my-calendar-widgets.php:37
500
+ #: my-calendar-widgets.php:122
501
+ msgid "Title"
502
+ msgstr "Titel"
503
+
504
+ #: my-calendar-event-manager.php:838
505
+ msgid "Link"
506
+ msgstr "Link"
507
+
508
+ #: my-calendar-event-manager.php:839
509
+ #: my-calendar-locations.php:172
510
+ msgid "Location"
511
+ msgstr "Sted"
512
+
513
+ #: my-calendar-event-manager.php:840
514
+ msgid "Description"
515
+ msgstr "Beskrivelse"
516
+
517
+ #: my-calendar-event-manager.php:841
518
+ msgid "Start Date"
519
+ msgstr "Startdato"
520
+
521
+ #: my-calendar-event-manager.php:842
522
+ msgid "Recurs"
523
+ msgstr "Gentages"
524
+
525
+ #: my-calendar-event-manager.php:843
526
+ #: my-calendar-settings.php:177
527
+ msgid "Author"
528
+ msgstr "Forfatter"
529
+
530
+ #: my-calendar-event-manager.php:844
531
+ msgid "Category"
532
+ msgstr "Kategori"
533
+
534
+ #: my-calendar-event-manager.php:845
535
+ msgid "Edit / Delete"
536
+ msgstr "Rediger / Slet"
537
+
538
+ #: my-calendar-event-manager.php:865
539
+ msgid "Never"
540
+ msgstr "Aldrig"
541
+
542
+ #: my-calendar-event-manager.php:868
543
+ msgid "Bi-Weekly"
544
+ msgstr "Hveranden uge"
545
+
546
+ #: my-calendar-event-manager.php:870
547
+ msgid "Yearly"
548
+ msgstr "Årligt"
549
+
550
+ #: my-calendar-event-manager.php:874
551
+ msgid "Forever"
552
+ msgstr "Altid"
553
+
554
+ #: my-calendar-event-manager.php:875
555
+ msgid "Times"
556
+ msgstr "Gange"
557
+
558
+ #: my-calendar-event-manager.php:897
559
+ msgid "There are no events in the database!"
560
+ msgstr "Der er ingen begivenheder i databasen!"
561
+
562
+ #: my-calendar-help.php:6
563
+ msgid "How to use My Calendar"
564
+ msgstr "Sådan bruger du My Calendar"
565
+
566
+ #: my-calendar-help.php:11
567
+ msgid "Shortcode Syntax"
568
+ msgstr "Shortcode syntaks"
569
+
570
+ #: my-calendar-help.php:14
571
+ msgid "These shortcodes can be used in Posts, Pages, or in text widgets."
572
+ msgstr "Disse shortcodes kan bruges i Indlæg, Sider eller i text widgets."
573
+
574
+ #: my-calendar-help.php:17
575
+ msgid "This basic shortcode will show the calendar on a post or page including all categories and the category key, in a traditional month-by-month format."
576
+ msgstr "Denne basale shortcode vil vise kalenderen i et indlæg eller en side, inklusiv alle kategorier og kategorinøglen, i et traditionelt måned-for-måned format."
577
+
578
+ #: my-calendar-help.php:20
579
+ msgid "The shortcode supports three attributes, <code>category</code>, <code>format</code> and <code>showkey</code>. There two alternate option for <code>format</code> &mdash; <code>list</code> &mdash; which will show the calendar in a list format, skipping dates without any events, and <code>mini</code>, which will display the calendar in a form more suitable to being displayed in smaller spaces, such as the sidebar. The <code>category</code> attribute requires either the name of or ID number one of your event categories (the name is case-sensitive). This will show a calendar only including events in that category. Multiple categories can be specified by separating the category names or IDs using the pipe character: <code>|</code>. Setting <code>showkey</code> to <code>no</code> will prevent the category key from being displayed &mdash; this can be useful with single-category output."
580
+ msgstr "Denne shortcode understøtter tre attributter, <code>category</code>, <code>format</code> og <code>showkey</code>. Der er to valgmuligheder for <code>format</code> &mdash; <code>list</code> &mdash; som viser kalenderen i et listeformat, hvor dage uden begivenheder springes over, og <code>mini</code>, som viser kalenderen i en form, der passer bedre ind i små områder, som f.eks. en sidebar. Attributten <code>category</code> kræver en af dine begivenhedskategoriers navn eller ID-nummer (navnet er kasusfølsomt). Dette viser en kalender, der kun inkluderer begivenheder i den angivne kategori. Flere kategorier kan specificeres ved at adskille kategorinavnene eller ID-numrene med \"pipe\"-tegnet: <code>|</code>. Sætter man <code>showkey</code> til <code>no</code>, forhindrer man kategorinøglen i at blive vist &mdash; dette kan være brugbart ved enkeltkategorioutput."
581
+
582
+ #: my-calendar-help.php:23
583
+ msgid "This shortcode displays the output of the Upcoming Events widget. Without attributes, it will display using the settings in your widget; the attributes are used to override the widget settings. The <code>before</code> and <code>after</code> attributes should be numbers; the <code>type</code> attribute can be either \"event\" or \"days\", and the <code>category</code> attribute works the same way as the category attribute on the main calendar shortcode. Templates work using the template codes listed below."
584
+ msgstr "Denne shortcode viser outputtet fra widgetten Kommende Begivenheder. Uden attributter vises den med indstillingerne fra widgetten; attributterne bruges til at tilsidesætte widgettens indstillinger. Attributterne <code>before</code> og <code>after</code> skal være tal; attributten <code>type</code> kan være enten \"event\" eller \"days\", og attributten <code>category</code> fungerer på samme måde som kategori-attributten i hovedkalenderens shortcode. Skabeloner fungerer vha. skabelonkoderne listet herunder."
585
+
586
+ #: my-calendar-help.php:26
587
+ msgid "Predictably enough, this shortcode displays the output of the Today's Events widget, with two configurable attributes: category and template."
588
+ msgstr "Forudsigeligt nok viser denne shortcode outputtet fra widgetten Dagens Begivenheder, med to indstillelige attributter: <code>category</code> og <code>template</code>."
589
+
590
+ #: my-calendar-help.php:34
591
+ msgid "Category Icons"
592
+ msgstr "Kategori Ikoner"
593
+
594
+ #: my-calendar-help.php:37
595
+ msgid "My Calendar is designed to manage multiple calendars. The basis for these calendars are categories; you can easily setup a calendar page which includes all categories, or you can dedicate separate pages to calendars in each category. For an example, this might be useful for you in managing the tour calendars for multiple bands; event calendars for a variety of locations, etc."
596
+ msgstr "My Calendar er designet til at kunne administrere flere kalendere. Udgangspunktet for dette er kategorier; du kan let opsætte en kalenderside, som inkluderer alle kategorier, eller du kan dedikere separate sider til kalendere i hver kategori. Dette kunne f.eks. være relevant, hvis du skulle administrere tourkalenderne for flere bands eller begivenhedskalenderne for en række forskellige steder."
597
+
598
+ #: my-calendar-help.php:40
599
+ msgid "The pre-installed category icons may not be especially useful for your needs or design. I'm assuming that you're going to upload your own icons -- all you need to do is upload them to the plugin's icons folder, and they'll be available for immediate use, or place them in a folder at \"my-calendar-custom\" to avoid having them overwritten by upgrades."
600
+ msgstr "De præinstallerede kategori-ikoner er måske ikke specielt velegnede til dit formål eller design. Jeg går ud fra, at du gerne vil uploade dine egne ikoner &mdash; alt du behøver at gøre er at uploade dem til mappen icons i pluginnets mappe i wp-content/plugins. Derefter er de klar til brug med det samme. Du kan også placere dem i en mappe kaldet \"my-calendar-custom\" for at undgå, at de bliver overskrevet ved opgradering af pluginnet."
601
+
602
+ #: my-calendar-help.php:40
603
+ msgid "Your icons folder is:"
604
+ msgstr "Din mappe til ikoner er:"
605
+
606
+ #: my-calendar-help.php:40
607
+ msgid "You can alternately place icons in:"
608
+ msgstr "Du kan alternativt placere ikoner i:"
609
+
610
+ #: my-calendar-help.php:48
611
+ msgid "Widget Templating"
612
+ msgstr "Widget Skabeloner"
613
+
614
+ #: my-calendar-help.php:51
615
+ msgid "These codes are available in calendar widgets to create your own custom calendar format."
616
+ msgstr "Disse koder er tilgængelige i kalenderwidgets med henblik på at kunne skabe dit eget tilpassede kalenderformat."
617
+
618
+ #: my-calendar-help.php:55
619
+ msgid "Displays the name of the category the event is in."
620
+ msgstr "Viser navnet på kategorien, som begivenheden er i."
621
+
622
+ #: my-calendar-help.php:58
623
+ msgid "Displays the title of the event."
624
+ msgstr "Viser begivenhedens titel."
625
+
626
+ #: my-calendar-help.php:61
627
+ msgid "Displays the start time for the event."
628
+ msgstr "Viser begivenhedens starttidspunkt."
629
+
630
+ #: my-calendar-help.php:64
631
+ msgid "Displays the date on which the event begins."
632
+ msgstr "Viser begivenhedens startdato."
633
+
634
+ #: my-calendar-help.php:67
635
+ msgid "Displays the date on which the event ends."
636
+ msgstr "Viser begivenhedens slutdato."
637
+
638
+ #: my-calendar-help.php:70
639
+ msgid "Displays the time at which the event ends."
640
+ msgstr "Viser begivenhedens sluttidspunkt."
641
+
642
+ #: my-calendar-help.php:73
643
+ msgid "Displays the WordPress author who posted the event."
644
+ msgstr "Viser den WordPress forfatter, der publicerede begivenheden."
645
+
646
+ #: my-calendar-help.php:76
647
+ msgid "Displays the URL provided for the event."
648
+ msgstr "Viser URL'en, der er indtastet i begivenhedens oplysninger."
649
+
650
+ #: my-calendar-help.php:79
651
+ msgid "Displays the description of the event."
652
+ msgstr "Viser beskrivelsen af begivenhden."
653
+
654
+ #: my-calendar-help.php:82
655
+ msgid "Displays title of the event as a link if a URL is present, or the title alone if no URL is available."
656
+ msgstr "Viser begivenhedens titel som et link, hvis en URL er tilgængelig, eller titlen alene, hvis en URL ikke er tilgængelig."
657
+
658
+ #: my-calendar-help.php:85
659
+ msgid "Displays the name of the location of the event."
660
+ msgstr "Viser navnet på begivenhedens sted."
661
+
662
+ #: my-calendar-help.php:88
663
+ msgid "Displays the first line of the site address."
664
+ msgstr "Viser første linie af stedets gadenavn."
665
+
666
+ #: my-calendar-help.php:91
667
+ msgid "Displays the second line of the site address."
668
+ msgstr "Viser anden linie af stedets gadenavn."
669
+
670
+ #: my-calendar-help.php:94
671
+ msgid "Displays the city for the event."
672
+ msgstr "Viser bynavnet i begivenhedens stedoplysninger."
673
+
674
+ #: my-calendar-help.php:97
675
+ msgid "Displays the state for the event."
676
+ msgstr "Viser kommunen i begivenhedens stedoplysninger."
677
+
678
+ #: my-calendar-help.php:100
679
+ msgid "Displays the postcode for the event."
680
+ msgstr "Viser postnummeret i begivenhedens stedoplysninger."
681
+
682
+ #: my-calendar-help.php:103
683
+ msgid "Displays the country for the event location."
684
+ msgstr "Viser landet i begivenhedens stedoplysninger."
685
+
686
+ #: my-calendar-help.php:106
687
+ msgid "Displays the event address in <a href=\"http://microformats.org/wiki/hcard\">hcard</a> format."
688
+ msgstr "Viser begivenhedens adresse i <a href=\"http://microformats.org/wiki/hcard\">hcard</a> format."
689
+
690
+ #: my-calendar-help.php:109
691
+ msgid "Displays a link to a Google Map of the event, if sufficient address information is available. If not, will be empty."
692
+ msgstr "Viser et link til et Google Kort over begivenhedens sted, hvis tilstrækkelige adresseinformationer er tilgængelig. Hvis ikke, vises der ikke et kort."
693
+
694
+ #: my-calendar-locations.php:21
695
+ msgid "Location added successfully"
696
+ msgstr "Sted tilføjet"
697
+
698
+ #: my-calendar-locations.php:25
699
+ msgid "Location deleted successfully"
700
+ msgstr "Sted slettet"
701
+
702
+ #: my-calendar-locations.php:30
703
+ msgid "Edit Location"
704
+ msgstr "Rediger Sted"
705
+
706
+ #: my-calendar-locations.php:34
707
+ msgid "Location Editor"
708
+ msgstr "Sted Redigering"
709
+
710
+ #: my-calendar-locations.php:93
711
+ msgid "Location edited successfully"
712
+ msgstr "Sted redigeret"
713
+
714
+ #: my-calendar-locations.php:99
715
+ #: my-calendar-locations.php:151
716
+ msgid "Add Location"
717
+ msgstr "Tilføj Sted"
718
+
719
+ #: my-calendar-locations.php:103
720
+ msgid "Add New Location"
721
+ msgstr "Tilføj Nyt Sted"
722
+
723
+ #: my-calendar-locations.php:159
724
+ #: my-calendar.php:170
725
+ msgid "Manage Locations"
726
+ msgstr "Administrer Steder"
727
+
728
+ #: my-calendar-locations.php:194
729
+ msgid "There are no locations in the database yet!"
730
+ msgstr "Der er endnu ingen steder i databasen!"
731
+
732
+ #: my-calendar-locations.php:198
733
+ msgid "Please note: editing or deleting locations stored for re-use will have no effect on any event previously scheduled at that location. The location database exists purely as a shorthand method to enter frequently used locations into event records."
734
+ msgstr "Bemærk: redigering eller sletning af steder gemt til genbrug, har ikke indvirkning på tidligere gemte begivenheder på det sted. Steddatabasen eksisterer kun som en hurtig metode til indtastning af ofte brugte steder i begivenhedsoplysninger."
735
+
736
+ #: my-calendar-settings.php:67
737
+ msgid "Categories imported successfully."
738
+ msgstr "Kategorier importeret"
739
+
740
+ #: my-calendar-settings.php:69
741
+ msgid "Categories not imported."
742
+ msgstr "Kategorier blev ikke importeret"
743
+
744
+ #: my-calendar-settings.php:72
745
+ msgid "Events imported successfully."
746
+ msgstr "Begivenheder importeret"
747
+
748
+ #: my-calendar-settings.php:74
749
+ msgid "Events not imported."
750
+ msgstr "Begivenheder blev ikke importeret"
751
+
752
+ #: my-calendar-settings.php:135
753
+ msgid "Settings saved"
754
+ msgstr "Indstillinger gemt"
755
+
756
+ #: my-calendar-settings.php:161
757
+ msgid "My Calendar Options"
758
+ msgstr "My Calendar Valgmuligheder"
759
+
760
+ #: my-calendar-settings.php:168
761
+ msgid "Calendar Settings"
762
+ msgstr "Calendar Indstillinger"
763
+
764
+ #: my-calendar-settings.php:172
765
+ msgid "Calendar Options: Management"
766
+ msgstr "Kalender Indstillinger: Administration"
767
+
768
+ #: my-calendar-settings.php:174
769
+ msgid "Choose the lowest user group that may manage events"
770
+ msgstr "Vælg den laveste brugergruppe, der må administrere begivenheder"
771
+
772
+ #: my-calendar-settings.php:175
773
+ msgid "Subscriber"
774
+ msgstr "Abonnent"
775
+
776
+ #: my-calendar-settings.php:176
777
+ msgid "Contributor"
778
+ msgstr "Bidragyder"
779
+
780
+ #: my-calendar-settings.php:178
781
+ msgid "Editor"
782
+ msgstr "Redaktør"
783
+
784
+ #: my-calendar-settings.php:179
785
+ msgid "Administrator"
786
+ msgstr "Administrator"
787
+
788
+ #: my-calendar-settings.php:184
789
+ msgid "Calendar Options: Output"
790
+ msgstr "Kalender Valgmuligheder: Output"
791
+
792
+ #: my-calendar-settings.php:186
793
+ msgid "Do you want to display the author name on events?"
794
+ msgstr "Ønsker du at vise forfatterens navn i begivenheder?"
795
+
796
+ #: my-calendar-settings.php:187
797
+ #: my-calendar-settings.php:194
798
+ msgid "Yes"
799
+ msgstr "Ja"
800
+
801
+ #: my-calendar-settings.php:188
802
+ #: my-calendar-settings.php:195
803
+ msgid "No"
804
+ msgstr "Nej"
805
+
806
+ #: my-calendar-settings.php:193
807
+ msgid "Display a jumpbox for changing month and year quickly?"
808
+ msgstr "Vis en popup-boks til hurtig ændring af måned og år?"
809
+
810
+ #: my-calendar-settings.php:199
811
+ msgid "In list mode, show how many months of events at a time:"
812
+ msgstr "Hvor mange måneders begivenheder skal vises i listevisning ad gangen:"
813
+
814
+ #: my-calendar-settings.php:202
815
+ msgid "Date format in list mode"
816
+ msgstr "Datoformat i listevisning"
817
+
818
+ #: my-calendar-settings.php:203
819
+ msgid "Date format uses the same syntax as the <a href=\"http://php.net/date\">PHP <code>date()</code> function</a>. Save option to update sample output."
820
+ msgstr "Datoformat bruger samme syntaks som <a href=\"http://php.net/date\">PHP <code>date()</code> funktionen</a>. Gem indstillingen for at opdatere test-outputtet."
821
+
822
+ #: my-calendar-settings.php:206
823
+ msgid "Show Heading for Calendar"
824
+ msgstr "Vis Overskrift for Kalender"
825
+
826
+ #: my-calendar-settings.php:209
827
+ msgid "Label for events without a specific time"
828
+ msgstr "Mærkat for begivenheder uden et specifikt tidspunkt"
829
+
830
+ #: my-calendar-settings.php:212
831
+ msgid "Previous events link text"
832
+ msgstr "Linktekst for tidligere begivenheder"
833
+
834
+ #: my-calendar-settings.php:212
835
+ msgid "Previous Events"
836
+ msgstr "Tidligere Begivenheder"
837
+
838
+ #: my-calendar-settings.php:215
839
+ msgid "Next events link text"
840
+ msgstr "Linktekst for kommende begivenheder"
841
+
842
+ #: my-calendar-settings.php:215
843
+ msgid "Next Events"
844
+ msgstr "Kommende Begivenheder"
845
+
846
+ #: my-calendar-settings.php:218
847
+ msgid "Additional caption text"
848
+ msgstr "Yderligere tekst til kalendercaption"
849
+
850
+ #: my-calendar-settings.php:218
851
+ msgid "The calendar caption is the text containing the displayed month and year in either list or calendar format. This text will be displayed following that existing text."
852
+ msgstr "Kalender caption teksten er den tekst, der indeholder den viste måned og år i enten liste- eller kalendervisning. Den indtastede tekst vises efter den eksisterende tekst."
853
+
854
+ #: my-calendar-settings.php:221
855
+ msgid "Hide category icons in output"
856
+ msgstr "Skjul kategori-ikoner i output"
857
+
858
+ #: my-calendar-settings.php:224
859
+ msgid "Show Link to Google Map (when sufficient address information is available.)"
860
+ msgstr "Vis Link til Google Kort (når tilstrækkelige adresseoplysninger er tilgængelige)"
861
+
862
+ #: my-calendar-settings.php:227
863
+ msgid "Show Event Address in Details"
864
+ msgstr "Vis Begivenheds Adresse i Detaljer"
865
+
866
+ #: my-calendar-settings.php:230
867
+ msgid "Links associated with events will automatically expire after the event has passed."
868
+ msgstr "Links associeret med begivenheder vil automatisk udløbe efter en begivenhed er overstået."
869
+
870
+ #: my-calendar-settings.php:233
871
+ msgid "Default usage of category colors."
872
+ msgstr "Standard brug af kategorifarver"
873
+
874
+ #: my-calendar-settings.php:234
875
+ msgid "Apply category colors to event titles as a font color."
876
+ msgstr "Brug kategorifarver som skriftfarve i begivenhedstitler."
877
+
878
+ #: my-calendar-settings.php:235
879
+ msgid "Apply category colors to event titles as a background color."
880
+ msgstr "Brug kategorifarver som baggrundsfarve i begivenhedstitler"
881
+
882
+ #: my-calendar-settings.php:239
883
+ msgid "Save Settings"
884
+ msgstr "Gem Indstillinger"
885
+
886
+ #: my-calendar-styles.php:46
887
+ msgid "Style Settings saved"
888
+ msgstr "Stil Indstillinger Gemt"
889
+
890
+ #: my-calendar-styles.php:70
891
+ msgid "My Calendar Styles"
892
+ msgstr "My Calendar Stile"
893
+
894
+ #: my-calendar-styles.php:74
895
+ msgid "Calendar Style Settings"
896
+ msgstr "Kalender Stil Indstillinger"
897
+
898
+ #: my-calendar-styles.php:78
899
+ msgid "Show CSS & JavaScript only on these pages (comma separated page IDs)"
900
+ msgstr "Vis kun CSS & Javascript på disse sider (kommaseparerede side ID'er)"
901
+
902
+ #: my-calendar-styles.php:81
903
+ msgid "CSS Style Options"
904
+ msgstr "CSS Stil Valgmuligheder"
905
+
906
+ #: my-calendar-styles.php:83
907
+ msgid "Reset the My Calendar stylesheet to the default"
908
+ msgstr "Nulstil My Calendar stylesheets til default"
909
+
910
+ #: my-calendar-styles.php:83
911
+ msgid "Disable My Calendar Stylesheet"
912
+ msgstr "Deaktiver My Calendar Stylesheet"
913
+
914
+ #: my-calendar-styles.php:86
915
+ msgid "Edit the stylesheet for My Calendar"
916
+ msgstr "Rediger My Calendars stylesheet"
917
+
918
+ #: my-calendar-styles.php:89
919
+ #: my-calendar-styles.php:101
920
+ #: my-calendar-styles.php:113
921
+ #: my-calendar-styles.php:125
922
+ msgid "Save"
923
+ msgstr "Gem"
924
+
925
+ #: my-calendar-styles.php:93
926
+ msgid "Calendar Behaviors: Calendar View"
927
+ msgstr "Kalender Opførsel: Kalendervisning"
928
+
929
+ #: my-calendar-styles.php:95
930
+ msgid "Reset the My Calendar Calendar Javascript"
931
+ msgstr "Nulstil My Calendar Kalender Javascript"
932
+
933
+ #: my-calendar-styles.php:95
934
+ msgid "Disable Calendar Javascript Effects"
935
+ msgstr "Deaktiver Kalender Javascript Effekter"
936
+
937
+ #: my-calendar-styles.php:98
938
+ msgid "Edit the jQuery scripts for My Calendar in Calendar format"
939
+ msgstr "Rediger jQuery scripts til My Calendar i Kalenderformat."
940
+
941
+ #: my-calendar-styles.php:105
942
+ msgid "Calendar Behaviors: List View"
943
+ msgstr "Kalender Opførsel: Listevisning"
944
+
945
+ #: my-calendar-styles.php:107
946
+ msgid "Reset the My Calendar List Javascript"
947
+ msgstr "Nulstil My Calendar Liste Javascript"
948
+
949
+ #: my-calendar-styles.php:107
950
+ msgid "Disable List Javascript Effects"
951
+ msgstr "Deaktiver Liste Javascript Effekter"
952
+
953
+ #: my-calendar-styles.php:110
954
+ msgid "Edit the jQuery scripts for My Calendar in List format"
955
+ msgstr "Rediger jQuery scripts til My Calendar i Listeformat"
956
+
957
+ #: my-calendar-styles.php:117
958
+ msgid "Calendar Behaviors: Mini Calendar View"
959
+ msgstr "Kalendar Opførsel: Mini Kalender Visning"
960
+
961
+ #: my-calendar-styles.php:119
962
+ msgid "Reset the My Calendar Mini Format Javascript"
963
+ msgstr "Nulstil My Calendar Mini Format Javascript"
964
+
965
+ #: my-calendar-styles.php:119
966
+ msgid "Disable Mini Javascript Effects"
967
+ msgstr "Deaktiver Mini Javascript Effekter"
968
+
969
+ #: my-calendar-styles.php:122
970
+ msgid "Edit the jQuery scripts for My Calendar in Mini Calendar format"
971
+ msgstr "Rediger jQuery scripts til My Calendar i Mini Kalender format"
972
+
973
+ #: my-calendar-upgrade-db.php:19
974
+ msgid "The My Calendar database needs to be updated."
975
+ msgstr "My Calendars database skal opdateres"
976
+
977
+ #: my-calendar-upgrade-db.php:20
978
+ #: my-calendar-upgrade-db.php:34
979
+ msgid "Update now"
980
+ msgstr "Opdater nu"
981
+
982
+ #: my-calendar-upgrade-db.php:33
983
+ msgid "You haven't entered any events, so My Calendar can't tell whether your database needs to be updated. If you can't add events, upgrade your database!"
984
+ msgstr "Du har ikke tilføjet nogen begivenheder, så My Calendar ved ikke om din database har brug for at blive opdateret. Opgrader din database, hvis du ikke kan tilføje begivenheder!"
985
+
986
+ #: my-calendar-upgrade-db.php:44
987
+ msgid "My Calendar Database is updated."
988
+ msgstr "My Calendars database er opdateret."
989
+
990
+ #: my-calendar-widgets.php:11
991
+ #: my-calendar-widgets.php:51
992
+ #: my-calendar-widgets.php:52
993
+ msgid "Today's Events"
994
+ msgstr "Dagens Begivenheder"
995
+
996
+ #: my-calendar-widgets.php:41
997
+ #: my-calendar-widgets.php:126
998
+ msgid "Template"
999
+ msgstr "Skabelon"
1000
+
1001
+ #: my-calendar-widgets.php:45
1002
+ msgid "Show this text if there are no events today:"
1003
+ msgstr "Vis denne tekst, hvis der ikke er begivenheder i dag:"
1004
+
1005
+ #: my-calendar-widgets.php:65
1006
+ #: my-calendar-widgets.php:152
1007
+ #: my-calendar-widgets.php:153
1008
+ msgid "Upcoming Events"
1009
+ msgstr "Kommende begivenheder"
1010
+
1011
+ #: my-calendar-widgets.php:130
1012
+ msgid "Widget Options"
1013
+ msgstr "Widget Indstillinger"
1014
+
1015
+ #: my-calendar-widgets.php:132
1016
+ msgid "Display upcoming events by:"
1017
+ msgstr "Vis kommende begivenheder med:"
1018
+
1019
+ #: my-calendar-widgets.php:133
1020
+ msgid "Events (e.g. 2 past, 3 future)"
1021
+ msgstr "Begivenheder (f.eks. 2 overståede, 3 kommende)"
1022
+
1023
+ #: my-calendar-widgets.php:134
1024
+ msgid "Dates (e.g. 4 days past, 5 forward)"
1025
+ msgstr "Datoer (f.eks. 4 dage bagud, 5 fremad)"
1026
+
1027
+ #: my-calendar-widgets.php:138
1028
+ msgid "events into the future;"
1029
+ msgstr "Begivenheder i den kommende tid;"
1030
+
1031
+ #: my-calendar-widgets.php:139
1032
+ msgid "events from the past"
1033
+ msgstr "Hidtidige begivenheder;"
1034
+
1035
+ #: my-calendar-widgets.php:142
1036
+ msgid "days into the future;"
1037
+ msgstr "dage i den kommende tid;"
1038
+
1039
+ #: my-calendar-widgets.php:143
1040
+ msgid "days from the past"
1041
+ msgstr "hidtidige dage"
1042
+
1043
+ #: my-calendar-widgets.php:146
1044
+ msgid "Show only this category:"
1045
+ msgstr "Vis kun denne kategori;"
1046
+
1047
+ #: my-calendar-widgets.php:272
1048
+ msgid "There are no events currently scheduled."
1049
+ msgstr "Der er ikke planlagt nogen begivenheder p.t."
1050
+
1051
+ #: my-calendar.php:52
1052
+ #: my-calendar.php:171
1053
+ msgid "Settings"
1054
+ msgstr "Indstillinger"
1055
+
1056
+ #: my-calendar.php:53
1057
+ #: my-calendar.php:173
1058
+ msgid "Help"
1059
+ msgstr "Hjælp"
1060
+
1061
+ #: my-calendar.php:76
1062
+ msgid "Get Support"
1063
+ msgstr "Få Support"
1064
+
1065
+ #: my-calendar.php:77
1066
+ #: my-calendar.php:173
1067
+ msgid "My Calendar Help"
1068
+ msgstr "My Calendar Hjælp"
1069
+
1070
+ #: my-calendar.php:78
1071
+ msgid "Make a Donation"
1072
+ msgstr "Giv en Donation"
1073
+
1074
+ #. #-#-#-#-# plugin.pot (My Calendar 1.4.3) #-#-#-#-#
1075
+ #. Plugin Name of the plugin/theme
1076
+ #: my-calendar.php:162
1077
+ msgid "My Calendar"
1078
+ msgstr "My Calendar"
1079
+
1080
+ #: my-calendar.php:165
1081
+ msgid "Add/Edit Events"
1082
+ msgstr "Tilføj/Rediger Begivenheder"
1083
+
1084
+ #: my-calendar.php:172
1085
+ msgid "Style Editor"
1086
+ msgstr "Stil Redigering"
1087
+
1088
+ #: my-calendar.php:691
1089
+ msgid "Event Details"
1090
+ msgstr "Begivenheds Detaljer"
1091
+
1092
+ #: my-calendar.php:700
1093
+ msgid "Close"
1094
+ msgstr "Luk"
1095
+
1096
+ #: my-calendar.php:710
1097
+ msgid "Not Applicable"
1098
+ msgstr "Ikke Relevant"
1099
+
1100
+ #: my-calendar.php:722
1101
+ msgid "Posted by"
1102
+ msgstr "Publiceret af"
1103
+
1104
+ #: my-calendar.php:1287
1105
+ msgid "Month"
1106
+ msgstr "Måned"
1107
+
1108
+ #: my-calendar.php:1288
1109
+ #: my-calendar.php:1372
1110
+ msgid "January"
1111
+ msgstr "Januar"
1112
+
1113
+ #: my-calendar.php:1289
1114
+ #: my-calendar.php:1372
1115
+ msgid "February"
1116
+ msgstr "Februar"
1117
+
1118
+ #: my-calendar.php:1290
1119
+ #: my-calendar.php:1372
1120
+ msgid "March"
1121
+ msgstr "Marts"
1122
+
1123
+ #: my-calendar.php:1291
1124
+ #: my-calendar.php:1372
1125
+ msgid "April"
1126
+ msgstr "April"
1127
+
1128
+ #: my-calendar.php:1292
1129
+ #: my-calendar.php:1372
1130
+ msgid "May"
1131
+ msgstr "Maj"
1132
+
1133
+ #: my-calendar.php:1293
1134
+ #: my-calendar.php:1372
1135
+ msgid "June"
1136
+ msgstr "Juni"
1137
+
1138
+ #: my-calendar.php:1294
1139
+ #: my-calendar.php:1372
1140
+ msgid "July"
1141
+ msgstr "Juli"
1142
+
1143
+ #: my-calendar.php:1295
1144
+ #: my-calendar.php:1372
1145
+ msgid "August"
1146
+ msgstr "August"
1147
+
1148
+ #: my-calendar.php:1296
1149
+ #: my-calendar.php:1372
1150
+ msgid "September"
1151
+ msgstr "September"
1152
+
1153
+ #: my-calendar.php:1297
1154
+ #: my-calendar.php:1372
1155
+ msgid "October"
1156
+ msgstr "Oktober"
1157
+
1158
+ #: my-calendar.php:1298
1159
+ #: my-calendar.php:1372
1160
+ msgid "November"
1161
+ msgstr "November"
1162
+
1163
+ #: my-calendar.php:1299
1164
+ #: my-calendar.php:1372
1165
+ msgid "December"
1166
+ msgstr "December"
1167
+
1168
+ #: my-calendar.php:1301
1169
+ msgid "Year"
1170
+ msgstr "År"
1171
+
1172
+ #: my-calendar.php:1326
1173
+ msgid "Go"
1174
+ msgstr "Gå"
1175
+
1176
+ #: my-calendar.php:1344
1177
+ msgid "<abbr title=\"Sunday\">Sun</abbr>"
1178
+ msgstr "<abbr title=\"Søndag\">Søn</abbr>"
1179
+
1180
+ #: my-calendar.php:1345
1181
+ msgid "<abbr title=\"Monday\">Mon</abbr>"
1182
+ msgstr "<abbr title=\"Mandag\">Man</abbr>"
1183
+
1184
+ #: my-calendar.php:1346
1185
+ msgid "<abbr title=\"Tuesday\">Tues</abbr>"
1186
+ msgstr "<abbr title=\"Tirsdag\">Tirs</abbr>"
1187
+
1188
+ #: my-calendar.php:1347
1189
+ msgid "<abbr title=\"Wednesday\">Wed</abbr>"
1190
+ msgstr "<abbr title=\"Onsdag\">Ons</abbr>"
1191
+
1192
+ #: my-calendar.php:1348
1193
+ msgid "<abbr title=\"Thursday\">Thur</abbr>"
1194
+ msgstr "<abbr title=\"Torsdag\">Tors</abbr>"
1195
+
1196
+ #: my-calendar.php:1349
1197
+ msgid "<abbr title=\"Friday\">Fri</abbr>"
1198
+ msgstr "<abbr title=\"Fredag\">Fre</abbr>"
1199
+
1200
+ #: my-calendar.php:1350
1201
+ msgid "<abbr title=\"Saturday\">Sat</abbr>"
1202
+ msgstr "<abbr title=\"Lørdag\">Lør</abbr>"
1203
+
1204
+ #: my-calendar.php:1355
1205
+ msgid "<abbr title=\"Sunday\">S</abbr>"
1206
+ msgstr "<abbr title=\"Søndag\">S</abbr>"
1207
+
1208
+ #: my-calendar.php:1356
1209
+ msgid "<abbr title=\"Monday\">M</abbr>"
1210
+ msgstr "<abbr title=\"Mandag\">M</abbr>"
1211
+
1212
+ #: my-calendar.php:1357
1213
+ msgid "<abbr title=\"Tuesday\">T</abbr>"
1214
+ msgstr "<abbr title=\"Tirsdag\">T</abbr>"
1215
+
1216
+ #: my-calendar.php:1358
1217
+ msgid "<abbr title=\"Wednesday\">W</abbr>"
1218
+ msgstr "<abbr title=\"Onsdag\">O</abbr>"
1219
+
1220
+ #: my-calendar.php:1359
1221
+ msgid "<abbr title=\"Thursday\">T</abbr>"
1222
+ msgstr "<abbr title=\"Torsdag\">T</abbr>"
1223
+
1224
+ #: my-calendar.php:1360
1225
+ msgid "<abbr title=\"Friday\">F</abbr>"
1226
+ msgstr "<abbr title=\"Fredag\">F</abbr>"
1227
+
1228
+ #: my-calendar.php:1361
1229
+ msgid "<abbr title=\"Saturday\">S</abbr>"
1230
+ msgstr "<abbr title=\"Lørdag\">S</abbr>"
1231
+
1232
+ #: my-calendar.php:1411
1233
+ msgid "and"
1234
+ msgstr "og"
1235
+
1236
+ #: my-calendar.php:1440
1237
+ #: my-calendar.php:1444
1238
+ msgid "Calendar"
1239
+ msgstr "Calendar"
1240
+
1241
+ #: my-calendar.php:1448
1242
+ msgid "Events in"
1243
+ msgstr "Begivenheder i"
1244
+
1245
+ #: my-calendar.php:1560
1246
+ msgid "There are no events scheduled during this period."
1247
+ msgstr "Der er ikke planlagt begivenheder i denne periode."
1248
+
1249
+ #: my-calendar.php:1570
1250
+ msgid "Category Key"
1251
+ msgstr "Kategorinøgle"
1252
+
1253
+ #. Plugin URI of the plugin/theme
1254
+ msgid "http://www.joedolson.com/articles/my-calendar/"
1255
+ msgstr "http://www.joedolson.com/articles/my-calendar/"
1256
+
1257
+ #. Description of the plugin/theme
1258
+ msgid "Accessible WordPress event calendar plugin. Show events from multiple calendars on pages, in posts, or in widgets."
1259
+ msgstr "Brugervenlig Wordpress begivenhedskalender plugin. Vis begivenheder fra flere kalendere på sider, i indlæg eller i widgets."
1260
+
1261
+ #. Author of the plugin/theme
1262
+ msgid "Joseph C Dolson"
1263
+ msgstr "Joseph C Dolson"
1264
+
1265
+ #. Author URI of the plugin/theme
1266
+ msgid "http://www.joedolson.com"
1267
+ msgstr "http://www.joedolson.com"
1268
+
my-calendar-event-manager.php CHANGED
@@ -3,39 +3,35 @@
3
// to deal with posts
4
function edit_my_calendar() {
5
global $current_user, $wpdb, $users_entries;
6
- ?>
7
-
8
- <?php
9
- if ( get_option('ko_calendar_imported') != 'true' ) {
10
- if (function_exists('check_calendar')) {
11
- echo "<div id='message' class='updated'>";
12
- echo "<p>";
13
- _e('My Calendar has identified that you have the Calendar plugin by Kieran O\'Shea installed. You can import those events and categories into the My Calendar database. Would you like to import these events?','my-calendar');
14
- echo "</p>";
15
- ?>
16
- <form method="post" action="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar-config">
17
- <div>
18
- <input type="hidden" name="import" value="true" />
19
- <input type="submit" value="<?php _e('Import from Calendar','my-calendar'); ?>" name="import-calendar" class="button-primary" />
20
- </div>
21
- </form>
22
- <?php
23
- echo "<p>";
24
- _e('Although it is possible that this import could fail to import your events correctly, it should not have any impact on your existing Calendar database. If you encounter any problems, <a href="http://www.joedolson.com/contact.php">please contact me</a>!','my-calendar');
25
- echo "</p>";
26
- echo "</div>";
27
}
28
- }
29
- ?>
30
-
31
- <?php
32
// First some quick cleaning up
33
$edit = $create = $save = $delete = false;
34
35
$action = !empty($_POST['action']) ? $_POST['action'] : '';
36
$event_id = !empty($_POST['event_id']) ? $_POST['event_id'] : '';
37
38
- if ($_GET['action'] == 'edit') {
39
$action = "edit";
40
$event_id = (int) $_GET['event_id'];
41
}
@@ -43,7 +39,7 @@ if ($_GET['action'] == 'edit') {
43
// Lets see if this is first run and create us a table if it is!
44
check_my_calendar();
45
46
- if ($_GET['action'] == 'delete') {
47
$sql = "SELECT event_title, event_author FROM " . MY_CALENDAR_TABLE . " WHERE event_id=" . (int) $_GET['event_id'];
48
$result = $wpdb->get_results( $sql, ARRAY_A );
49
if ( mc_can_edit_event( $result[0]['event_author'] ) ) {
@@ -68,452 +64,88 @@ if ($_GET['action'] == 'delete') {
68
}
69
}
70
71
// Deal with adding an event to the database
72
- if ( $action == 'add' ) {
73
- $title = !empty($_POST['event_title']) ? $_POST['event_title'] : '';
74
- $desc = !empty($_POST['event_desc']) ? $_POST['event_desc'] : '';
75
- $begin = !empty($_POST['event_begin']) ? $_POST['event_begin'] : '';
76
- $end = !empty($_POST['event_end']) ? $_POST['event_end'] : $begin;
77
- $time = !empty($_POST['event_time']) ? $_POST['event_time'] : '';
78
- $endtime = !empty($_POST['event_endtime']) ? $_POST['event_endtime'] : '';
79
- $recur = !empty($_POST['event_recur']) ? $_POST['event_recur'] : '';
80
- $repeats = !empty($_POST['event_repeats']) ? $_POST['event_repeats'] : 0;
81
- $category = !empty($_POST['event_category']) ? $_POST['event_category'] : '';
82
- $linky = !empty($_POST['event_link']) ? $_POST['event_link'] : '';
83
- $expires = !empty($_POST['event_link_expires']) ? $_POST['event_link_expires'] : '0';
84
- $location_preset = !empty($_POST['location_preset']) ? $_POST['location_preset'] : '';
85
- if ($location_preset != 'none') {
86
- $sql = "SELECT * FROM " . MY_CALENDAR_LOCATIONS_TABLE . " WHERE location_id = $location_preset";
87
- $location = $wpdb->get_row($sql);
88
- $event_label = $location->location_label;
89
- $event_street = $location->location_street;
90
- $event_street2 = $location->location_street2;
91
- $event_city = $location->location_city;
92
- $event_state = $location->location_state;
93
- $event_postcode = $location->location_postcode;
94
- $event_country = $location->location_country;
95
- $event_longitude = $location->location_longitude;
96
- $event_latitude = $location->location_latitude;
97
- $event_zoom = $location->location_zoom;
98
- } else {
99
- $event_label = !empty($_POST['event_label']) ? $_POST['event_label'] : '';
100
- $event_street = !empty($_POST['event_street']) ? $_POST['event_street'] : '';
101
- $event_street2 = !empty($_POST['event_street2']) ? $_POST['event_street2'] : '';
102
- $event_city = !empty($_POST['event_city']) ? $_POST['event_city'] : '';
103
- $event_state = !empty($_POST['event_state']) ? $_POST['event_state'] : '';
104
- $event_postcode = !empty($_POST['event_postcode']) ? $_POST['event_postcode'] : '';
105
- $event_country = !empty($_POST['event_country']) ? $_POST['event_country'] : '';
106
- $event_longitude = !empty($_POST['event_longitude']) ? $_POST['event_longitude'] : '';
107
- $event_latitude = !empty($_POST['event_latitude']) ? $_POST['event_latitude'] : '';
108
- $event_zoom = !empty($_POST['event_zoom']) ? $_POST['event_zoom'] : '';
109
- }
110
- // Deal with the fools who have left magic quotes turned on
111
- if ( ini_get('magic_quotes_gpc') ) {
112
- $title = stripslashes($title);
113
- $desc = stripslashes($desc);
114
- $begin = stripslashes($begin);
115
- $end = stripslashes($end);
116
- $time = stripslashes($time);
117
- $endtime = stripslashes($endtime);
118
- $recur = stripslashes($recur);
119
- $repeats = stripslashes($repeats);
120
- $category = stripslashes($category);
121
- $linky = stripslashes($linky);
122
- $expires = stripslashes($expires);
123
- $event_label = stripslashes($event_label);
124
- $event_street = stripslashes($event_street);
125
- $event_street2 = stripslashes($event_street2);
126
- $event_city = stripslashes($event_city);
127
- $event_state = stripslashes($event_state);
128
- $event_postcode = stripslashes($event_postcode);
129
- $event_country = stripslashes($event_country);
130
- $event_longitude = stripslashes($event_longitude);
131
- $event_latitude = stripslashes($event_latitude);
132
- $event_zoom = stripslashes($event_zoom);
133
-
134
- }
135
136
- // Perform some validation on the submitted dates - this checks for valid years and months
137
- $date_format_one = '/^([0-9]{4})-([0][1-9])-([0-3][0-9])#x2F;';
138
- $date_format_two = '/^([0-9]{4})-([1][0-2])-([0-3][0-9])#x2F;';
139
- if ((preg_match($date_format_one,$begin) || preg_match($date_format_two,$begin)) && (preg_match($date_format_one,$end) || preg_match($date_format_two,$end))) {
140
- // We know we have a valid year and month and valid integers for days so now we do a final check on the date
141
- $begin_split = split('-',$begin);
142
- $begin_y = $begin_split[0];
143
- $begin_m = $begin_split[1];
144
- $begin_d = $begin_split[2];
145
- $end_split = split('-',$end);
146
- $end_y = $end_split[0];
147
- $end_m = $end_split[1];
148
- $end_d = $end_split[2];
149
- if (checkdate($begin_m,$begin_d,$begin_y) && checkdate($end_m,$end_d,$end_y)) {
150
- // Ok, now we know we have valid dates, we want to make sure that they are either equal or that the end date is later than the start date
151
- if (strtotime($end) >= strtotime($begin)) {
152
- $start_date_ok = 1;
153
- $end_date_ok = 1;
154
- } else {
155
- ?>
156
- <div class="error"><p><strong><?php _e('Error','my-calendar'); ?>:</strong> <?php _e('Your event end date must be either after or the same as your event begin date','my-calendar'); ?></p></div>
157
- <?php
158
- }
159
- } else {
160
- ?>
161
- <div class="error"><p><strong><?php _e('Error','my-calendar'); ?>:</strong> <?php _e('Your date formatting is correct but one or more of your dates is invalid. Check for number of days in month and leap year related errors.','my-calendar'); ?></p></div>
162
- <?php
163
- }
164
- } else {
165
- ?>
166
- <div class="error"><p><strong><?php _e('Error','my-calendar'); ?>:</strong> <?php _e('Both start and end dates must be entered and be in the format YYYY-MM-DD','my-calendar'); ?></p></div>
167
- <?php
168
- }
169
- // We check for a valid time, or an empty one
170
- $time_format_one = '/^([0-1][0-9]):([0-5][0-9])#x2F;';
171
- $time_format_two = '/^([2][0-3]):([0-5][0-9])#x2F;';
172
- if (preg_match($time_format_one,$time) || preg_match($time_format_two,$time) || $time == '') {
173
- $time_ok = 1;
174
- } else {
175
- ?>
176
- <div class="error"><p><strong><?php _e('Error','my-calendar'); ?>:</strong> <?php _e('The time field must either be blank or be entered in the format hh:mm','my-calendar'); ?></p></div>
177
- <?php
178
- }
179
- // We check to make sure the URL is alright
180
- if (preg_match('/^(http)(s?)(:)\/\//',$linky) || $linky == '') {
181
- $url_ok = 1;
182
- } else {
183
- ?>
184
- <div class="error"><p><strong><?php _e('Error','my-calendar'); ?>:</strong> <?php _e('The URL entered must either be prefixed with http:// or be completely blank','my-calendar'); ?></p></div>
185
- <?php
186
- }
187
- // The title must be at least one character in length and no more than 255 - only basic punctuation is allowed
188
- $title_length = strlen($title);
189
- if ( $title_length > 1 && $title_length <= 255 ) {
190
- $title_ok =1;
191
- } else {
192
- ?>
193
- <div class="error"><p><strong><?php _e('Error','my-calendar'); ?>:</strong> <?php _e('The event title must be between 1 and 255 characters in length.','my-calendar'); ?></p></div>
194
- <?php
195
- }
196
- // We run some checks on recurrance
197
- if (($repeats == 0 && $recur == 'S') || (($repeats >= 0) && ($recur == 'W' || $recur == 'B' || $recur == 'M' || $recur == 'Y' || $recur == 'D'))) {
198
- $recurring_ok = 1;
199
- } else {
200
- ?>
201
- <div class="error"><p><strong><?php _e('Error','my-calendar'); ?>:</strong> <?php _e('The repetition value must be 0 unless a type of recurrance is selected in which case the repetition value must be 0 or higher','my-calendar'); ?></p></div>
202
- <?php
203
- }
204
- if ($start_date_ok == 1 && $end_date_ok == 1 && $time_ok == 1 && $url_ok == 1 && $title_ok == 1 && $recurring_ok == 1) {
205
- $update = array(
206
- 'event_id'=>'',
207
- 'event_begin'=>$begin,
208
- 'event_end'=>$end,
209
- 'event_title'=>$title,
210
- 'event_desc'=>$desc,
211
- 'event_time'=>$time,
212
- 'event_endtime'=>$endtime,
213
- 'event_recur'=>$recur,
214
- 'event_repeats'=>$repeats,
215
- 'event_author'=>$current_user->ID,
216
- 'event_category'=>$category,
217
- 'event_link'=>$linky,
218
- 'event_link_expires'=>$expires,
219
- 'event_label'=>$event_label,
220
- 'event_street'=>$event_street,
221
- 'event_street2'=>$event_street2,
222
- 'event_city'=>$event_city,
223
- 'event_state'=>$event_state,
224
- 'event_postcode'=>$event_postcode,
225
- 'event_country'=>$event_country,
226
- 'event_longitude'=>$event_longitude,
227
- 'event_latitude'=>$event_latitude,
228
- 'event_zoom'=>$event_zoom);
229
-
230
- $format = array('%s');
231
$result = $wpdb->insert(
232
MY_CALENDAR_TABLE,
233
- $update,
234
$formats
235
);
236
-
237
if ( !$result ) {
238
?>
239
- <div class="error"><p><strong><?php _e('Error','my-calendar'); ?>:</strong> <?php _e('An event with the details you submitted could not be found in the database. This may indicate a problem with your database or the way in which it is configured.','my-calendar'); ?></p></div>
240
<?php
241
} else {
242
?>
243
<div class="updated"><p><?php _e('Event added. It will now show in your calendar.','my-calendar'); ?></p></div>
244
<?php
245
}
246
- } else {
247
- // The form is going to be rejected due to field validation issues, so we preserve the users entries here
248
- $users_entries->event_title = $title;
249
- $users_entries->event_desc = $desc;
250
- $users_entries->event_begin = $begin;
251
- $users_entries->event_end = $end;
252
- $users_entries->event_time = $time;
253
- $users_entries->event_endtime = $endtime;
254
- $users_entries->event_recur = $recur;
255
- $users_entries->event_repeats = $repeats;
256
- $users_entries->event_category = $category;
257
- $users_entries->event_link = $linky;
258
- $users_entries->event_link_expires = $expires;
259
- $users_entries->event_label = $event_label;
260
- $users_entries->event_street = $event_street;
261
- $users_entries->event_street2 = $event_street2;
262
- $users_entries->event_city = $event_city;
263
- $users_entries->event_state = $event_state;
264
- $users_entries->event_postcode = $event_postcode;
265
- $users_entries->event_country = $event_country;
266
- $users_entries->event_longitude = $event_longitude;
267
- $users_entries->event_latitude = $event_latitude;
268
- $users_entries->event_zoom = $event_zoom;
269
-
270
- }
271
- // Permit saving of events that have been edited
272
- } elseif ( $action == 'edit_save' ) {
273
- $title = !empty($_POST['event_title']) ? $_POST['event_title'] : '';
274
- $desc = !empty($_POST['event_desc']) ? $_POST['event_desc'] : ' ';
275
- $begin = !empty($_POST['event_begin']) ? $_POST['event_begin'] : '';
276
- $end = !empty($_POST['event_end']) ? $_POST['event_end'] : $begin;
277
- $time = !empty($_POST['event_time']) ? $_POST['event_time'] : '';
278
- $endtime = !empty($_POST['event_endtime']) ? $_POST['event_endtime'] : '';
279
- $recur = !empty($_POST['event_recur']) ? $_POST['event_recur'] : '';
280
- $repeats = !empty($_POST['event_repeats']) ? $_POST['event_repeats'] : 0;
281
- $category = !empty($_POST['event_category']) ? $_POST['event_category'] : '';
282
- $linky = !empty($_POST['event_link']) ? $_POST['event_link'] : '';
283
- $expires = !empty($_POST['event_link_expires']) ? $_POST['event_link_expires'] : '0';
284
- $location_preset = !empty($_POST['location_preset']) ? $_POST['location_preset'] : '';
285
- if ($location_preset != 'none') {
286
- $sql = "SELECT * FROM " . MY_CALENDAR_LOCATIONS_TABLE . " WHERE location_id = $location_preset";
287
- $location = $wpdb->get_row($sql);
288
- $event_label = $location->location_label;
289
- $event_street = $location->location_street;
290
- $event_street2 = $location->location_street2;
291
- $event_city = $location->location_city;
292
- $event_state = $location->location_state;
293
- $event_postcode = $location->location_postcode;
294
- $event_country = $location->location_country;
295
- $event_longitude = $location->location_longitude;
296
- $event_latitude = $location->location_latitude;
297
- $event_zoom = $location->location_zoom;
298
- } else {
299
- $event_label = !empty($_POST['event_label']) ? $_POST['event_label'] : '';
300
- $event_street = !empty($_POST['event_street']) ? $_POST['event_street'] : '';
301
- $event_street2 = !empty($_POST['event_street2']) ? $_POST['event_street2'] : '';
302
- $event_city = !empty($_POST['event_city']) ? $_POST['event_city'] : '';
303
- $event_state = !empty($_POST['event_state']) ? $_POST['event_state'] : '';
304
- $event_postcode = !empty($_POST['event_postcode']) ? $_POST['event_postcode'] : '';
305
- $event_country = !empty($_POST['event_country']) ? $_POST['event_country'] : '';
306
- $event_longitude = !empty($_POST['event_longitude']) ? $_POST['event_longitude'] : '';
307
- $event_latitude = !empty($_POST['event_latitude']) ? $_POST['event_latitude'] : '';
308
- $event_zoom = !empty($_POST['event_zoom']) ? $_POST['event_zoom'] : '';
309
-
310
- }
311
- $event_author = !empty($_POST['event_author']) ? $_POST['event_author'] : '';
312
-
313
- if ( mc_can_edit_event( $event_author ) ) {
314
-
315
-
316
- // Deal with the fools who have left magic quotes turned on
317
- if ( ini_get('magic_quotes_gpc') ) {
318
- $title = stripslashes($title);
319
- $desc = stripslashes($desc);
320
- $begin = stripslashes($begin);
321
- $end = stripslashes($end);
322
- $time = stripslashes($time);
323
- $endtime = stripslashes($endtime);
324
- $recur = stripslashes($recur);
325
- $repeats = stripslashes($repeats);
326
- $category = stripslashes($category);
327
- $linky = stripslashes($linky);
328
- $expires = stripslashes($expires);
329
- $event_label = stripslashes($event_label);
330
- $event_street = stripslashes($event_street);
331
- $event_street2 = stripslashes($event_street2);
332
- $event_city = stripslashes($event_city);
333
- $event_state = stripslashes($event_state);
334
- $event_postcode = stripslashes($event_postcode);
335
- $event_country = stripslashes($event_country);
336
- $event_longitude = stripslashes($event_longitude);
337
- $event_latitude = stripslashes($event_latitude);
338
- $event_zoom = stripslashes($event_zoom);
339
-
340
- $event_author = stripslashes($event_author);
341
}
342
-
343
- if ( empty($event_id) ) {
344
?>
345
- <div class="error"><p><strong><?php _e('Failure','my-calendar'); ?>:</strong> <?php _e("You can't update an event if you haven't submitted an event id",'my-calendar'); ?></p></div>
346
- <?php
347
- } else {
348
- // Perform some validation on the submitted dates - this checks for valid years and months
349
- $date_format_one = '/^([0-9]{4})-([0][1-9])-([0-3][0-9])#x2F;';
350
- $date_format_two = '/^([0-9]{4})-([1][0-2])-([0-3][0-9])#x2F;';
351
- if ((preg_match($date_format_one,$begin) || preg_match($date_format_two,$begin)) && (preg_match($date_format_one,$end) || preg_match($date_format_two,$end))) {
352
- // We know we have a valid year and month and valid integers for days so now we do a final check on the date
353
- $begin_split = split('-',$begin);
354
- $begin_y = $begin_split[0];
355
- $begin_m = $begin_split[1];
356
- $begin_d = $begin_split[2];
357
- $end_split = split('-',$end);
358
- $end_y = $end_split[0];
359
- $end_m = $end_split[1];
360
- $end_d = $end_split[2];
361
- if (checkdate($begin_m,$begin_d,$begin_y) && checkdate($end_m,$end_d,$end_y)) {
362
- // Ok, now we know we have valid dates, we want to make sure that they are either equal or that the end date is later than the start date
363
- if (strtotime($end) >= strtotime($begin)) {
364
- $start_date_ok = 1;
365
- $end_date_ok = 1;
366
- } else {
367
- ?>
368
- <div class="error"><p><strong><?php _e('Error','my-calendar'); ?>:</strong> <?php _e('Your event end date must be either after or the same as your event begin date','my-calendar'); ?></p></div>
369
- <?php
370
- }
371
- } else {
372
- ?>
373
- <div class="error"><p><strong><?php _e('Error','my-calendar'); ?>:</strong> <?php _e('Your date formatting is correct but one or more of your dates is invalid. Check for number of days in month and leap year related errors.','my-calendar'); ?></p></div>
374
- <?php
375
- }
376
- } else {
377
- ?>
378
- <div class="error"><p><strong><?php _e('Error','my-calendar'); ?>:</strong> <?php _e('Both start and end dates must be entered and be in the format YYYY-MM-DD','my-calendar'); ?></p></div>
379
- <?php
380
- }
381
- // We check for a valid time, or an empty one
382
- $time_format_one = '/^([0-1][0-9]):([0-5][0-9])#x2F;';
383
- $time_format_two = '/^([2][0-3]):([0-5][0-9])#x2F;';
384
- if (preg_match($time_format_one,$time) || preg_match($time_format_two,$time) || $time == '') {
385
- $time_ok = 1;
386
- } else {
387
- ?>
388
- <div class="error"><p><strong><?php _e('Error','my-calendar'); ?>:</strong> <?php _e('The time field must either be blank or be entered in the format hh:mm','my-calendar'); ?></p></div>
389
- <?php
390
- }
391
- // We check to make sure the URL is alright
392
- if (preg_match('/^(http)(s?)(:)\/\//',$linky) || $linky == '') {
393
- $url_ok = 1;
394
- } else {
395
- ?>
396
- <div class="error"><p><strong><?php _e('Error','my-calendar'); ?>:</strong> <?php _e('The URL entered must either be prefixed with http:// or be completely blank','my-calendar'); ?></p></div>
397
- <?php
398
- }
399
- // The title must be at least one character in length and no more than 255 - no non-standard characters allowed
400
- $title_length = strlen($title);
401
- if ( $title_length > 1 && $title_length <= 255 ) {
402
- $title_ok =1;
403
- } else {
404
- ?>
405
- <div class="error"><p><strong><?php _e('Error','my-calendar'); ?>:</strong> <?php _e('The event title must be between 1 and 255 characters in length.','my-calendar'); ?></p></div>
406
- <?php
407
- }
408
- // We run some checks on recurrance
409
- if (($repeats == 0 && $recur == 'S') || (($repeats >= 0) && ($recur == 'W' || $recur == 'B' || $recur == 'M' || $recur == 'Y' || $recur == 'D' ))) {
410
- $recurring_ok = 1;
411
- } else {
412
- ?>
413
- <div class="error"><p><strong><?php _e('Error','my-calendar'); ?>:</strong> <?php _e('The repetition value must be 0 unless a type of recurrance is selected in which case the repetition value must be 0 or higher','my-calendar'); ?></p></div>
414
- <?php
415
- }
416
- if ($start_date_ok == 1 && $end_date_ok == 1 && $time_ok == 1 && $url_ok == 1 && $title_ok && $recurring_ok == 1) {
417
-
418
- $update = array(
419
- 'event_begin'=>$begin,
420
- 'event_end'=>$end,
421
- 'event_title'=>$title,
422
- 'event_desc'=>$desc,
423
- 'event_time'=>$time,
424
- 'event_endtime'=>$endtime,
425
- 'event_recur'=>$recur,
426
- 'event_repeats'=>$repeats,
427
- 'event_category'=>$category,
428
- 'event_link'=>$linky,
429
- 'event_link_expires'=>$expires,
430
- 'event_label'=>$event_label,
431
- 'event_street'=>$event_street,
432
- 'event_street2'=>$event_street2,
433
- 'event_city'=>$event_city,
434
- 'event_state'=>$event_state,
435
- 'event_postcode'=>$event_postcode,
436
- 'event_country'=>$event_country,
437
- 'event_longitude'=>$event_longitude,
438
- 'event_latitude'=>$event_latitude,
439
- 'event_zoom'=>$event_zoom);
440
441
- $format = array('%s');
442
- $result = $wpdb->update(
443
- MY_CALENDAR_TABLE,
444
- $update,
445
- array( 'event_id'=>$event_id ),
446
- $formats,
447
- '%d' );
448
-
449
- if ( !$result ) {
450
?>
451
- <div class="error"><p><strong><?php _e('Failure','my-calendar'); ?>:</strong> <?php echo _e('Your event was not updated.','my-calendar'); ?></p></div>
452
<?php
453
} else {
454
?>
455
- <div class="updated"><p><?php _e('Event updated successfully','my-calendar'); ?></p></div>
456
<?php
457
- }
458
- } else {
459
- // The form is going to be rejected due to field validation issues, so we preserve the users entries here
460
- $users_entries->event_title = $title;
461
- $users_entries->event_desc = $desc;
462
- $users_entries->event_begin = $begin;
463
- $users_entries->event_end = $end;
464
- $users_entries->event_time = $time;
465
- $users_entries->event_endtime = $endtime;
466
- $users_entries->event_recur = $recur;
467
- $users_entries->event_repeats = $repeats;
468
- $users_entries->event_category = $category;
469
- $users_entries->event_link = $linky;
470
- $users_entries->event_link_expires = $expires;
471
- $users_entries->event_label = $event_label;
472
- $users_entries->event_street = $event_street;
473
- $users_entries->event_street2 = $event_street2;
474
- $users_entries->event_city = $event_city;
475
- $users_entries->event_state = $event_state;
476
- $users_entries->event_postcode = $event_postcode;
477
- $users_entries->event_country = $event_country;
478
- $users_entries->event_longitude = $event_longitude;
479
- $users_entries->event_latitude = $event_latitude;
480
- $users_entries->event_zoom = $event_zoom;
481
-
482
- $users_entries->event_author = $event_author;
483
- $error_with_saving = 1;
484
- }
485
- }
486
- } else {
487
- ?>
488
- <div class="error">
489
- <p><strong><?php _e('You do not have sufficient permissions to edit that event.','my-calendar'); ?></strong></p>
490
- </div>
491
- <?php
492
- }
493
- } elseif ( $action == 'delete' ) {
494
- // Deal with deleting an event from the database
495
496
- if ( empty($event_id) ) {
497
- ?>
498
- <div class="error"><p><strong><?php _e('Error','my-calendar'); ?>:</strong> <?php _e("You can't delete an event if you haven't submitted an event id",'my-calendar'); ?></p></div>
499
- <?php
500
- } else {
501
- $sql = "DELETE FROM " . MY_CALENDAR_TABLE . " WHERE event_id='" . mysql_real_escape_string($event_id) . "'";
502
- $wpdb->get_results($sql);
503
-
504
- $sql = "SELECT event_id FROM " . MY_CALENDAR_TABLE . " WHERE event_id='" . mysql_real_escape_string($event_id) . "'";
505
- $result = $wpdb->get_results($sql);
506
-
507
- if ( empty($result) || empty($result[0]->event_id) ) {
508
- ?>
509
- <div class="updated"><p><?php _e('Event deleted successfully','my-calendar'); ?></p></div>
510
- <?php
511
- } else {
512
- ?>
513
- <div class="error"><p><strong><?php _e('Error','my-calendar'); ?>:</strong> <?php _e('Despite issuing a request to delete, the event still remains in the database. Please investigate.','my-calendar'); ?></p></div>
514
- <?php
515
-
516
- }
517
}
518
}
519
@@ -526,7 +158,7 @@ if ( $action == 'add' ) {
526
my_calendar_check_db();
527
?>
528
<?php
529
- if ( $action == 'edit' || ($action == 'edit_save' && $error_with_saving == 1)) {
530
?>
531
<h2><?php _e('Edit Event','my-calendar'); ?></h2>
532
<?php jd_show_support_box(); ?>
@@ -534,7 +166,7 @@ my_calendar_check_db();
534
if ( empty($event_id) ) {
535
echo "<div class=\"error\"><p>".__("You must provide an event id in order to edit it",'my-calendar')."</p></div>";
536
} else {
537
- jd_events_edit_form('edit_save', $event_id);
538
}
539
} else {
540
?>
@@ -648,6 +280,7 @@ function jd_events_edit_form($mode='add', $event_id=false) {
648
<p>
649
<label for="event_time"><?php _e('Time (hh:mm)','my-calendar'); ?></label> <input type="text" id="event_time" name="event_time" class="input" size="12"
650
value="<?php
651
if ( !empty($data) ) {
652
if ($data->event_time == "00:00:00") {
653
echo '';
@@ -655,7 +288,7 @@ function jd_events_edit_form($mode='add', $event_id=false) {
655
echo date("H:i",strtotime($data->event_time));
656
}
657
} else {
658
- echo date_i18n("H:i",time());
659
}
660
?>" /> <?php _e('Optional, set blank if your event is an all-day event or does not happen at a specific time.','my-calendar'); ?> <?php _e('Current time difference from GMT is ','my-calendar'); echo get_option('gmt_offset'); _e(' hour(s)', 'my-calendar'); ?>
661
</p>
@@ -710,7 +343,7 @@ function jd_events_edit_form($mode='add', $event_id=false) {
710
</fieldset>
711
<?php if ( get_option( 'my_calendar_show_address' ) == 'true' || get_option( 'my_calendar_show_map' ) == 'true' ) { ?>
712
<fieldset>
713
- <legend>Event Location</legend>
714
<p>
715
<?php _e('All location fields are optional: <em>insufficient information may result in an inaccurate map</em>.','my-calendar'); ?>
716
</p>
@@ -847,17 +480,21 @@ function jd_events_display_list($sortby='default',$sortdir='default') {
847
</thead>
848
<?php
849
$class = '';
850
foreach ( $events as $event ) {
851
$class = ($class == 'alternate') ? '' : 'alternate';
852
$author = get_userdata($event->event_author);
853
?>
854
<tr class="<?php echo $class; ?>">
855
<th scope="row"><?php echo $event->event_id; ?></th>
856
- <td><?php echo htmlentities(stripslashes($event->event_title)); ?></td>
857
- <td><?php echo htmlentities(stripslashes($event->event_link)); ?></td>
858
- <td><?php echo htmlentities(stripslashes($event->event_label)); ?></td>
859
<td><?php echo substr(strip_tags(stripslashes($event->event_desc)),0,60); ?>&hellip;</td>
860
- <td><?php echo "$event->event_begin ($event->event_time)"; ?></td>
861
<?php /* <td><?php echo $event->event_end; ?></td> */ ?>
862
<td>
863
<?php
@@ -877,16 +514,20 @@ function jd_events_display_list($sortby='default',$sortdir='default') {
877
</td>
878
<td><?php echo $author->display_name; ?></td>
879
<?php
880
- $sql = "SELECT * FROM " . MY_CALENDAR_CATEGORIES_TABLE . " WHERE category_id=".$event->event_category;
881
- $this_cat = $wpdb->get_row($sql);
882
?>
883
<td><div class="category-color" style="background-color:<?php echo $this_cat->category_color;?>;"> </div> <?php echo stripslashes($this_cat->category_name); ?></td>
884
<?php unset($this_cat); ?>
885
<td>
886
<?php if ( mc_can_edit_event( $event->event_author ) ) { ?>
887
- <a href="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar&amp;action=edit&amp;event_id=<?php echo $event->event_id;?>" class='edit'><?php echo __('Edit','my-calendar'); ?></a> &middot; <a href="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar&amp;action=delete&amp;event_id=<?php echo $event->event_id;?>" class="delete"><?php echo __('Delete','my-calendar'); ?></a></td>
888
<?php } else { echo "Not editable."; } ?>
889
- </tr>
890
<?php
891
}
892
?>
@@ -899,4 +540,237 @@ function jd_events_display_list($sortby='default',$sortdir='default') {
899
}
900
}
901