forked from mapasculturais/mapasculturais
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add via hook os novos componentes de cards e dashboard
- Loading branch information
Showing
4 changed files
with
43 additions
and
3 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
14 changes: 14 additions & 0 deletions
14
src/plugins/Metabase/layouts/parts/search-tabs/entity-opportunity-cards.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,14 @@ | ||
<?php | ||
|
||
/** | ||
* @var MapasCulturais\App $app | ||
* @var MapasCulturais\Themes\BaseV2\Theme $this | ||
*/ | ||
|
||
use MapasCulturais\i; | ||
|
||
$this->import(' | ||
entity-cards | ||
'); | ||
?> | ||
<entity-cards type="opportunity"></entity-cards> |
19 changes: 19 additions & 0 deletions
19
src/plugins/Metabase/layouts/parts/search-tabs/opportunity.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 @@ | ||
<?php | ||
|
||
/** | ||
* @var MapasCulturais\App $app | ||
* @var MapasCulturais\Themes\BaseV2\Theme $this | ||
*/ | ||
|
||
use MapasCulturais\i; | ||
|
||
$this->import(' | ||
search-dashboard | ||
'); | ||
|
||
?> | ||
<mc-tab icon="indicator" label="<?php i::esc_attr_e('Indicadores') ?>" slug="indicator"> | ||
<div class="search__tabs--indicator"> | ||
<search-dashboard panel-Id="painel-oportunidades"></search-dashboard> | ||
</div> | ||
</mc-tab> |
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