-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'live' into feature/highlighted_rewards
- Loading branch information
Showing
37 changed files
with
647 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 7 additions & 5 deletions
12
Resources/templates/responsive/channel/partials/projects_list.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<div class="slider slider-projects" data-total="<?= (int)$this->total_projects ?>" data-limit="<?= (int)$this->limit ?>"> | ||
<?php foreach ($this->projects as $project) : ?> | ||
<div class="item widget-slide"> | ||
<?= $this->insert('project/widgets/normal', [ | ||
'project' => $project | ||
]) ?> | ||
</div> | ||
<div class="item widget-slide"> | ||
<?php if ($project->isPermanent()): ?> | ||
<?= $this->insert('project/widgets/normal_permanent', ['project' => $project]) ?> | ||
<?php else: ?> | ||
<?= $this->insert('project/widgets/normal', ['project' => $project]) ?> | ||
<?php endif; ?> | ||
</div> | ||
<?php endforeach ?> | ||
</div> |
16 changes: 11 additions & 5 deletions
16
Resources/templates/responsive/dashboard/partials/projects_widgets_list.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
<?php if($this->projects): ?> | ||
<?php foreach ($this->projects as $project) : ?> | ||
<div class="col-sm-6 col-md-4 col-xs-12 spacer widget-element"> | ||
<?= $this->insert('project/widgets/normal', [ | ||
'project' => $project, | ||
// 'admin' => $project->userCanEdit($this->get_user()) | ||
'admin' => (bool)$this->admin | ||
]) ?> | ||
<?php if ($project->isPermanent()): ?> | ||
<?= $this->insert('project/widgets/normal_permanent', [ | ||
'project' => $project, | ||
'admin' => (bool)$this->admin | ||
]) ?> | ||
<?php else: ?> | ||
<?= $this->insert('project/widgets/normal', [ | ||
'project' => $project, | ||
'admin' => (bool)$this->admin | ||
]) ?> | ||
<?php endif; ?> | ||
</div> | ||
<?php endforeach ?> | ||
<?php endif ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
Resources/templates/responsive/home/partials/projects_list.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<div class="slider slider-projects" data-total="<?= (int)$this->total_projects ?>" data-limit="<?= (int)$this->limit ?>"> | ||
<?php foreach ($this->projects as $project) : ?> | ||
<div class="item widget-slide"> | ||
<?= $this->insert('project/widgets/normal', [ | ||
'project' => $project | ||
]) ?> | ||
<?php if ($project->isPermanent()): ?> | ||
<?= $this->insert('project/widgets/normal_permanent', ['project' => $project]) ?> | ||
<?php else: ?> | ||
<?= $this->insert('project/widgets/normal', ['project' => $project]) ?> | ||
<?php endif; ?> | ||
</div> | ||
<?php endforeach ?> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
Resources/templates/responsive/partials/components/widgets/partials/data_list_permanent.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<ul class="data-list"> | ||
<li> | ||
<h5><?= $this->text('project-obtained') ?></h5> | ||
<p><strong><?= amount_format($this->project->amount) ?></strong></p> | ||
</li> | ||
<li class="divider"></li> | ||
<li> | ||
<h5><?= $this->project->num_investors . ' ' . $this->text('project-menu-supporters') ?></h5> | ||
</li> | ||
<?php | ||
if($this->project->project_location): | ||
// TODO: link this to some map? | ||
?> | ||
<li class="divider"></li> | ||
<li> | ||
<h6><a><i class="fa fa-map-marker"></i> <?= $this->project->project_location ?></a></h6> | ||
</li> | ||
<?php endif ?> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.