Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $flags_dir = get_bloginfo('template_directory');
- $flags_dir .= '/images/flags/';
- foreach(array_reverse($gs, true) as $key=>$val){
- $flag_icon = $flags_dir . $key . '.png';
- if ( url_exists( $flag_icon )):
- if ($val['current']) {
- $flag_icon = '<img src="'.$flag_icon.'" style="float:right;margin:2px;padding:1px;border:1px solid #021a40;background-color:#ff0">';
- }
- else
- {
- $flag_icon = '<img src="'.$flag_icon.'" style="float:right;margin:2px">';
- }
- endif;
- $html .= '<a href="'.$val['url'].'">'.$flag_icon.'</a> ';
- }
- echo $html;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement