<?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: Button shortcode</title>
		<link>http://www.kriesi.at/support/topic/button-shortcode</link>
		<description>Support Forum - Topic: Button shortcode</description>
		<language>en-US</language>
		<pubDate>Sat, 25 May 2013 21:53:21 +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/button-shortcode" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "Button shortcode"</title>
			<link>http://www.kriesi.at/support/topic/button-shortcode#post-27967</link>
			<pubDate>Tue, 27 Sep 2011 13:36:48 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">27967@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Try to replace following code line in Kriesi's code:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$output = &#38;#39;&#38;lt;span class=&#38;quot;avia-&#38;#39;.$style.&#38;#39;&#38;quot;&#38;gt;&#38;#39; . avia_remove_autop($content) . &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$output = &#38;#39;&#38;lt;span class=&#38;quot;avia-&#38;#39;.$style.&#38;#39;&#38;quot;&#38;gt;&#38;#39; . $content . &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I'd recommend to use a plugin like: &#60;a href=&#34;http://tunila.me/article/web/wordpress/plugins/css3-buttons-extension-wordpress.html&#34; rel=&#34;nofollow&#34;&#62;http://tunila.me/article/web/wordpress/plugins/css3-buttons-extension-wordpress.html&#60;/a&#62; though...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Baris on "Button shortcode"</title>
			<link>http://www.kriesi.at/support/topic/button-shortcode#post-27958</link>
			<pubDate>Tue, 27 Sep 2011 12:21:39 +0000</pubDate>
			<dc:creator>Baris</dc:creator>
			<guid isPermaLink="false">27958@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;thanks dude, but shortcode does not work :(
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Button shortcode"</title>
			<link>http://www.kriesi.at/support/topic/button-shortcode#post-20100</link>
			<pubDate>Sun, 29 May 2011 14:54:30 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">20100@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Try something like:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[button link=&#38;quot;http://google.com&#38;quot; size=&#38;quot;large&#38;quot; color=&#38;quot;#000&#38;quot; border=&#38;quot;#333&#38;quot; text=&#38;quot;light&#38;quot; window=&#38;quot;yes&#38;quot;]Test[/button]&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;It's the full configuration with link, size, bgcolor,  border, text color and new window (_blank) and button caption (&#34;test&#34;). Please be aware that we can't support this modification (so if some features don't work out right I can't dig around to find the problem).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Baris on "Button shortcode"</title>
			<link>http://www.kriesi.at/support/topic/button-shortcode#post-20089</link>
			<pubDate>Sun, 29 May 2011 08:57:54 +0000</pubDate>
			<dc:creator>Baris</dc:creator>
			<guid isPermaLink="false">20089@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;bump!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Baris on "Button shortcode"</title>
			<link>http://www.kriesi.at/support/topic/button-shortcode#post-19805</link>
			<pubDate>Wed, 25 May 2011 05:27:19 +0000</pubDate>
			<dc:creator>Baris</dc:creator>
			<guid isPermaLink="false">19805@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;That is great Peter and I hope Kriesi shares another nice shortcodes ;)&#60;/p&#62;
&#60;p&#62;edit: How can I use shortcode?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Button shortcode"</title>
			<link>http://www.kriesi.at/support/topic/button-shortcode#post-19779</link>
			<pubDate>Tue, 24 May 2011 20:44:16 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">19779@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
You can use the same code with expose too. Just paste it in functions.php and style.css.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Baris on "Button shortcode"</title>
			<link>http://www.kriesi.at/support/topic/button-shortcode#post-19774</link>
			<pubDate>Tue, 24 May 2011 20:11:54 +0000</pubDate>
			<dc:creator>Baris</dc:creator>
			<guid isPermaLink="false">19774@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;hey Kriesi,&#60;/p&#62;
&#60;p&#62;could you create for Expose theme too, please?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kriesi on "Button shortcode"</title>
			<link>http://www.kriesi.at/support/topic/button-shortcode#post-19715</link>
			<pubDate>Tue, 24 May 2011 09:10:20 +0000</pubDate>
			<dc:creator>Kriesi</dc:creator>
			<guid isPermaLink="false">19715@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;hey! you can pste this funtion into your functions.php file to make the button shortcode work:&#60;/p&#62;
&#60;pre&#62;

