<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>960Development</title>
	<atom:link href="http://www.960development.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.960development.com</link>
	<description>Quality Web Development</description>
	<lastBuildDate>Thu, 15 Mar 2012 14:05:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Template Directory vs Stylesheet Directory</title>
		<link>http://www.960development.com/template-directory-vs-stylesheet-directory/</link>
		<comments>http://www.960development.com/template-directory-vs-stylesheet-directory/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 16:03:29 +0000</pubDate>
		<dc:creator>saqib sarwar</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.960development.com/?p=760</guid>
		<description><![CDATA[get_stylesheet_directory_uri(); - returns the http:// path to either the child theme directory location or the main theme if no childtheme exists. get_stylesheet_directory(); - returns the local directory equivalent location to the files either in the child theme if it exists or the main theme if no child theme get_template_directory_uri(); - returns the http:// location of [...]]]></description>
			<content:encoded><![CDATA[<p><strong>get_stylesheet_directory_uri();</strong><br />
- returns the http:// path to either the child theme directory location or the main theme if no childtheme exists.</p>
<p><strong>get_stylesheet_directory();</strong><br />
- returns the local directory equivalent location to the files either in the child theme if it exists or the main theme if no child theme</p>
<p><strong>get_template_directory_uri();</strong><br />
- returns the http:// location of your main theme itself and never the child theme</p>
<p><strong>get_template_directory();</strong><br />
- returns the local directory location of the main theme files</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.960development.com/template-directory-vs-stylesheet-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Awesome Portfolio Theme</title>
		<link>http://www.960development.com/awesome-portfolio-theme/</link>
		<comments>http://www.960development.com/awesome-portfolio-theme/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 06:13:17 +0000</pubDate>
		<dc:creator>saqib sarwar</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordor]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.960development.com/?p=743</guid>
		<description><![CDATA[So finally, We have launched Awesome Portfolio Theme on ThemeForest. The theme is designed by our friend Sunil Joshi and completely developed by our team. This is our first ThemeForest item and we are hoping to submit more in future. You can try the Demo Here Theme Has Following Features Unique, Clean and Modern Design With [...]]]></description>
			<content:encoded><![CDATA[<p>So finally, We have launched <a href="http://themeforest.net/item/awesome-portfolio-theme/841288">Awesome Portfolio Theme</a> on <a href="http://themeforest.net/">ThemeForest</a>. The theme is designed by our friend <a href="http://themedesigner.in/">Sunil Joshi</a> and completely developed by our team. This is our first ThemeForest item and we are hoping to submit more in future.<span id="more-743"></span></p>
<p>You can try the <a href="http://www.960development.com/demo/portfolio/">Demo Here</a></p>
<h3><a href="http://www.960development.com/demo/portfolio/" target="_blank"><img class="size-full wp-image-745 aligncenter" title="homepage" src="http://www.960development.com/wp-content/uploads/2011/11/homepage.jpg" alt="" width="500" height="717" /></a></h3>
<h4>Theme Has Following Features</h4>
<ol>
<li>Unique, Clean and Modern Design With Minimal Base</li>
<li>Two Type of Sliders ( Nivo and Piecemaker )</li>
<li>Nice Typography with Multi Column Support</li>
<li>Nice and Clean Blog With Pagination and Full Widgets Support</li>
<li>Projects Custom Post Type with With Project-Type Taxonomy</li>
<li>One Column Template for Portfolio</li>
<li>Two Columns Template for Portfolio</li>
<li>Three Columns Template for Portfolio</li>
<li>Custom Post Type to Manage Services</li>
<li>Short Codes For Layout Columns</li>
<li>Short Codes For jQuery Tabs</li>
<li>Short Codes For jQuery Accordion</li>
<li>Short Codes For Typography Elements</li>
<li>Short Codes For Image Frames</li>
<li>Short Codes For Buttons and Info boxes</li>
<li>Short Codes For Video and Audio</li>
<li>Theme Options for easy Customization of Theme</li>
<li>Ajax Based Contact Form with Google Map</li>
<li>WordPress 3.2.1 Ready</li>
</ol>
<div>So, let us know your thoughts on this theme.</div>
<div><em><strong>Tips</strong></em> and <em><strong>Suggestions</strong></em> are highly welcome.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.960development.com/awesome-portfolio-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Current Page URL in PHP</title>
		<link>http://www.960development.com/code-snippet/current-page-url-in-php/</link>
		<comments>http://www.960development.com/code-snippet/current-page-url-in-php/#comments</comments>
		<pubDate>Sat, 12 Nov 2011 01:58:37 +0000</pubDate>
		<dc:creator>saqib sarwar</dc:creator>
		
		<guid isPermaLink="false">http://www.960development.com/?post_type=code-snippet&#038;p=738</guid>
		<description><![CDATA[You can use the following php method to get the full URL of current page.]]></description>
			<content:encoded><![CDATA[<p>You can use the following php method to get the full URL of current page.</p>
<pre class="brush: php; title: ; notranslate">

// this method will return the current page full url
function currentPageURL()
{
	$pageURL = 'http';

	if ($_SERVER['HTTPS'] == 'on')
	{
		$pageURL .= 's';
	}

	$pageURL .= '://';

	if ($_SERVER['SERVER_PORT'] != '80')
	{
		$pageURL .= $_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].$_SERVER['REQUEST_URI'];
	}
	else
	{
		$pageURL .= $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
	}

	return $pageURL;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.960development.com/code-snippet/current-page-url-in-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP Sub String Based on Number of Words</title>
		<link>http://www.960development.com/code-snippet/php-sub-string-based-on-number-of-words/</link>
		<comments>http://www.960development.com/code-snippet/php-sub-string-based-on-number-of-words/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 11:33:19 +0000</pubDate>
		<dc:creator>saqib sarwar</dc:creator>
		
		<guid isPermaLink="false">http://www.960development.com/?post_type=code-snippet&#038;p=734</guid>
		<description><![CDATA[Trim a string to a given number of words Thanks To http://www.lullabot.com/articles/trim-a-string-to-a-given-word-count]]></description>
			<content:encoded><![CDATA[<p>Trim a string to a given number of words</p>
<pre class="brush: php; title: ; notranslate">
/**
	* @param $string
	*   the original string
	* @param $count
	*   the word count
	* @param $ellipsis
	*   TRUE to add &quot;...&quot;
	*   or use a string to define other character
	* @param $node
	*   provide the node and we'll set the $node-&gt;
	*
	* @return
	*   trimmed string with ellipsis added if it was truncated
	*/
	function word_trim($string, $count, $ellipsis = FALSE){
	  $words = explode(' ', $string);
	  if (count($words) &gt; $count){
	    array_splice($words, $count);
	    $string = implode(' ', $words);
	    if (is_string($ellipsis)){
		$string .= $ellipsis;
	    }
	    elseif ($ellipsis){
		$string .= '&amp;hellip;';
	    }
	  }
	  return $string;
	}
</pre>
<p>Thanks To <a href="http://www.lullabot.com/articles/trim-a-string-to-a-given-word-count">http://www.lullabot.com/articles/trim-a-string-to-a-given-word-count</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.960development.com/code-snippet/php-sub-string-based-on-number-of-words/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cross Browser Min Height</title>
		<link>http://www.960development.com/code-snippet/cross-browser-min-height/</link>
		<comments>http://www.960development.com/code-snippet/cross-browser-min-height/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 11:28:29 +0000</pubDate>
		<dc:creator>saqib sarwar</dc:creator>
		
		<guid isPermaLink="false">http://www.960development.com/?post_type=code-snippet&#038;p=730</guid>
		<description><![CDATA[Remember, IE treats height property as min-height should be treated.]]></description>
			<content:encoded><![CDATA[<p>Remember, IE treats height property as min-height should be treated.</p>
<pre class="brush: css; title: ; notranslate">
#content{
   min-height: 400px;
   height:auto !important;
   height: 400px;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.960development.com/code-snippet/cross-browser-min-height/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First Image of WordPress Post Gallery</title>
		<link>http://www.960development.com/code-snippet/first-image-of-wordpress-post-gallery/</link>
		<comments>http://www.960development.com/code-snippet/first-image-of-wordpress-post-gallery/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 16:49:44 +0000</pubDate>
		<dc:creator>saqib sarwar</dc:creator>
		
		<guid isPermaLink="false">http://www.960development.com/?post_type=code-snippet&#038;p=724</guid>
		<description><![CDATA[This snippet will help you get the first image of a WordPress post&#8217;s gallery depending upon the order of images in gallery. Place the following function in functions.php use the above function in WordPress Loop by following way. I hope it will help. Thanks.]]></description>
			<content:encoded><![CDATA[<p>This snippet will help you get the first image of a WordPress post&#8217;s gallery depending upon the order of images in gallery.</p>
<p>Place the following function in functions.php</p>
<pre class="brush: php; title: ; notranslate">

function gallery_first_image(){		

	global $post;

	$args = array(
		'post_type'   =&gt; 'attachment',
		'numberposts' =&gt; 1,
		'post_parent' =&gt; $post-&gt;ID,
		'order' =&gt; 'ASC',
		'orderby' =&gt; 'menu_order',
		'post_mime_type' =&gt; 'image'
		);

	$attachments = get_posts( $args );

	if ( $attachments )
	{
		foreach ( $attachments as $attachment )
		{
			return wp_get_attachment_url( $attachment-&gt;ID );
		}
	}
	return false;
}
</pre>
<p>use the above function in WordPress Loop by following way.</p>
<pre class="brush: php; title: ; notranslate">

$image_url = gallery_first_image();
if($image_url)
{
?&gt;
	&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;
		 &lt;img src=&quot;&lt;?php bloginfo('template_directory'); ?&gt;/timthumb.php?src=&lt;?php echo $image_url; ?&gt;&amp;w=609&amp;h=275&amp;q=100&quot; alt=&quot;&lt;?php the_title();?&gt;&quot; /&gt;
	&lt;/a&gt;
&lt;?php
}
</pre>
<p>I hope it will help. Thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.960development.com/code-snippet/first-image-of-wordpress-post-gallery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apply Active Class on Current Page Menu Item</title>
		<link>http://www.960development.com/code-snippet/apply-active-class-on-current-page-menu-item/</link>
		<comments>http://www.960development.com/code-snippet/apply-active-class-on-current-page-menu-item/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 07:32:13 +0000</pubDate>
		<dc:creator>saqib sarwar</dc:creator>
		
		<guid isPermaLink="false">http://www.960development.com/?post_type=code-snippet&#038;p=716</guid>
		<description><![CDATA[A small php tip to help you apply active class on current page menu item in header.php]]></description>
			<content:encoded><![CDATA[<p>A small php tip to help you apply active class on current page menu item in header.php</p>
<pre class="brush: php; title: ; notranslate">
&lt;ul class=&quot;sub-nav&quot; &gt;
	&lt;?php
		$full_name = $_SERVER['PHP_SELF'];
		$name_array = explode('/',$full_name);
		$count = count($name_array);
		$page_name = $name_array[$count-1];
	?&gt;
	&lt;li&gt;&lt;a class=&quot;&lt;?php echo ($page_name=='where-to-buy.php')?'active':'';?&gt;&quot; href=&quot;where-to-buy.php&quot;&gt;WHERE TO BUY&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;&lt;?php echo ($page_name=='about.php')?'active':'';?&gt;&quot; href=&quot;about.php&quot;&gt;ABOUT US&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;&lt;?php echo ($page_name=='contact.php')?'active':'';?&gt;&quot; href=&quot;contact.php&quot;&gt;CONTACT US&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.960development.com/code-snippet/apply-active-class-on-current-page-menu-item/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>TimThumb Fix for WordPress Hosting Servers</title>
		<link>http://www.960development.com/timthumb-fix-for-wordpress-hosting-servers/</link>
		<comments>http://www.960development.com/timthumb-fix-for-wordpress-hosting-servers/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 11:41:12 +0000</pubDate>
		<dc:creator>saqib sarwar</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[timthumb]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.960development.com/?p=709</guid>
		<description><![CDATA[Today I faced a problem with timthumb script on a client server. I did some research and found the following solution. set the wp-content folder permissions to 755 set the themes folder permissions to 755 set the your theme folder persmission to 755 set the cache folder permissions to 755 set the timthumb.php permissions to [...]]]></description>
			<content:encoded><![CDATA[<p>Today I faced a problem with timthumb script on a client server.</p>
<p>I did some research and found the following solution.<span id="more-709"></span></p>
<ol>
<li>set the wp-content folder permissions to 755</li>
<li>set the themes folder permissions to 755</li>
<li>set the your theme folder persmission to 755</li>
<li>set the cache folder permissions to 755</li>
<li>set the timthumb.php permissions to 644</li>
</ol>
<p>I hope it will help you guys sometime in future.</p>
<p>Thanks</p>
]]></content:encoded>
			<wfw:commentRss>http://www.960development.com/timthumb-fix-for-wordpress-hosting-servers/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Get All The Images Attached With a WordPress Post</title>
		<link>http://www.960development.com/code-snippet/get-all-the-images-attached-with-a-wordpress-post/</link>
		<comments>http://www.960development.com/code-snippet/get-all-the-images-attached-with-a-wordpress-post/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 10:57:36 +0000</pubDate>
		<dc:creator>saqib sarwar</dc:creator>
		
		<guid isPermaLink="false">http://www.960development.com/?post_type=code-snippet&#038;p=706</guid>
		<description><![CDATA[A simple piece of code to help you get all the images attached with a wordpress post.]]></description>
			<content:encoded><![CDATA[<p>A simple piece of code to help you get all the images attached with a wordpress post.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
		if ( have_posts() )
		while ( have_posts() ):
		the_post(); 

		$args = array(
			'post_type'   =&gt; 'attachment',
			'numberposts' =&gt; -1,
			'post_parent' =&gt; $post-&gt;ID
			);

		$attachments = get_posts( $args );

		if ( $attachments )
		{
			foreach ( $attachments as $attachment )
			{

			echo wp_get_attachment_image( $attachment-&gt;ID, false ); 

			}
		}						

		endwhile;
?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.960development.com/code-snippet/get-all-the-images-attached-with-a-wordpress-post/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to get Original WordPress Featured Image to Use With TimThumb</title>
		<link>http://www.960development.com/code-snippet/original-wordpress-featured-image-to-use-with-timthumb/</link>
		<comments>http://www.960development.com/code-snippet/original-wordpress-featured-image-to-use-with-timthumb/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 09:21:15 +0000</pubDate>
		<dc:creator>saqib sarwar</dc:creator>
		
		<guid isPermaLink="false">http://www.960development.com/?post_type=code-snippet&#038;p=701</guid>
		<description><![CDATA[Place this code inside the loop.]]></description>
			<content:encoded><![CDATA[<p>Place this code inside the loop.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$image_id = get_post_thumbnail_id();
$image_url = wp_get_attachment_url($image_id);
?&gt;
&lt;img src=&quot;&lt;?php bloginfo('template_directory'); ?&gt;/timthumb.php?src=&lt;?php echo $image_url; ?&gt;&amp;w=413&amp;h=231&amp;q=100&quot; alt=&quot;&lt;?php the_title();?&gt;&quot; /&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.960development.com/code-snippet/original-wordpress-featured-image-to-use-with-timthumb/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

