-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
168 lines (165 loc) · 10.1 KB
/
home.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
<?php get_header(); ?>
<div id="post_overlay">
<a id="pontos_close_post_overlay" title="Fechar"><?php mapasdevista_image("close.png", array("alt" => "Fechar")); ?></a>
<div id="post_overlay_content" class="post_overlay_content" >
</div>
</div>
<section class="search-intro search-area clearfix">
<div class="container">
<p class="intro-text content-box">
<?php
/* TODO: This should be a option inside the Customizer section */
$home_url = get_bloginfo('url') . '/';
printf( 'O <a href="%1$s">Mapa Cultura Viva</a> é <a href="%2$s">livre</a> e <a href="%3$s">aberto</a>. O objetivo é dar
visibilidade e articular iniciativas e ações do <a href="%4$s">programa Cultura Viva</a>. <a href="%5$s">Utilize</a> a plataforma
através das buscas aberta ou avançada, pelo mapa e também pelas palavras mais procuradas.
<a href="%6$s">Participe</a> interagindo com os pontos, consultando ou atualizando informações.',
$home_url . 'o-projeto',
$home_url . 'desenvolvedores',
$home_url . 'dados-abertos',
$home_url . 'programa-cultura-viva',
$home_url . 'como-usar',
$home_url . 'participe'
);
?>
</p>
<?php get_search_form(); ?>
</div><!-- .container -->
</section>
<section class="search-estado search-area clearfix">
<div class="container">
<h2 class="area-title">Busca por estado</h2>
<div class="gr gr-small">
<ul class="state-list">
<li><?php _e( 'Centro-Oeste', 'pontosdecultura' ); ?>
<ul class="state-list--children state-list--co">
<li class="state-name"><a href="javascript:map_estados_click(-15.827322694625742, -47.5434026311638, 9, 'df');"><?php _e( 'Distrito Federal' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-16.489545110135776, -49.10255992578129, 6, 'go');"><?php _e( 'Goiás' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-13.79899613053151, -54.66457553124998, 6, 'mt');"><?php _e( 'Mato Grosso' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-20.49223599374924, -53.60988803124998, 6, 'ms');"><?php _e( 'Mato Grosso do Sul' ); ?></a></li>
</ul><!-- state-list--children -->
</li>
<li><?php _e( 'Nordeste', 'pontosdecultura' ); ?>
<ul class="state-list--children state-list--ne">
<li class="state-name"><a href="javascript:map_estados_click(-9.577380852874896, -36.36940562890629, 8, 'al');"><?php _e( 'Alagoas' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-13.93843295148234, -39.94545543359379, 6, 'ba');"><?php _e( 'Bahia' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-5.709926219210012, -37.1228704046013, 6, 'ce');"><?php _e( 'Ceará' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-5.014819924963368, -43.93811078515628, 6, 'ma');"><?php _e( 'Maranhão' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-7.235434335980407, -36.50124156640629, 8, 'pb');"><?php _e( 'Paraíba' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-8.083170249100542, -37.37280936944505, 7, 'pe');"><?php _e( 'Pernambuco' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-6.744557263267556, -41.52111859765628, 6, 'pi');"><?php _e( 'Piauí' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-5.338126455015082, -35.8374700139763, 7, 'rn');"><?php _e( 'Rio Grande do Norte' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-10.536252353462848, -36.90224254296879, 8, 'se');"><?php _e( 'Sergipe' ); ?></a></li>
</ul><!-- state-list--children -->
</li>
<li><?php _e( 'Norte', 'pontosdecultura' ); ?>
<ul class="state-list--children state-list--n">
<li class="state-name"><a href="javascript:map_estados_click(-8.981814864398771, -70.17420626171871, 7, 'ac');"><?php _e( 'Acre' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(2.042922656988901, -50.1636418889763, 6, 'ap');"><?php _e( 'Amapá' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-2.9362446361557346, -63.189648156249966, 6, 'am');"><?php _e( 'Amazonas' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-3.4915906071701035, -49.0430364202263, 5, 'pa');"><?php _e( 'Pará' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-10.227506519855961, -60.967663292968716, 6, 'ro');"><?php _e( 'Rondônia' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(1.9780917659769406, -60.022839074218716, 6, 'rr');"><?php _e( 'Roraima' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-9.3125876115149, -47.74574840234379, 6, 'to');"><?php _e( 'Tocantins' ); ?></a></li>
</ul><!-- state-list--children -->
</li>
<li><?php _e( 'Sudeste', 'pontosdecultura' ); ?>
<ul class="state-list--children state-list--se">
<li class="state-name"><a href="javascript:map_estados_click(-17.47126983928056, -39.36318004296879, 6, 'es');"><?php _e( 'Espírito Santo' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-18.307672760467163, -42.95021617578129, 6, 'mg');"><?php _e( 'Minas Gerais' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-21.488927749959952, -42.14272105859379, 7, 'rj');"><?php _e( 'Rio de Janeiro' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-22.139955704130976, -46.86428256249998, 6, 'sp');"><?php _e( 'São Paulo' ); ?></a></li>
</ul><!-- state-list--children -->
</li>
<li><?php _e( 'Sul', 'pontosdecultura' ); ?>
<ul class="state-list--children state-list--s">
<li class="state-name"><a href="javascript:map_estados_click(-26.03328886702247, -50.29201693749998, 6, 'pr');"><?php _e( 'Paraná' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-30.27174883870184, -50.79738803124998, 6, 'rs');"><?php _e( 'Rio Grande do Sul' ); ?></a></li>
<li class="state-name"><a href="javascript:map_estados_click(-27.657612362418984, -50.24807162499998, 7, 'sc');"><?php _e( 'Santa Catarina' ); ?></a></li>
</ul><!-- state-list--children -->
</li>
</ul><!-- .state-list -->
</div><!-- .golden-ratio--small -->
<div class="wrapper-map-brasil gr gr-large">
<?php include dirname(__FILE__).'/inc/map.php'; ?>
</div><!-- .gr-large -->
</div><!-- .container -->
</section>
<section class="search-advanced search-area clearfix">
<div class="container">
<h2 class="area-title">Busca avançada</h2>
<form class="adv-search-form content-box" role="search">
<input type="search" class="adv-search-title" placeholder="<?php echo esc_attr_x( 'Nome do Ponto', 'pontosdecultura' ); ?>" value="" name="adv-search-title" title="<?php echo esc_attr_x( 'Buscar somente por pontos cujo nome contenham esse termo', 'pontosdecultura' ); ?>" />
<select name="adv-search-tipo" class="adv-search-tipo">
<option value="" selected="selected" ><?php echo esc_attr_x('Tipo do Ponto', 'pontosdecultura' ); ?></option>
<?php
$terms = get_terms('tipo');
foreach ($terms as $term)
{
?>
<option value="<?php echo $term->slug; ?>" ><?php echo $term->name; ?></option>
<?php
}
?>
</select>
<select name="adv-search-publicoalvo" class="adv-search-publicoalvo">
<option value="" selected="selected" ><?php echo esc_attr_x('Público-alvo', 'pontosdecultura' ); ?></option>
<?php
$terms = get_terms('publicoalvo', array('orderby' => 'name'));
foreach ($terms as $term)
{
?>
<option value="<?php echo $term->slug; ?>" ><?php echo $term->name; ?></option>
<?php
}
?>
</select>
<select name="adv-search-estado" class="adv-search-estado">
<option value="" selected="selected" ><?php echo esc_attr_x('Estado', 'pontosdecultura' ); ?></option>
<?php
$terms = get_terms('territorio', array('parent' => 0, 'orderby' => 'name'));
foreach ($terms as $term)
{
?>
<option value="<?php echo $term->slug; ?>" ><?php echo $term->name; ?></option>
<?php
}
?>
</select>
<select name="adv-search-cidade" class="adv-search-cidade">
<option value="" selected="selected" ><?php echo esc_attr_x('Cidade', 'pontosdecultura' ); ?></option>
</select>
<input type="submit" class="adv-search-submit" value="<?php echo esc_attr_x( 'Search', 'submit button' ); ?>" />
</form><!-- .adv-search-form -->
</div><!-- .container -->
</section>
<section class="search-tags search-area clearfix">
<div class="container">
<h2 class="area-title">+ buscados</h2>
<?php
echo wp_generate_tag_cloud(get_option('pontosdecultura_home_searches', array()), array ( 'smallest' => 1, 'largest' => 3, 'unit' => 'em', 'number' => 30 ) );
?>
</div><!-- .container -->
</section>
<section id="search-result" class="search-result search-area clearfix">
<div class="container">
<a class="search-result-button">⬆ <?php _e( 'Ocultar resultados', 'pontosdecultura' ); ?></a>
<div id="search-result-list" class="search-result-list gr gr-small clearfix">
<?php //mapasdevista_view_results(); ?>
<div class="map-results-intro3">
<span class="map-results-total-prefix"><?php _e( 'Carregando…', 'pontosdecultura' ); ?></span>
</div><!-- .map-results-intro -->
</div>
<div class="search-result-map gr gr-large">
<div class="map clear"><?php Pontosdecultura::the_map(); ?></div>
</div>
<div class="search-load-button" style="display: none;" >
<?php _e('Load data', 'pontosdecultura'); ?>
</div>
<div class="search-not-here">
<img class="icon-cultura" src="<?php echo get_template_directory_uri().'/images/icon-cultura.png'; ?>"/>
<?php printf( __( 'Não encontrou seu ponto? <a href="%s">Entre em contato</a> conosco!', 'pontosdecultura' ), get_bloginfo( 'url' ) . '/contato' ); ?>
</div>
</div>
</section>
<?php get_footer(); ?>