Hola Javier.
Lo que vamos a hacer es añadir el enlace de Youtube pero sin quitar el de Pinterest. Para que no aparezca Pinterest tan solo deja el campo de la url en blanco.
- Lo primero es añadir en el Footer Blocks del tema la opción de añadir una url de Youtube. Para ello añadiremos lo siguiente en el archivo settings.php (sobre la linea 257):
$name = 'theme_eguru/ytburl';
$title = get_string('ytburl', 'theme_eguru');
$description = get_string('ytburldesc', 'theme_eguru');
$default = get_string('ytburl_default', 'theme_eguru');
$setting = new admin_setting_configtext($name, $title, $description, $default);
$temp->add($setting);
- Ahora añadiremos las cadenas de texto en inglés y español en lang/en/theme_eguru.php y lang/es/theme_eguru.php (se añaden las que están en negrita)
$string['medianame1'] = 'Facebook';
$string['medianame2'] = 'Twitter';
$string['medianame3'] = 'Google Plus';
$string['medianame4'] = 'Pinterest';
$string['medianame5'] = 'Youtube';
$string['mediaicon1'] = 'fa-facebook-f';
$string['mediaicon2'] = 'fa-twitter';
$string['mediaicon3'] = 'fa-google-plus';
$string['mediaicon4'] = 'fa-pinterest-p';
$string['mediaicon5'] = 'fa-youtube';
Esta la añadimos en el idioma español
$string['pinurl'] = 'Pinterest';
$string['pinurl_default'] = 'https://in.pinterest.com/yourpinterestname/';
$string['pinurldesc'] = 'La url Pinterest de su organización.';
$string['ytburl'] = 'Youtube';
$string['ytburl_default'] = 'https://www.youtube.com/youryoutubename/';
$string['ytburldesc'] = 'La url Youtube de su organización.';
Y esta en el idioma inglés
$string['pinurl'] = 'Pinterest';
$string['pinurl_default'] = 'https://in.pinterest.com/yourpinterestname/';
$string['pinurldesc'] = 'The Pinterest url of your organisation.';
$string['ytburl'] = 'Youtube';
$string['ytburl_default'] = 'https://www.youtube.com/youryoutubename/';
$string['ytburldesc'] = 'The Youtube url of your organisation.';
- Ahora vamos a hacer que se muestre en el pie de página. Para ello vamos al archivo layout/includes/footer.php (como antes, se añaden las que están en negrita)
Sobre la linea 42
$gpurl = theme_eguru_get_setting('gpurl');
$gpurl = trim($gpurl);
$ytburl = theme_eguru_get_setting('ytburl');
$ytburl = trim($ytburl);
Sobre la linea 130
<?php
endif;
?>
<?php if(!empty($ytburl)): ?>
<li class="smedia-05">
<a href="<?php echo $ytburl; ?>" target="_blank">
<span class="media-icon">
<i class="fa <?php echo get_string('mediaicon5', 'theme_eguru'); ?>"></i>
</span>
<span class="media-name"><?php echo get_string('medianame5', 'theme_eguru'); ?></span>
</a>
</li>
<?php
endif;
?>
</ul>
</div>
- Y por último vamos a añadir el estilo del icono en style/eguru.css (sobre la linea 967)
#footer .social-media > ul > li > a > .media-icon > .fa {
vertical-align: middle;
font-size: 1.3em; /*Hacemos los iconos un poco más grandes */
}
#footer .social-media > ul > .smedia-01 > a > .media-icon {
color: #4a6ea9
}
#footer .social-media > ul > .smedia-02 > a > .media-icon {
color: #55acee
}
#footer .social-media > ul > .smedia-03 > a > .media-icon {
color: #d44132
}
#footer .social-media > ul > .smedia-04 > a > .media-icon {
color: #bd081c
}
#footer .social-media > ul > .smedia-05 > a > .media-icon {
color: #cc181e
}
Recuerda
purgar las cachés para poder ver los cambios de las cadenas de texto y de la hoja de estilo. Si tienes cualquier problema me lo dices.
Un saludo.