Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/impact discover alpha #278

Merged
merged 119 commits into from
Nov 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
3937519
add project name to project translate overview
davidbeig Jun 1, 2021
32dfdfa
fix route of poster in project dashboard
davidbeig Jun 3, 2021
ce87594
Upgraded Symfony packages to v2.8.30 (last working version)
carlos-mg89 Jun 15, 2021
076aec6
Fix call to render method since it was renamed
carlos-mg89 Jun 14, 2021
cfe7652
add composer.lock
microstudi Jun 22, 2021
d6f261c
restore a early die if misconfiguration
microstudi Jun 22, 2021
f98f26a
Merge branch 'bug/fix-upload-documentation-form' into live
javicarrillo Jun 28, 2021
f0fc93a
Updated Dockerfile to use an Ubuntu image that's not deprecated (#181)
carlos-mg89 Jun 22, 2021
49889e2
fix/composer lock (#185)
microstudi Jun 28, 2021
76e7427
Twitter card meta description fix
javicarrillo Jul 1, 2021
21edcc9
Merge branch 'hotfix-twitter-card' into live
javicarrillo Jul 1, 2021
faf6dd5
change projects to be shown in map when a matcher is selected to use …
davidbeig Jul 5, 2021
19ccc0d
Merge branch 'feature/map_matcher' into 'live'
javicarrillo Jul 5, 2021
2dd55a0
improve filters in discover and fix ajax query
davidbeig Jul 6, 2021
86a0bbf
Merge branch 'fix/discover_filter' into 'live'
javicarrillo Jul 6, 2021
f7b64e3
fix use of query parameters when they are not being used
davidbeig Jul 13, 2021
b65a48d
fix project filters in discover and use of inner joins in project get…
davidbeig Jul 13, 2021
2004434
Merge branch 'fix/discover_filter' into 'live'
javicarrillo Jul 13, 2021
8f89028
Merge branch 'fix/goteo-bot-poster' into 'live'
javicarrillo Jul 13, 2021
30071a7
Create impact discover layout
javicarrillo Apr 9, 2021
ae9f304
Test msg sass and js
javicarrillo Apr 9, 2021
84992bd
first steps for layout
jgalobart Apr 14, 2021
4be44a0
add filters js
jgalobart Apr 16, 2021
7ec07a8
add ods icons behaviour
jgalobart Apr 17, 2021
b4ee523
fix grid
jgalobart Apr 17, 2021
cc7aba1
add infinite scroll
jgalobart Apr 19, 2021
7d1186c
add ods images
jgalobart Apr 19, 2021
f2415b4
add icons
jgalobart Apr 19, 2021
879f487
fix desktop filters toggle
jgalobart Apr 19, 2021
3325625
move html to template
jgalobart Apr 19, 2021
37ff694
add tab background images
jgalobart Apr 30, 2021
a123e1f
add home values module
jgalobart Apr 10, 2021
00ea2ef
fix mobile layout for values module in home
jgalobart Apr 11, 2021
cffb77b
differentiate tabs backgrounds and fix mobile issues
jgalobart Apr 12, 2021
3f5ebba
add class to tint images
jgalobart Apr 19, 2021
3c5a051
add home images
jgalobart Apr 19, 2021
0a83e46
support for short titles at project slider
jgalobart Apr 19, 2021
e8403c3
move lateral border in mobile to bottom
jgalobart Apr 28, 2021
04046d5
fix layout to show footprint link at last block in mobile
jgalobart Apr 30, 2021
d369d75
add real images of the real projects for impact discover and home val…
davidbeig May 3, 2021
84bacd7
add last project home values images for testing
davidbeig May 17, 2021
265af42
add padding bottom to impact-discover
davidbeig May 17, 2021
35035ce
update package-lock.json
jgalobart Jun 8, 2021
eedb3ff
restore HTML & CSS
jgalobart Jun 8, 2021
0a8b71c
delete comment
jgalobart Jun 8, 2021
9bac6ee
Revert "update package-lock.json"
davidbeig Jun 28, 2021
06dc677
change use of footprint and sdgs assets from png to svg
davidbeig Jul 14, 2021
9d445bd
Add matcher completed status
javicarrillo Jul 15, 2021
ba6ac1b
Merge branch 'matcher-status' into live
javicarrillo Jul 15, 2021
b5e733f
Fix icons size
javicarrillo Jul 15, 2021
b832ec5
Merge branch 'matcher-status' into live
javicarrillo Jul 15, 2021
6b636f0
Fix user leave exceptions
davidbeig Jul 20, 2021
33576da
Merge branch 'fix/user_leave' into 'live'
javicarrillo Jul 20, 2021
9a16b94
Merge branch 'feature/project_title_i18n' into 'live'
javicarrillo Jul 20, 2021
e3274fb
remove comment on sql project name selects
davidbeig Jul 20, 2021
47d2d01
fix missing ) on fallback lang in Project published
davidbeig Jul 20, 2021
dfca279
Merge branch 'fix/project_name_translation' into live
davidbeig Jul 20, 2021
eb38d86
create partials for impact discover three views
davidbeig Aug 6, 2021
65e3331
rename all sdg assets from ods to sdg
davidbeig Aug 10, 2021
0b673b2
add copies to impact_discover
davidbeig Aug 10, 2021
26b97e7
create new partials to use in impact discover project list
davidbeig Aug 11, 2021
f32ab74
rework impact-discover to use the three views (mosaic, list projects …
davidbeig Aug 11, 2021
7f1e387
fix small bug when the map pops in, so that it is correctly centered …
davidbeig Sep 6, 2021
b68138e
add new mapAction to ImpactDiscoverController to separate the three v…
davidbeig Sep 7, 2021
23d7842
Merge branch 'live' of git.goteo.org:dev/goteo into feature/impact_di…
davidbeig Sep 7, 2021
cdaecf3
fix on docker-settings to be used on testsgst
davidbeig Sep 7, 2021
c3741b9
Merge branch 'live' of github.com:GoteoFoundation/goteo into feature/…
davidbeig Sep 8, 2021
8f9b355
Merge branch 'live' of github.com:GoteoFoundation/goteo into feature/…
davidbeig Sep 16, 2021
6801dd9
Merge branch 'live' into feature/impact_discover
davidbeig Sep 30, 2021
f495356
rework impact discover views to have three endpoints
davidbeig Sep 30, 2021
a67cb33
add channel filter to ImpactDiscover and actions to ChannelController
davidbeig Oct 5, 2021
b5593e9
restore a early die if misconfiguration
microstudi Jun 22, 2021
a826d50
change projects to be shown in map when a matcher is selected to use …
davidbeig Jul 5, 2021
dea3c2f
fix project filters in discover and use of inner joins in project get…
davidbeig Jul 13, 2021
1e123a7
Create impact discover layout
javicarrillo Apr 9, 2021
f5bb431
Test msg sass and js
javicarrillo Apr 9, 2021
5cbf83b
first steps for layout
jgalobart Apr 14, 2021
1eabf94
add filters js
jgalobart Apr 16, 2021
85e5e42
add ods icons behaviour
jgalobart Apr 17, 2021
f1e2a19
fix grid
jgalobart Apr 17, 2021
32f1299
add infinite scroll
jgalobart Apr 19, 2021
e6ab922
add ods images
jgalobart Apr 19, 2021
af79c2b
add icons
jgalobart Apr 19, 2021
ef17e25
fix desktop filters toggle
jgalobart Apr 19, 2021
41368c5
move html to template
jgalobart Apr 19, 2021
41ddf28
add tab background images
jgalobart Apr 30, 2021
d80a343
add home values module
jgalobart Apr 10, 2021
83c6bb1
fix mobile layout for values module in home
jgalobart Apr 11, 2021
f9e2dea
differentiate tabs backgrounds and fix mobile issues
jgalobart Apr 12, 2021
50744db
add class to tint images
jgalobart Apr 19, 2021
5bfc45d
add home images
jgalobart Apr 19, 2021
76e4252
support for short titles at project slider
jgalobart Apr 19, 2021
efbada0
move lateral border in mobile to bottom
jgalobart Apr 28, 2021
02db374
fix layout to show footprint link at last block in mobile
jgalobart Apr 30, 2021
dd89c74
add real images of the real projects for impact discover and home val…
davidbeig May 3, 2021
ca60407
add last project home values images for testing
davidbeig May 17, 2021
d97bf82
add padding bottom to impact-discover
davidbeig May 17, 2021
5246132
update package-lock.json
jgalobart Jun 8, 2021
187b911
restore HTML & CSS
jgalobart Jun 8, 2021
93c20e5
delete comment
jgalobart Jun 8, 2021
548db5f
Revert "update package-lock.json"
davidbeig Jun 28, 2021
ba99a67
change use of footprint and sdgs assets from png to svg
davidbeig Jul 14, 2021
50321ca
create partials for impact discover three views
davidbeig Aug 6, 2021
2bd5d58
rename all sdg assets from ods to sdg
davidbeig Aug 10, 2021
4ad4e7c
add copies to impact_discover
davidbeig Aug 10, 2021
a7e1fe1
create new partials to use in impact discover project list
davidbeig Aug 11, 2021
d14dba2
rework impact-discover to use the three views (mosaic, list projects …
davidbeig Aug 11, 2021
423cc36
fix small bug when the map pops in, so that it is correctly centered …
davidbeig Sep 6, 2021
757e516
add new mapAction to ImpactDiscoverController to separate the three v…
davidbeig Sep 7, 2021
c40f223
Fix user leave exceptions
davidbeig Jul 20, 2021
aca2ce9
add project name to project translate overview
davidbeig Jun 1, 2021
c4da220
remove comment on sql project name selects
davidbeig Jul 20, 2021
1957795
fix on docker-settings to be used on testsgst
davidbeig Sep 7, 2021
9d6b5f7
rework impact discover views to have three endpoints
davidbeig Sep 30, 2021
0ee5dad
add channel filter to ImpactDiscover and actions to ChannelController
davidbeig Oct 5, 2021
6175f30
add missing View import
davidbeig Nov 12, 2021
96c3354
improve filter by channel in impact discover
davidbeig Nov 12, 2021
cab530a
adapt channel select to mobile filter
davidbeig Nov 12, 2021
1764f2d
Merge branch 'feature/impact_discover' of github.com:GoteoFoundation/…
davidbeig Nov 12, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Resources/templates/responsive/home/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

<?= $this->insert('home/partials/projects') ?>

<?= $this->insert('home/partials/values') ?>

<?= $this->insertif('home/partials/call_to_action') ?>

<?= $this->insertif('home/partials/advantages') ?>
Expand Down
192 changes: 192 additions & 0 deletions Resources/templates/responsive/home/partials/values.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
<div class="fluid-container data-container goteo-values">
<div class="container">
<div><h1 class="title text-center">Valores de Goteo</h1></div>
<div class="text-center footprint-tabs">
<ul>
<li><a href="" data-footprint="eco">Eco</a></li>
<li><a href="" data-footprint="soc">Soc</a></li>
<li><a href="" data-footprint="dem">Dem</a></li>
</ul>
</div>
<div class="row" id="goteo-values-eco">
<div class="col footprint-briefing">
<img src="assets/img/footprint/1.svg" heigh="70" width="70" alt="Huella ECO" class="footprint" />
<p><span class="footprint-label">Huella ecológica</span></p>
<h2>Cómo dejar una mejor huella en el planeta</h2>
<p>El impacto ambiental generado por la demanda humana hace de los recursos existentes en los ecosistemas del planeta se debiliten. Aquí apoyamos iniciativas de preservación de la capacidad ecológica de la Tierra de regenerar sus recursos</p>
<h3>Objetivos de desarrollo sostenible relacionados:</h3>
<p>Haz click para saber más:</p>
<ul>
<li><a href=""><img src="assets/img/ods/ods7.svg" width="75" height="75" alt="ODS"/></a></li>
<li><a href=""><img src="assets/img/ods/ods12.svg" width="75" height="75" alt="ODS"/></a></li>
<li><a href=""><img src="assets/img/ods/ods13.svg" width="75" height="75" alt="ODS"/></a></li>
<li><a href=""><img src="assets/img/ods/ods14.svg" width="75" height="75" alt="ODS"/></a></li>
<li><a href=""><img src="assets/img/ods/ods15.svg" width="75" height="75" alt="ODS"/></a></li>
</ul>
</div>
<div class="col footprint-info">
<div class="slider slider-footprint-data">
<div class="">
<img src="https://data.goteo.org/165x240c/cambio-climatico-1.jpg">
<h2>Datos huella ecológica</h2>
<h3><span>2,8</span> Planetas</h3>
<p>Serían necesarios si todo el mundo consumiera como un ciudadano medio de la UE.</p>
</div>
<div class="">
<img src="https://data.goteo.org/165x240c/captura-de-pantalla-2020-09-23-a-les-8.10.40.png">
<h2>Datos huella ecológica</h2>
<h3><span>2,8</span> Planetas</h3>
<p>Serían necesarios si todo el mundo consumiera como un ciudadano medio de la UE.</p>
</div>
<div class="">
<img src="https://data.goteo.org/165x240c/mrlr1gd-2.jpg">
<h2>Datos huella ecológica</h2>
<h3><span>2,8</span> Planetas</h3>
<p>Serían necesarios si todo el mundo consumiera como un ciudadano medio de la UE.</p>
</div>
</div>
<div class="slider slider-footprint-projects">
<div class="footprint-project">
<img src="http://data.goteo.org/7000x0/img-20201118-111420.jpg" class="bg-project eco">
<div class="project-footprint">
<img src="assets/img/footprint/1.svg" heigh="70" width="70" alt="Huella ECO" class="footprint" />
</div>
<h2>Construïm l'Espora llibreria i espai cooperatiu a l'H</h2>
<p>Por: L'Espora</p>
</div>
<div class="footprint-project">
<img src="//data.goteo.org/7000x0/banner750x422-lazona.jpg" class="bg-project eco">
<div class="project-footprint">
<img src="assets/img/1.svg" heigh="70" width="70" alt="Huella ECO" class="footprint" />
</div>
<h2>La Zona, un mercat digital amb valors</h2>
<p>Por: La Zona</p>
</div>
</div>
</div>
<div class="footprint-action">
<a href="">Ver proyectos de huella ecológica <span class="icon glyphicon glyphicon glyphicon-menu-right" aria-hidden="true"></span></a>
</div>
</div>
<div class="row" id="goteo-values-soc">
<div class="col footprint-briefing">
<img src="assets/img/footprint/1.svg" heigh="70" width="70" alt="Huella SOC" class="footprint" />
<p><span class="footprint-label">Huella social</span></p>
<h2>Cómo dejar una mejor huella en el planeta</h2>
<p>El impacto ambiental generado por la demanda humana hace de los recursos existentes en los ecosistemas del planeta se debiliten. Aquí apoyamos iniciativas de preservación de la capacidad ecológica de la Tierra de regenerar sus recursos</p>
<h3>Objetivos de desarrollo sostenible relacionados:</h3>
<p>Haz click para saber más:</p>
<ul>
<li><a href=""><img src="assets/img/ods/ods7.svg" width="75" height="75" alt="ODS"/></a></li>
<li><a href=""><img src="assets/img/ods/ods12.svg" width="75" height="75" alt="ODS"/></a></li>
<li><a href=""><img src="assets/img/ods/ods13.svg" width="75" height="75" alt="ODS"/></a></li>
<li><a href=""><img src="assets/img/ods/ods14.svg" width="75" height="75" alt="ODS"/></a></li>
<li><a href=""><img src="assets/img/ods/ods15.svg" width="75" height="75" alt="ODS"/></a></li>
</ul>
</div>
<div class="col footprint-info">
<div class="slider slider-footprint-data">
<div class="">
<img src="https://data.goteo.org/165x240c/cambio-climatico-1.jpg">
<h2>Datos huella ecológica</h2>
<h3><span>2,8</span> Planetas</h3>
<p>Serían necesarios si todo el mundo consumiera como un ciudadano medio de la UE.</p>
</div>
<div class="">
<img src="https://data.goteo.org/165x240c/captura-de-pantalla-2020-09-23-a-les-8.10.40.png">
<h2>Datos huella ecológica</h2>
<h3><span>2,8</span> Planetas</h3>
<p>Serían necesarios si todo el mundo consumiera como un ciudadano medio de la UE.</p>
</div>
<div class="">
<img src="https://data.goteo.org/165x240c/mrlr1gd-2.jpg">
<h2>Datos huella ecológica</h2>
<h3><span>2,8</span> Planetas</h3>
<p>Serían necesarios si todo el mundo consumiera como un ciudadano medio de la UE.</p>
</div>
</div>
<div class="slider slider-footprint-projects">
<div class="footprint-project">
<img src="http://data.goteo.org/7000x0/img-20201118-111420.jpg" class="bg-project soc">
<div class="project-footprint">
<img src="assets/img/footprint/2.svg" heigh="70" width="70" alt="Huella SOC" class="footprint" />
</div>
<h2>Construïm l'Espora llibreria i espai cooperatiu a l'H</h2>
<p>Por: L'Espora</p>
</div>
<div class="footprint-project">
<img src="//data.goteo.org/7000x0/banner750x422-lazona.jpg" class="bg-project soc">
<div class="project-footprint">
<img src="assets/img/footprint/2.svg" heigh="70" width="70" alt="Huella SOC" class="footprint" />
</div>
<h2>La Zona, un mercat digital amb valors</h2>
<p>Por: La Zona</p>
</div>
</div>
</div>
<div class="footprint-action">
<a href="">Ver proyectos de huella social <span class="icon glyphicon glyphicon glyphicon-menu-right" aria-hidden="true"></span></a>
</div>
</div>
<div class="row" id="goteo-values-dem">
<div class="col footprint-briefing">
<img src="assets/img/footprint/1.svg" heigh="70" width="70" alt="Huella DEM" class="footprint" />
<p><span class="footprint-label">Huella dem</span></p>
<h2>Cómo dejar una mejor huella en el planeta</h2>
<p>El impacto ambiental generado por la demanda humana hace de los recursos existentes en los ecosistemas del planeta se debiliten. Aquí apoyamos iniciativas de preservación de la capacidad ecológica de la Tierra de regenerar sus recursos</p>
<h3>Objetivos de desarrollo sostenible relacionados:</h3>
<p>Haz click para saber más:</p>
<ul>
<li><a href=""><img src="assets/img/ods/ods7.svg" width="75" height="75" alt="ODS"/></a></li>
<li><a href=""><img src="assets/img/ods/ods12.svg" width="75" height="75" alt="ODS"/></a></li>
<li><a href=""><img src="assets/img/ods/ods13.svg" width="75" height="75" alt="ODS"/></a></li>
<li><a href=""><img src="assets/img/ods/ods14.svg" width="75" height="75" alt="ODS"/></a></li>
<li><a href=""><img src="assets/img/ods/ods15.svg" width="75" height="75" alt="ODS"/></a></li>
</ul>
</div>
<div class="col footprint-info">
<div class="slider slider-footprint-data">
<div class="">
<img src="https://data.goteo.org/165x240c/cambio-climatico-1.jpg">
<h2>Datos huella ecológica</h2>
<h3><span>2,8</span> Planetas</h3>
<p>Serían necesarios si todo el mundo consumiera como un ciudadano medio de la UE.</p>
</div>
<div class="">
<img src="https://data.goteo.org/165x240c/captura-de-pantalla-2020-09-23-a-les-8.10.40.png">
<h2>Datos huella ecológica</h2>
<h3><span>2,8</span> Planetas</h3>
<p>Serían necesarios si todo el mundo consumiera como un ciudadano medio de la UE.</p>
</div>
<div class="">
<img src="https://data.goteo.org/165x240c/mrlr1gd-2.jpg">
<h2>Datos huella ecológica</h2>
<h3><span>2,8</span> Planetas</h3>
<p>Serían necesarios si todo el mundo consumiera como un ciudadano medio de la UE.</p>
</div>
</div>
<div class="slider slider-footprint-projects">
<div class="footprint-project">
<img src="http://data.goteo.org/7000x0/img-20201118-111420.jpg" class="bg-project dem">
<div class="project-footprint">
<img src="assets/img/footprint/3.svg" heigh="70" width="70" alt="Huella DEM" class="footprint" />
</div>
<h2>Construïm l'Espora llibreria i espai cooperatiu a l'H</h2>
<p>Por: L'Espora</p>
</div>
<div class="footprint-project">
<img src="//data.goteo.org/7000x0/banner750x422-lazona.jpg" class="bg-project dem">
<div class="project-footprint">
<img src="assets/img/footprint/3.svg" heigh="70" width="70" alt="Huella DEM" class="footprint" />
</div>
<h2>La Zona, un mercat digital amb valors</h2>
<p>Por: La Zona</p>
</div>
</div>
</div>
<div class="footprint-action">
<a href="">Ver proyectos de huella dem <span class="icon glyphicon glyphicon glyphicon-menu-right" aria-hidden="true"></span></a>
</div>
</div>
</div>
</div>
15 changes: 15 additions & 0 deletions Resources/templates/responsive/impact_discover/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php $this->layout('impact_discover/layout') ?>

<?php $this->section('impact-discover-content') ?>

<?= $this->insert('impact_discover/partials/filters') ?>

<?= $this->insert('impact_discover/partials/sdg_list', ['sdgSelected' => $this->sdgSelected]) ?>

<?= $this->insert('impact_discover/partials/list_projects') ?>

<div class="spacer-20 spacer-bottom text-center more-projects-button <?= $this->total > count($this->projects) ? '' : ' hidden' ?>">
<button class="btn btn-link"><?= $this->text('regular-load-more') ?> &nbsp; &nbsp; <i class="fa fa-chevron-right"></i></button>
</div>

<?php $this->replace() ?>
33 changes: 33 additions & 0 deletions Resources/templates/responsive/impact_discover/layout.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

$this->layout('layout', [
'bodyClass' => 'impact_discover',
'title' => 'Descubre proyectos por ODS y Huella',
'meta_description' => $this->text('meta-description-discover')
]);

$this->section('content');

?>

<div class="impact-discover">

<?= $this->supply('impact-discover-content') ?>

</div>

<?php $this->replace() ?>


<?php $this->section('footer') ?>
<?= $this->insert('impact_discover/partials/javascript') ?>

<?php if ($this->view = 'map'): ?>
<?= $this->insert('map/partials/javascript'); ?>

<link rel="stylesheet" type="text/css" href="<?= SRC_URL ?>/assets/vendor/leaflet/dist/leaflet.css"/>
<link rel="stylesheet" type="text/css" href="<?= SRC_URL ?>/assets/vendor/leaflet.markercluster/dist/MarkerCluster.css"/>
<link rel="stylesheet" type="text/css" href="<?= SRC_URL ?>/assets/vendor/leaflet.markercluster/dist/MarkerCluster.Default.css"/>
<link rel="stylesheet" type="text/css" href="<?= SRC_URL ?>/assets/vendor/leaflet.fullscreen/Control.FullScreen.css"/>
<?php endif; ?>
<?php $this->append() ?>
15 changes: 15 additions & 0 deletions Resources/templates/responsive/impact_discover/list.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php $this->layout('impact_discover/layout') ?>

<?php $this->section('impact-discover-content') ?>

<?= $this->insert('impact_discover/partials/filters') ?>

<?= $this->insert('impact_discover/partials/sdg_list') ?>

<?= $this->insertIf('impact_discover/partials/list_projects') ?>

<div class="spacer-20 spacer-bottom text-center more-projects-button <?= $this->total > count($this->projects) ? '' : ' hidden' ?>">
<button class="btn btn-link"><?= $this->text('regular-load-more') ?> &nbsp; &nbsp; <i class="fa fa-chevron-right"></i></button>
</div>

<?php $this->replace() ?>
11 changes: 11 additions & 0 deletions Resources/templates/responsive/impact_discover/map.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php $this->layout('impact_discover/layout') ?>

<?php $this->section('impact-discover-content') ?>

<?= $this->insert('impact_discover/partials/filters') ?>

<?= $this->insert('impact_discover/partials/sdg_list') ?>

<?= $this->insert('impact_discover/partials/map'); ?>

<?php $this->replace() ?>
15 changes: 15 additions & 0 deletions Resources/templates/responsive/impact_discover/mosaic.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php $this->layout('impact_discover/layout') ?>

<?php $this->section('impact-discover-content') ?>

<?= $this->insert('impact_discover/partials/filters') ?>

<?= $this->insert('impact_discover/partials/sdg_list') ?>

<?= $this->insert('impact_discover/partials/mosaic') ?>

<div class="spacer-20 spacer-bottom text-center more-projects-button <?= $this->total > count($this->projects) ? '' : ' hidden' ?>">
<button class="btn btn-link"><?= $this->text('regular-load-more') ?> &nbsp; &nbsp; <i class="fa fa-chevron-right"></i></button>
</div>

<?php $this->replace() ?>
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<div class="section impact-discover-filters active">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-9" id="filters-mobile">
<a href="" class="filter"><img src="./assets/img/icons/funnel.svg" /> FILTRAR</a>
<a class="close flip" href="#"><i class="icon icon-close"></i></a>
</div>
<div class="col-xs-12 col-sm-6 col-md-6" id="filters-footprints">
<p><?= $this->t('impact-discover-filter-by-footprints') ?></p>
<ul>
<li><a href="" data-footprint="all" class="active">Todas</a></li>
<?php foreach($this->footprints as $footprint): ?>
<li>
<a href="" data-footprint="<?= $footprint->id ?>">
<img src="/assets/img/<?= $footprint->getIcon() ?>" alt="<?= $footprint->name ?>">
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
<div class="col-xs-12 col-sm-3" id="filters-sdg-list">
<p><?= $this->t('impact-discover-filter-by-sdg') ?></p>
<ul>
<?php foreach($this->sdgs as $sdg): ?>
<li>
<input type="checkbox" name="<?= $sdg->id ?>" />
<img src="/assets/img/sdg/sdg<?= $sdg->id ?>.svg" alt="<?= $sdg->name ?>"/>
<?= $sdg->id . $sdg->name ?>
</li>
<?php endforeach; ?>
</ul>
<p>
<a href="" id="reset-sdg"><?= $this->t('regular-delete') ?></a>
<button><?= $this->t('regular-apply') ?></button>
</p>
</div>
<div class="col-xs-12 col-sm-6 col-md-4 text-center" id="filters-channel">
<?php if ($this->selectedChannel) : ?>
<select class="form-control" name="channel" disabled>
<option value="<?= $this->selectedChannel ?>" selected> <?= $this->channels[$this->selectedChannel] ?> </option>
</select>
<?php else: ?>
<select class="form-control" name="channel" >
<option value="" selected disabled hidden><?= $this->t('regular-channel') ?></option>

<?php foreach($this->channels as $cid => $cname): ?>
<option value="<?= $cid ?>"> <?= $cname ?></option>
<?php endforeach; ?>
</select>
<?php endif; ?>
</div>
<div class="col-xs-12 col-sm-6 col-md-4 text-center" id="filters-sdg-select">
<select class="form-control" name="footprints">
<option><?= $this->t('impact-discover-filter-by-sdg') ?></option>

<?php foreach($this->sdgs as $sdg): ?>
<option data-footprints="<?= implode(',',array_column($sdg->getFootprints(), 'id'))?>" value="<?= $sdg->id ?>"> <?= $sdg->name ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="col-xs-12 col-sm-3 col-md-2 text-right" id="filters-view-as">
<a id="activate-mosaic" class="<?= ($this->view == 'mosaic') ? 'active' : '' ?>" href="/impact-discover/mosaic"> <img src="/assets/img/icons/mosaic.svg"> </a>
<a id="activate-projects" class="<?= ($this->view == 'list_projects')? 'active' : '' ?>" href="/impact-discover"><img src="/assets/img/icons/lists.svg"></a>
<a id="activate-map" class="<?= ($this->view == 'map')? 'active' : '' ?>" href="/impact-discover/map"><img src="/assets/img/icons/map.svg"></a>
</div>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
$projects = $this->projects;
?>
<?= $this->insert('impact_discover/partials/projects_first_row', ['projects' => array_slice($projects, 0, 3)]) ?>
<?= $this->insert('impact_discover/partials/projects_second_row', ['projects' => array_slice($projects, 3, 3)]) ?>
<?= $this->insert('impact_discover/partials/projects_third_row', ['projects' => array_slice($projects, 6, 3)]) ?>
Loading