2015-07-23, 20:25:15
This is an update of Mr. Alexey REHOV created i18n_lang_menu plugin version.
I think that multilinguages sites building is necessary enough. But this plugin seemed to me incomplete, and Mr. Alexey this project will not engage in improvement, so I tried to carry out the improvement itself.
Below follows a list of changes:
In order to display the menu language on your site the following code must be inserted into the theme template:
Or, if you want later rearrange the required menu using CSS rendering, use the DIV element. Eg. as follows:
Installation instructions:
Download the archive and unzip it to the plugins folder. Activate the plugin. You can edit some settings on Pages tab with button Edit language menu.
Plugin changed to v0.3.
Changes in this version:
Download the archive and unzip it to the plugins folder. Edit some settings on Pages tab with button Edit language menu.
Language menu built into Bootstrap Navbar with 3D flags may look like this:
Download version 0.3
I think that multilinguages sites building is necessary enough. But this plugin seemed to me incomplete, and Mr. Alexey this project will not engage in improvement, so I tried to carry out the improvement itself.
Below follows a list of changes:
- Installed Languages Country flags showing, with the ability to change the display properties (display only text link, display the country's flag image only, flag with text links in front of image and the flag with the text link below the image).
- Ability to edit the flags image dimensions.
- Ability to select the menu positioning (horizontal or vertical layout).
- Plugin generates all the necessary <ul> and <li> elements.
- i18n multilinguage supporting. Plugin comes with 3 ready to use language files: English, Lithuanian and Russian.
In order to display the menu language on your site the following code must be inserted into the theme template:
Code:
<?php get_i18n_lang_menu(); ?>
Code:
<div class="langmenu-outer"><?php get_i18n_lang_menu(); ?></div>
Download the archive and unzip it to the plugins folder. Activate the plugin. You can edit some settings on Pages tab with button Edit language menu.
Plugin changed to v0.3.
Changes in this version:
- Improved plugins source code of some functions.
- Added a new opportunity - language elements rendering sorting. Introduced a new setting field "Weight".
- Added a new opportunity - menu integration with Bootstrap Navbar navigation element (in settings region "Menu positioning").
- Added a new opportunity - language menu icon style selection, included a new set of 3D flags (in settings region "Icon style").
Download the archive and unzip it to the plugins folder. Edit some settings on Pages tab with button Edit language menu.
Language menu built into Bootstrap Navbar with 3D flags may look like this:
Download version 0.3