Version Description
- November 13, 2015 =
- Feature: Added option to display a compact list view.
- Feature: Added option to hide the header in list view.
- Tweak: Improved CSS styling for default list and grid CSS.
Download this release
Release Info
Developer | pderksen |
Plugin | Simple Calendar – Google Calendar Plugin |
Version | 3.0.3 |
Comparing to | |
See all releases |
Code changes from version 3.0.2 to 3.0.3
- assets/css/admin-activation.min.css +1 -1
- assets/css/admin-add-calendar.min.css +1 -1
- assets/css/admin.min.css +1 -1
- assets/css/default-calendar-grid.css +43 -42
- assets/css/default-calendar-grid.min.css +2 -2
- assets/css/default-calendar-list.css +8 -40
- assets/css/default-calendar-list.min.css +2 -2
- google-calendar-events.php +2 -2
- includes/calendars/admin/default-calendar-admin.php +297 -225
- includes/calendars/default-calendar.php +15 -0
- includes/calendars/views/default-calendar-grid.php +13 -16
- includes/calendars/views/default-calendar-list.php +78 -56
- readme.txt +15 -9
- vendor/autoload_52.php +1 -1
- vendor/composer/autoload_real_52.php +3 -3
- vendor/nesbot/carbon/src/Carbon/Lang/af.php +28 -0
- vendor/nesbot/carbon/src/Carbon/Lang/et.php +30 -0
- vendor/nesbot/carbon/src/Carbon/Lang/sq.php +28 -0
assets/css/admin-activation.min.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! Simple Calendar - 3.0.
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2015
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! Simple Calendar - 3.0.3
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2015
|
4 |
* Licensed GPLv2+ */
|
assets/css/admin-add-calendar.min.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! Simple Calendar - 3.0.
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2015
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! Simple Calendar - 3.0.3
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2015
|
4 |
* Licensed GPLv2+ */
|
assets/css/admin.min.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! Simple Calendar - 3.0.
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2015
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! Simple Calendar - 3.0.3
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2015
|
4 |
* Licensed GPLv2+ */
|
assets/css/default-calendar-grid.css
CHANGED
@@ -158,7 +158,8 @@
|
|
158 |
.simcal-default-calendar .simcal-nav-button:disabled {
|
159 |
cursor: default; }
|
160 |
.simcal-default-calendar .simcal-nav-button:disabled:hover {
|
161 |
-
margin: 0;
|
|
|
162 |
|
163 |
.simcal-default-calendar .simcal-events-toggle {
|
164 |
border: 0;
|
@@ -170,44 +171,6 @@
|
|
170 |
box-shadow: none;
|
171 |
outline: none; }
|
172 |
|
173 |
-
.simcal-default-calendar.simcal-event-bubble {
|
174 |
-
background-color: #fff;
|
175 |
-
border: 1px solid rgba(0, 0, 0, 0.1);
|
176 |
-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
|
177 |
-
.simcal-default-calendar.simcal-event-bubble:before {
|
178 |
-
border-bottom: 5px solid #fff;
|
179 |
-
border-left: 5px solid transparent;
|
180 |
-
border-right: 5px solid transparent;
|
181 |
-
content: ' ';
|
182 |
-
display: block;
|
183 |
-
font-size: 0;
|
184 |
-
height: 0;
|
185 |
-
left: 50%;
|
186 |
-
line-height: 0;
|
187 |
-
margin: -5px 0 0 -5px;
|
188 |
-
position: absolute;
|
189 |
-
width: 0;
|
190 |
-
z-index: 16000; }
|
191 |
-
.simcal-default-calendar.simcal-event-bubble:after {
|
192 |
-
border-bottom: 5px solid rgba(0, 0, 0, 0.18);
|
193 |
-
border-left: 5px solid transparent;
|
194 |
-
border-right: 5px solid transparent;
|
195 |
-
content: ' ';
|
196 |
-
display: block;
|
197 |
-
font-size: 0;
|
198 |
-
height: 0;
|
199 |
-
left: 50%;
|
200 |
-
line-height: 0;
|
201 |
-
margin: -6px 0 0 -5px;
|
202 |
-
position: absolute;
|
203 |
-
top: 0;
|
204 |
-
width: 0;
|
205 |
-
z-index: 14999; }
|
206 |
-
.simcal-default-calendar.simcal-event-bubble .simcal-event {
|
207 |
-
list-style: none; }
|
208 |
-
.simcal-default-calendar.simcal-event-bubble .simcal-events {
|
209 |
-
margin: 0; }
|
210 |
-
|
211 |
.simcal-default-calendar ul.simcal-attachments,
|
212 |
.simcal-default-calendar ul.simcal-attendees {
|
213 |
margin: 0;
|
@@ -316,6 +279,8 @@
|
|
316 |
.simcal-default-calendar-grid .simcal-calendar-head .simcal-nav {
|
317 |
padding: 10px 0;
|
318 |
vertical-align: middle; }
|
|
|
|
|
319 |
|
320 |
.simcal-default-calendar-grid .simcal-day > div {
|
321 |
box-sizing: content-box;
|
@@ -323,9 +288,11 @@
|
|
323 |
height: 100%; }
|
324 |
|
325 |
.simcal-default-calendar-grid .simcal-day-void {
|
326 |
-
border-width: 0;
|
327 |
height: 100%;
|
328 |
min-height: 32px; }
|
|
|
|
|
329 |
|
330 |
.simcal-default-calendar-grid .simcal-day-number {
|
331 |
display: block;
|
@@ -398,5 +365,39 @@
|
|
398 |
font-size: 10px;
|
399 |
padding: 2px 0; }
|
400 |
|
401 |
-
.
|
402 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
.simcal-default-calendar .simcal-nav-button:disabled {
|
159 |
cursor: default; }
|
160 |
.simcal-default-calendar .simcal-nav-button:disabled:hover {
|
161 |
+
margin: 0;
|
162 |
+
padding: 0; }
|
163 |
|
164 |
.simcal-default-calendar .simcal-events-toggle {
|
165 |
border: 0;
|
171 |
box-shadow: none;
|
172 |
outline: none; }
|
173 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
.simcal-default-calendar ul.simcal-attachments,
|
175 |
.simcal-default-calendar ul.simcal-attendees {
|
176 |
margin: 0;
|
279 |
.simcal-default-calendar-grid .simcal-calendar-head .simcal-nav {
|
280 |
padding: 10px 0;
|
281 |
vertical-align: middle; }
|
282 |
+
.simcal-default-calendar-grid .simcal-calendar-head .simcal-nav.simcal-prev-wrapper, .simcal-default-calendar-grid .simcal-calendar-head .simcal-nav.simcal-current {
|
283 |
+
border-right: 0; }
|
284 |
|
285 |
.simcal-default-calendar-grid .simcal-day > div {
|
286 |
box-sizing: content-box;
|
288 |
height: 100%; }
|
289 |
|
290 |
.simcal-default-calendar-grid .simcal-day-void {
|
291 |
+
border-width: 0 0 1px 0;
|
292 |
height: 100%;
|
293 |
min-height: 32px; }
|
294 |
+
.simcal-default-calendar-grid .simcal-day-void.simcal-day-void-last {
|
295 |
+
border-right-width: 1px; }
|
296 |
|
297 |
.simcal-default-calendar-grid .simcal-day-number {
|
298 |
display: block;
|
365 |
font-size: 10px;
|
366 |
padding: 2px 0; }
|
367 |
|
368 |
+
.simcal-event-bubble {
|
369 |
+
background-color: #fff;
|
370 |
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
371 |
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
|
372 |
+
.simcal-event-bubble:before {
|
373 |
+
border-bottom: 5px solid #fff;
|
374 |
+
border-left: 5px solid transparent;
|
375 |
+
border-right: 5px solid transparent;
|
376 |
+
content: ' ';
|
377 |
+
display: block;
|
378 |
+
font-size: 0;
|
379 |
+
height: 0;
|
380 |
+
left: 50%;
|
381 |
+
line-height: 0;
|
382 |
+
margin: -5px 0 0 -5px;
|
383 |
+
position: absolute;
|
384 |
+
width: 0;
|
385 |
+
z-index: 16000; }
|
386 |
+
.simcal-event-bubble:after {
|
387 |
+
border-bottom: 5px solid rgba(0, 0, 0, 0.18);
|
388 |
+
border-left: 5px solid transparent;
|
389 |
+
border-right: 5px solid transparent;
|
390 |
+
content: ' ';
|
391 |
+
display: block;
|
392 |
+
font-size: 0;
|
393 |
+
height: 0;
|
394 |
+
left: 50%;
|
395 |
+
line-height: 0;
|
396 |
+
margin: -6px 0 0 -5px;
|
397 |
+
position: absolute;
|
398 |
+
top: 0;
|
399 |
+
width: 0;
|
400 |
+
z-index: 14999; }
|
401 |
+
.simcal-event-bubble .simcal-event-details p,
|
402 |
+
.simcal-event-bubble .simcal-event-details .simcal-event-description {
|
403 |
+
margin: 0 0 1em; }
|
assets/css/default-calendar-grid.min.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
/*! Simple Calendar - 3.0.
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2015
|
4 |
* Licensed GPLv2+ */
|
5 |
|
6 |
-
.simcal-default-calendar .simcal-nav-button,.simcal-default-calendar .simcal-nav-button:focus,.simcal-default-calendar .simcal-nav-button:hover{background:0 0;border:0;box-shadow:none;outline:0}@font-face{font-family:simple-calendar;src:url(../fonts/simple-calendar.eot?43976014);src:url(../fonts/simple-calendar.eot?43976014#iefix) format("embedded-opentype"),url(../fonts/simple-calendar.woff?43976014) format("woff"),url(../fonts/simple-calendar.ttf?43976014) format("truetype"),url(../fonts/simple-calendar.svg?43976014#simple-calendar) format("svg");font-weight:400;font-style:normal}[class*=" simcal-icon-"]:before,[class^=simcal-icon-]:before{display:inline-block;font-family:simple-calendar;font-style:normal;font-weight:400;margin-right:.2em;speak:none;text-decoration:inherit;text-align:center;width:1em;font-variant:normal;text-transform:none;margin-left:.2em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.simcal-icon-spin{-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear;display:inline-block}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.simcal-icon-animate:before{transition:all .2s ease-in-out}.simcal-icon-rotate-180:before{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.simcal-icon-calendar-empty:before{content:'\e800'}.simcal-icon-calendar:before{content:'\e801'}.simcal-icon-calendar-logo:before{content:'\e802'}.simcal-icon-settings:before{content:'\e804'}.simcal-icon-toggles:before{content:'\e805'}.simcal-icon-list:before{content:'\e806'}.simcal-icon-event:before{content:'\e807'}.simcal-icon-help:before{content:'\e808'}.simcal-icon-panel:before{content:'\e80a'}.simcal-icon-grid:before{content:'\e80b'}.simcal-icon-google:before{content:'\e80c'}.simcal-icon-docs:before{content:'\e80f'}.simcal-icon-hourglass:before{content:'\e811'}.simcal-icon-globe:before{content:'\e812'}.simcal-icon-timezones:before{content:'\e813'}.simcal-icon-warning:before{content:'\e815'}.simcal-icon-wordpress:before{content:'\e814'}.simcal-icon-up:before{content:'\e80e'}.simcal-icon-right:before{content:'\e809'}.simcal-icon-down:before{content:'\e80d'}.simcal-icon-left:before{content:'\e803'}.simcal-icon-spinner:before{content:'\e810'}.simcal-calendar{position:relative}.simcal-powered{display:block;margin:-10px 0 20px}.simcal-align-left{text-align:left}.simcal-align-right{text-align:right}.simcal-default-calendar .simcal-current h3{margin:0;padding:0}.simcal-default-calendar .simcal-nav{vertical-align:middle}.simcal-default-calendar .simcal-nav-button{cursor:pointer;margin:0;padding:0;transition:margin .2s ease-out;width:100%}.simcal-default-calendar .simcal-nav-button.simcal-prev:hover{margin-left:-10px}.simcal-default-calendar .simcal-nav-button.simcal-next:hover{margin-right:-10px}.simcal-default-calendar .simcal-nav-button:disabled{
|
1 |
+
/*! Simple Calendar - 3.0.3
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2015
|
4 |
* Licensed GPLv2+ */
|
5 |
|
6 |
+
.simcal-default-calendar .simcal-nav-button,.simcal-default-calendar .simcal-nav-button:focus,.simcal-default-calendar .simcal-nav-button:hover{background:0 0;border:0;box-shadow:none;outline:0}@font-face{font-family:simple-calendar;src:url(../fonts/simple-calendar.eot?43976014);src:url(../fonts/simple-calendar.eot?43976014#iefix) format("embedded-opentype"),url(../fonts/simple-calendar.woff?43976014) format("woff"),url(../fonts/simple-calendar.ttf?43976014) format("truetype"),url(../fonts/simple-calendar.svg?43976014#simple-calendar) format("svg");font-weight:400;font-style:normal}[class*=" simcal-icon-"]:before,[class^=simcal-icon-]:before{display:inline-block;font-family:simple-calendar;font-style:normal;font-weight:400;margin-right:.2em;speak:none;text-decoration:inherit;text-align:center;width:1em;font-variant:normal;text-transform:none;margin-left:.2em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.simcal-icon-spin{-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear;display:inline-block}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.simcal-icon-animate:before{transition:all .2s ease-in-out}.simcal-icon-rotate-180:before{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.simcal-icon-calendar-empty:before{content:'\e800'}.simcal-icon-calendar:before{content:'\e801'}.simcal-icon-calendar-logo:before{content:'\e802'}.simcal-icon-settings:before{content:'\e804'}.simcal-icon-toggles:before{content:'\e805'}.simcal-icon-list:before{content:'\e806'}.simcal-icon-event:before{content:'\e807'}.simcal-icon-help:before{content:'\e808'}.simcal-icon-panel:before{content:'\e80a'}.simcal-icon-grid:before{content:'\e80b'}.simcal-icon-google:before{content:'\e80c'}.simcal-icon-docs:before{content:'\e80f'}.simcal-icon-hourglass:before{content:'\e811'}.simcal-icon-globe:before{content:'\e812'}.simcal-icon-timezones:before{content:'\e813'}.simcal-icon-warning:before{content:'\e815'}.simcal-icon-wordpress:before{content:'\e814'}.simcal-icon-up:before{content:'\e80e'}.simcal-icon-right:before{content:'\e809'}.simcal-icon-down:before{content:'\e80d'}.simcal-icon-left:before{content:'\e803'}.simcal-icon-spinner:before{content:'\e810'}.simcal-calendar{position:relative}.simcal-powered{display:block;margin:-10px 0 20px}.simcal-align-left{text-align:left}.simcal-align-right{text-align:right}.simcal-default-calendar .simcal-current h3{margin:0;padding:0}.simcal-default-calendar .simcal-nav{vertical-align:middle}.simcal-default-calendar .simcal-nav-button{cursor:pointer;margin:0;padding:0;transition:margin .2s ease-out;width:100%}.simcal-default-calendar .simcal-nav-button.simcal-prev:hover{margin-left:-10px}.simcal-default-calendar .simcal-nav-button.simcal-next:hover{margin-right:-10px}.simcal-default-calendar .simcal-nav-button:disabled:hover,.simcal-default-calendar ul.simcal-attachments,.simcal-default-calendar ul.simcal-attendees{margin:0;padding:0}.simcal-default-calendar .simcal-nav-button:disabled{cursor:default}.simcal-default-calendar .simcal-events-toggle{border:0;box-shadow:none;text-align:center;width:100%}.simcal-default-calendar .simcal-events-toggle:active,.simcal-default-calendar .simcal-events-toggle:focus,.simcal-default-calendar .simcal-events-toggle:hover{border:0;box-shadow:none;outline:0}.simcal-default-calendar li.simcal-attachment,.simcal-default-calendar li.simcal-attendee{list-style:none;margin-bottom:4px}.simcal-default-calendar li.simcal-attachment:last-child,.simcal-default-calendar li.simcal-attendee:last-child{margin-bottom:0}.simcal-default-calendar li.simcal-attachment small,.simcal-default-calendar li.simcal-attendee small{opacity:.9;text-transform:lowercase}.simcal-default-calendar .simcal-organizer a,.simcal-default-calendar li.simcal-attachment a,.simcal-default-calendar li.simcal-attendee a{border-bottom:0;text-decoration:none}.simcal-default-calendar .simcal-organizer img,.simcal-default-calendar li.simcal-attachment img,.simcal-default-calendar li.simcal-attendee img{display:inline-block;margin:0 4px;max-height:24px;max-width:24px}.simcal-default-calendar .simcal-tooltip-content{font-size:1.2em;line-height:1.4;padding:5px}.simcal-default-calendar .simcal-ajax-loader{height:100%;left:0;position:absolute;top:0;width:100%}.simcal-default-calendar .simcal-ajax-loader>i{font-size:48px;left:50%;line-height:1;margin:-36px 0 0 -36px;position:absolute;top:50%}.simcal-default-calendar .simcal-ajax-loader.simcal-spinner-top>i{top:20%}.simcal-default-calendar .simcal-ajax-loader.simcal-spinner-bottom>i{bottom:20%;top:auto}.simcal-default-calendar-light .simcal-nav-button{color:rgba(0,0,0,.6)}.simcal-default-calendar-light .simcal-nav-button:disabled,.simcal-default-calendar-light .simcal-nav-button:disabled:hover{color:rgba(255,255,255,.9)!important}.simcal-default-calendar-light .simcal-nav-button:focus,.simcal-default-calendar-light .simcal-nav-button:hover{color:rgba(0,0,0,.9)}.simcal-default-calendar-light .simcal-events-toggle{color:rgba(0,0,0,.6)}.simcal-default-calendar-light .simcal-events-toggle:hover{background-color:rgba(0,0,0,.1);color:#fff}.simcal-default-calendar-light .simcal-ajax-loader{background-color:rgba(0,0,0,.1)}.simcal-default-calendar-light .simcal-ajax-loader>i{color:rgba(0,0,0,.3)}.simcal-default-calendar-dark .simcal-nav-button{color:rgba(255,255,255,.6)}.simcal-default-calendar-dark .simcal-nav-button:disabled,.simcal-default-calendar-dark .simcal-nav-button:disabled:hover{color:rgba(0,0,0,.9)!important}.simcal-default-calendar-dark .simcal-nav-button:focus,.simcal-default-calendar-dark .simcal-nav-button:hover{color:rgba(255,255,255,.9)}.simcal-default-calendar-dark .simcal-events-toggle{color:rgba(255,255,255,.6)}.simcal-default-calendar-dark .simcal-events-toggle:hover{background-color:rgba(255,255,255,.1);color:#000}.simcal-default-calendar-dark .simcal-ajax-loader{background-color:rgba(255,255,255,.1)}.simcal-default-calendar-dark .simcal-ajax-loader>i{color:rgba(255,255,255,.3)}.simcal-default-calendar-grid>table{table-layout:fixed;width:100%}.simcal-default-calendar-grid>table tbody td,.simcal-default-calendar-grid>table thead th{text-align:center;vertical-align:top}.simcal-default-calendar-grid>table tbody td{padding:0!important}.simcal-default-calendar-grid .simcal-calendar-head .simcal-nav{padding:10px 0;vertical-align:middle}.simcal-default-calendar-grid .simcal-calendar-head .simcal-nav.simcal-current,.simcal-default-calendar-grid .simcal-calendar-head .simcal-nav.simcal-prev-wrapper{border-right:0}.simcal-default-calendar-grid .simcal-day>div{box-sizing:content-box;display:block;height:100%}.simcal-default-calendar-grid .simcal-day-void{border-width:0 0 1px;height:100%;min-height:32px}.simcal-default-calendar-grid .simcal-day-void.simcal-day-void-last{border-right-width:1px}.simcal-default-calendar-grid .simcal-day-number{display:block;line-height:1;padding:2px 4px 3px;vertical-align:middle}.simcal-default-calendar-grid .simcal-no-events{display:block;min-height:32px}.simcal-default-calendar-grid.simcal-default-calendar-light .simcal-day:hover{background-color:rgba(0,0,0,.1)}.simcal-default-calendar-grid.simcal-default-calendar-light .simcal-day-void,.simcal-default-calendar-grid.simcal-default-calendar-light .simcal-day-void:hover{background-color:rgba(0,0,0,.04)}.simcal-default-calendar-grid.simcal-default-calendar-light .simcal-day-number{background:rgba(0,0,0,.1)}.simcal-default-calendar-grid.simcal-default-calendar-dark .simcal-day:hover{background-color:rgba(255,255,255,.18)}.simcal-default-calendar-grid.simcal-default-calendar-dark .simcal-day-void,.simcal-default-calendar-grid.simcal-default-calendar-dark .simcal-day-void:hover{background-color:rgba(255,255,255,.05)}.simcal-default-calendar-grid.simcal-default-calendar-dark .simcal-day-number{background:rgba(255,255,255,.1)}.simcal-default-calendar-grid .simcal-events{font-size:.68em;line-height:1.4;list-style:none;margin:0;padding:0;text-align:left}.simcal-default-calendar-grid .simcal-events>.simcal-event{border-bottom-style:solid;border-bottom-width:1px;cursor:pointer;list-style:none;margin:0 0 2px;padding:4px}.simcal-default-calendar-grid .simcal-events>.simcal-event:hover{text-decoration:underline}.simcal-default-calendar-grid .simcal-events>.simcal-event:last-child{border-bottom:0;margin-bottom:0}.simcal-default-calendar-grid.simcal-default-calendar-light .simcal-event{border-bottom-color:rgba(0,0,0,.1)}.simcal-default-calendar-grid.simcal-default-calendar-dark .simcal-event{border-bottom-color:rgba(255,255,255,.1)}.simcal-default-calendar-grid .simcal-events-dots{cursor:pointer;display:block;line-height:.7;margin:3px 0;text-align:center}.simcal-default-calendar-grid .simcal-events-toggle{background:0 0;display:block;font-size:10px;padding:2px 0}.simcal-event-bubble{background-color:#fff;border:1px solid rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1)}.simcal-event-bubble:after,.simcal-event-bubble:before{border-left:5px solid transparent;border-right:5px solid transparent;content:' ';display:block;font-size:0;height:0;left:50%;line-height:0;position:absolute;width:0}.simcal-event-bubble:before{border-bottom:5px solid #fff;margin:-5px 0 0 -5px;z-index:16000}.simcal-event-bubble:after{border-bottom:5px solid rgba(0,0,0,.18);margin:-6px 0 0 -5px;top:0;z-index:14999}.simcal-event-bubble .simcal-event-details .simcal-event-description,.simcal-event-bubble .simcal-event-details p{margin:0 0 1em}
|
assets/css/default-calendar-list.css
CHANGED
@@ -158,7 +158,8 @@
|
|
158 |
.simcal-default-calendar .simcal-nav-button:disabled {
|
159 |
cursor: default; }
|
160 |
.simcal-default-calendar .simcal-nav-button:disabled:hover {
|
161 |
-
margin: 0;
|
|
|
162 |
|
163 |
.simcal-default-calendar .simcal-events-toggle {
|
164 |
border: 0;
|
@@ -170,44 +171,6 @@
|
|
170 |
box-shadow: none;
|
171 |
outline: none; }
|
172 |
|
173 |
-
.simcal-default-calendar.simcal-event-bubble {
|
174 |
-
background-color: #fff;
|
175 |
-
border: 1px solid rgba(0, 0, 0, 0.1);
|
176 |
-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
|
177 |
-
.simcal-default-calendar.simcal-event-bubble:before {
|
178 |
-
border-bottom: 5px solid #fff;
|
179 |
-
border-left: 5px solid transparent;
|
180 |
-
border-right: 5px solid transparent;
|
181 |
-
content: ' ';
|
182 |
-
display: block;
|
183 |
-
font-size: 0;
|
184 |
-
height: 0;
|
185 |
-
left: 50%;
|
186 |
-
line-height: 0;
|
187 |
-
margin: -5px 0 0 -5px;
|
188 |
-
position: absolute;
|
189 |
-
width: 0;
|
190 |
-
z-index: 16000; }
|
191 |
-
.simcal-default-calendar.simcal-event-bubble:after {
|
192 |
-
border-bottom: 5px solid rgba(0, 0, 0, 0.18);
|
193 |
-
border-left: 5px solid transparent;
|
194 |
-
border-right: 5px solid transparent;
|
195 |
-
content: ' ';
|
196 |
-
display: block;
|
197 |
-
font-size: 0;
|
198 |
-
height: 0;
|
199 |
-
left: 50%;
|
200 |
-
line-height: 0;
|
201 |
-
margin: -6px 0 0 -5px;
|
202 |
-
position: absolute;
|
203 |
-
top: 0;
|
204 |
-
width: 0;
|
205 |
-
z-index: 14999; }
|
206 |
-
.simcal-default-calendar.simcal-event-bubble .simcal-event {
|
207 |
-
list-style: none; }
|
208 |
-
.simcal-default-calendar.simcal-event-bubble .simcal-events {
|
209 |
-
margin: 0; }
|
210 |
-
|
211 |
.simcal-default-calendar ul.simcal-attachments,
|
212 |
.simcal-default-calendar ul.simcal-attendees {
|
213 |
margin: 0;
|
@@ -320,6 +283,8 @@
|
|
320 |
width: 60%; }
|
321 |
.simcal-default-calendar-list .simcal-calendar-head .simcal-current span {
|
322 |
display: inline-block; }
|
|
|
|
|
323 |
.simcal-default-calendar-list dl.simcal-month {
|
324 |
margin-bottom: 10px;
|
325 |
padding: 0 10px 10px; }
|
@@ -343,7 +308,8 @@
|
|
343 |
font-size: .84em;
|
344 |
line-height: 1.5;
|
345 |
overflow: hidden; }
|
346 |
-
.simcal-default-calendar-list .simcal-event-details p
|
|
|
347 |
margin: 0 0 1em; }
|
348 |
.simcal-default-calendar-list .simcal-events-toggle {
|
349 |
display: inline-block;
|
@@ -352,3 +318,5 @@
|
|
352 |
background-color: rgba(0, 0, 0, 0.1); }
|
353 |
.simcal-default-calendar-list.simcal-default-calendar-dark .simcal-events-toggle {
|
354 |
background-color: rgba(255, 255, 255, 0.1); }
|
|
|
|
158 |
.simcal-default-calendar .simcal-nav-button:disabled {
|
159 |
cursor: default; }
|
160 |
.simcal-default-calendar .simcal-nav-button:disabled:hover {
|
161 |
+
margin: 0;
|
162 |
+
padding: 0; }
|
163 |
|
164 |
.simcal-default-calendar .simcal-events-toggle {
|
165 |
border: 0;
|
171 |
box-shadow: none;
|
172 |
outline: none; }
|
173 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
.simcal-default-calendar ul.simcal-attachments,
|
175 |
.simcal-default-calendar ul.simcal-attendees {
|
176 |
margin: 0;
|
283 |
width: 60%; }
|
284 |
.simcal-default-calendar-list .simcal-calendar-head .simcal-current span {
|
285 |
display: inline-block; }
|
286 |
+
.simcal-default-calendar-list .simcal-calendar-head .simcal-hide-header {
|
287 |
+
visibility: hidden; }
|
288 |
.simcal-default-calendar-list dl.simcal-month {
|
289 |
margin-bottom: 10px;
|
290 |
padding: 0 10px 10px; }
|
308 |
font-size: .84em;
|
309 |
line-height: 1.5;
|
310 |
overflow: hidden; }
|
311 |
+
.simcal-default-calendar-list .simcal-event-details p,
|
312 |
+
.simcal-default-calendar-list .simcal-event-details .simcal-event-description {
|
313 |
margin: 0 0 1em; }
|
314 |
.simcal-default-calendar-list .simcal-events-toggle {
|
315 |
display: inline-block;
|
318 |
background-color: rgba(0, 0, 0, 0.1); }
|
319 |
.simcal-default-calendar-list.simcal-default-calendar-dark .simcal-events-toggle {
|
320 |
background-color: rgba(255, 255, 255, 0.1); }
|
321 |
+
.simcal-default-calendar-list .simcal-calendar-list-compact .simcal-calendar-head .simcal-nav h3 {
|
322 |
+
font-size: 1em; }
|
assets/css/default-calendar-list.min.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
/*! Simple Calendar - 3.0.
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2015
|
4 |
* Licensed GPLv2+ */
|
5 |
|
6 |
-
.simcal-default-calendar .simcal-nav-button,.simcal-default-calendar .simcal-nav-button:focus,.simcal-default-calendar .simcal-nav-button:hover{background:0 0;border:0;box-shadow:none;outline:0}@font-face{font-family:simple-calendar;src:url(../fonts/simple-calendar.eot?43976014);src:url(../fonts/simple-calendar.eot?43976014#iefix) format("embedded-opentype"),url(../fonts/simple-calendar.woff?43976014) format("woff"),url(../fonts/simple-calendar.ttf?43976014) format("truetype"),url(../fonts/simple-calendar.svg?43976014#simple-calendar) format("svg");font-weight:400;font-style:normal}[class*=" simcal-icon-"]:before,[class^=simcal-icon-]:before{display:inline-block;font-family:simple-calendar;font-style:normal;font-weight:400;margin-right:.2em;speak:none;text-decoration:inherit;text-align:center;width:1em;font-variant:normal;text-transform:none;margin-left:.2em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.simcal-icon-spin{-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear;display:inline-block}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.simcal-icon-animate:before{transition:all .2s ease-in-out}.simcal-icon-rotate-180:before{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.simcal-icon-calendar-empty:before{content:'\e800'}.simcal-icon-calendar:before{content:'\e801'}.simcal-icon-calendar-logo:before{content:'\e802'}.simcal-icon-settings:before{content:'\e804'}.simcal-icon-toggles:before{content:'\e805'}.simcal-icon-list:before{content:'\e806'}.simcal-icon-event:before{content:'\e807'}.simcal-icon-help:before{content:'\e808'}.simcal-icon-panel:before{content:'\e80a'}.simcal-icon-grid:before{content:'\e80b'}.simcal-icon-google:before{content:'\e80c'}.simcal-icon-docs:before{content:'\e80f'}.simcal-icon-hourglass:before{content:'\e811'}.simcal-icon-globe:before{content:'\e812'}.simcal-icon-timezones:before{content:'\e813'}.simcal-icon-warning:before{content:'\e815'}.simcal-icon-wordpress:before{content:'\e814'}.simcal-icon-up:before{content:'\e80e'}.simcal-icon-right:before{content:'\e809'}.simcal-icon-down:before{content:'\e80d'}.simcal-icon-left:before{content:'\e803'}.simcal-icon-spinner:before{content:'\e810'}.simcal-calendar{position:relative}.simcal-powered{display:block;margin:-10px 0 20px}.simcal-align-left{text-align:left}.simcal-align-right{text-align:right}.simcal-default-calendar .simcal-current h3{margin:0;padding:0}.simcal-default-calendar .simcal-nav{vertical-align:middle}.simcal-default-calendar .simcal-nav-button{cursor:pointer;margin:0;padding:0;transition:margin .2s ease-out;width:100%}.simcal-default-calendar .simcal-nav-button.simcal-prev:hover{margin-left:-10px}.simcal-default-calendar .simcal-nav-button.simcal-next:hover{margin-right:-10px}.simcal-default-calendar .simcal-nav-button:disabled{
|
1 |
+
/*! Simple Calendar - 3.0.3
|
2 |
* https://simplecalendar.io
|
3 |
* Copyright (c) Moonstone Media 2015
|
4 |
* Licensed GPLv2+ */
|
5 |
|
6 |
+
.simcal-default-calendar .simcal-nav-button,.simcal-default-calendar .simcal-nav-button:focus,.simcal-default-calendar .simcal-nav-button:hover{background:0 0;border:0;box-shadow:none;outline:0}@font-face{font-family:simple-calendar;src:url(../fonts/simple-calendar.eot?43976014);src:url(../fonts/simple-calendar.eot?43976014#iefix) format("embedded-opentype"),url(../fonts/simple-calendar.woff?43976014) format("woff"),url(../fonts/simple-calendar.ttf?43976014) format("truetype"),url(../fonts/simple-calendar.svg?43976014#simple-calendar) format("svg");font-weight:400;font-style:normal}[class*=" simcal-icon-"]:before,[class^=simcal-icon-]:before{display:inline-block;font-family:simple-calendar;font-style:normal;font-weight:400;margin-right:.2em;speak:none;text-decoration:inherit;text-align:center;width:1em;font-variant:normal;text-transform:none;margin-left:.2em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.simcal-icon-spin{-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear;display:inline-block}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.simcal-icon-animate:before{transition:all .2s ease-in-out}.simcal-icon-rotate-180:before{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.simcal-icon-calendar-empty:before{content:'\e800'}.simcal-icon-calendar:before{content:'\e801'}.simcal-icon-calendar-logo:before{content:'\e802'}.simcal-icon-settings:before{content:'\e804'}.simcal-icon-toggles:before{content:'\e805'}.simcal-icon-list:before{content:'\e806'}.simcal-icon-event:before{content:'\e807'}.simcal-icon-help:before{content:'\e808'}.simcal-icon-panel:before{content:'\e80a'}.simcal-icon-grid:before{content:'\e80b'}.simcal-icon-google:before{content:'\e80c'}.simcal-icon-docs:before{content:'\e80f'}.simcal-icon-hourglass:before{content:'\e811'}.simcal-icon-globe:before{content:'\e812'}.simcal-icon-timezones:before{content:'\e813'}.simcal-icon-warning:before{content:'\e815'}.simcal-icon-wordpress:before{content:'\e814'}.simcal-icon-up:before{content:'\e80e'}.simcal-icon-right:before{content:'\e809'}.simcal-icon-down:before{content:'\e80d'}.simcal-icon-left:before{content:'\e803'}.simcal-icon-spinner:before{content:'\e810'}.simcal-calendar{position:relative}.simcal-powered{display:block;margin:-10px 0 20px}.simcal-align-left{text-align:left}.simcal-align-right{text-align:right}.simcal-default-calendar .simcal-current h3{margin:0;padding:0}.simcal-default-calendar .simcal-nav{vertical-align:middle}.simcal-default-calendar .simcal-nav-button{cursor:pointer;margin:0;padding:0;transition:margin .2s ease-out;width:100%}.simcal-default-calendar .simcal-nav-button.simcal-prev:hover{margin-left:-10px}.simcal-default-calendar .simcal-nav-button.simcal-next:hover{margin-right:-10px}.simcal-default-calendar .simcal-nav-button:disabled:hover,.simcal-default-calendar ul.simcal-attachments,.simcal-default-calendar ul.simcal-attendees{margin:0;padding:0}.simcal-default-calendar .simcal-nav-button:disabled{cursor:default}.simcal-default-calendar .simcal-events-toggle{border:0;box-shadow:none;text-align:center;width:100%}.simcal-default-calendar .simcal-events-toggle:active,.simcal-default-calendar .simcal-events-toggle:focus,.simcal-default-calendar .simcal-events-toggle:hover{border:0;box-shadow:none;outline:0}.simcal-default-calendar li.simcal-attachment,.simcal-default-calendar li.simcal-attendee{list-style:none;margin-bottom:4px}.simcal-default-calendar li.simcal-attachment:last-child,.simcal-default-calendar li.simcal-attendee:last-child{margin-bottom:0}.simcal-default-calendar li.simcal-attachment small,.simcal-default-calendar li.simcal-attendee small{opacity:.9;text-transform:lowercase}.simcal-default-calendar .simcal-organizer a,.simcal-default-calendar li.simcal-attachment a,.simcal-default-calendar li.simcal-attendee a{border-bottom:0;text-decoration:none}.simcal-default-calendar .simcal-organizer img,.simcal-default-calendar li.simcal-attachment img,.simcal-default-calendar li.simcal-attendee img{display:inline-block;margin:0 4px;max-height:24px;max-width:24px}.simcal-default-calendar .simcal-tooltip-content{font-size:1.2em;line-height:1.4;padding:5px}.simcal-default-calendar .simcal-ajax-loader{height:100%;left:0;position:absolute;top:0;width:100%}.simcal-default-calendar .simcal-ajax-loader>i{font-size:48px;left:50%;line-height:1;margin:-36px 0 0 -36px;position:absolute;top:50%}.simcal-default-calendar .simcal-ajax-loader.simcal-spinner-top>i{top:20%}.simcal-default-calendar .simcal-ajax-loader.simcal-spinner-bottom>i{bottom:20%;top:auto}.simcal-default-calendar-light .simcal-nav-button{color:rgba(0,0,0,.6)}.simcal-default-calendar-light .simcal-nav-button:disabled,.simcal-default-calendar-light .simcal-nav-button:disabled:hover{color:rgba(255,255,255,.9)!important}.simcal-default-calendar-light .simcal-nav-button:focus,.simcal-default-calendar-light .simcal-nav-button:hover{color:rgba(0,0,0,.9)}.simcal-default-calendar-light .simcal-events-toggle{color:rgba(0,0,0,.6)}.simcal-default-calendar-light .simcal-events-toggle:hover{background-color:rgba(0,0,0,.1);color:#fff}.simcal-default-calendar-light .simcal-ajax-loader{background-color:rgba(0,0,0,.1)}.simcal-default-calendar-light .simcal-ajax-loader>i{color:rgba(0,0,0,.3)}.simcal-default-calendar-dark .simcal-nav-button{color:rgba(255,255,255,.6)}.simcal-default-calendar-dark .simcal-nav-button:disabled,.simcal-default-calendar-dark .simcal-nav-button:disabled:hover{color:rgba(0,0,0,.9)!important}.simcal-default-calendar-dark .simcal-nav-button:focus,.simcal-default-calendar-dark .simcal-nav-button:hover{color:rgba(255,255,255,.9)}.simcal-default-calendar-dark .simcal-events-toggle{color:rgba(255,255,255,.6)}.simcal-default-calendar-dark .simcal-events-toggle:hover{background-color:rgba(255,255,255,.1);color:#000}.simcal-default-calendar-dark .simcal-ajax-loader{background-color:rgba(255,255,255,.1)}.simcal-default-calendar-dark .simcal-ajax-loader>i{color:rgba(255,255,255,.3)}.simcal-default-calendar-list{min-height:100px;padding:10px 0;text-align:left}.simcal-default-calendar-list .simcal-calendar-head{display:table;padding-bottom:10px;width:100%}.simcal-default-calendar-list .simcal-calendar-head .simcal-nav{display:table-cell;text-align:center;vertical-align:middle;width:20%}.simcal-default-calendar-list .simcal-calendar-head .simcal-nav:nth-child(2){width:60%}.simcal-default-calendar-list .simcal-calendar-head .simcal-current span{display:inline-block}.simcal-default-calendar-list .simcal-calendar-head .simcal-hide-header{visibility:hidden}.simcal-default-calendar-list dl.simcal-month{margin-bottom:10px;padding:0 10px 10px}.simcal-default-calendar-list dd.simcal-day{list-style:none;margin:0}.simcal-default-calendar-list dt.simcal-day-label{font-size:.9em;list-style:none;margin:20px 0 10px}.simcal-default-calendar-list dt.simcal-day-label>span{display:inline-block;padding:4px 8px}.simcal-default-calendar-list ul.simcal-events{margin:10px 14px 0}.simcal-default-calendar-list ul.simcal-events li.simcal-event{list-style-type:none;margin-bottom:10px;word-wrap:break-word}.simcal-default-calendar-list .simcal-event-details{font-size:.84em;line-height:1.5;overflow:hidden}.simcal-default-calendar-list .simcal-event-details .simcal-event-description,.simcal-default-calendar-list .simcal-event-details p{margin:0 0 1em}.simcal-default-calendar-list .simcal-events-toggle{display:inline-block;padding:0}.simcal-default-calendar-list.simcal-default-calendar-light .simcal-events-toggle{background-color:rgba(0,0,0,.1)}.simcal-default-calendar-list.simcal-default-calendar-dark .simcal-events-toggle{background-color:rgba(255,255,255,.1)}.simcal-default-calendar-list .simcal-calendar-list-compact .simcal-calendar-head .simcal-nav h3{font-size:1em}
|
google-calendar-events.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Simple Calendar
|
4 |
* Plugin URI: https://simplecalendar.io
|
5 |
* Description: Add Google Calendar events to your WordPress site in minutes. Beautiful calendar displays. Fully responsive.
|
6 |
-
* Version: 3.0.
|
7 |
* Author: Moonstone Media
|
8 |
* Author URI: https://simplecalendar.io
|
9 |
* Text Domain: google-calendar-events
|
@@ -29,7 +29,7 @@ if ( version_compare( PHP_VERSION, '5.3.0' ) === -1 ) {
|
|
29 |
$this_plugin_path = trailingslashit( dirname( __FILE__ ) );
|
30 |
$this_plugin_dir = plugin_dir_url( __FILE__ );
|
31 |
$this_plugin_constants = array(
|
32 |
-
'SIMPLE_CALENDAR_VERSION' => '3.0.
|
33 |
'SIMPLE_CALENDAR_MAIN_FILE' => __FILE__,
|
34 |
'SIMPLE_CALENDAR_URL' => $this_plugin_dir,
|
35 |
'SIMPLE_CALENDAR_ASSETS' => $this_plugin_dir . 'assets/',
|
3 |
* Plugin Name: Simple Calendar
|
4 |
* Plugin URI: https://simplecalendar.io
|
5 |
* Description: Add Google Calendar events to your WordPress site in minutes. Beautiful calendar displays. Fully responsive.
|
6 |
+
* Version: 3.0.3
|
7 |
* Author: Moonstone Media
|
8 |
* Author URI: https://simplecalendar.io
|
9 |
* Text Domain: google-calendar-events
|
29 |
$this_plugin_path = trailingslashit( dirname( __FILE__ ) );
|
30 |
$this_plugin_dir = plugin_dir_url( __FILE__ );
|
31 |
$this_plugin_constants = array(
|
32 |
+
'SIMPLE_CALENDAR_VERSION' => '3.0.3',
|
33 |
'SIMPLE_CALENDAR_MAIN_FILE' => __FILE__,
|
34 |
'SIMPLE_CALENDAR_URL' => $this_plugin_dir,
|
35 |
'SIMPLE_CALENDAR_ASSETS' => $this_plugin_dir . 'assets/',
|
includes/calendars/admin/default-calendar-admin.php
CHANGED
@@ -38,6 +38,34 @@ class Default_Calendar_Admin {
|
|
38 |
* @return array
|
39 |
*/
|
40 |
public function settings_fields() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
return array();
|
42 |
}
|
43 |
|
@@ -53,172 +81,208 @@ class Default_Calendar_Admin {
|
|
53 |
?>
|
54 |
<table id="default-calendar-settings">
|
55 |
<thead>
|
56 |
-
|
57 |
</thead>
|
58 |
<tbody class="simcal-panel-section">
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
'
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
</tbody>
|
223 |
<?php
|
224 |
|
@@ -229,67 +293,67 @@ class Default_Calendar_Admin {
|
|
229 |
|
230 |
?>
|
231 |
<tbody class="simcal-panel-section">
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
</tbody>
|
294 |
<?php
|
295 |
|
@@ -328,6 +392,14 @@ class Default_Calendar_Admin {
|
|
328 |
$group = isset( $_POST['_default_calendar_list_range_type'] ) ? sanitize_key( $_POST['_default_calendar_list_range_type'] ) : 'monthly';
|
329 |
update_post_meta( $post_id, '_default_calendar_list_range_type', $group );
|
330 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
331 |
// Limit number of initially visible daily events.
|
332 |
$limit = isset( $_POST['_default_calendar_limit_visible_events'] ) ? 'yes' : 'no';
|
333 |
update_post_meta( $post_id, '_default_calendar_limit_visible_events', $limit );
|
38 |
* @return array
|
39 |
*/
|
40 |
public function settings_fields() {
|
41 |
+
/*return array(
|
42 |
+
'name' => __( 'Default Calendar', 'google-calendar-events' ),
|
43 |
+
'description' => '',
|
44 |
+
'fields' => array(
|
45 |
+
'theme' => array(
|
46 |
+
'type' => 'select',
|
47 |
+
'title' => __( 'Default theme', 'google-calendar-events' ),
|
48 |
+
'default' => 'light',
|
49 |
+
'options' => array(
|
50 |
+
'light' => __( 'Light', 'google-calendar-events' ),
|
51 |
+
'dark' => __( 'Dark', 'google-calendar-events' ),
|
52 |
+
),
|
53 |
+
),
|
54 |
+
'today_color' => array(
|
55 |
+
'type' => 'standard',
|
56 |
+
'subtype' => 'color-picker',
|
57 |
+
'title' => __( 'Today default color', 'google-calendar-events' ),
|
58 |
+
'default' => '#FF0000',
|
59 |
+
),
|
60 |
+
'days_events_color' => array(
|
61 |
+
'type' => 'standard',
|
62 |
+
'subtype' => 'color-picker',
|
63 |
+
'title' => __( 'Days with events color', 'google-calendar-events' ),
|
64 |
+
'default' => '#000000',
|
65 |
+
),
|
66 |
+
),
|
67 |
+
);*/
|
68 |
+
|
69 |
return array();
|
70 |
}
|
71 |
|
81 |
?>
|
82 |
<table id="default-calendar-settings">
|
83 |
<thead>
|
84 |
+
<tr><th colspan="2"><?php _e( 'Default calendar', 'google-calendar-events' ); ?></th></tr>
|
85 |
</thead>
|
86 |
<tbody class="simcal-panel-section">
|
87 |
+
<tr class="simcal-panel-field simcal-default-calendar-grid" style="display: none;">
|
88 |
+
<th><label for="_default_calendar_event_bubbles_action"><?php _e( 'Event bubbles', 'google-calendar-events' ); ?></label></th>
|
89 |
+
<td>
|
90 |
+
<?php
|
91 |
+
|
92 |
+
$bubbles = get_post_meta( $post_id, '_default_calendar_event_bubble_trigger', true );
|
93 |
+
|
94 |
+
simcal_print_field( array(
|
95 |
+
'type' => 'radio',
|
96 |
+
'inline' => 'inline',
|
97 |
+
'name' => '_default_calendar_event_bubble_trigger',
|
98 |
+
'id' => '_default_calendar_event_bubble_trigger',
|
99 |
+
'tooltip' => __( 'Open event bubbles in calendar grid by clicking or hovering on event titles. On mobile devices it will always default to tapping.', 'google-calendar-events' ),
|
100 |
+
'value' => $bubbles ? $bubbles : 'hover',
|
101 |
+
'default' => 'hover',
|
102 |
+
'options' => array(
|
103 |
+
'click' => __( 'Click', 'google-calendar-events' ),
|
104 |
+
'hover' => __( 'Hover', 'google-calendar-events' ),
|
105 |
+
),
|
106 |
+
) );
|
107 |
+
|
108 |
+
?>
|
109 |
+
</td>
|
110 |
+
</tr>
|
111 |
+
<tr class="simcal-panel-field simcal-default-calendar-grid" style="display: none;">
|
112 |
+
<th><label for="_default_calendar_trim_titles"><?php _e( 'Trim event titles', 'google-calendar-events' ); ?></label></th>
|
113 |
+
<td>
|
114 |
+
<?php
|
115 |
+
|
116 |
+
$trim = get_post_meta( $post_id, '_default_calendar_trim_titles', true );
|
117 |
+
|
118 |
+
simcal_print_field( array(
|
119 |
+
'type' => 'checkbox',
|
120 |
+
'name' => '_default_calendar_trim_titles',
|
121 |
+
'id' => '_default_calendar_trim_titles',
|
122 |
+
'class' => array(
|
123 |
+
'simcal-field-show-next',
|
124 |
+
),
|
125 |
+
'value' => 'yes' == $trim ? 'yes' : 'no',
|
126 |
+
'attributes' => array(
|
127 |
+
'data-show-next-if-value' => 'yes',
|
128 |
+
),
|
129 |
+
) );
|
130 |
+
|
131 |
+
simcal_print_field( array(
|
132 |
+
'type' => 'standard',
|
133 |
+
'subtype' => 'number',
|
134 |
+
'name' => '_default_calendar_trim_titles_chars',
|
135 |
+
'id' => '_default_calendar_trim_titles_chars',
|
136 |
+
'tooltip' => __( 'Shorten event titles in calendar grid to a specified length in characters.', 'google-calendar-events' ),
|
137 |
+
'class' => array(
|
138 |
+
'simcal-field-tiny',
|
139 |
+
),
|
140 |
+
'value' => 'yes' == $trim ? strval( max( absint( get_post_meta( $post_id, '_default_calendar_trim_titles_chars', true ) ), 1 ) ) : '20',
|
141 |
+
'attributes' => array(
|
142 |
+
'min' => '1',
|
143 |
+
),
|
144 |
+
) );
|
145 |
+
|
146 |
+
?>
|
147 |
+
</td>
|
148 |
+
</tr>
|
149 |
+
<tr class="simcal-panel-field simcal-default-calendar-list" style="display: none;">
|
150 |
+
<th><label for="_default_calendar_list_grouped_span"><?php _e( 'Span', 'google-calendar-events' ); ?></label></th>
|
151 |
+
<td>
|
152 |
+
<?php
|
153 |
+
|
154 |
+
$list_span = max( absint( get_post_meta( $post_id, '_default_calendar_list_range_span', true ) ), 1 );
|
155 |
+
|
156 |
+
simcal_print_field( array(
|
157 |
+
'type' => 'standard',
|
158 |
+
'subtype' => 'number',
|
159 |
+
'name' => '_default_calendar_list_range_span',
|
160 |
+
'id' => '_default_calendar_list_range_span',
|
161 |
+
'class' => array(
|
162 |
+
'simcal-field-tiny',
|
163 |
+
'simcal-field-inline',
|
164 |
+
),
|
165 |
+
'value' => strval( $list_span ),
|
166 |
+
'attributes' => array(
|
167 |
+
'min' => '1',
|
168 |
+
),
|
169 |
+
) );
|
170 |
+
|
171 |
+
$list_type = get_post_meta( $post_id, '_default_calendar_list_range_type', true );
|
172 |
+
|
173 |
+
simcal_print_field( array(
|
174 |
+
'type' => 'select',
|
175 |
+
'name' => '_default_calendar_list_range_type',
|
176 |
+
'id' => '_default_calendar_list_range_type',
|
177 |
+
'tooltip' => __( 'Range of events to show on each calendar page.', 'google-calendar-events' ),
|
178 |
+
'class' => array(
|
179 |
+
'simcal-field-inline',
|
180 |
+
),
|
181 |
+
'value' => $list_type,
|
182 |
+
'options' => array(
|
183 |
+
'monthly' => __( 'Month(s)', 'google-calendar-events' ),
|
184 |
+
'weekly' => __( 'Week(s)', 'google-calendar-events' ),
|
185 |
+
'daily' => __( 'Day(s)', 'google-calendar-events' ),
|
186 |
+
'events' => __( 'Event(s)', 'google-calendar-events' ),
|
187 |
+
),
|
188 |
+
) );
|
189 |
+
|
190 |
+
?>
|
191 |
+
</td>
|
192 |
+
</tr>
|
193 |
+
<tr class="simcal-panel-field simcal-default-calendar-list" style="display: none;">
|
194 |
+
<th><label for="_default_calendar_list_header"><?php _e( 'Hide header', 'google-calendar-events' ); ?></label></th>
|
195 |
+
<td>
|
196 |
+
<?php
|
197 |
+
|
198 |
+
$header = get_post_meta( $post_id, '_default_calendar_list_header', true );
|
199 |
+
|
200 |
+
simcal_print_field( array(
|
201 |
+
'type' => 'checkbox',
|
202 |
+
'name' => '_default_calendar_list_header',
|
203 |
+
'id' => '_default_calendar_list_header',
|
204 |
+
'tooltip' => __( 'You can use this to hide the month header for this calendar.', 'google-calendar-events' ),
|
205 |
+
'value' => 'yes' == $header ? 'yes' : 'no',
|
206 |
+
) );
|
207 |
+
|
208 |
+
?>
|
209 |
+
</td>
|
210 |
+
</tr>
|
211 |
+
<tr class="simcal-panel-field simcal-default-calendar-list" style="display: none;">
|
212 |
+
<th><label for="_default_calendar_compact_list"><?php _e( 'Compact list', 'google-calendar-events' ); ?></label></th>
|
213 |
+
<td>
|
214 |
+
<?php
|
215 |
+
|
216 |
+
$compact = get_post_meta( $post_id, '_default_calendar_compact_list', true );
|
217 |
+
|
218 |
+
simcal_print_field( array(
|
219 |
+
'type' => 'checkbox',
|
220 |
+
'name' => '_default_calendar_compact_list',
|
221 |
+
'id' => '_default_calendar_compact_list',
|
222 |
+
'tooltip' => __( 'Make an events list more compact by grouping together events from different days in a single list.', 'google-calendar-events' ),
|
223 |
+
'value' => 'yes' == $compact ? 'yes' : 'no',
|
224 |
+
) );
|
225 |
+
|
226 |
+
?>
|
227 |
+
</td>
|
228 |
+
</tr>
|
229 |
+
<tr class="simcal-panel-field simcal-default-calendar-grid simcal-default-calendar-list" style="display: none;">
|
230 |
+
<th><label for="_default_calendar_limit_visible_events"><?php _e( 'Limit visible events', 'google-calendar-events' ); ?></label></th>
|
231 |
+
<td>
|
232 |
+
<?php
|
233 |
+
|
234 |
+
$limit = get_post_meta( $post_id, '_default_calendar_limit_visible_events', true );
|
235 |
+
|
236 |
+
simcal_print_field( array(
|
237 |
+
'type' => 'checkbox',
|
238 |
+
'name' => '_default_calendar_limit_visible_events',
|
239 |
+
'id' => '_default_calendar_limit_visible_events',
|
240 |
+
'value' => 'yes' == $limit ? 'yes' : 'no',
|
241 |
+
'class' => array(
|
242 |
+
'simcal-field-show-next',
|
243 |
+
),
|
244 |
+
'attributes' => array(
|
245 |
+
'data-show-next-if-value' => 'yes',
|
246 |
+
)
|
247 |
+
) );
|
248 |
+
|
249 |
+
$visible_events = absint( get_post_meta( $post_id, '_default_calendar_visible_events', true ) );
|
250 |
+
$visible_events = $visible_events > 0 ? $visible_events : 3;
|
251 |
+
|
252 |
+
simcal_print_field( array(
|
253 |
+
'type' => 'standard',
|
254 |
+
'subtype' => 'number',
|
255 |
+
'name' => '_default_calendar_visible_events',
|
256 |
+
'id' => '_default_calendar_visible_events',
|
257 |
+
'tooltip' => __( 'Limit the number of initial visible events on each day to a set maximum.', 'google-calendar-events' ),
|
258 |
+
'class' => array(
|
259 |
+
'simcal-field-tiny',
|
260 |
+
),
|
261 |
+
'value' => $visible_events,
|
262 |
+
'attributes' => array(
|
263 |
+
'min' => '1',
|
264 |
+
)
|
265 |
+
) );
|
266 |
+
|
267 |
+
?>
|
268 |
+
</td>
|
269 |
+
</tr>
|
270 |
+
<tr class="simcal-panel-field simcal-default-calendar-grid simcal-default-calendar-list" style="display: none;">
|
271 |
+
<th><label for="_default_calendar_event_bubbles_action"><?php _e( 'Expand multi day events', 'google-calendar-events' ); ?></label></th>
|
272 |
+
<td>
|
273 |
+
<?php
|
274 |
+
|
275 |
+
simcal_print_field( array(
|
276 |
+
'type' => 'checkbox',
|
277 |
+
'name' => '_default_calendar_expand_multi_day_events',
|
278 |
+
'id' => '_default_calendar_expand_multi_day_events',
|
279 |
+
'tooltip' => __( 'Show events spanning multiple days on each day.', 'google-calendar-events' ),
|
280 |
+
'value' => get_post_meta( $post_id, '_default_calendar_expand_multi_day_events', true ),
|
281 |
+
) );
|
282 |
+
|
283 |
+
?>
|
284 |
+
</td>
|
285 |
+
</tr>
|
286 |
</tbody>
|
287 |
<?php
|
288 |
|
293 |
|
294 |
?>
|
295 |
<tbody class="simcal-panel-section">
|
296 |
+
<tr class="simcal-panel-field simcal-default-calendar-grid simcal-default-calendar-list" style="display: none;">
|
297 |
+
<th><label for="_default_calendar_style_theme"><?php _e( 'Theme', 'google-calendar-events' ); ?></label></th>
|
298 |
+
<td>
|
299 |
+
<?php
|
300 |
+
|
301 |
+
$saved = get_post_meta( $post_id, '_default_calendar_style_theme', true );
|
302 |
+
$value = ! $saved ? $default_theme : $saved;
|
303 |
+
|
304 |
+
simcal_print_field( array(
|
305 |
+
'type' => 'select',
|
306 |
+
'name' => '_default_calendar_style_theme',
|
307 |
+
'id' => '_default_calendar_style_theme',
|
308 |
+
'value' => $value,
|
309 |
+
'tooltip' => __( 'Choose a calendar theme to match your site theme.', 'google-calendar-events' ),
|
310 |
+
'options' => array(
|
311 |
+
'light' => __( 'Light', 'google-calendar-events' ),
|
312 |
+
'dark' => __( 'Dark', 'google-calendar-events' ),
|
313 |
+
),
|
314 |
+
) );
|
315 |
+
|
316 |
+
?>
|
317 |
+
</td>
|
318 |
+
</tr>
|
319 |
+
<tr class="simcal-panel-field simcal-default-calendar-grid simcal-default-calendar-list" style="display: none;">
|
320 |
+
<th><label for="_default_calendar_style_today"><?php _e( 'Today', 'google-calendar-events' ); ?></label></th>
|
321 |
+
<td>
|
322 |
+
<?php
|
323 |
+
|
324 |
+
$saved = get_post_meta( $post_id, '_default_calendar_style_today', true );
|
325 |
+
$value = ! $saved ? $default_today_color : $saved;
|
326 |
+
|
327 |
+
simcal_print_field( array(
|
328 |
+
'type' => 'standard',
|
329 |
+
'subtype' => 'color-picker',
|
330 |
+
'name' => '_default_calendar_style_today',
|
331 |
+
'id' => '_default_calendar_style_today',
|
332 |
+
'value' => $value,
|
333 |
+
) );
|
334 |
+
|
335 |
+
?>
|
336 |
+
</td>
|
337 |
+
</tr>
|
338 |
+
<tr class="simcal-panel-field simcal-default-calendar-grid simcal-default-calendar-list" style="display: none;">
|
339 |
+
<th><label for="_default_calendar_style_days_events"><?php _e( 'Days with events', 'google-calendar-events' ); ?></label></th>
|
340 |
+
<td>
|
341 |
+
<?php
|
342 |
+
|
343 |
+
$saved = get_post_meta( $post_id, '_default_calendar_style_days_events', true );
|
344 |
+
$value = ! $saved ? $default_days_events_color : $saved;
|
345 |
+
|
346 |
+
simcal_print_field( array(
|
347 |
+
'type' => 'standard',
|
348 |
+
'subtype' => 'color-picker',
|
349 |
+
'name' => '_default_calendar_style_days_events',
|
350 |
+
'id' => '_default_calendar_style_days_events',
|
351 |
+
'value' => $value,
|
352 |
+
) );
|
353 |
+
|
354 |
+
?>
|
355 |
+
</td>
|
356 |
+
</tr>
|
357 |
</tbody>
|
358 |
<?php
|
359 |
|
392 |
$group = isset( $_POST['_default_calendar_list_range_type'] ) ? sanitize_key( $_POST['_default_calendar_list_range_type'] ) : 'monthly';
|
393 |
update_post_meta( $post_id, '_default_calendar_list_range_type', $group );
|
394 |
|
395 |
+
// Hide header.
|
396 |
+
$header = isset( $_POST['_default_calendar_list_header'] ) ? 'yes' : 'no';
|
397 |
+
update_post_meta( $post_id, '_default_calendar_list_header', $header );
|
398 |
+
|
399 |
+
// Compact list.
|
400 |
+
$compact = isset( $_POST['_default_calendar_compact_list'] ) ? 'yes' : 'no';
|
401 |
+
update_post_meta( $post_id, '_default_calendar_compact_list', $compact );
|
402 |
+
|
403 |
// Limit number of initially visible daily events.
|
404 |
$limit = isset( $_POST['_default_calendar_limit_visible_events'] ) ? 'yes' : 'no';
|
405 |
update_post_meta( $post_id, '_default_calendar_limit_visible_events', $limit );
|
includes/calendars/default-calendar.php
CHANGED
@@ -50,6 +50,14 @@ class Default_Calendar extends Calendar {
|
|
50 |
*/
|
51 |
public $event_bubble_trigger = 'click';
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
/**
|
54 |
* Grouped list type.
|
55 |
*
|
@@ -179,7 +187,14 @@ class Default_Calendar extends Calendar {
|
|
179 |
// List range.
|
180 |
$this->group_type = esc_attr( get_post_meta( $this->id, '_default_calendar_list_range_type', true ) );
|
181 |
$this->group_span = max( absint( get_post_meta( $this->id, '_default_calendar_list_range_span', true ) ), 1 );
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
}
|
|
|
183 |
}
|
184 |
|
185 |
/**
|
50 |
*/
|
51 |
public $event_bubble_trigger = 'click';
|
52 |
|
53 |
+
/**
|
54 |
+
* Hide navigation buttons.
|
55 |
+
*
|
56 |
+
* @access public
|
57 |
+
* @var bool
|
58 |
+
*/
|
59 |
+
public $compact_list = false;
|
60 |
+
|
61 |
/**
|
62 |
* Grouped list type.
|
63 |
*
|
187 |
// List range.
|
188 |
$this->group_type = esc_attr( get_post_meta( $this->id, '_default_calendar_list_range_type', true ) );
|
189 |
$this->group_span = max( absint( get_post_meta( $this->id, '_default_calendar_list_range_span', true ) ), 1 );
|
190 |
+
|
191 |
+
// Make the list look more compact.
|
192 |
+
if ( 'yes' == get_post_meta( $this->id, '_default_calendar_compact_list', true ) ) {
|
193 |
+
$this->compact_list = true;
|
194 |
+
}
|
195 |
+
|
196 |
}
|
197 |
+
|
198 |
}
|
199 |
|
200 |
/**
|
includes/calendars/views/default-calendar-grid.php
CHANGED
@@ -182,7 +182,7 @@ class Default_Calendar_Grid implements Calendar_View {
|
|
182 |
<thead class="simcal-calendar-head">
|
183 |
<tr>
|
184 |
<?php if ( ! $calendar->static ) { ?>
|
185 |
-
<th class="simcal-nav" colspan="1">
|
186 |
<button class="simcal-nav-button simcal-month-nav simcal-prev" title="<?php _e( 'Previous Month', 'google-calendar-events' ); ?>"><i class="simcal-icon-left"></i></button>
|
187 |
</th>
|
188 |
<?php } ?>
|
@@ -213,7 +213,7 @@ class Default_Calendar_Grid implements Calendar_View {
|
|
213 |
?>
|
214 |
</th>
|
215 |
<?php if ( ! $calendar->static ) { ?>
|
216 |
-
<th class="simcal-nav" colspan="1">
|
217 |
<button class="simcal-nav-button simcal-month-nav simcal-next" title="<?php _e( 'Next Month', 'google-calendar-events' ); ?>"><i class="simcal-icon-right"></i></button>
|
218 |
</th>
|
219 |
<?php } ?>
|
@@ -350,7 +350,9 @@ class Default_Calendar_Grid implements Calendar_View {
|
|
350 |
// Void days in first week.
|
351 |
for ( $a = $week_starts; $a < $b; $a++ ) :
|
352 |
|
353 |
-
|
|
|
|
|
354 |
|
355 |
// Reset day of the week count (sun, 0 - sat, 6).
|
356 |
if ( $week_day === 6 ) {
|
@@ -387,7 +389,7 @@ class Default_Calendar_Grid implements Calendar_View {
|
|
387 |
// Print events for the current day in loop, if found any.
|
388 |
if ( isset( $day_events[ $day ] ) ) :
|
389 |
|
390 |
-
$list_events = '<ul class="simcal-events"
|
391 |
|
392 |
foreach ( $day_events[ $day ] as $event ) :
|
393 |
|
@@ -453,10 +455,8 @@ class Default_Calendar_Grid implements Calendar_View {
|
|
453 |
|
454 |
else :
|
455 |
|
456 |
-
$border_style = ! empty( $the_color ) ? $border_style : '';
|
457 |
-
|
458 |
// Empty cell for day with no events.
|
459 |
-
$list_events = '<span class="simcal-no-events"
|
460 |
|
461 |
endif;
|
462 |
|
@@ -474,7 +474,7 @@ class Default_Calendar_Grid implements Calendar_View {
|
|
474 |
$day_style = '';
|
475 |
}
|
476 |
|
477 |
-
echo "\t" . '<div>' . "\n";
|
478 |
echo "\t\t" . '<span class="simcal-day-label simcal-day-number"' . $day_style . '>' . $day . '</span>' . "\n";
|
479 |
echo "\t\t" . $list_events . "\n";
|
480 |
echo "\t\t";
|
@@ -518,18 +518,15 @@ class Default_Calendar_Grid implements Calendar_View {
|
|
518 |
endfor;
|
519 |
|
520 |
// Void days at the end of the month.
|
521 |
-
$remainder_days = 6 - $days_in_row;
|
522 |
-
if ( $remainder_days >= 1 ) {
|
523 |
|
524 |
-
|
525 |
|
526 |
-
|
527 |
|
528 |
-
|
529 |
-
}
|
530 |
|
531 |
-
|
532 |
-
echo '<td class="simcal-day simcal-day-void"></td>' . "\n";
|
533 |
}
|
534 |
|
535 |
echo "\t" . '</tr>' . "\n";
|
182 |
<thead class="simcal-calendar-head">
|
183 |
<tr>
|
184 |
<?php if ( ! $calendar->static ) { ?>
|
185 |
+
<th class="simcal-nav simcal-prev-wrapper" colspan="1">
|
186 |
<button class="simcal-nav-button simcal-month-nav simcal-prev" title="<?php _e( 'Previous Month', 'google-calendar-events' ); ?>"><i class="simcal-icon-left"></i></button>
|
187 |
</th>
|
188 |
<?php } ?>
|
213 |
?>
|
214 |
</th>
|
215 |
<?php if ( ! $calendar->static ) { ?>
|
216 |
+
<th class="simcal-nav simcal-next-wrapper" colspan="1">
|
217 |
<button class="simcal-nav-button simcal-month-nav simcal-next" title="<?php _e( 'Next Month', 'google-calendar-events' ); ?>"><i class="simcal-icon-right"></i></button>
|
218 |
</th>
|
219 |
<?php } ?>
|
350 |
// Void days in first week.
|
351 |
for ( $a = $week_starts; $a < $b; $a++ ) :
|
352 |
|
353 |
+
$last_void_day_class = ( $a === ( $b - 1 ) ) ? 'simcal-day-void-last' : '';
|
354 |
+
|
355 |
+
echo '<td class="simcal-day simcal-day-void ' . $last_void_day_class . '"></td>' . "\n";
|
356 |
|
357 |
// Reset day of the week count (sun, 0 - sat, 6).
|
358 |
if ( $week_day === 6 ) {
|
389 |
// Print events for the current day in loop, if found any.
|
390 |
if ( isset( $day_events[ $day ] ) ) :
|
391 |
|
392 |
+
$list_events = '<ul class="simcal-events">';
|
393 |
|
394 |
foreach ( $day_events[ $day ] as $event ) :
|
395 |
|
455 |
|
456 |
else :
|
457 |
|
|
|
|
|
458 |
// Empty cell for day with no events.
|
459 |
+
$list_events = '<span class="simcal-no-events"></span>';
|
460 |
|
461 |
endif;
|
462 |
|
474 |
$day_style = '';
|
475 |
}
|
476 |
|
477 |
+
echo "\t" . '<div' . $border_style . '>' . "\n";
|
478 |
echo "\t\t" . '<span class="simcal-day-label simcal-day-number"' . $day_style . '>' . $day . '</span>' . "\n";
|
479 |
echo "\t\t" . $list_events . "\n";
|
480 |
echo "\t\t";
|
518 |
endfor;
|
519 |
|
520 |
// Void days at the end of the month.
|
521 |
+
$remainder_days = ( 6 - $days_in_row );
|
|
|
522 |
|
523 |
+
for ( $i = 0; $i <= $remainder_days; $i ++ ) {
|
524 |
|
525 |
+
$last_void_day_class = ( $i == $remainder_days ) ? 'simcal-day-void-last' : '';
|
526 |
|
527 |
+
echo '<td class="simcal-day simcal-day-void ' . $last_void_day_class . '"></td>' . "\n";
|
|
|
528 |
|
529 |
+
$week_day++;
|
|
|
530 |
}
|
531 |
|
532 |
echo "\t" . '</tr>' . "\n";
|
includes/calendars/views/default-calendar-list.php
CHANGED
@@ -186,27 +186,41 @@ class Default_Calendar_List implements Calendar_View {
|
|
186 |
|
187 |
$disabled = $calendar->static === true ? ' disabled="disabled"' : '';
|
188 |
|
189 |
-
echo '<div class="simcal-calendar-list">';
|
190 |
|
191 |
-
|
|
|
192 |
|
193 |
-
|
194 |
-
|
195 |
-
echo "\t\t\t" . '<i class="simcal-icon-left"></i>' . "\n";
|
196 |
-
echo "\t\t" . '</button>' . "\n";
|
197 |
-
echo "\t" . '</div>' . "\n";
|
198 |
|
199 |
-
echo
|
200 |
-
echo "\t\t" . '<h3 class="simcal-current-label"> </h3>' . "\n";
|
201 |
-
echo "\t" . '</div>' . "\n";
|
202 |
|
203 |
-
|
204 |
-
|
205 |
-
echo "\t\t\t" . '<i class="simcal-icon-right"></i>' . "\n";
|
206 |
-
echo "\t\t" . '</button>' . "\n";
|
207 |
-
echo "\t" . '</div>' . "\n";
|
208 |
|
209 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
|
211 |
echo $this->draw_list( $calendar->start );
|
212 |
|
@@ -433,16 +447,19 @@ class Default_Calendar_List implements Calendar_View {
|
|
433 |
ob_start();
|
434 |
|
435 |
// Draw the events.
|
|
|
|
|
|
|
436 |
$data_heading = '';
|
437 |
$heading = $this->get_heading();
|
438 |
foreach ( $heading as $k => $v ) {
|
439 |
$data_heading .= ' data-heading-' . $k . '="' . $v . '"';
|
440 |
}
|
441 |
|
442 |
-
echo '<
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
|
447 |
if ( ! empty( $current_events ) && is_array( $current_events ) ) :
|
448 |
|
@@ -450,28 +467,32 @@ class Default_Calendar_List implements Calendar_View {
|
|
450 |
|
451 |
$day_ts = Carbon::createFromFormat( 'Ymd', $ymd, $calendar->timezone )->getTimestamp();
|
452 |
|
453 |
-
|
454 |
-
$date->setLocale( substr( get_locale(), 0, 2 ) );
|
455 |
-
$date->setTimestamp( $day_ts );
|
456 |
|
457 |
-
|
458 |
-
$
|
459 |
-
|
460 |
-
$the_color = new Color( $calendar->days_events_color );
|
461 |
-
}
|
462 |
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
|
|
467 |
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
475 |
|
476 |
$list_events = '<ul class="simcal-events">' . "\n";
|
477 |
|
@@ -545,9 +566,10 @@ class Default_Calendar_List implements Calendar_View {
|
|
545 |
endif;
|
546 |
|
547 |
// Print final list of events for the current day.
|
548 |
-
|
|
|
549 |
echo "\t" . $list_events . "\n";
|
550 |
-
echo '</
|
551 |
|
552 |
endforeach;
|
553 |
|
@@ -555,29 +577,29 @@ class Default_Calendar_List implements Calendar_View {
|
|
555 |
|
556 |
echo "\t" . '<p>';
|
557 |
|
558 |
-
|
559 |
|
560 |
-
|
561 |
-
|
|
|
|
|
|
|
562 |
} else {
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
date_i18n( $calendar->date_format, $from ),
|
571 |
-
date_i18n( $calendar->date_format, $to )
|
572 |
-
), $calendar->id, $from, $to );
|
573 |
-
}
|
574 |
}
|
|
|
575 |
|
576 |
echo "\t" . '</p>' . "\n";
|
577 |
|
578 |
endif;
|
579 |
|
580 |
-
echo '</
|
581 |
|
582 |
date_default_timezone_set( $calendar->site_timezone );
|
583 |
|
186 |
|
187 |
$disabled = $calendar->static === true ? ' disabled="disabled"' : '';
|
188 |
|
|
|
189 |
|
190 |
+
$hide_header = get_post_meta( $this->calendar->id, '_default_calendar_list_header', true ) == 'yes' ? true : false;
|
191 |
+
$static_calendar = get_post_meta( $this->calendar->id, '_calendar_is_static', true ) == 'yes' ? true : false;
|
192 |
|
193 |
+
$header_class = '';
|
194 |
+
$compact_list_class = $calendar->compact_list ? 'simcal-calendar-list-compact' : '';
|
|
|
|
|
|
|
195 |
|
196 |
+
echo '<div class="simcal-calendar-list ' . $compact_list_class . '">';
|
|
|
|
|
197 |
|
198 |
+
if ( ! $hide_header && ! $static_calendar ) {
|
199 |
+
echo '<nav class="simcal-calendar-head">' . "\n";
|
|
|
|
|
|
|
200 |
|
201 |
+
echo "\t" . '<div class="simcal-nav">' . "\n";
|
202 |
+
echo "\t\t" . '<button class="simcal-nav-button simcal-prev" title="' . __('Previous', 'google-calendar-events') . '"' . $disabled . '>' . "\n";
|
203 |
+
echo "\t\t\t" . '<i class="simcal-icon-left"></i>' . "\n";
|
204 |
+
echo "\t\t" . '</button>' . "\n";
|
205 |
+
echo "\t" . '</div>' . "\n";
|
206 |
+
|
207 |
+
if ( $hide_header ) {
|
208 |
+
$header_class = 'simcal-hide-header';
|
209 |
+
}
|
210 |
+
|
211 |
+
|
212 |
+
echo "\t" . '<div class="simcal-nav simcal-current ' . $header_class . '" data-calendar-current="' . $calendar->start . '">' . "\n";
|
213 |
+
echo "\t\t" . '<h3 class="simcal-current-label"> </h3>' . "\n";
|
214 |
+
echo "\t" . '</div>' . "\n";
|
215 |
+
|
216 |
+
echo "\t" . '<div class="simcal-nav">';
|
217 |
+
echo "\t\t" . '<button class="simcal-nav-button simcal-next" title="' . __('Next', 'google-calendar-events') . '"' . $disabled . '>';
|
218 |
+
echo "\t\t\t" . '<i class="simcal-icon-right"></i>' . "\n";
|
219 |
+
echo "\t\t" . '</button>' . "\n";
|
220 |
+
echo "\t" . '</div>' . "\n";
|
221 |
+
|
222 |
+
echo '</nav>' . "\n";
|
223 |
+
}
|
224 |
|
225 |
echo $this->draw_list( $calendar->start );
|
226 |
|
447 |
ob_start();
|
448 |
|
449 |
// Draw the events.
|
450 |
+
|
451 |
+
$block_tag = $calendar->compact_list && ! empty( $current_events ) ? 'div' : 'dl';
|
452 |
+
|
453 |
$data_heading = '';
|
454 |
$heading = $this->get_heading();
|
455 |
foreach ( $heading as $k => $v ) {
|
456 |
$data_heading .= ' data-heading-' . $k . '="' . $v . '"';
|
457 |
}
|
458 |
|
459 |
+
echo '<' . $block_tag . ' class="simcal-events-list-container"' .
|
460 |
+
' data-prev="' . $this->prev . '"' .
|
461 |
+
' data-next="' . $this->next . '"' .
|
462 |
+
$data_heading . '>';
|
463 |
|
464 |
if ( ! empty( $current_events ) && is_array( $current_events ) ) :
|
465 |
|
467 |
|
468 |
$day_ts = Carbon::createFromFormat( 'Ymd', $ymd, $calendar->timezone )->getTimestamp();
|
469 |
|
470 |
+
if ( ! $calendar->compact_list ) :
|
|
|
|
|
471 |
|
472 |
+
$date = new Carbon( 'now', $calendar->timezone );
|
473 |
+
$date->setLocale( substr( get_locale(), 0, 2 ) );
|
474 |
+
$date->setTimestamp( $day_ts );
|
|
|
|
|
475 |
|
476 |
+
if ( $date->isToday() ) {
|
477 |
+
$the_color = new Color( $calendar->today_color );
|
478 |
+
} else {
|
479 |
+
$the_color = new Color( $calendar->days_events_color );
|
480 |
+
}
|
481 |
|
482 |
+
$bg_color = '#' . $the_color->getHex();
|
483 |
+
$color = $the_color->isDark() ? '#ffffff' : '#000000';
|
484 |
+
$border_style = ' style="border-bottom: 1px solid ' . $bg_color . ';" ';
|
485 |
+
$bg_style = ' style="background-color: ' . $bg_color . '; color: ' . $color . ';"';
|
486 |
+
|
487 |
+
echo "\t" . '<dt class="simcal-day-label"' . $border_style . '>';
|
488 |
+
echo '<span' . $bg_style .'>';
|
489 |
+
foreach ( $day_format as $format ) {
|
490 |
+
echo $format ? '<span class="simcal-date-format" data-date-format="' . $format . '">' . date_i18n( $format, $day_ts ) . '</span> ' : ' ';
|
491 |
+
}
|
492 |
+
echo '</span>';
|
493 |
+
echo '</dt>' . "\n";
|
494 |
+
|
495 |
+
endif;
|
496 |
|
497 |
$list_events = '<ul class="simcal-events">' . "\n";
|
498 |
|
566 |
endif;
|
567 |
|
568 |
// Print final list of events for the current day.
|
569 |
+
$tag = $calendar->compact_list ? 'div' : 'dd';
|
570 |
+
echo '<' . $tag . ' class="' . $day_classes . '" data-events-count="' . strval( $count ) . '">' . "\n";
|
571 |
echo "\t" . $list_events . "\n";
|
572 |
+
echo '</' . $tag . '>' . "\n";
|
573 |
|
574 |
endforeach;
|
575 |
|
577 |
|
578 |
echo "\t" . '<p>';
|
579 |
|
580 |
+
$message = get_post_meta( $calendar->id, '_no_events_message', true );
|
581 |
|
582 |
+
if ( 'events' == $calendar->group_type ) {
|
583 |
+
echo ! empty( $message ) ? $message : __( 'Nothing to show.', 'google-calendar-events' );
|
584 |
+
} else {
|
585 |
+
if ( ! empty( $message ) ) {
|
586 |
+
echo $message;
|
587 |
} else {
|
588 |
+
$from = Carbon::createFromTimestamp( $this->start, $calendar->timezone )->getTimestamp();
|
589 |
+
$to = Carbon::createFromTimestamp( $this->end, $calendar->timezone )->getTimestamp();
|
590 |
+
echo apply_filters( 'simcal_no_events_message', sprintf(
|
591 |
+
__( 'Nothing from %1$s to %2$s.', 'google-calendar-events' ),
|
592 |
+
date_i18n( $calendar->date_format, $from ),
|
593 |
+
date_i18n( $calendar->date_format, $to )
|
594 |
+
), $calendar->id, $from, $to );
|
|
|
|
|
|
|
|
|
595 |
}
|
596 |
+
}
|
597 |
|
598 |
echo "\t" . '</p>' . "\n";
|
599 |
|
600 |
endif;
|
601 |
|
602 |
+
echo '</' . $block_tag . '>';
|
603 |
|
604 |
date_default_timezone_set( $calendar->site_timezone );
|
605 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: moonstonemedia, pderksen, nickyoung87, nekojira, rosshanney
|
|
3 |
Tags: calendar, calendars, calendar manager, custom calendar, custom calendars, event, events, events feed, google calendar, google
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.4
|
6 |
-
Stable tag: 3.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -60,23 +60,29 @@ Find our docs at [docs.simplecalendar.io](http://docs.simplecalendar.io/?utm_sou
|
|
60 |
|
61 |
We'd love your help! Here's a few things you can do:
|
62 |
|
|
|
63 |
* Help answer questions in our [community support forum](https://wordpress.org/support/plugin/google-calendar-events).
|
64 |
* Report bugs (with steps to reproduce) or submit pull requests [on GitHub](https://github.com/moonstonemedia/Simple-Calendar).
|
65 |
* Help add or update a [plugin translation](https://wordpress.org/support/topic/translating-this-plugin-in-your-language).
|
66 |
|
67 |
== Screenshots ==
|
68 |
|
69 |
-
1.
|
70 |
-
2.
|
71 |
-
3. Calendar settings
|
72 |
-
4. Calendar
|
73 |
-
5.
|
74 |
-
6.
|
75 |
-
7. Add a calendar widget
|
76 |
-
8.
|
77 |
|
78 |
== Changelog ==
|
79 |
|
|
|
|
|
|
|
|
|
|
|
80 |
= 3.0.2 - November 12, 2015 =
|
81 |
* Fix: Fixed bug where calendar days were off by one day.
|
82 |
|
3 |
Tags: calendar, calendars, calendar manager, custom calendar, custom calendars, event, events, events feed, google calendar, google
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.4
|
6 |
+
Stable tag: 3.0.3
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
60 |
|
61 |
We'd love your help! Here's a few things you can do:
|
62 |
|
63 |
+
* [Rate our plugin](https://wordpress.org/support/view/plugin-reviews/google-calendar-events?postform#postform) and help spread the word!
|
64 |
* Help answer questions in our [community support forum](https://wordpress.org/support/plugin/google-calendar-events).
|
65 |
* Report bugs (with steps to reproduce) or submit pull requests [on GitHub](https://github.com/moonstonemedia/Simple-Calendar).
|
66 |
* Help add or update a [plugin translation](https://wordpress.org/support/topic/translating-this-plugin-in-your-language).
|
67 |
|
68 |
== Screenshots ==
|
69 |
|
70 |
+
1. Basic Grid view
|
71 |
+
2. Basic List view
|
72 |
+
3. Calendar settings - Events
|
73 |
+
4. Calendar settings - Appearance
|
74 |
+
5. Calendar settings - Google Calendar
|
75 |
+
6. Calendar settings - Advanced
|
76 |
+
7. Add a calendar widget
|
77 |
+
8. Attach a calendar to a post or page
|
78 |
|
79 |
== Changelog ==
|
80 |
|
81 |
+
= 3.0.3 - November 13, 2015 =
|
82 |
+
* Feature: Added option to display a compact list view.
|
83 |
+
* Feature: Added option to hide the header in list view.
|
84 |
+
* Tweak: Improved CSS styling for default list and grid CSS.
|
85 |
+
|
86 |
= 3.0.2 - November 12, 2015 =
|
87 |
* Fix: Fixed bug where calendar days were off by one day.
|
88 |
|
vendor/autoload_52.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitdd32076dfbdff51a632896641f566704::getLoader();
|
vendor/composer/autoload_real_52.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
-
class
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit25abd738463851d8f966d13db6739277 {
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
+
class ComposerAutoloaderInitdd32076dfbdff51a632896641f566704 {
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInitdd32076dfbdff51a632896641f566704', 'loadClassLoader'), true /*, true */);
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitdd32076dfbdff51a632896641f566704', 'loadClassLoader'));
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
vendor/nesbot/carbon/src/Carbon/Lang/af.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* This file is part of the Carbon package.
|
5 |
+
*
|
6 |
+
* (c) Brian Nesbitt <brian@nesbot.com>
|
7 |
+
*
|
8 |
+
* For the full copyright and license information, please view the LICENSE
|
9 |
+
* file that was distributed with this source code.
|
10 |
+
*/
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Translation messages. See http://symfony.com/doc/current/book/translation.html
|
14 |
+
* for possible formats.
|
15 |
+
*/
|
16 |
+
return array(
|
17 |
+
'year' => '1 jaar|:count jare',
|
18 |
+
'month' => '1 maand|:count maande',
|
19 |
+
'week' => '1 week|:count weke',
|
20 |
+
'day' => '1 dag|:count dae',
|
21 |
+
'hour' => '1 uur|:count ure',
|
22 |
+
'minute' => '1 minuut|:count minute',
|
23 |
+
'second' => '1 sekond|:count sekondes',
|
24 |
+
'ago' => ':time terug',
|
25 |
+
'from_now' => ':time van nou af',
|
26 |
+
'after' => ':time na',
|
27 |
+
'before' => ':time voor',
|
28 |
+
);
|
vendor/nesbot/carbon/src/Carbon/Lang/et.php
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* This file is part of the Carbon package.
|
4 |
+
*
|
5 |
+
* (c) Brian Nesbitt <brian@nesbot.com>
|
6 |
+
*
|
7 |
+
* For the full copyright and license information, please view the LICENSE
|
8 |
+
* file that was distributed with this source code.
|
9 |
+
*
|
10 |
+
*/
|
11 |
+
return array(
|
12 |
+
'year' => '1 aasta|:count aastat',
|
13 |
+
'month' => '1 kuu|:count kuud',
|
14 |
+
'week' => '1 nädal|:count nädalat',
|
15 |
+
'day' => '1 päev|:count päeva',
|
16 |
+
'hour' => '1 tund|:count tundi',
|
17 |
+
'minute' => '1 minut|:count minutit',
|
18 |
+
'second' => '1 sekund|:count sekundit',
|
19 |
+
'ago' => ':time tagasi',
|
20 |
+
'from_now' => ':time pärast',
|
21 |
+
'after' => ':time pärast',
|
22 |
+
'before' => ':time enne',
|
23 |
+
'year_from_now' => ':count aasta',
|
24 |
+
'month_from_now' => ':count kuu',
|
25 |
+
'week_from_now' => ':count nädala',
|
26 |
+
'day_from_now' => ':count päeva',
|
27 |
+
'hour_from_now' => ':count tunni',
|
28 |
+
'minute_from_now' => ':count minuti',
|
29 |
+
'second_from_now' => ':count sekundi',
|
30 |
+
);
|
vendor/nesbot/carbon/src/Carbon/Lang/sq.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* This file is part of the Carbon package.
|
5 |
+
*
|
6 |
+
* (c) Brian Nesbitt <brian@nesbot.com>
|
7 |
+
*
|
8 |
+
* For the full copyright and license information, please view the LICENSE
|
9 |
+
* file that was distributed with this source code.
|
10 |
+
*/
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Translation messages. See http://symfony.com/doc/current/book/translation.html
|
14 |
+
* for possible formats.
|
15 |
+
*/
|
16 |
+
return array(
|
17 |
+
'year' => '1 vit|:count vjet',
|
18 |
+
'month' => '1 muaj|:count muaj',
|
19 |
+
'week' => '1 javë|:count javë',
|
20 |
+
'day' => '1 ditë|:count ditë',
|
21 |
+
'hour' => '1 orë|:count orë',
|
22 |
+
'minute' => '1 minutë|:count minuta',
|
23 |
+
'second' => '1 sekondë|:count sekonda',
|
24 |
+
'ago' => ':time më parë',
|
25 |
+
'from_now' => ':time nga tani',
|
26 |
+
'after' => ':time pas',
|
27 |
+
'before' => ':time para',
|
28 |
+
);
|