diff --git a/enfold-cille/functions.php b/enfold-cille/functions.php index be47bfa..fedd7d7 100644 --- a/enfold-cille/functions.php +++ b/enfold-cille/functions.php @@ -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 = ' '; + $legal .= '2009-' . date( 'Y' ) . ' © manuel.cillero.es'; + return $legal; } diff --git a/enfold-cille/style.css b/enfold-cille/style.css index fffdf0e..a251dca 100644 --- a/enfold-cille/style.css +++ b/enfold-cille/style.css @@ -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; + } }