This repository has been archived by the owner on Nov 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
274 lines (225 loc) · 17.2 KB
/
footer.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
<?php
/**
*
* The template for displaying the footer
*
* Contains the footer sidebars, social items,
* content copyright, theme copyright
*
* @package WordPress
* @subpackage Materialize
* @since Materialize 1.0
*/
?>
<footer>
<?php
$are_active_sidebras = is_active_sidebar( 'footer-first' ) ||
is_active_sidebar( 'footer-second' ) ||
is_active_sidebar( 'footer-third' ) ||
is_active_sidebar( 'footer-fourth' );
if( $are_active_sidebras || (bool)get_theme_mod( 'mythemes-default-content', true ) ){
?>
<!-- footer sidebars -->
<aside class="mythemes-footer-sidebars">
<!-- the sidebars container ( align to center ) -->
<div class="container">
<div class="row">
<!-- first footer sidebar -->
<div class="col s12 m6 l3">
<?php get_sidebar( 'footer-first' ); ?>
</div>
<!-- second footer sidebar -->
<div class="col s12 m6 l3">
<?php get_sidebar( 'footer-second' ); ?>
</div>
<!-- third footer sidebar -->
<div class="col s12 m6 l3">
<?php get_sidebar( 'footer-third' ); ?>
</div>
<!-- fourth footer sidebar -->
<div class="col s12 m6 l3">
<?php get_sidebar( 'footer-fourth' ); ?>
</div>
</div>
</div><!-- .container -->
</aside><!-- .mythemes-footer-sidebars -->
<?php
}
?>
<!-- dark mask social and copyright wrapper -->
<div class="mythemes-dark-mask">
<?php
$vimeo = esc_url( get_theme_mod( 'mythemes-vimeo', 'http://vimeo.com/#' ) );
$twitter = esc_url( get_theme_mod( 'mythemes-twitter', 'http://twitter.com/#' ) );
$skype = esc_url( get_theme_mod( 'mythemes-skype' ) );
$renren = esc_url( get_theme_mod( 'mythemes-renren' ) );
$github = esc_url( get_theme_mod( 'mythemes-github' ) );
$rdio = esc_url( get_theme_mod( 'mythemes-rdio' ) );
$linkedin = esc_url( get_theme_mod( 'mythemes-linkedin' ) );
$behance = esc_url( get_theme_mod( 'mythemes-behance', 'http://behance.com/#' ) );
$dropbox = esc_url( get_theme_mod( 'mythemes-dropbox' ) );
$flickr = esc_url( get_theme_mod( 'mythemes-flickr', 'http://flickr.com/#' ) );
$tumblr = esc_url( get_theme_mod( 'mythemes-tumblr' ) );
$instagram = esc_url( get_theme_mod( 'mythemes-instagram' ) );
$vkontakte = esc_url( get_theme_mod( 'mythemes-vkontakte' ) );
$facebook = esc_url( get_theme_mod( 'mythemes-facebook', 'http://facebook.com/#' ) );
$evernote = esc_url( get_theme_mod( 'mythemes-evernote' ) );
$flattr = esc_url( get_theme_mod( 'mythemes-flattr' ) );
$picasa = esc_url( get_theme_mod( 'mythemes-picasa' ) );
$dribbble = esc_url( get_theme_mod( 'mythemes-dribbble' ) );
$mixi = esc_url( get_theme_mod( 'mythemes-mixi' ) );
$stumbl = esc_url( get_theme_mod( 'mythemes-stumbleupon' ) );
$lastfm = esc_url( get_theme_mod( 'mythemes-lastfm' ) );
$gplus = esc_url( get_theme_mod( 'mythemes-gplus' ) );
$gcircle = esc_url( get_theme_mod( 'mythemes-google-circles' ) );
$pinterest = esc_url( get_theme_mod( 'mythemes-pinterest', 'http://pinterest.com/#' ) );
$smashing = esc_url( get_theme_mod( 'mythemes-smashing' ) );
$soundcloud = esc_url( get_theme_mod( 'mythemes-soundcloud' ) );
$rss = esc_url( get_theme_mod( 'mythemes-rss', esc_url( get_bloginfo('rss2_url') ) ) );
?>
<?php
$social_items = !( empty( $vimeo ) && empty( $twitter ) && empty( $skype ) && empty( $renren ) && empty( $github ) &&
empty( $rdio ) && empty( $linkedin ) && empty( $behance ) && empty( $dropbox ) && empty( $flickr ) &&
empty( $tumblr ) && empty( $instagram ) && empty( $vkontakte ) && empty( $facebook ) && empty( $evernote ) &&
empty( $flattr ) && empty( $picasa ) && empty( $dribbble ) && empty( $mixi ) && empty( $stumbl ) && empty( $lastfm ) &&
empty( $gplus ) && empty( $gcircle ) && empty( $pinterest ) && empty( $smashing ) && empty( $soundcloud ) && empty( $rss ) );
if( $social_items ){
?>
<!-- social items -->
<div class="container mythemes-social">
<div class="row">
<div class="col s12">
<?php
if( !empty( $vimeo ) ){
echo '<a href="' . esc_url( $vimeo ) . '" class="btn-floating waves-effect waves-light mythemes-icon-vimeo fa fa-vimeo-square" target="_blank"></a>';
}
if( !empty( $twitter ) ){
echo '<a href="' . esc_url( $twitter ) . '" class="btn-floating waves-effect waves-light mythemes-icon-twitter fa fa-twitter-square" target="_blank"></a>';
}
if( !empty( $skype ) ){
echo '<a href="' . esc_url( $skype ) . '" class="btn-floating waves-effect waves-light mythemes-icon-skype fa fa-skype-square" target="_blank"></a>';
}
if( !empty( $renren ) ){
echo '<a href="' . esc_url( $renren ) . '" class="btn-floating waves-effect waves-light mythemes-icon-renren fa fa-renren-square" target="_blank"></a>';
}
if( !empty( $github ) ){
echo '<a href="' . esc_url( $github ) . '" class="btn-floating waves-effect waves-light mythemes-icon-github fa fa-github-square" target="_blank"></a>';
}
if( !empty( $rdio ) ){
echo '<a href="' . esc_url( $rdio ) . '" class="btn-floating waves-effect waves-light mythemes-icon-rdio fa fa-rdio-square" target="_blank"></a>';
}
if( !empty( $linkedin ) ){
echo '<a href="' . esc_url( $linkedin ) . '" class="btn-floating waves-effect waves-light mythemes-icon-linkedin fa fa-linkedin-square" target="_blank"></a>';
}
if( !empty( $behance ) ){
echo '<a href="' . esc_url( $behance ) . '" class="btn-floating waves-effect waves-light mythemes-icon-behance fa fa-behance-square" target="_blank"></a>';
}
if( !empty( $dropbox ) ){
echo '<a href="' . esc_url( $dropbox ) . '" class="btn-floating waves-effect waves-light mythemes-icon-dropbox fa fa-dropbox-square" target="_blank"></a>';
}
if( !empty( $flickr ) ){
echo '<a href="' . esc_url( $flickr ) . '" class="btn-floating waves-effect waves-light mythemes-icon-flickr fa fa-flickr-square" target="_blank"></a>';
}
if( !empty( $tumblr ) ){
echo '<a href="' . esc_url( $tumblr ) . '" class="btn-floating waves-effect waves-light mythemes-icon-tumblr fa fa-tumblr-square" target="_blank"></a>';
}
if( !empty( $instagram ) ){
echo '<a href="' . esc_url( $instagram ) . '" class="btn-floating waves-effect waves-light mythemes-icon-instagram fa fa-instagram-square" target="_blank"></a>';
}
if( !empty( $vkontakte ) ){
echo '<a href="' . esc_url( $vkontakte ) . '" class="btn-floating waves-effect waves-light mythemes-icon-vkontakte fa fa-vkontakte-square" target="_blank"></a>';
}
if( !empty( $facebook ) ){
echo '<a href="' . esc_url( $facebook ) . '" class="btn-floating waves-effect waves-light mythemes-icon-facebook fa fa-facebook-square" target="_blank"><i class="fa fa-facebook"></i></a>';
}
if( !empty( $evernote ) ){
echo '<a href="' . esc_url( $evernote ) . '" class="btn-floating waves-effect waves-light mythemes-icon-evernote fa fa-evernote-square" target="_blank"></a>';
}
if( !empty( $flattr ) ){
echo '<a href="' . esc_url( $flattr ) . '" class="btn-floating waves-effect waves-light mythemes-icon-flattr fa fa-flattr-square" target="_blank"></a>';
}
if( !empty( $picasa ) ){
echo '<a href="' . esc_url( $picasa ) . '" class="btn-floating waves-effect waves-light mythemes-icon-picasa fa fa-picasa-square" target="_blank"></a>';
}
if( !empty( $dribbble ) ){
echo '<a href="' . esc_url( $dribbble ) . '" class="btn-floating waves-effect waves-light mythemes-icon-dribbble fa fa-dribbble-square" target="_blank"></a>';
}
if( !empty( $mixi ) ){
echo '<a href="' . esc_url( $mixi ) . '" class="btn-floating waves-effect waves-light mythemes-icon-mixi fa fa-mixi-square" target="_blank"></a>';
}
if( !empty( $stumbl ) ){
echo '<a href="' . esc_url( $stumbl ) . '" class="btn-floating waves-effect waves-light mythemes-icon-stumbleupon" target="_blank"></a>';
}
if( !empty( $lastfm ) ){
echo '<a href="' . esc_url( $lastfm ) . '" class="btn-floating waves-effect waves-light mythemes-icon-lastfm" target="_blank"></a>';
}
if( !empty( $gplus ) ){
echo '<a href="' . esc_url( $gplus ) . '" class="btn-floating waves-effect waves-light mythemes-icon-gplus fa fa-google-plus-square" target="_blank"></a>';
}
if( !empty( $gcircle ) ){
echo '<a href="' . esc_url( $gcircle ) . '" class="btn-floating waves-effect waves-light mythemes-icon-google-circles fa fa-google-square" target="_blank"></a>';
}
if( !empty( $pinterest ) ){
echo '<a href="' . esc_url( $pinterest ) . '" class="btn-floating waves-effect waves-light mythemes-icon-pinterest fa fa-pinterest-square" target="_blank"></a>';
}
if( !empty( $smashing ) ){
echo '<a href="' . esc_url( $smashing ) . '" class="btn-floating waves-effect waves-light mythemes-icon-smashing fa fa-smashing-square" target="_blank"></a>';
}
if( !empty( $soundcloud ) ){
echo '<a href="' . esc_url( $soundcloud ) . '" class="btn-floating waves-effect waves-light mythemes-icon-soundcloud fa fa-soundcloud-square" target="_blank"></a>';
}
if( !empty( $rss ) ){
echo '<a href="' . esc_url( $rss ) . '" class="btn-floating waves-effect waves-light mythemes-icon-rss fa fa-rss-square" target="_blank"></a>';
}
?>
</div>
</div>
</div><!-- .mythemes-social -->
<?php
}
?>
<!-- copyright -->
<div class="mythemes-copyright">
<!-- copyright container ( align to center ) -->
<div class="container">
<div class="row">
<div class="col s12">
<p>
<?php
/**
*
* Content Copyright
* Customer can overwrite Content Copyright from the theme options
*
* Appearance / Customize / Others - option "Content Copyright"
*/
?>
<span class="copyright">humanOS es posible gracias a las comunidades de desarrollo de la UCI y la colaboración de la comunidad de software libre de Cuba.
<?php //echo mythemes_validate_copyright( get_theme_mod( 'mythemes-copyright' , sprintf( __( 'Copyright © %s %s. ') , date( 'Y' ) , esc_html( get_bloginfo( 'name' ) ) ) ) ); ?></span>
<?php
/**
*
* Materialize WordPress Theme Copyright and Credit Link
*
* We strongly recommend do not alter, modify, change or / and overwrite this section.
* Also we strongly recommend do not alter, modify, change or / and overwrite the visula
* appearance for this section by using css rules or JavaScript code.
*
* Before make some changes to this section please consult
* the license terms of use. Also you can discus this with
* your law consultant.
*
* @link : http://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
*/
?>
<span> <?php //printf( __( 'Designed by %s.' , 'materialize' ) , '<a href="' . esc_url( mythemes_core::author( 'url' ) ) . '" target="_blank" title="' . esc_attr( mythemes_core::author( 'name' ) ) . '" class="mythemes">' . mythemes_core::author( 'name' ) . '</a>' ); ?></span>
</p>
</div>
</div>
</div><!-- .container -->
</div><!-- .mythemes-copyright -->
</div>
</footer>
<?php wp_footer(); ?>
</body>
</html>