<?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: Insert image shortcode ?</title>
		<link>http://www.kriesi.at/support/topic/insert-image-shortcode</link>
		<description>Support Forum - Topic: Insert image shortcode ?</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 16:58:22 +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/insert-image-shortcode" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "Insert image shortcode ?"</title>
			<link>http://www.kriesi.at/support/topic/insert-image-shortcode#post-22652</link>
			<pubDate>Wed, 13 Jul 2011 07:02:00 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">22652@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I corrected the code above - thanks.&#60;/p&#62;
&#60;p&#62;1) You can try to add a &#34;shadow&#34; div to the image code - use following css code in css/custom.css:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;.imgborder{
    background: url(&#38;quot;../images/shadow_right.png&#38;quot;) no-repeat scroll right bottom transparent;
    padding-bottom: 17px;
}

.imgborder .left_shadow {
    background: url(&#38;quot;../images/shadow_left.png&#38;quot;) no-repeat scroll right bottom transparent;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and change the shortcode to:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function avia_sc_img($atts, $content = &#38;quot;&#38;quot;, $shortcodename = &#38;quot;&#38;quot;){
                return &#38;#39;&#38;lt;div class=&#38;quot;imgborder&#38;quot;&#38;gt;&#38;lt;div class=&#38;quot;left_shadow&#38;quot;&#38;gt;&#38;lt;img src=&#38;quot;&#38;#39;.$atts[&#38;#39;src&#38;#39;].&#38;#39;&#38;quot; alt=&#38;quot;&#38;quot; /&#38;gt;&#38;lt;/div&#38;gt;&#38;lt;/div&#38;gt;&#38;#39;;
}

add_shortcode(&#38;#39;img&#38;#39;,&#38;#39;avia_sc_img&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I haven't tested it but the result should look like: &#60;a href=&#34;http://www.kriesi.at/themes/upscale/blog/&#34; rel=&#34;nofollow&#34;&#62;http://www.kriesi.at/themes/upscale/blog/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>menkom on "Insert image shortcode ?"</title>
			<link>http://www.kriesi.at/support/topic/insert-image-shortcode#post-22639</link>
			<pubDate>Wed, 13 Jul 2011 00:07:19 +0000</pubDate>
			<dc:creator>menkom</dc:creator>
			<guid isPermaLink="false">22639@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi so basically i did what you said and it did not work.&#60;/p&#62;
&#60;p&#62;You forgot to add img after .imgborder this was preventing it from working.&#60;/p&#62;
&#60;p&#62;Also i mentioned i needed to replicate how it presents the columns pictures those pictures have padding around the border as well as a background shadow to each picture.... this is what i have added to custom.css so far to almost replicate.&#60;/p&#62;
&#60;p&#62;/* image border details for insert image shortcode */&#60;br /&#62;
 .imgborder img{&#60;br /&#62;
 -moz-border-radius: 3px;&#60;br /&#62;
 -webkit-border-radius: 3px;&#60;br /&#62;
 border-radius: 3px;&#60;br /&#62;
 border: 1px solid #E1E1E1;&#60;br /&#62;
 padding: 5px;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;Can you please add the featured_shadow code to it so it shows the shadow background on each image.&#60;/p&#62;
&#60;p&#62;I think we are done after that.&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Insert image shortcode ?"</title>
			<link>http://www.kriesi.at/support/topic/insert-image-shortcode#post-22552</link>
			<pubDate>Tue, 12 Jul 2011 06:04:46 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">22552@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
currently there's no image shortcode however you can easily implement your own. Open up functions.php and add:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function avia_sc_img($atts, $content = &#38;quot;&#38;quot;, $shortcodename = &#38;quot;&#38;quot;){
                return &#38;#39;&#38;lt;img src=&#38;quot;&#38;#39;.$atts[&#38;#39;src&#38;#39;].&#38;#39;&#38;quot; alt=&#38;quot;&#38;quot; style=&#38;quot;border: 1px solid #eee&#38;quot; /&#38;gt;&#38;#39;;
}

add_shortcode(&#38;#39;img&#38;#39;,&#38;#39;avia_sc_img&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If you don't want to use inline styles wrap the image in a span like:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function avia_sc_img($atts, $content = &#38;quot;&#38;quot;, $shortcodename = &#38;quot;&#38;quot;){
                return &#38;#39;&#38;lt;span class=&#38;quot;imgborder&#38;quot;&#38;gt;&#38;lt;img src=&#38;quot;&#38;#39;.$atts[&#38;#39;src&#38;#39;].&#38;#39;&#38;quot; alt=&#38;quot;&#38;quot; /&#38;gt;&#38;lt;/span&#38;gt;&#38;#39;;
}

add_shortcode(&#38;#39;img&#38;#39;,&#38;#39;avia_sc_img&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and add:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;.imgborder img{
border: 1px solid #E1E1E1;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to css/custom.css. Obviously you can adjust the border style :)&#60;/p&#62;
&#60;p&#62;Shortcode usage:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[img src=&#38;#39;path/to/image.jpg&#38;#39;]&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>menkom on "Insert image shortcode ?"</title>
			<link>http://www.kriesi.at/support/topic/insert-image-shortcode#post-22518</link>
			<pubDate>Tue, 12 Jul 2011 00:16:59 +0000</pubDate>
			<dc:creator>menkom</dc:creator>
			<guid isPermaLink="false">22518@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi im not overly happy with the functionality of the columns on the homepage and i need to recreate them from scratch. Is there a shortcode to insert an image with the border option ? I can insert an image but it has no border and does not look like part of the site.&#60;/p&#62;
&#60;p&#62;Please let me know. thanks.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
