-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.php
320 lines (312 loc) · 23.8 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<?php
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Uri\Uri;
$app = Factory::getApplication();
$wa = $this->getWebAssetManager();
$wa->registerAndUseStyle('font-rawline', 'https://fonts.cdnfonts.com/css/rawline');
$wa->registerAndUseStyle('dsgov-core-css', 'media/templates/site/govbr-ds/css/core.css');
$wa->registerAndUseStyle('fontawesome-all', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');
$wa->registerAndUseStyle('dsgov-custom', 'media/templates/site/govbr-ds/css/custom.css');
$wa->registerAndUseScript('dsgov-core-js', 'media/templates/site/govbr-ds/js/core-init.js');
$wa->registerAndUseScript('dsgov-contrast-js', 'media/templates/site/govbr-ds/js/contrast.class.js');
$wa->registerAndUseScript('dsgov-backtotop-js', 'media/templates/site/govbr-ds/js/backtotop.js');
if ($this->params->get('cookies_aviso')):
$wa->registerAndUseScript('cookie-notice', 'media/templates/site/govbr-ds/js/cookie.notice.js');
$wa->addInlineScript("new cookieNoticeJS({
'noticeText':'" . $this->params->get('cookies_mensagem') . "',
'learnMoreLinkEnabled':" . ($this->params->get('cookies_leiamais') ? "true" : "false") . "," .
(($this->params->get('cookies_leiamais')) ?
"'learnMoreLinkHref':'" . $this->params->get('cookies_leiamais_link') . "',
'learnMoreLinkText':'" . $this->params->get('cookies_leiamais_titulo') . "'," : '')
. "'buttonText': '" . $this->params->get('cookies_ciente_titulo') . "'
});");
endif;
$wa->registerAndUseScript('vlibras-plugin', 'https://vlibras.gov.br/app/vlibras-plugin.js');
$wa->addInlineScript("new window.VLibras.Widget('https://vlibras.gov.br/app');");
$this->addHeadLink(HTMLHelper::_('image', 'media/templates/site/govbr-ds/favicons/apple-touch-icon.png', '', [], false, 1), 'apple-touch-icon', 'rel', ['sizes' => '180x180']);
$this->addHeadLink(HTMLHelper::_('image', 'media/templates/site/govbr-ds/favicons/favicon-32x32.png', '', [], false, 1), 'icon', 'rel', ['type' => 'image/png', 'sizes' => '32x32']);
$this->addHeadLink(HTMLHelper::_('image', 'media/templates/site/govbr-ds/favicons/favicon-16x16.png', '', [], false, 1), 'icon', 'rel', ['type' => 'image/png', 'sizes' => '16x16']);
$this->addHeadLink(HTMLHelper::_('image', 'media/templates/site/govbr-ds/favicons/manifest.json', '', [], false, 1), 'manifest', 'rel', []);
$this->addHeadLink(HTMLHelper::_('image', 'media/templates/site/govbr-ds/favicons/safari-pinned-tab.svg', '', [], false, 1), 'mask-icon', 'rel', ['color' => '#00a300']);
$this->setMetaData('msapplication-config', 'media/templates/site/govbr-ds/favicons/browserconfig.xml');
$this->setMetaData('theme-color', '#00a300');
$this->setMetaData('viewport', 'width=device-width, initial-scale=1');
$largura = $this->params->get('largura') ? 'container-fluid' : 'container-lg';
$tipomenu = $this->params->get('tipomenu') ? 'br-menu push' : 'br-menu';
$cor_footer = $this->params->get('cor_footer') ? 'br-footer inverted pt-3' : 'br-footer pt-3';
$logo_footer = $this->params->get('cor_footer') ? 'media/templates/site/govbr-ds/img/logo.svg' : 'media/templates/site/govbr-ds/img/logo_footer.svg';
?>
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<jdoc:include type="metas" />
<jdoc:include type="styles" />
</head>
<body>
<div class="template-base">
<nav class="br-skiplink">
<a class="br-item" href="#main-content" accesskey="1">Ir para o conteúdo (1/4) <span class="br-tag text ml-1">1</span></a>
<a class="br-item" href="#header-navigation" accesskey="2">Ir para o menu (2/4) <span class="br-tag text ml-1">2</span></a>
<a class="br-item" href="#main-searchbox" accesskey="3">Ir para a busca (3/4) <span class="br-tag text ml-1">3</span></a>
<a class="br-item" href="#footer" accesskey="4">Ir para o rodapé (4/4) <span class="br-tag text ml-1">4</span></a>
</nav>
<header class="br-header mb-4" id="header" data-sticky="data-sticky">
<div class="<?php echo $largura ?>">
<div class="header-top">
<div class="header-logo">
<?php if ($this->params->get('logo_comlink', '0') == 1) : ?>
<a href="<?php echo Uri::root(); ?>">
<?php elseif ($this->params->get('logo_comlink', '0') == 2) : ?>
<a href="<?php echo $this->params->get('logo_link', ''); ?>">
<?php endif; ?>
<img src="<?php echo $this->params->get('imagem_logo', 'media/templates/site/govbr-ds/img/logo.svg'); ?>" alt="logo" />
<?php if ($this->params->get('logo_comlink', '0') != 0) : ?>
</a>
<?php endif; ?>
<?php if (!empty($this->params->get('texto_assinatura', ''))) : ?>
<span class="br-divider vertical mx-half mx-sm-1"></span>
<div class="header-sign"><?php echo $this->params->get('texto_assinatura', ''); ?></div>
<?php endif; ?>
</div>
<div class="header-actions">
<?php if ($this->countModules('menuacesso')) : ?>
<div class="header-links dropdown">
<button class="br-button circle small" type="button" data-toggle="dropdown" aria-label="Abrir Acesso Rápido"><i class="fas fa-ellipsis-v" aria-hidden="true"></i></button>
<div class="br-list">
<div class="header">
<div class="title">Acesso Rápido</div>
</div>
<jdoc:include type="modules" name="menuacesso" style="none" />
</div>
</div>
<span class="br-divider vertical mx-half mx-sm-1"></span>
<?php endif; ?>
<div class="header-functions dropdown">
<button class="br-button circle small" type="button" data-toggle="dropdown" aria-label="Abrir Funcionalidades do Sistema"><i class="fas fa-th" aria-hidden="true"></i>
</button>
<div class="br-list">
<div class="header">
<div class="title">Funcionalidades do Sistema</div>
</div>
<div class="align-items-center br-item">
<button class="br-button circle small" type="button" aria-label="Alto contraste" onclick="window.toggleContrast()"><i class="fas fa-adjust" aria-hidden="true"></i><span class="text">Alto contraste</span>
</button>
</div>
</div>
</div>
<?php if ($this->countModules("search")) : ?>
<div class="header-search-trigger">
<button class="br-button circle" type="button" aria-label="Abrir Busca" data-toggle="search" data-target=".header-search"><i class="fas fa-search" aria-hidden="true"></i>
</button>
</div>
<?php endif; ?>
</div>
</div>
<div class="header-bottom">
<div class="header-menu">
<div class="header-menu-trigger" id="header-navigation">
<button class="br-button small circle" type="button" aria-label="Menu" data-toggle="menu" data-target="#main-navigation" id="navigation"><i class="fas fa-bars" aria-hidden="true"></i>
</button>
</div>
<div class="header-info">
<div class="header-title">
<a href="<?php echo Uri::root(); ?>" title="<?php echo $this->params->get('texto_titulo', 'Template básico'); ?>">
<?php echo $this->params->get('texto_titulo', 'Template básico'); ?>
</a>
</div>
<?php if (!empty($this->params->get('texto_subtitulo', ''))) : ?>
<div class="header-subtitle"><?php echo $this->params->get('texto_subtitulo', 'Subtítulo do Header'); ?></div>
<?php endif; ?>
</div>
</div>
<jdoc:include type="modules" name="search" style="none" />
</div>
</div>
</header>
<main class="d-flex flex-fill mb-5" id="main">
<div class="<?php echo $largura ?>">
<jdoc:include type="modules" name="main-top" />
<div class="row">
<div class="<?php echo $tipomenu?>" id="main-navigation">
<div class="menu-container">
<div class="menu-panel">
<div class="menu-header">
<div class="menu-title">
<?php if ($this->params->get('cabecalhomenu', '1') == 2 || $this->params->get('cabecalhomenu', '1') == 1) : ?>
<img src="<?php echo $this->params->get('imagem_logo', 'media/templates/site/govbr-ds/img/logo.svg'); ?>" alt="Imagem ilustrativa"/>
<?php endif; ?>
<?php if ($this->params->get('cabecalhomenu', '1') == 3 || $this->params->get('cabecalhomenu', '1') == 1) : ?>
<span><?php echo $this->params->get('texto_titulo', 'Template básico'); ?></span>
<?php endif; ?>
</div>
<div class="menu-close">
<button class="br-button circle" type="button" aria-label="Fechar o menu" data-dismiss="menu"><i class="fas fa-times" aria-hidden="true"></i></button>
</div>
</div>
<nav class="menu-body">
<jdoc:include type="modules" name="menu-body" style="none" />
</nav>
<div class="menu-footer">
<?php if ($this->countModules('menu-logos')) : ?>
<div class="menu-logos">
<jdoc:include type="modules" name="menu-logos" style="none" />
</div>
<?php endif; ?>
<?php if ($this->countModules('menu-links')) : ?>
<div class="menu-links">
<jdoc:include type="modules" name="menu-links" style="none" />
</div>
<?php endif; ?>
<?php if ($this->params->get('redes_sociais', '1')) : ?>
<div class="social-network">
<div class="social-network-title">Redes Sociais</div>
<div class="d-flex">
<?php if (!empty($this->params->get('redes_instagram', ''))) : ?>
<a class="br-button circle" href="<?php echo $this->params->get('redes_instagram', ''); ?>" aria-label="Instagram"><i class="fab fa-instagram" aria-hidden="true"></i></a>
<?php endif; ?>
<?php if (!empty($this->params->get('redes_twitter', ''))) : ?>
<a class="br-button circle" href="<?php echo $this->params->get('redes_twitter', ''); ?>" aria-label="Twitter"><i class="fab fa-twitter" aria-hidden="true"></i></a>
<?php endif; ?>
<?php if (!empty($this->params->get('redes_facebook', ''))) : ?>
<a class="br-button circle" href="<?php echo $this->params->get('redes_facebook', ''); ?>" aria-label="Facebook"><i class="fab fa-facebook-f" aria-hidden="true"></i></a>
<?php endif; ?>
<?php if (!empty($this->params->get('redes_youtube', ''))) : ?>
<a class="br-button circle" href="<?php echo $this->params->get('redes_youtube', ''); ?>" aria-label="YouTube"><i class="fab fa-youtube" aria-hidden="true"></i></a>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php if (!empty($this->params->get('texto_menuinfo', ''))) : ?>
<div class="menu-info">
<div class="text-center text-down-01"><?php echo $this->params->get('texto_menuinfo', 'Desenvolvido com o CMS de código aberto <strong><a aria-label="Desenvolvido por Comunidade Joomla" href="https://www.joomla.org">Joomla</a></strong>.'); ?></div>
</div>
<?php endif; ?>
</div>
</div>
<div class="menu-scrim" data-dismiss="menu" tabindex="0"></div>
</div>
</div>
<div class="col">
<?php if ($app->getMenu()->getActive() != $app->getMenu()->getDefault()) : ?>
<jdoc:include type="modules" name="breadcrumbs" />
<?php endif; ?>
<div class="main-content pl-sm-3" id="main-content">
<jdoc:include type="message" />
<jdoc:include type="modules" name="content-top" />
<jdoc:include type="component" />
<jdoc:include type="modules" name="content-bottom" />
</div>
<?php if ($this->params->get('componente_atendimentocidadao', '1')) : ?>
<?php if ($app->getMenu()->getActive() == $app->getMenu()->getDefault()) : ?>
<div id="ouvidoria-acessoinformacao">
<div class="row d-block mx-auto text-center" id="ouvidoria-acessoinformacao-header">
<h1>Ouvidoria e Acesso à Informação</h1>
<h2>Você pode realizar manifestações nos seguintes canais</h2>
</div>
<div class="row mx-auto px-3" id="ouvidoria-acessoinformacao-cards">
<div class="col-md">
<div class="br-card hover">
<a href="https://falabr.cgu.gov.br/publico/Manifestacao/RegistrarManifestacao.aspx?tipo=1&orgaoDestinatario=<?php echo $this->params->get('atendimentocidadao_siorg', ''); ?>">
<div class="card-content d-flex flex-column justify-content-center align-items-center">
<i class="fas fa-bullhorn" aria-hidden="true"></i><span>Denúncia</span>
</div>
</a>
</div>
</div>
<div class="col-md">
<div class="br-card hover">
<a href="https://falabr.cgu.gov.br/publico/Manifestacao/RegistrarManifestacao.aspx?tipo=5&orgaoDestinatario=<?php echo $this->params->get('atendimentocidadao_siorg', ''); ?>">
<div class="card-content d-flex flex-column justify-content-center align-items-center">
<i class="fas fa-comments" aria-hidden="true"></i><span>Solicitação</span>
</div>
</a>
</div>
</div>
<div class="col-md">
<div class="br-card hover">
<a href="https://falabr.cgu.gov.br/publico/Manifestacao/RegistrarManifestacao.aspx?tipo=3&orgaoDestinatario=<?php echo $this->params->get('atendimentocidadao_siorg', ''); ?>">
<div class="card-content d-flex flex-column justify-content-center align-items-center">
<i class="fas fa-thumbs-up" aria-hidden="true"></i><span>Elogio</span>
</div>
</a>
</div>
</div>
<div class="col-md">
<div class="br-card hover">
<a href="https://falabr.cgu.gov.br/publico/Manifestacao/RegistrarManifestacao.aspx?tipo=2&orgaoDestinatario=<?php echo $this->params->get('atendimentocidadao_siorg', ''); ?>">
<div class="card-content d-flex flex-column justify-content-center align-items-center">
<i class="fas fa-thumbs-down" aria-hidden="true"></i><span>Reclamação</span>
</div>
</a>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
<jdoc:include type="modules" name="main-bottom" />
</div>
</main>
<footer class="<?php echo $cor_footer ?>" id="footer">
<div class="<?php echo $largura ?>">
<div class="logo"><img src="<?php echo $this->params->get('imagem_logo_footer', $logo_footer); ?>" alt="Imagem"/></div>
<?php if ($this->countModules('menumapa')) : ?>
<div class="br-list horizontal" data-toggle="data-toggle" data-sub="data-sub">
<jdoc:include type="modules" name="menumapa" style="none" />
</div>
<?php endif; ?>
<div class="d-none d-sm-block">
<div class="row align-items-end justify-content-between py-5">
<?php if ($this->params->get('redes_sociais', '1')) : ?>
<div class="col social-network">
<p class="text-up-01 text-extra-bold text-uppercase">Redes Sociais</p>
<?php if (!empty($this->params->get('redes_instagram', ''))) : ?>
<a class="br-button circle large mr-3" href="<?php echo $this->params->get('redes_instagram', ''); ?>" aria-label="Instagram"><i aria-hidden="true" class="fab fa-instagram"></i></a>
<?php endif; ?>
<?php if (!empty($this->params->get('redes_twitter', ''))) : ?>
<a class="br-button circle large mr-3" href="<?php echo $this->params->get('redes_twitter', ''); ?>" aria-label="Twitter"><i aria-hidden="true" class="fab fa-twitter"></i></a>
<?php endif; ?>
<?php if (!empty($this->params->get('redes_facebook', ''))) : ?>
<a class="br-button circle large mr-3" href="<?php echo $this->params->get('redes_facebook', ''); ?>" aria-label="Facebook"><i aria-hidden="true" class="fab fa-facebook"></i></a>
<?php endif; ?>
<?php if (!empty($this->params->get('redes_youtube', ''))) : ?>
<a class="br-button circle large mr-3" href="<?php echo $this->params->get('redes_youtube', ''); ?>" aria-label="YouTube"><i aria-hidden="true" class="fab fa-youtube"></i></a>
<?php endif; ?>
</div>
<?php endif; ?>
<div class="col assigns text-right">
<?php if ($this->params->get('imagem_footer_acesso', '1')) : ?>
<a class="d-inline-block ml-4" href="https://www.gov.br/acessoainformacao"><img src="<?php echo $this->params->get('cor_footer') ? 'media/templates/site/govbr-ds/img/acesso_footer_claro.svg' : 'media/templates/site/govbr-ds/img/acesso_footer.svg'; ?>" alt="Acesso a Informação"/></a>
<?php endif; ?>
<?php if ($this->params->get('imagem_footer_brasil', '1')) : ?>
<a class="d-inline-block ml-4" href="https://www.gov.br/"><img src="<?php echo $this->params->get('imagem_footer_brasil_src', 'media/templates/site/govbr-ds/img/brasil_footer.svg')?>" alt="Imagem"/></a>
<?php endif; ?>
</div>
</div>
</div>
</div>
<span class="br-divider my-3"></span>
<div class="<?php echo $largura ?>">
<div class="info">
<div class="text-down-01 text-medium pb-3">
<?php echo $this->params->get('texto_licenca', 'Desenvolvido com o CMS de código aberto <strong><a aria-label="Desenvolvido por Comunidade Joomla" href="https://www.joomla.org">Joomla</a></strong>.'); ?>
</div>
</div>
</div>
</footer>
<button id="gotop" class="br-button primary circle backtotop" aria-label="Ir para o topo" onclick="goTop()"><i class="fa fa-chevron-up"></i></button>
<jdoc:include type="modules" name="debug" style="none" />
</div>
<div vw class="enabled">
<div vw-access-button class="active"></div>
<div vw-plugin-wrapper>
<div class="vw-plugin-top-wrapper"></div>
</div>
</div>
</body>
<jdoc:include type="scripts" />
</html>