add github, etc. icons to speakers
This commit is contained in:
parent
fc969b0296
commit
dfdde8441d
|
@ -569,8 +569,6 @@ footer .content li a {
|
|||
margin: 0 1em 2em 0;
|
||||
}
|
||||
.speaker .icons {
|
||||
font-size: 0.8em;
|
||||
width: 122px;
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
margin: 0 0 0 0.1em;
|
||||
|
@ -667,6 +665,11 @@ a.button:hover { opacity: 0.8; }
|
|||
display: block;
|
||||
}
|
||||
|
||||
.member .icons a {
|
||||
display: inline-block;
|
||||
margin: 0 0.3em 0 0;
|
||||
}
|
||||
|
||||
/* from the old site */
|
||||
.program a:visited {
|
||||
color:#004B91;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
}
|
||||
|
||||
$spk = pg_query("select
|
||||
distinct sp.user_id, sp.id, sp.first_name, sp.last_name, e.language, picture, biography, github, twitter
|
||||
distinct sp.user_id, sp.id, sp.first_name, sp.last_name, e.language, picture, biography, github, twitter, public_email
|
||||
from
|
||||
speaker_profiles sp join events_speaker_profiles esp on sp.id=esp.speaker_profile_id
|
||||
join events e on esp.event_id=e.id
|
||||
|
@ -62,6 +62,12 @@
|
|||
add_post_meta($postid_en, '_thumbnail_id', $attid);
|
||||
pll_set_post_language($postid_en, 'en');
|
||||
|
||||
foreach (array($postid, $postid_en) as $v) {
|
||||
if (strlen($row->github)>1) add_post_meta ($v, 'github', $row->github);
|
||||
if (strlen($row->twitter)>1) add_post_meta ($v, 'twitter', $row->twitter);
|
||||
if (strlen($row->public_email)>1) add_post_meta ($v, 'public_email', $row->public_email);
|
||||
}
|
||||
|
||||
pll_save_post_translations(array($postid => 'bg', $postid_en => '$en'));
|
||||
|
||||
}
|
||||
|
|
|
@ -35,8 +35,19 @@ if ( preg_match('/^(schedule|programa|speakers|halls)/', $pagename) ) {
|
|||
<?php
|
||||
}
|
||||
?>
|
||||
<br>
|
||||
</a>
|
||||
<div class="icons">
|
||||
<?php
|
||||
$custom = get_post_custom();
|
||||
if (!empty($custom['twitter'])) echo '<a href="https://twitter.com/'.$custom['twitter'][0].'"><i class="fa fa-twitter"></i></a>';
|
||||
if (!empty($custom['github'])) echo '<a href="https://github.com/'.$custom['github'][0].'"><i class="fa fa-github"></i></a>';
|
||||
if (!empty($custom['public_email'])) echo '<a href="mailto:'.$custom['public_email'][0].'"><i class="fa fa-envelope"></i></a>';
|
||||
?>
|
||||
</div>
|
||||
|
||||
<a href="#<?php the_title(); ?>">
|
||||
<?php the_title(); ?>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
<?php
|
||||
|
@ -64,6 +75,15 @@ if ( preg_match('/^(schedule|programa|speakers|halls)/', $pagename) ) {
|
|||
}
|
||||
?>
|
||||
<h3><?php the_title(); ?></h3>
|
||||
<div class="icons">
|
||||
<?php
|
||||
$custom = get_post_custom();
|
||||
if (!empty($custom['twitter'])) echo '<a href="https://twitter.com/'.$custom['twitter'][0].'"><i class="fa fa-twitter"></i></a>';
|
||||
if (!empty($custom['github'])) echo '<a href="https://github.com/'.$custom['github'][0].'"><i class="fa fa-github"></i></a>';
|
||||
if (!empty($custom['public_email'])) echo '<a href="mailto:'.$custom['public_email'][0].'"><i class="fa fa-envelope"></i></a>';
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
the_content();
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue