-
Notifications
You must be signed in to change notification settings - Fork 0
/
about-template.php
315 lines (285 loc) · 13.7 KB
/
about-template.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
<?php
/*
Template Name: About Page (Partners)
*/
get_header(); ?>
<div class="site-inner-banner">
<div class="site-inside">
<div class="site-inner-left"><BR>
<span class="header-white"><?php _e('Our true achievement','footankle'); ?></span><BR>
<span class="header-dark-blue"><?php _e('is being sorrounded','footankle'); ?></span><BR>
<span class="header-light-blue"><?php _e('by the best','footankle'); ?></span><BR><BR>
</div>
<div class="site-inner-right">
<?php while ( have_posts() ) : the_post();
the_content();
endwhile;
?>
</div>
</div>
</div>
<div id="primary" class="posts-area white">
<main id="main" class="posts-inside" role="main"><BR>
<header class="entry-header"><h1 class="foot"><?php the_title(); ?></h1></header>
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array( 'post_type' => 'partner', 'posts_per_page' => 3, 'paged' => $paged );
$wp_query = new WP_Query($args);
$myCounter = 0;
echo '<div class="faculty-block about">';
while ( have_posts() ) : the_post(); ?>
<div class="boxgrid captionfull about">
<!--header class="entry-header"-->
<?php the_post_thumbnail( 'custom-faculty' ); ?>
<!--/header--><!-- .entry-header -->
<!--div class="entry-content" style="padding-left:10px; padding-right:10px;">
<?php the_content() ?>
</div-->
<div class="cover boxcaption about">
<?php
$texto = get_the_content(__('Full profile >','footankle'));
$twitter = types_render_field("twitter", array("output"=>"raw"));
$facebook = types_render_field("facebook", array("output"=>"raw"));
$linkedin = types_render_field("linkedin", array("output"=>"raw"));
$website = types_render_field("website", array("output"=>"raw"));
?>
<?php if ($twitter != '') { ?>
<a class="slide-social-link about" target="_blank" href="http://twitter.com/<?php echo $twitter ?>"><img class="slide-icon about" src="<?php bloginfo('template_directory'); ?>/img/43_twitter_circle_G_100px.png" ></a>
<?php } ?>
<?php if ($facebook != '') { ?>
<a class="slide-social-link about" target="_blank" href="<?php echo $facebook ?>"><img class="slide-icon about" src="<?php bloginfo('template_directory'); ?>/img/41_facebook_circle_G_100px.png" ></a>
<?php } ?>
<?php if ($linkedin != '') { ?>
<a class="slide-social-link about" target="_blank" href="<?php echo $linkedin ?>"><img class="slide-icon about" src="<?php bloginfo('template_directory'); ?>/img/42_linkedin_circle_G_100px.png" ></a>
<?php } ?>
<?php if ($website != '') { ?>
<a class="slide-social-link about" target="_blank" href="<?php echo $website ?>"><img class="slide-icon about" src="<?php bloginfo('template_directory'); ?>/img/40_link_circle_G_100px.png" ></a>
<?php } ?>
</div>
</div>
<?php endwhile;
echo '</div>';
?>
<div class="faculty-details">
<div class="details-box">
<div class="detail1">
<h2 id="details-name"></h2>
</div>
<div class="detail2">
<p id="details-text"><p>
<p style="float:right; margin: 0 0 15px 0;"><a id="detail-permalink" href><?php _e('Read more >','footankle'); ?></a></p><br clear="right">
</div>
<div class="detail3">
<ul style="padding:0px; margin:0px 0 0 20px;list-style:none;">
<li id="li-twitter" style="padding-top:5px;"><img src="<?php bloginfo('template_directory'); ?>/img/47_solo_twitter_B_100px.png" width="28" height="28" align="absmiddle"> <span id="details-twitter"></span></li>
<li id="li-facebook" style="padding-top:7px;"><img src="<?php bloginfo('template_directory'); ?>/img/45_solo_face_B_100px.png" width="28" height="28" align="absmiddle"> <span id="details-facebook"></span></li>
<li id="li-linkedin" style="padding-top:7px;"><img src="<?php bloginfo('template_directory'); ?>/img/46_solo_linkedin_B_100px.png" width="28" height="28" align="absmiddle"> <span id="details-linkedin"></span></li>
<li id="li-website" style="padding-top:7px;"><img src="<?php bloginfo('template_directory'); ?>/img/44_solo_link_B_100px.png" width="28" height="28" align="absmiddle"> <span id="details-website"></span></li>
</ul>
</div>
</div>
</div>
<div class="faculty-block last">
<?php $contador = 0;
while ( have_posts() ) : the_post(); ?>
<div class="faculty-item mobile">
<div class="only-mobile">
<div class="mobile-photo">
<?php the_post_thumbnail( 'custom-faculty' ); ?>
</div>
</div>
<div class="non-mobile">
<center><h3><?php the_title(); ?></h3></center>
<div align="center" id="mobile-links">
<?php
$twitter = types_render_field("twitter", array("output"=>"raw"));
$facebook = types_render_field("facebook", array("output"=>"raw"));
$linkedin = types_render_field("linkedin", array("output"=>"raw"));
$website = types_render_field("website", array("output"=>"raw"));
?>
<?php if ($twitter != '') { ?><a target="_blank" href="http://twitter.com/<?php echo $twitter ?>"><img class="icon-about" src="<?php bloginfo('template_directory'); ?>/img/47_solo_twitter_B_100px.png" ></a><?php } ?>
<?php if ($facebook != '') { ?><a target="_blank" href="<?php echo $facebook ?>"><img class="icon-about" src="<?php bloginfo('template_directory'); ?>/img/45_solo_face_B_100px.png" ></a><?php } ?>
<?php if ($linkedin != '') { ?><a target="_blank" href="<?php echo $linkedin ?>"><img class="icon-about" src="<?php bloginfo('template_directory'); ?>/img/46_solo_linkedin_B_100px.png" ></a><?php } ?>
<?php if ($website != '') { ?><a target="_blank" href="<?php echo $website ?>"><img class="icon-about" src="<?php bloginfo('template_directory'); ?>/img/44_solo_link_B_100px.png" ></a><?php } ?>
</div>
<p align="left"><?php echo types_render_field("minibio", array("output"=>"raw")); ?></p>
<p style="margin-top:-20px;"><a href="<?php echo get_permalink(); ?>"><?php _e('Read more >', 'footankle'); ?></a></p>
<?php if ($contador < 2) { ?><BR><BR><?php };
$contador = $contador + 1; ?>
</div>
</div>
<?php endwhile; ?>
</div>
<header style="margin-top:-30px" class="entry-header"><h1 class="foot"><?php _e('Faculty','footankle'); ?></h1></header>
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array( 'post_type' => 'profesor', 'posts_per_page' => 50, 'paged' => $paged );
$wp_query = new WP_Query($args);
$myCounter = 0;
echo '<div class="faculty-block">';
while ( have_posts() ) : the_post(); ?>
<div class="boxgrid2 captionfull">
<!--header class="entry-header"-->
<?php the_post_thumbnail( 'custom-faculty' ); ?>
<!--/header--><!-- .entry-header -->
<!--div class="entry-content" style="padding-left:10px; padding-right:10px;">
<?php the_content() ?>
</div-->
<div class="cover boxcaption">
<?php
$texto = types_render_field("minibio", array("output"=>"raw"));
$twitter = types_render_field("twitter", array("output"=>"raw"));
$facebook = types_render_field("facebook", array("output"=>"raw"));
$linkedin = types_render_field("linkedin", array("output"=>"raw"));
$website = types_render_field("website", array("output"=>"raw"));
$theurl = get_permalink();
?>
<a href class="faculty-name" theurl="<?php echo $theurl ?>" nombre="<?php echo get_the_title(); ?>" texto="<?php echo $texto; ?>" twitter="<?php echo $twitter; ?>" facebook="<?php echo $facebook; ?>" linkedin="<?php echo $linkedin; ?>" website="<?php echo $website; ?>">
<?php the_title( '<h1 class="entry-title faculty">', '</h1>' ); ?>
</a>
<?php if ($twitter != '') { ?>
<a class="slide-social-link" target="_blank" href="http://twitter.com/<?php echo $twitter ?>"><img class="slide-icon" src="<?php bloginfo('template_directory'); ?>/img/43_twitter_circle_G_100px.png" width="48" height="48"></a>
<?php } ?>
<?php if ($facebook != '') { ?>
<a class="slide-social-link" target="_blank" href="<?php echo $facebook ?>"><img class="slide-icon" src="<?php bloginfo('template_directory'); ?>/img/41_facebook_circle_G_100px.png" width="48" height="48"></a>
<?php } ?>
<?php if ($linkedin != '') { ?>
<a class="slide-social-link" target="_blank" href="<?php echo $linkedin ?>"><img class="slide-icon" src="<?php bloginfo('template_directory'); ?>/img/42_linkedin_circle_G_100px.png" width="48" height="48"></a>
<?php } ?>
</div>
</div>
<?php endwhile;
echo '</div><BR><BR>';
?>
<!-- then the pagination links -->
</main><!-- #main -->
</div><!-- #primary -->
<script type="text/javascript">
$(document).ready(function(){
$('.faculty-details').click(function(){
$('.faculty-details').hide();
$('.details-box').hide();
//$(this).hide();
});
$('.faculty-name').click(function() {
var nombre = $(this).attr('nombre');
var texto = $(this).attr('texto');
var twitter = $(this).attr('twitter');
var facebook = $(this).attr('facebook');
var linkedin = $(this).attr('linkedin');
var website = $(this).attr('website');
var theurl = $(this).attr('theurl');
$('#details-name').html( nombre );
$('#details-text').html( texto );
if (twitter != '') {
$('#details-twitter').html( '<a target="_blank" href="http://twitter.com/' + twitter + '" class="details-social twitter">Twitter</a>' );
$('#li-twitter').show();
}
else {
$('#details-twitter').html('');
$('#li-twitter').hide();
}
if (facebook != '') {
$('#details-facebook').html( '<a target="_blank" href="' + facebook + '" class="details-social facebook">Facebook</a>' );
$('#li-facebook').show();
}
else {
$('#details-facebook').html('');
$('#li-facebook').hide();
}
if (linkedin != '') {
$('#details-linkedin').html( '<a target="_blank" href="' + linkedin + '" class="details-social twitter">LinkedIn</a>' );
$('#li-linkedin').show();
}
else {
$('#details-linkedin').html( '');
$('#li-linkedin').hide();
}
if (website != '') {
$('#details-website').html( '<a target="_blank" href="' + website + '" class="details-social twitter">Website</a>' );
$('#li-website').show();
}
else {
$('#details-website').html( '');
$('#li-website').hide();
}
$('#detail-permalink').attr("href", theurl);
$('.faculty-details').show();
$('.details-box').css( "display", "inline-block" );
return false;
});
//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
//Vertical Sliding
$('.boxgrid.slidedown').hover(function(){
$(".cover", this).stop().animate({top:'-260px'},{queue:false,duration:300});
}, function() {
$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});
});
//Horizontal Sliding
$('.boxgrid.slideright').hover(function(){
$(".cover", this).stop().animate({left:'325px'},{queue:false,duration:300});
}, function() {
$(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});
});
//Diagnal Sliding
$('.boxgrid.thecombo').hover(function(){
$(".cover", this).stop().animate({top:'260px', left:'325px'},{queue:false,duration:300});
}, function() {
$(".cover", this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
});
//Partial Sliding (Only show some of background)
$('.boxgrid.peek').hover(function(){
$(".cover", this).stop().animate({top:'90px'},{queue:false,duration:160});
}, function() {
$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
});
//Full Caption Sliding (Hidden to Visible)
$('.boxgrid.captionfull').hover(function(){
$(".cover", this).stop().animate({top:'0vw'},{queue:false,duration:160});
}, function() {
$(".cover", this).stop().animate({top:'194px'},{queue:false,duration:160});
});
//Caption Sliding (Partially Hidden to Visible)
$('.boxgrid.caption').hover(function(){
$(".cover", this).stop().animate({top:'160px'},{queue:false,duration:160});
}, function() {
$(".cover", this).stop().animate({top:'220px'},{queue:false,duration:160});
});
//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
//Vertical Sliding
$('.boxgrid2.slidedown').hover(function(){
$(".cover", this).stop().animate({top:'-260px'},{queue:false,duration:300});
}, function() {
$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});
});
//Horizontal Sliding
$('.boxgrid2.slideright').hover(function(){
$(".cover", this).stop().animate({left:'325px'},{queue:false,duration:300});
}, function() {
$(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});
});
//Diagnal Sliding
$('.boxgrid2.thecombo').hover(function(){
$(".cover", this).stop().animate({top:'260px', left:'325px'},{queue:false,duration:300});
}, function() {
$(".cover", this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
});
//Partial Sliding (Only show some of background)
$('.boxgrid2.peek').hover(function(){
$(".cover", this).stop().animate({top:'90px'},{queue:false,duration:160});
}, function() {
$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
});
//Full Caption Sliding (Hidden to Visible)
$('.boxgrid2.captionfull').hover(function(){
$(".cover", this).stop().animate({top:'96px'},{queue:false,duration:160});
}, function() {
$(".cover", this).stop().animate({top:'193px'},{queue:false,duration:160});
});
//Caption Sliding (Partially Hidden to Visible)
$('.boxgrid2.caption').hover(function(){
$(".cover", this).stop().animate({top:'160px'},{queue:false,duration:160});
}, function() {
$(".cover", this).stop().animate({top:'220px'},{queue:false,duration:160});
});
});
</script>
<?php get_footer(); ?>