Skip to content

Commit 28676c9

Browse files
committed
Merge branch 'live' into edge
2 parents f8bd970 + c49d368 commit 28676c9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1600
-176
lines changed

Resources/currencies.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ GBP:
2020
thousands: ','
2121
decimal: .
2222
active: true
23+
24+
MXN:
25+
name: 'Peso Mexicano'
26+
symbol: '$'
27+
thousands: ','
28+
decimal: '.'
29+
active: true

Resources/defaults.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ url:
8181
- /password-reset
8282
- /signup
8383

84+
# Domains that are allowed by the application to redirect to outside of the platform.
85+
allowed_domains:
86+
8487
# If you want to use a CDN or another web server to serve the cached images
8588
# You can define this constants. All cached images links will point to this
8689
# Url, event if don't exists yet.

Resources/permissions.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ admin-module-communication: # Can access to module CommunicationAdminController
252252
model: null
253253
relational: null
254254

255+
admin-module-announcements: # Can access to module AnnouncementAdminController
256+
model: null
257+
relational: null
258+
255259
receive-test-communications: # Can receive test communications
256260
model: null
257261
relational: null

Resources/roles.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ admin:
135135
- edit-any-matcher # View any editing matcher
136136
- remove-any-matcher # Remove any matcher
137137
- admin-module-channels # Can access to channels admin modules
138+
- admin-module-announcements # Can access to announcements admin modules
138139
level: 70
139140

140141
superadmin:

Resources/templates/default/channel/layout.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<?php
22

3-
$channel=$this->channel;
3+
$channel = $this->channel;
44

55
$this->layout("layout", [
66
'bodyClass' => 'channel home',
7-
'title' => $this->text('regular-channel').' '.$channel->name,
7+
'title' => $this->text('regular-channel') . ' ' . $channel->name,
88
'meta_description' => $channel->description
9-
]);
9+
]);
10+
11+
$this->supply('announcements', $this->insert("partials/components/announcements"));
1012

1113
$this->section('content');
1214

@@ -17,9 +19,9 @@
1719

1820
<div id="side">
1921

20-
<?php foreach ($this->side_order as $sideitem => $sideitemName) {
22+
<?php foreach ($this->side_order as $sideitem => $sideitemName) {
2123
echo $this->insert("channel/partials/side/$sideitem");
22-
} ?>
24+
} ?>
2325
</div>
2426

2527
<div id="content">
@@ -32,8 +34,8 @@
3234

3335
<?php $this->section('footer') ?>
3436
<script type="text/javascript">
35-
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt
36-
$(function(){
37+
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt
38+
$(function() {
3739
$('#slides_side_sponsor').slides({
3840
container: 'slides_container',
3941
effect: 'fade',
@@ -43,6 +45,6 @@
4345
pause: 1
4446
});
4547
});
46-
// @license-end
48+
// @license-end
4749
</script>
4850
<?php $this->append() ?>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
$this->layout('admin/announcements/layout');
4+
5+
$this->section('admin-search-box-addons');
6+
?>
7+
<a class="btn btn-cyan" href="/admin/announcement"><i class="fa fa-arrow-circle-left"></i> <?= $this->text('admin-back-list') ?></a>
8+
9+
<?php $this->replace() ?>
10+
11+
<?php $this->section('admin-container-body') ?>
12+
13+
<?php
14+
$id = $this->announcement->id;
15+
?>
16+
17+
<h4 class="title"><?= $id ? $this->text('admin-announcement-edit', "#{$id}") : $this->text('admin-announcement-add') ?></h4>
18+
19+
20+
<?= $this->form_form($this->raw('form')) ?>
21+
22+
</div>
23+
</div>
24+
25+
<?php $this->replace() ?>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
$this->layout('admin/container');
4+
5+
$this->section('admin-container-head');
6+
7+
?>
8+
<h2><?= $this->text('admin-announcements') ?></h2>
9+
10+
<?= $this->insert('admin/partials/search_box') ?>
11+
12+
<?= $this->supply('admin-announcements-head') ?>
13+
14+
<?php $this->replace() ?>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
$this->layout('admin/announcements/layout');
4+
5+
$this->section('admin-search-box-addons');
6+
?>
7+
<a class="btn btn-cyan" href="/admin/announcement/add"><i class="fa fa-plus"></i> <?= $this->text('admin-announcement-add') ?></a>
8+
9+
<?php $this->replace() ?>
10+
11+
<?php $this->section('admin-container-body') ?>
12+
13+
<h5><?= $this->text('admin-list-total', $this->total) ?></h5>
14+
15+
<?= $this->insert('admin/partials/material_table', ['list' => $this->model_list_entries($this->list, ['id', 'title', 'type', 'active', 'actions'])]) ?>
16+
17+
</div>
18+
</div>
19+
20+
<?php $this->replace() ?>

Resources/templates/responsive/blog/layout.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
$this->section('content');
2929

30+
$this->supply('announcements', $this->insert("partials/components/announcements"));
31+
3032
?>
3133

3234
<div class="blog">

Resources/templates/responsive/channel/partials/javascript.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
<script type="text/javascript" src="<?= SRC_URL ?>/assets/js/channel/stories.js"></script>
88
<script type="text/javascript" src="<?= SRC_URL ?>/assets/js/channel/call.js"></script>
9-
9+
<script type="text/javascript" src="<?= SRC_URL ?>/assets/js/components/announcements.js"></script>

0 commit comments

Comments
 (0)