Skip to content

Commit

Permalink
admin flags position issue #269
Browse files Browse the repository at this point in the history
  • Loading branch information
johnclause committed Oct 1, 2015
1 parent 7c9ba61 commit 0c7e248
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions admin/qtx_admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,12 +430,13 @@ function qtranxf_add_admin_head_js ($enqueue_script=true) {
function qtranxf_add_admin_lang_icons ()
{
global $q_config;
$flag_location = qtranxf_flag_location();
echo '<style type="text/css">'.PHP_EOL;
echo "#wpadminbar #wp-admin-bar-language>div.ab-item{ background-size: 0;";
echo "background-image: url(".qtranxf_flag_location().$q_config['flag'][$q_config['language']].");}\n";
echo 'background-image: url('.$flag_location.$q_config['flag'][$q_config['language']].');}'.PHP_EOL;
foreach($q_config['enabled_languages'] as $language)
{
echo "#wpadminbar ul li#wp-admin-bar-".$language." {background-size: 0; background-image: url(".qtranxf_flag_location().$q_config['flag'][$language].");}\n";
echo '#wpadminbar ul li#wp-admin-bar-'.$language.' {background-size: 0; background-image: url('.$flag_location.$q_config['flag'][$language].'); margin-right: 5px; }'.PHP_EOL;
}
echo '</style>'.PHP_EOL;
}
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ Read [migration instructions](https://qtranslatexteam.wordpress.com/migration/ "
* Enhancement: integration with plugin [bbPress](https://wordpress.org/plugins/bbpress/) started, file `./i18n-config/plugins/bbpress/i18n-config.json`.
* Enhancement: integration with theme [WPEX Elegant](https://themetix.com/wpex-elegant/) started, file `./i18n-config/themes/wpex-elegant/i18n-config.json`.
* Enhancement: integration of WP Widget "Text" is enabled: [WP Issue](https://wordpress.org/support/topic/widget-text-translation-ability).
* Fix: position of flags in admin menu: [Issue #269](https://github.com/qTranslate-Team/qtranslate-x/issues/269).

### 3.4.5.2 ###
* Improvement: admin configuration loading is moved to filter 'plugins_loaded', search for function `qtranxf_admin_load` to see the change.
Expand Down

0 comments on commit 0c7e248

Please sign in to comment.