<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum - Topic: WPML Language Selector in Shoutbox Header</title>
		<link>http://www.kriesi.at/support/topic/wpml-language-selector-in-shoutbox-header</link>
		<description>Support Forum - Topic: WPML Language Selector in Shoutbox Header</description>
		<language>en-US</language>
		<pubDate>Wed, 22 May 2013 10:58:29 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/wpml-language-selector-in-shoutbox-header" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "WPML Language Selector in Shoutbox Header"</title>
			<link>http://www.kriesi.at/support/topic/wpml-language-selector-in-shoutbox-header#post-58214</link>
			<pubDate>Thu, 31 May 2012 06:07:33 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">58214@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Did you try to contact the plugin authors? I see no reason why the theme crashes if you add this code to the html code. You just need to make sure that it's not used as php code between the &#38;lt;?php and ?&#38;gt; marks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Artifactual on "WPML Language Selector in Shoutbox Header"</title>
			<link>http://www.kriesi.at/support/topic/wpml-language-selector-in-shoutbox-header#post-57715</link>
			<pubDate>Sun, 27 May 2012 16:03:18 +0000</pubDate>
			<dc:creator>Artifactual</dc:creator>
			<guid isPermaLink="false">57715@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;When i add this line after the &#38;lt;!-- end social_bookmarks--&#38;gt; the theme stops working i just see the submenu i tried adding it some other places like main menu container as well same issue
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "WPML Language Selector in Shoutbox Header"</title>
			<link>http://www.kriesi.at/support/topic/wpml-language-selector-in-shoutbox-header#post-57537</link>
			<pubDate>Fri, 25 May 2012 12:06:12 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">57537@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi! &#60;/p&#62;
&#60;p&#62; You need to add this line:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div id=&#38;quot;flags_language_selector&#38;quot;&#38;gt;&#38;lt;?php language_selector_flags(); ?&#38;gt;&#38;lt;/div &#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to header.php - I'd add it to the menu container div. &#60;/p&#62;
&#60;p&#62; Regards,&#60;br /&#62;
Peter
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Artifactual on "WPML Language Selector in Shoutbox Header"</title>
			<link>http://www.kriesi.at/support/topic/wpml-language-selector-in-shoutbox-header#post-57303</link>
			<pubDate>Thu, 24 May 2012 03:07:41 +0000</pubDate>
			<dc:creator>Artifactual</dc:creator>
			<guid isPermaLink="false">57303@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Got the data from &#60;a href=&#34;http://inoplugs.com/wpml&#34;&#62;WPML&#60;/a&#62; - &#60;a href=&#34;http://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/?aid=8271&#38;amp;affiliate_key=K9b6X1wRp9SS&#34;&#62;http://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Artifactual on "WPML Language Selector in Shoutbox Header"</title>
			<link>http://www.kriesi.at/support/topic/wpml-language-selector-in-shoutbox-header#post-57300</link>
			<pubDate>Thu, 24 May 2012 03:04:11 +0000</pubDate>
			<dc:creator>Artifactual</dc:creator>
			<guid isPermaLink="false">57300@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;&#60;a href=&#34;http://inoplugs.com/wpml&#34;&#62;WPML&#60;/a&#62; supports only one widget since that is it possible to have the &#60;a href=&#34;http://inoplugs.com/wpml&#34;&#62;WPML&#60;/a&#62; language selector on the header i think in the sub menu instead of the social icons and the rss i got the code from their forum but no idea how to implement &#60;/p&#62;
&#60;p&#62;Language selector with flags only&#60;/p&#62;
&#60;p&#62;Simple function for displaying flags linked to the translations of the current page.&#60;/p&#62;
&#60;p&#62;function language_selector_flags(){&#60;br /&#62;
    $languages = icl_get_languages('skip_missing=0&#38;amp;orderby=code');&#60;br /&#62;
    if(!empty($languages)){&#60;br /&#62;
        foreach($languages as $l){&#60;br /&#62;
            if(!$l['active']) echo '&#60;a href=&#34;'.$l['url'].'&#34;&#62;';&#60;br /&#62;
            echo '&#60;img src=&#34;'.$l['country_flag_url'].'&#34; alt=&#34;'.$l['language_code'].'&#34; /&#62;';&#60;br /&#62;
            if(!$l['active']) echo '&#60;/a&#62;';&#60;br /&#62;
        }&#60;br /&#62;
    }&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;The output of this function needs to be styled separately. For instance placing the function into a div block and defining custom styles for the img tags.&#60;/p&#62;
&#60;p&#62;&#38;lt;div id=&#34;flags_language_selector&#34;&#38;gt;&#38;lt;?php language_selector_flags(); ?&#38;gt;&#38;lt;/div &#38;gt;&#60;br /&#62;
The CSS:&#60;/p&#62;
&#60;p&#62;#flags_language_selector img{&#60;br /&#62;
      margin:1px;&#60;br /&#62;
      border:1px solid #333;&#60;br /&#62;
}
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
