internationalization add-on : changing flag image size
Permalink 1 user found helpful
Hi
I'm using the internationalization add-on, and I would like to change the css properties (size , position ...) of the flag icons in the template . where can i find the file that edits them?
thanks in advance
diana
I'm using the internationalization add-on, and I would like to change the css properties (size , position ...) of the flag icons in the template . where can i find the file that edits them?
thanks in advance
diana
anyone?
The flag images are in
multilingual/images/flags/
The size is controlled in
multilingual/helpers/interface/flag.php
CSS for the block is defined in
multilingual/blocks/switch_language/templates/flags/view.css
Hope that helps
Patrick
multilingual/images/flags/
The size is controlled in
multilingual/helpers/interface/flag.php
CSS for the block is defined in
multilingual/blocks/switch_language/templates/flags/view.css
Hope that helps
Patrick
Hi! thanks for answering... where exactly in multilingual/helpers/interface/flag.php should I place the size? because it's not already there:
defined('C5_EXECUTE') or die("Access Denied."); Loader::model('section', 'multilingual'); class InterfaceFlagHelper { /** * Returns a flag for a passed country/region */ public function getFlagIcon($region, $filePathOnly = false) { if ($region) { $region = strtolower($region); if (file_exists(DIR_BASE . '/' . DIRNAME_IMAGES . '/' . DIRNAME_IMAGES_LANGUAGES . '/' . $region . '.png')) { $icon = REL_DIR_FILES_LANGUAGE_ICONS . '/' . $region . '.png'; } else if (file_exists(DIR_PACKAGES_CORE . '/multilingual/' . DIRNAME_IMAGES . '/' . DIRNAME_IMAGES_LANGUAGES . '/' . $region . '.png')) { $icon = ASSETS_URL . '/' . DIRNAME_PACKAGES . '/multilingual/' . DIRNAME_IMAGES . '/' . DIRNAME_IMAGES_LANGUAGES . '/' . $region . '.png'; } else { $icon = DIR_REL . '/' . DIRNAME_PACKAGES . '/multilingual/' . DIRNAME_IMAGES . '/' . DIRNAME_IMAGES_LANGUAGES . '/' . $region . '.png';
Viewing 15 lines of 37 lines. View entire code block.
Try to adjust this line
to the actual width and height you gave your new icon images.
return '<img class="ccm-region-flag" id="ccm-region-flag-' . $region . '" width="16" height="16" src="' . $icon . '" alt="' . $region . '" />';
to the actual width and height you gave your new icon images.
i can't believe i didn't see that! :D thankyou so much!