Skip to content
Snippets Groups Projects
Unverified Commit 211537f6 authored by David Beniamine's avatar David Beniamine
Browse files

framasphere done right

parent 9abd1d6d
Branches
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<p><?php echo html_meta('contact'); ?></p> <p><?php echo html_meta('contact'); ?></p>
<p><?php echo html_meta('site_licence'); ?></p> <p><?php echo html_meta('site_licence'); ?></p>
<p><?php echo html_meta('legal_informations'); ?></p> <p><?php echo html_meta('legal_informations'); ?></p>
<p><?php echo html_meta('w3c'); ?></p>
</div> </div>
<div class="even"> <div class="even">
<ul class="navigation"> <ul class="navigation">
...@@ -11,8 +12,8 @@ ...@@ -11,8 +12,8 @@
<?php if(site_meta('github', '')): ?> <?php if(site_meta('github', '')): ?>
<li><a href="<?php echo social_url('github'); ?>"><?php echo social_logo('github').site_meta('github', ''); ?></a></li> <li><a href="<?php echo social_url('github'); ?>"><?php echo social_logo('github').site_meta('github', ''); ?></a></li>
<?php endif; ?> <?php endif; ?>
<?php if(site_meta('diaspora', '')): ?> <?php if(site_meta('framasphere', '')): ?>
<li><a href="<?php echo social_url('framaphere'); ?>"><?php echo social_logo('diaspora').site_meta('diaspora', ''); ?></a></li> <li><a href="<?php echo social_url('framasphere'); ?>"><?php echo social_logo('framasphere').site_meta('framasphere', ''); ?></a></li>
<?php endif; ?> <?php endif; ?>
<?php if(site_meta('facebook', '')): ?> <?php if(site_meta('facebook', '')): ?>
<li><a href="<?php echo social_url('facebook'); ?>"><?php echo social_logo('facebook').site_meta('facebook', ''); ?></a></li> <li><a href="<?php echo social_url('facebook'); ?>"><?php echo social_logo('facebook').site_meta('facebook', ''); ?></a></li>
...@@ -27,7 +28,6 @@ ...@@ -27,7 +28,6 @@
<li><a href="<?php echo base_url(); ?>" title="Retour &agrave; l'accueil.">Accueil</a></li> <li><a href="<?php echo base_url(); ?>" title="Retour &agrave; l'accueil.">Accueil</a></li>
</ul> </ul>
<p><?php echo html_meta('w3c'); ?></p>
</div> </div>
</footer> </footer>
</div> </div>
......
...@@ -67,11 +67,16 @@ function html_meta($key) { ...@@ -67,11 +67,16 @@ function html_meta($key) {
function social_url($network) { function social_url($network) {
$NETWORKS_URLS = array ( $NETWORKS_URLS = array (
'github' => 'https://github.com/', 'github' => 'https://github.com/',
'framasphere' => 'https://framasphere.org/', 'framasphere' => 'https://framasphere.org/people/',
'facebook' => 'https://facebook.com/', 'facebook' => 'https://facebook.com/',
'twitter' => 'https://twitter.com/', 'twitter' => 'https://twitter.com/',
); );
return $NETWORKS_URLS[$network].site_meta($network, ''); if ($network == "framasphere"){
$account = site_meta($network.'_id', '');
}else{
$account = site_meta($network, '');
}
return $NETWORKS_URLS[$network].$account;
} }
function social_logo($network) { function social_logo($network) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment