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 = '