Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="language">
- <ul>
- <?php
- // translation options ##
- if ( function_exists ( 'qtrans_generateLanguageSelectCode' ) ) {
- #echo qtrans_generateLanguageSelectCode('text');
- global $q_config;
- $language_count = 0;
- foreach(qtrans_getSortedLanguages() as $language ) {
- // highlight ##
- $classes = array('lang-'.$language);
- if( $language == $q_config['language'] ) {
- $classes[] = 'active';
- }
- ?>
- <li class="<?php echo implode( ' ', $classes); ?>">
- <?php
- // add opening pipe ##
- if ( $language_count == 0 ) {
- #echo 'language'. $language;
- //echo '|';
- }
- $url = qtrans_convertURL('',$language);
- ?>
- <a href="<?php echo $url; ?>" hreflang="<?php echo $language; ?>" title="<?php echo $q_config['language_name'][$language]; ?>">
- <?php echo $q_config['language_name'][$language] ?></a>
- </li>
- <?php
- $language_count ++;
- } // endforeach;
- }
- ?>
- </ul>
- </div>
- <?php
- /* css */
- /*
- #header .right .language {
- float: right;
- width: 90px;
- clear: both;
- height: 49px;
- position: relative;
- z-index: 3;
- }
- #header .right .language ul {
- float: right;
- width: 72px;
- text-align: right;
- list-style-type: none;
- padding-top: 15px;
- }
- #header .right .language ul li {
- float: left;
- background: url("images/lan_bg.gif") no-repeat 0 0;
- text-align: center;
- margin: 0 4px 0 0;
- width: 27px;
- height: 17px;
- overflow: hidden;
- }
- #header .right .language ul li a {
- color: #fff;
- font-size: 0.7em;
- text-decoration: none;
- padding: 2px 7px 2px 7px;
- float: left;
- display: block;
- }
- #header .right .language ul li a:hover {
- color: #feec9c;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement