-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
308 lines (278 loc) · 15.7 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
<?php
require "server/Url.class.php";
require "server/Conexao.class.php";
require "server/Empresa.class.php";
require "server/Categorias.class.php";
require "server/Postagens.class.php";
require "server/Newsletter.class.php";
$Categorias = new Categorias();
$Postagens = new Postagens();
$Empresa = new Empresa();
$Newsletter = new Newsletter();
session_start();
$modulo = Url::getURL(0);
$modulo1 = Url::getURL(1);
$modulo2 = Url::getURL(2);
$modulo3 = Url::getURL(3);
$currencyEmpresa = $Empresa->find(3);
$postsTrhee = $Postagens->findFirsts($currencyEmpresa['id']);
$newsletterContent = $Newsletter->find($currencyEmpresa['id']);
?>
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<base href="/">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Apresentamos ao cliente o entendimento conceitual e operacional da Gestão Contábil e Gestão Jurídica Empresarial.">
<meta name="author" content="https://sistemasglobal.com.br/">
<link rel="shortcut icon" href="<?php echo URL::getBase() ?>img/gestao-estrategica-portoalegre-assesoria-contabil-logotipo.ico" type="image/x-icon">
<link rel="icon" href="<?php echo URL::getBase() ?>img/gestao-estrategica-portoalegre-assesoria-contabil-logotipo.ico" type="image/x-icon">
<title>Efficiency Gestão Estratégica</title>
<!-- Bootstrap Core CSS -->
<link href="<?php echo URL::getBase() ?>css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="<?php echo URL::getBase() ?>css/scrolling-nav.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans|Poiret+One" rel="stylesheet">
<?php if($modulo == "blog"): ?>
<!-- GetSocial -->
<script type="text/javascript">
(function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = '//api.at.getsocial.io/widget/v1/gs_async.js?id=50c247'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })();
</script>
<?php endif ?>
</head>
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top" class="body-<?php echo $modulo ?>-page">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.9&appId=1364340600304232";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<!-- Navigation -->
<nav class="navbar navbar-default navbar-fixed-top <?php if($modulo == "blog") echo 'blog-page' ?>" role="navigation">
<div class="container-fluid">
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Menu</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand page-scroll" href="#page-top" title="Efficiency Gestão Estratégica">
<img src="<?php echo URL::getBase() ?>img/consultoria-empresarial-juridica-contabil-logotipo.png" alt="Consultoria Empresarial Jurídica Contábil" class="img-responsive transition">
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav navbar-right nav-all-pages">
<li class="<?php if($modulo == 'home' || is_null($modulo)) echo 'active' ?>">
<a href="<?php echo URL::getBase() ?>">Home</a>
</li>
<li class="<?php if($modulo == 'servicos') echo 'active' ?>">
<a href="<?php echo URL::getBase() ?>servicos">Serviços</a>
</li>
<li class="<?php if($modulo == 'parceiros') echo 'active' ?>">
<a href="<?php echo URL::getBase() ?>parceiros">Parceiros</a>
</li>
<li class="<?php if($modulo == 'blog') echo 'active' ?>">
<a href="<?php echo URL::getBase() ?>blog">Blog</a>
</li>
<li class="<?php if($modulo == 'contato') echo 'active' ?>">
<a href="<?php echo URL::getBase() ?>contato">Contato</a>
</li>
<li>
<a class="btn btn-danger" href="<?php echo URL::getBase() ?>contato/me-ligue-agora">
<i class="fa fa-phone" aria-hidden="true"></i>
<span>Me ligue agora</span>
</a>
</li>
<li>
<a class="btn btn-default" href="http://effi.iebrs.net/" target="_self">
<span>Portal Cursos EAD</span>
</a>
</li>
</ul>
<?php if($modulo == "blog"): ?>
<ul class="nav navbar-nav navbar-right nav-blog">
<li>
<a href="#">
<i class="fa fa-facebook" aria-hidden="true"></i>
</a>
</li>
<li>
<a href="#">
<i class="fa fa-linkedin" aria-hidden="true"></i>
</a>
</li>
<li>
<a href="#">
<i class="fa fa-google-plus" aria-hidden="true"></i>
</a>
</li>
<li class="list-input-search">
<form name="formSerachTop" action="<?php echo URL::getBase() ?>blog" id="formSerachTop" method="GET">
<input type="text" id="buscarSearch" name="buscar" class="form-control input-search transition" placeholder="Buscar por..." required>
<i class="fa fa-search" aria-hidden="true" onclick="if(!document.getElementById('buscarSearch').value.length) return false; document.getElementById('formSerachTop').submit()"></i>
</form>
</li>
</ul>
<?php endif ?>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<?php
if(is_null($modulo)) $modulo = "home";
if(file_exists("paginas/" . $modulo . ".php")) {
require "paginas/" . $modulo . ".php";
} else {
require "paginas/404.php";
}
?>
<footer>
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="col-lg-8">
<div class="row">
<div class="col-lg-4">
<div class="panel panel-news">
<div class="panel-body" style="padding: 0 0 15px 0">
<h3><?php echo $newsletterContent['titulo'] ?></h3>
<p><?php echo $newsletterContent['texto'] ?></p>
</div>
<div class="panel-footer">
<a href="<?php echo URL::getBase() ?>lista-vip" class="btn btn-white">Inscreva-se já!</a>
</div>
</div>
</div>
<div class="col-lg-4">
<h3>Vamos conversar</h3>
<ul class="contatos-list">
<li>[email protected]</li>
<li>+55 (51) 3226-3653</li>
<li>Av. Senador Salgado FIlho, 359</li>
</ul>
<ul class="list-inline">
<li>
<a href="#">
<i class="fa fa-facebook" aria-hidden="true"></i>
</a>
</li>
<li>
<a href="#">
<i class="fa fa-linkedin" aria-hidden="true"></i>
</a>
</li>
<li>
<a href="#">
<i class="fa fa-google-plus" aria-hidden="true"></i>
</a>
</li>
</ul>
</div>
<div class="col-lg-4">
<h3>Postagens</h3>
<ul>
<?php foreach ($postsTrhee as $postTrhee): ?>
<li>
<a href="<?php echo URL::getBase() ?>blog/<?php echo $postTrhee['id_categoria'] . '-' . URL::removeAcentos($postTrhee['nome'], '_') . '/' . $postTrhee['id_postagem'] . '-' . URL::removeAcentos($postTrhee['titulo'], '_') ?>">
<?php echo $postTrhee['titulo'] ?>
</a>
</li>
<?php endforeach ?>
</ul>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="fb-page" data-href="https://www.facebook.com/effi.com.br/" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"><blockquote cite="https://www.facebook.com/effi.com.br/" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/effi.com.br/">Efficiency Gestão - Contabilidade e Advocacia</a></blockquote></div>
</div>
</div>
</div>
</div>
<div class="pre-footer">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="col-lg-8">
<div>© 2017 Efficiency Gestão Estratégica. Todos os direitos reservados.</div>
</div>
<div class="col-lg-4">
<a href="https://sistemasglobal.com.br">
<img src="https://sistemasglobal.com.br/img/logotipo-criacao-de-sites.jpg" alt="Agência Digital Sistemas Global" title="Agência Digital Sistemas Global" class="img-responsive pull-right logo-footer grayscale">
</a>
</div>
</div>
</div>
</div>
</div>
</footer>
<a href="#page-top" target="_self" class="page-scroll transition" id="toTop">
<i class="fa fa-arrow-up" aria-hidden="true"></i>
</a>
<!-- jQuery -->
<script src="<?php echo URL::getBase() ?>js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="<?php echo URL::getBase() ?>js/bootstrap.min.js"></script>
<!-- Scrolling Nav JavaScript -->
<script src="<?php echo URL::getBase() ?>js/jquery.easing.min.js"></script>
<script src="<?php echo URL::getBase() ?>js/scrolling-nav.js"></script>
<?php if($modulo == "home" || $modulo == "contato"): ?>
<script>
var _beachMarker;
function initMap() {
var map = new google.maps.Map(document.getElementById('map-canvas'), {
zoom: 17,
center: {lat: -30.02641964, lng: -51.22383458}
});
var image = '<?php echo URL::getBase() ?>img/pin-consultoria-empresarial-juridica-contabil.png';
var beachMarker = new google.maps.Marker({
position: {lat: -30.0263732, lng: -51.2222038},
map: map,
icon: image,
animation: google.maps.Animation.DROP,
draggable: true
});
beachMarker.addListener('click', toggleBounce);
_beachMarker = beachMarker;
}
function toggleBounce() {
if (_beachMarker.getAnimation() !== null) {
_beachMarker.setAnimation(null);
} else {
_beachMarker.setAnimation(google.maps.Animation.BOUNCE);
}
}
</script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyATmVMopSosPYxLXQnwDJ8aqkOx9Kc82Hw&callback=initMap">
</script>
<?php endif ?>
<?php if($modulo == "lista-vip"): ?>
<!-- Posicione esta tag depois da última tag do botão +1. -->
<script type="text/javascript">
window.___gcfg = {lang: 'pt-BR'};
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/platform.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<?php if($modulo == "blog" && (isset($modulo1)&&!empty($modulo1))): ?>
<script id="dsq-count-scr" src="//effi-com-br.disqus.com/count.js" async></script>
<?php endif ?>
<?php endif ?>
<div id="testaodaporra"></div>
</body>
</html>