Contents |
pagelines_site_logo
If you want to have a different logo based on the language a reader will be viewing the site from then the following will help provide it.
'../wp-content/themes/earlymusicbesalu/images/logo-eng-2012.png', 'es' => '../wp-content/themes/earlymusicbesalu/images/logo-es-2012.png', 'ca' => '../wp-content/themes/earlymusicbesalu/images/logo-ca-2012.png', 'fr' => '../wp-content/themes/earlymusicbesalu/images/logo-fr-2012.png', ); /** * Select a logo from the image array. */ $image = sprintf( 'src="%s', $images[ ICL_LANGUAGE_CODE ] ); /** * Now we replace the actual logo with our new one. */ $logo = preg_replace( '#src="[^"]*#', $image, $logo ); /** * Finally return the adjusted logo. */ return $logo; } ?>