Skip to content

Commit 1a9460c

Browse files
author
Damian
committed
Merge branch 'release/3.1.3'
2 parents dd77605 + 18d3c07 commit 1a9460c

File tree

11 files changed

+26
-11
lines changed

11 files changed

+26
-11
lines changed

CHANGELOG renamed to CHANGELOG.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
3.1.3
2+
Fix display flex ; change add date function to compatible with PHP 5.2
3+
14
3.1.2
25
IE8 fix ; You don't have to create backup with settings improvment
36

LICENSE renamed to LICENSE.txt

File renamed without changes.

blocks/event_calendar/controller.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ public function on_page_view()
5454
$this->set('blockIdentifier',rand(12,512));
5555
}
5656

57-
58-
59-
6057
}
6158

6259
function save($data)

blocks/event_calendar/css/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.ds-event-modal {
2+
&.ie8.active {
3+
display: block;
4+
}
5+
}

blocks/event_calendar/sass/style.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@import "reset";
22
@import "compass/css3/border-radius";
3+
@import "compass/css3/flexbox";
34

45
@mixin size($width, $height: nil) {
56
@if ($height == nil) {
@@ -81,7 +82,7 @@ $blue-dark: darken($blue, 5%);
8182
align-items: center;
8283
background-color: rgba(0,0,0,0.5);
8384
&.active {
84-
display: flex;
85+
@include display-flex();
8586
}
8687

8788
.container {
@@ -116,4 +117,6 @@ $blue-dark: darken($blue, 5%);
116117
padding: $space/4;
117118
}
118119
}
119-
}
120+
}
121+
122+
@import "iehacks";

blocks/event_calendar/view.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
<?php endif ?>
1818

1919
<div id="dsEventCalendar<?php echo $blockIdentifier; ?>">
20-
<div class="ds-event-modal" id="dsEventModal<?php echo $blockIdentifier; ?>">
20+
<!--[if lte IE 9]>
21+
<div class="ds-event-modal ie8 ie9" id="dsEventModal<?php echo $blockIdentifier; ?>"><![endif]-->
22+
<!--[if !IE]><!-->
23+
<div class="ds-event-modal" id="dsEventModal<?php echo $blockIdentifier; ?>"><!--<![endif]-->
24+
2125
<div class="container">
2226
<div class="header">
2327
<div class="title"></div>

controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class dsEventCalendarPackage extends Package
77

88
protected $pkgHandle = 'dsEventCalendar';
99
protected $appVersionRequired = '5.5.0';
10-
protected $pkgVersion = '3.1.2';
10+
protected $pkgVersion = '3.1.3';
1111

1212
public function getPackageDescription()
1313
{

controllers/dashboard/event_calendar/event.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ public function view()
4040
$startDate = date_format(date_create($_POST['event_start_date']),"Y-m-d");
4141
$startTime = $this->post('event_start_time');
4242
$date = date_create($_POST['event_end_date']);
43-
$date_end = date_format(date_add($date, date_interval_create_from_date_string('1 day')),"Y-m-d");
43+
date_modify($date, '+1 day');
44+
$date_end = date_format($date,'Y-m-d');
45+
4446
if(!empty($startTime))
4547
{
4648
$isAllDay = 0;

css/dsStyle.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)