__( 'Facebook', 'colormag' ),
'colormag_social_twitter' => __( 'Twitter', 'colormag' ),
'colormag_social_googleplus' => __( 'Google-Plus' , 'colormag' ),
'colormag_social_instagram' => __( 'Instagram', 'colormag' ),
'colormag_social_pinterest' => __( 'Pinterest', 'colormag' ),
'colormag_social_youtube' => __( 'YouTube', 'colormag' )
);
?>
$value ) {
$link = get_theme_mod( $key , '' );
if ( !empty( $link ) ) {
if ( get_theme_mod( $key.'_checkbox', 0 ) == 1 ) { $new_tab = 'target="_blank"'; } else { $new_tab = ''; }
$colormag_links_output .=
' ';
}
$i++;
}
echo $colormag_links_output;
?>
';
}
$output .= '';
if ( get_theme_mod( 'colormag_header_image_link', 0 ) == 1 ) {
$output .= '';
}
}
return $output;
}
function colormag_header_image_markup_filter() {
add_filter( 'get_header_image_tag', 'colormag_header_image_markup', 10, 3 );
}
add_action( 'colormag_header_image_markup_render','colormag_header_image_markup_filter' );
/****************************************************************************************/
if ( ! function_exists( 'colormag_render_header_image' ) ) :
/**
* Shows the small info text on top header part
*/
function colormag_render_header_image() {
if ( function_exists( 'the_custom_header_markup' ) ) {
do_action( 'colormag_header_image_markup_render' );
the_custom_header_markup();
} else {
$header_image = get_header_image();
if( ! empty( $header_image ) ) {
if ( get_theme_mod( 'colormag_header_image_link', 0 ) == 1 ) { ?>