Changeset 1093149
- Timestamp:
- 02/18/2015 08:40:21 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
language-code-selector-mqtranslate/trunk/readme.txt
r1093141 r1093149 35 35 For example: 36 36 37 `add_filter( 'lang-code-selector-content', 'test_lang_code_selector_content' ); ' 38 '' 39 ' function test_lang_code_selector_content( $lang_code ){ ' 40 ' global $q_config;' 41 ' $link_flag_url = dirname(plugins_url()) . '/' . $q_config['flag_location'] . $q_config['flag'][$lang_code];' 42 ' $link_flag = "<img widht=\"18\" height=\"12\" src=\"$link_flag_url\" alt=\"$lang_code\" />";' 43 ' return $lang_code . $link_flag ;' 44 '}' 37 add_filter( 'lang-code-selector-content', 'test_lang_code_selector_content' ); 38 39 function test_lang_code_selector_content( $lang_code ){ 40 global $q_config; 41 $link_flag_url = dirname(plugins_url()) . '/' . $q_config['flag_location'] . $q_config['flag'][$lang_code]; 42 $link_flag = "<img widht=\"18\" height=\"12\" src=\"$link_flag_url\" alt=\"$lang_code\" />"; 43 return $lang_code . $link_flag ; 44 } 45 45 46 46
Note: See TracChangeset
for help on using the changeset viewer.