<?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: Top Banner Message close</title>
		<link>http://www.kriesi.at/support/topic/top-banner-message-close</link>
		<description>Support Forum - Topic: Top Banner Message close</description>
		<language>en-US</language>
		<pubDate>Sun, 19 May 2013 20:20:55 +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/top-banner-message-close" rel="self" type="application/rss+xml" />

		<item>
			<title>maustnes on "Top Banner Message close"</title>
			<link>http://www.kriesi.at/support/topic/top-banner-message-close#post-85595</link>
			<pubDate>Tue, 27 Nov 2012 17:06:09 +0000</pubDate>
			<dc:creator>maustnes</dc:creator>
			<guid isPermaLink="false">85595@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Perfect! Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Top Banner Message close"</title>
			<link>http://www.kriesi.at/support/topic/top-banner-message-close#post-85498</link>
			<pubDate>Tue, 27 Nov 2012 07:30:22 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">85498@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;In this case you need to remove some other code from avia.js - open up the file and delete following code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(container.is(&#38;#39;.firstcall&#38;#39;))
				{
				setTimeout(function()
				{
					container.trigger(&#38;#39;click&#38;#39;);
					$.cookie(container.data(&#38;#39;cookiename&#38;#39;), &#38;#39;firstcall&#38;#39;, { expires: 365, path: &#38;#39;/&#38;#39; });
					container.removeClass(&#38;#39;firstcall&#38;#39;);

				},2000); }&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>maustnes on "Top Banner Message close"</title>
			<link>http://www.kriesi.at/support/topic/top-banner-message-close#post-85493</link>
			<pubDate>Tue, 27 Nov 2012 07:23:11 +0000</pubDate>
			<dc:creator>maustnes</dc:creator>
			<guid isPermaLink="false">85493@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hello, Dude. &#60;/p&#62;
&#60;p&#62;I don't want to remove the banner area/text. I just want it to be closed as a default and possible to open if wanted.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Top Banner Message close"</title>
			<link>http://www.kriesi.at/support/topic/top-banner-message-close#post-85488</link>
			<pubDate>Tue, 27 Nov 2012 07:06:08 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">85488@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey! &#60;/p&#62;
&#60;p&#62; In angular/js/avia.js delete following code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(jQuery.fn.avia_hide_info_text)
	jQuery(&#38;quot;#info_text_header&#38;quot;).avia_hide_info_text();&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to get rid of the banner area/text. &#60;/p&#62;
&#60;p&#62; Regards,&#60;br /&#62;
Peter
&#60;/p&#62;</description>
		</item>
		<item>
			<title>maustnes on "Top Banner Message close"</title>
			<link>http://www.kriesi.at/support/topic/top-banner-message-close#post-85355</link>
			<pubDate>Mon, 26 Nov 2012 09:20:42 +0000</pubDate>
			<dc:creator>maustnes</dc:creator>
			<guid isPermaLink="false">85355@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi.&#60;br /&#62;
I've customized the top banner message to always be closed. This is the code that I used:&#60;br /&#62;
function avia_banner($padding = 0)&#60;br /&#62;
	{&#60;br /&#62;
		$extraClass = &#34;maximized&#34;;&#60;br /&#62;
		$output = &#34;&#34;;&#60;br /&#62;
		$cookieHash = &#34;&#34;;&#60;br /&#62;
		$bannerText = avia_get_option('banner');&#60;br /&#62;
		$cookieName = THEMENAME.'_avia_banner';&#60;br /&#62;
		$bannerHash = md5($bannerText);&#60;br /&#62;
		$padding = $padding * 43;&#60;/p&#62;
&#60;p&#62;		if(!trim($bannerText)) return;&#60;/p&#62;
&#60;p&#62;		if( empty($_COOKIE[$cookieName])) $extraClass = &#34;maximized firstcall&#34;;&#60;br /&#62;
		if(!empty($_COOKIE[$cookieName])) $cookieHash = $_COOKIE[$cookieName];&#60;br /&#62;
		if(!empty($_COOKIE[$cookieName]) &#38;amp;&#38;amp; $bannerHash != $cookieHash) $extraClass = &#34;minimized&#34;;&#60;/p&#62;
&#60;p&#62;Still, the top banner message is open when I delet the cookie and reload the page. Any idea what I'm doing wrong?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
