meloniq / language-bar-flags Goto Github PK
View Code? Open in Web Editor NEWDisplays bar with configurable language flags to other language versions of Your website.
Home Page: https://wordpress.org/plugins/language-bar-flags/
Displays bar with configurable language flags to other language versions of Your website.
Home Page: https://wordpress.org/plugins/language-bar-flags/
Suggested by Halil Yildirim:
Is it possible to let the bar disappear when I scroll down? and when I scroll up it should come back.
Potential solution:
$(window).scroll( function() {
if ( $(document).scrollTop() > 200 ) {
$('#langbf_bar').hide();
} else {
$('#langbf_bar').show();
}
} );
Add widget with flags
Add ability to sort countries from the backend - priority arg?!
Dario I.
Is it possible to add all Flags in the Admin Bar? Because i have Buddypress on the Site.
Add option to display bar in the bottom of page
Reply to customer request:
In CSS You need to change parameter for "#langbf_bar" from "top:0" to "bottom:0"
in "langbf_load_css()" function control "margin-bottom" instead of "margin-top"
in "langbf_load_js()" function change parameter from 'bottom center" to "top center"
and rotate "black_arrow_bottom.png" image
Code attached below
/**
* Print css in footer
*/
function langbf_load_css() {
if(get_option('langbf_active') == 'yes') {
if( is_admin_bar_showing() ) {
$margin_top = 26;
$margin_bottom = 26;
$top = 0;
$bottom = 0;
} else {
$margin_top = 0;
$margin_bottom = 26;
$top = 0;
$bottom = 0;
}
?>
<style type="text/css">
html {
margin-top: <?php echo $margin_top ?>px !important;
margin-bottom: <?php echo $margin_bottom ?>px !important;
}
* html body {
margin-top: <?php echo $margin_top ?>px !important;
margin-bottom: <?php echo $margin_bottom ?>px !important;
}
#langbf_bar {
bottom: <?php echo $bottom ?>px !important;
}
</style>
<?php
}
}
add_action('wp_footer', 'langbf_load_css');
/**
* Print css in footer
*/
function langbf_load_js() {
if(get_option('langbf_active') == 'yes') {
?>
<script type="text/javascript">
// <![CDATA[
jQuery(document).ready(function() {
jQuery("#langbf_bar a[title]").tooltip({
offset: [10, 0],
position: 'top center',
effect: 'slide'
});
});
// ]]>
</script>
<?php
}
}
add_action('wp_footer', 'langbf_load_js');
Reported in: http://wordpress.org/support/topic/switch-between-pages
Eg. if user is on 'about' page, the 'about' path should be added to the language url
Add:
Add feature to change country name without modifing plugin core files
As per Wietse Smit request
Is it possible to have a new flag to enter in the plugin ? The flag of Friesland? A province of the Netherlands.
Add/prepare flags for missed countries, list of countries prepared in countries.php
Add color picker / options to style bar without touching css file
Plugin contain outdated flag of Myanmar - reported by Richard Dare
New flag: https://commons.wikimedia.org/wiki/File:Flag_of_Myanmar.svg
Add action hooks to the bar, before and after outputing flags
Hello,
Is there a way for me to add more options like login for sample to that bar?
since I took away the main wp bar and replaced it for this one it will nice if I can > add more options there as well.Options for me to add there next to the flags
- Social Network pages
a. Facebook
b. Twitters
c. Google+- LOG IN
Please take a look at the image I did for reference of what I will like to accomplish using your awesome plugin.
http://i1145.photobucket.com/albums/o520/ASolis11/TOP-BAR_zps5c791729.png
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.