Logo y estilos para enlazar con GitLab desde el sitio
This commit is contained in:
parent
0a17edd515
commit
54411d0d56
2 changed files with 31 additions and 7 deletions
|
@ -111,17 +111,19 @@ function avia_change_tag_page_layout( $layout, $context ) {
|
|||
}
|
||||
|
||||
/*
|
||||
* Register new icon as a theme icon fot Github.
|
||||
* Register new icons as a theme icons fot GitHub and GitLab.
|
||||
* See https://kriesi.at/documentation/enfold/custom-social-icons/
|
||||
*/
|
||||
add_filter( 'avf_default_icons', 'avia_add_custom_icon', 10, 1 );
|
||||
function avia_add_custom_icon( $icons ) {
|
||||
$icons['github'] = array( 'font' =>'fontello', 'icon' => 'uf09b' );
|
||||
$icons['gitlab'] = array( 'font' =>'fontello', 'icon' => 'uf296' );
|
||||
return $icons;
|
||||
}
|
||||
add_filter( 'avf_social_icons_options', 'avia_add_custom_social_icon', 10, 1 );
|
||||
function avia_add_custom_social_icon( $icons ) {
|
||||
$icons['GitHub'] = 'github';
|
||||
$icons['GitLab'] = 'gitlab';
|
||||
return $icons;
|
||||
}
|
||||
|
||||
|
@ -588,10 +590,17 @@ function avia_remove_debug() {
|
|||
add_filter( 'w3tc_can_print_comment', '__return_false', 10, 1 );
|
||||
|
||||
/*
|
||||
* Adding a dynamic current year to socket.
|
||||
* Adding legal information in socket using a shortcode.
|
||||
* See http://www.kriesi.at/support/topic/how-do-i-add-a-dynamic-current-year-to-socket
|
||||
*/
|
||||
add_shortcode( 'y', 'current_year_func' );
|
||||
function current_year_func( $atts ) {
|
||||
return date( 'Y' );
|
||||
add_shortcode( 'infolegal', 'infolegal_func' );
|
||||
function infolegal_func( $atts ) {
|
||||
$legal = '<div id="legal">';
|
||||
$legal .= '<span class="legal-notice"><a href="/legal">Aviso legal</a></span>';
|
||||
$legal .= '<span class="legal-privacy"> | <a href="/legal/politica-de-privacidad">Política de privacidad</a></span>';
|
||||
$legal .= '<span class="legal-cookies"> | <a href="/legal/politica-de-cookies">Uso de cookies</a></span>';
|
||||
$legal .= '<span class="legal-terms"> | <a href="/legal/terminos-de-uso">Términos de uso</a></span>';
|
||||
$legal .= '</div> ';
|
||||
$legal .= '2009-' . date( 'Y' ) . ' © manuel.cillero.es';
|
||||
return $legal;
|
||||
}
|
||||
|
|
|
@ -597,7 +597,17 @@ a.dpe-flexible-photos-link:hover {
|
|||
}
|
||||
#socket .container {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 2px;
|
||||
padding-bottom: 3.6em;
|
||||
}
|
||||
#legal {
|
||||
position: absolute;
|
||||
margin-top: 2.8em;
|
||||
line-height: 1.6em;
|
||||
}
|
||||
#legal a {
|
||||
color: #ffbf00;
|
||||
font-weight: 700;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
|
||||
|
@ -642,7 +652,8 @@ a.dpe-flexible-photos-link:hover {
|
|||
.av-share-box ul li a {
|
||||
font-size: 18px;
|
||||
}
|
||||
#top #wrap_all .av-social-link-github:hover a {
|
||||
#top #wrap_all .av-social-link-github:hover a,
|
||||
#top #wrap_all .av-social-link-gitlab:hover a {
|
||||
color: #fff;
|
||||
background-color: #bd2c00;
|
||||
}
|
||||
|
@ -751,4 +762,8 @@ a.dpe-flexible-photos-link:hover {
|
|||
padding-left: 10px;
|
||||
background-position: 6px 28px;
|
||||
}
|
||||
/* Hide link about use of cookies */
|
||||
#legal span.legal-cookies {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue