Skip to content

Commit a2dba33

Browse files
committed
fixed News - reverted frontend scss
1 parent f3d2e47 commit a2dba33

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

app/site/controllers/Admin/News.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ public function formSubmitted(FAPI\Form $form, &$form_state)
183183
$news->locale = $values['locale'];
184184
$news->content = $values['content'];
185185
$news->website_id = $values['website_id'];
186+
$news->date = $values['date'];
186187

187-
$page->persist();
188+
$news->persist();
188189
break;
189190
case 'delete':
190191
$news->delete();

app/site/models/News.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,9 @@ public function getRewritePrefix()
3838
{
3939
return 'news';
4040
}
41+
42+
public function getDate()
43+
{
44+
return (new \DateTime($this->date))->format('Y-m-d');
45+
}
4146
}

scss/site.scss

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,3 @@ ul.breadcrumbs {
7575
}
7676
}
7777
}
78-
79-
.footer {
80-
background: #333;
81-
color: #eaeaea;
82-
padding: 20px;
83-
margin-left: -25px;
84-
margin-right: -25px;
85-
margin-bottom: -10px;
86-
display: flex;
87-
}

0 commit comments

Comments
 (0)