if(!function_exists('avia_sc_button'))
{
	function avia_sc_button($atts, $content = null) {
	   	extract(shortcode_atts(array(	'size' =&#38;gt; '',
	   									'style' =&#38;gt; '',
	   									'color' =&#38;gt; '',
	   									'border' =&#38;gt; '',
	   									'text' =&#38;gt; '',
	   									'class' =&#38;gt; '',
	   									'link' =&#38;gt; '#',
	   									'window' =&#38;gt; ''), $atts));

	   	// Set custom background and border color
	   	$color_output = '';
	   	if ( $color ) {

	   		if ( 	$color == &#34;red&#34; OR
	   			 	$color == &#34;orange&#34; OR
	   			 	$color == &#34;green&#34; OR
	   			 	$color == &#34;aqua&#34; OR
	   			 	$color == &#34;teal&#34; OR
	   			 	$color == &#34;purple&#34; OR
	   			 	$color == &#34;pink&#34; OR
	   			 	$color == &#34;silver&#34;
	   			 	 ) {
		   		$class .= &#34; &#34;.$color;

	   		} else {
			   	if ( $border )
			   		$border_out = $border;
			   	else
			   		$border_out = $color;

		   		$color_output = 'style=&#34;background-color:'.$color.';border-color:'.$border_out.'&#34;';

		   		// add custom class
		   		$class .= &#34; custom&#34;;
	   		}
	   	}

		$class_output = '';

		// Set text color
		if ( $text ) $class_output .= ' '.$text;

		// Set class
		if ( $class ) $class_output .= ' '.$class;

		// Set Size
		if ( $size ) $class_output .= ' '.$size;

		// Open in new window?
		if ( $window ) $window = 'target=&#34;_blank&#34; ';

	   	$output = '&#60;a&#62;&#38;lt;span class=&#34;avia-'.$style.'&#34;&#38;gt;' . avia_remove_autop($content) . '&#38;lt;/span&#38;gt;&#60;/a&#62;';
	   	return $output;
	}
	add_shortcode('button', 'avia_sc_button');
}
&#60;/pre&#62;
&#60;p&#62;now wordpress will recognize the shortcode the same way it does in broadscope (but without the visual user interface for shortcodes, thats unfortunatley too much to add)&#60;/p&#62;
&#60;p&#62;now add this to your css file and you should at least have default colored buttons to use:&#60;/p&#62;
&#60;pre&#62;
.avia-button{
color:#fff;
background-image: url(&#34;../images/icons/bg-button.png&#34;);
background-repeat: repeat-x;
background-position: 0 0;
padding:0 10px;
font-size: 12px;
text-decoration: none;
display:inline-block;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
border-style: solid;
border-width: 1px;
margin:3px 0;
line-height: 28px;
border-color: #e1e1e1;
background-color: #f8f8f8;
position: relative;
}

.avia-button:hover{
background-position: 0 -4px;
opacity:0.9;
color:#fff;
text-decoration: none;
}

.avia-button.dark , .avia-button.dark:hover{
color:#444;
}

.avia-button.grey, .avia-button.grey:hover{
color:#999;
}

.avia-button.red{background-color: #b00202; 	border-color: #b00202; }
.avia-button.orange{background-color: #f6a240; 	border-color: #f6a240; }
.avia-button.green{background-color: #52851b; 	border-color: #52851b; }
.avia-button.aqua{background-color: #58c4be; 	border-color: #58c4be; }
.avia-button.teal{background-color: #1d9f9f; 	border-color: #1d9f9f; }
.avia-button.purple{background-color: #a258c4; 	border-color: #a258c4; }
.avia-button.pink{background-color: #f346b0;	border-color: #f346b0; }
.avia-button.silver{background-color: #d7d7d7; 	border-color: #d7d7d7; }

.avia-button.small{
padding:0 4px 0px 4px;
font-size: 10px;
line-height: 22px;
}

.avia-button.large{
padding:0 10px 0px 10px;
font-size: 13px;
line-height: 33px;
}

.avia-button.xl{
padding:0 18px 0px 18px;
font-size: 14px;
line-height: 42px;
}

.avia-button span{
position: relative;
}
&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Dude on "Button shortcode"</title>
			<link>http://www.kriesi.at/support/topic/button-shortcode#post-19497</link>
			<pubDate>Fri, 20 May 2011 05:51:21 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">19497@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks for the kind words :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>webWahine on "Button shortcode"</title>
			<link>http://www.kriesi.at/support/topic/button-shortcode#post-19405</link>
			<pubDate>Wed, 18 May 2011 15:23:29 +0000</pubDate>
			<dc:creator>webWahine</dc:creator>
			<guid isPermaLink="false">19405@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;ok, thanks for the reply - both great themes! :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Button shortcode"</title>
			<link>http://www.kriesi.at/support/topic/button-shortcode#post-19365</link>
			<pubDate>Wed, 18 May 2011 12:49:39 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">19365@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
currently Avisio doesn't offer a button shortcode (only Broadscope, Brightbox and Upscale do). I'll suggest it to Kriesi as a feature request.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>webWahine on "Button shortcode"</title>
			<link>http://www.kriesi.at/support/topic/button-shortcode#post-19311</link>
			<pubDate>Tue, 17 May 2011 16:05:44 +0000</pubDate>
			<dc:creator>webWahine</dc:creator>
			<guid isPermaLink="false">19311@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;hi all&#60;/p&#62;
&#60;p&#62;i know that this may be a very simple question, but i can't seem to find an example of a basic button shortcode for avisio&#60;/p&#62;
&#60;p&#62;i have also purchased and am using broadscope (another great theme!), and it has a very handy built in shortcode generator&#60;/p&#62;
&#60;p&#62;i tired [button]text here[/button]&#60;/p&#62;
&#60;p&#62;but it didn't recognise it - please advise&#60;/p&#62;
&#60;p&#62;also, am i able to put shortcode buttons in the sidebar widgets as well?&#60;/p&#62;
&#60;p&#62;thank you :)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
