<?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>Go Mobile Templates</title>
	<atom:link href="http://www.gomobiletemplates.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gomobiletemplates.com</link>
	<description>Free and Premium Mobile Web Templates for Websites</description>
	<lastBuildDate>Tue, 24 Apr 2012 16:07:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Redirect Mobile Devices</title>
		<link>http://www.gomobiletemplates.com/redirect-mobile-devices/</link>
		<comments>http://www.gomobiletemplates.com/redirect-mobile-devices/#comments</comments>
		<pubDate>Mon, 23 Apr 2012 15:21:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.gomobiletemplates.com/?p=103</guid>
		<description><![CDATA[<p>Javascript 1. Detect and redirect based on screen size Below code will detect device&#8217;s screen size and if it&#8217;s less than 699 pixels, it will redirect it to your mobile enabled site (in this example m.yoursite.com). Place the below code between &#60;head&#62; and &#60;/head&#62; tags of your page. And replace &#8220;http://m.yoursite.com&#8221; to your own URL....  <a href="http://www.gomobiletemplates.com/redirect-mobile-devices/" title="Read Redirect Mobile Devices">Read more &#187;</a></p>
 ]]></description>
			<content:encoded><![CDATA[<h2>Javascript</h2>
<p><strong>1. Detect and redirect based on screen size</strong></p>
<p>Below code will detect device&#8217;s screen size and if it&#8217;s less than 699 pixels, it will redirect it to your mobile enabled site (in this example m.yoursite.com).</p>
<p>Place the below code between &lt;head&gt; and &lt;/head&gt; tags of your page. And replace &#8220;http://m.yoursite.com&#8221; to your own URL.</p><pre class="crayon-plain-tag">&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
&amp;lt;!--
if (screen.width &amp;lt;= 699) {
document.location = &quot;http://m.yoursite.com&quot;;
}
//--&amp;gt;
&amp;lt;/script&amp;gt;</pre><p><strong>2. Detect and redirect if the device agent matches iPhone or iPod</strong></p>
<p>Below code will specifically look out for iPhone and iPod devices, once matches, it will redirect them to your mobile enabled site (in this example m.yoursite.com). <span id="more-103"></span></p>
<p>Place the below code between &lt;head&gt; and &lt;/head&gt; tags of your page. And replace &#8220;http://m.yoursite.com&#8221; to your own URL.</p><pre class="crayon-plain-tag">&amp;lt;script language=javascript&amp;gt;
&amp;lt;!--
if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
   location.replace(&quot;http://m.yoursite.com&quot;);
}
--&amp;gt;
&amp;lt;/script&amp;gt;</pre><p></p>
<h2>PHP</h2>
<p>Open your header.php file, go to top of the document and hit &lt;enter&gt; to make an empty line before all the HTML codes start. Copy and paste the following code.</p>
<p>Don&#8217;t forget to replace &#8220;http://m.yoursite.com&#8221; to your own URL.</p><pre class="crayon-plain-tag">&amp;lt;?php function mobileDevice()
{
$type = $_SERVER['HTTP_USER_AGENT'];
if(strpos((string)$type, &quot;Windows Phone&quot;) != false || strpos((string)$type, &quot;iPhone&quot;) != false || strpos((string)$type, &quot;Android&quot;) != false)
return true;
else
return false;
}
if(mobileDevice() == true)
header('Location: http://m.yoursite.com'); ?&amp;gt;</pre><p></p>
<h2> Others</h2>
<p>If you want to use other scripts, you may check out <a href="http://detectmobilebrowsers.com/" target="_blank">http://detectmobilebrowsers.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gomobiletemplates.com/redirect-mobile-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GoNative Template (Free)</title>
		<link>http://www.gomobiletemplates.com/gonative_template/</link>
		<comments>http://www.gomobiletemplates.com/gonative_template/#comments</comments>
		<pubDate>Sun, 22 Apr 2012 14:45:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Free Templates]]></category>

		<guid isPermaLink="false">http://www.gomobiletemplates.com/?p=10</guid>
		<description><![CDATA[<p>GoNative is a professionally designed mobile website template with native iOS look and feel. It&#8217;s 100% mobile compatible with sliding transition effects between pages, tap to call action buttons, and map location that opens Google Maps with a pin. It has 7 pages in total; Homepage, About, Products, Services, Pricing, Address, and Feedback. It comes...  <a href="http://www.gomobiletemplates.com/gonative_template/" title="Read GoNative Template (Free)">Read more &#187;</a></p>
 ]]></description>
			<content:encoded><![CDATA[<p><img src="/images/panel_template1.png" alt="" /><br />
<strong>GoNative</strong> is a professionally designed mobile website template with native iOS look and feel. It&#8217;s 100% mobile compatible with sliding transition effects between pages, tap to call action buttons, and map location that opens Google Maps with a pin.</p>
<p>It has 7 pages in total; Homepage, About, Products, Services, Pricing, Address, and Feedback. It comes with Photoshop File for images used for homepage and address pages. Customizing the template is very easy, to make it extra simple, we have put content of each page into separate files, thus keeping the content from the code separate as much as possible.</p>
<p><strong>Features:</strong></p>
<ul>
<li>Google Map Enabled</li>
<li>Tap to Call buttons enabled</li>
<li>Slide in &#8211; Slide out page transitions between pages</li>
<li>Responsive buttons to touch</li>
<li>Contact Form elements ready</li>
<li>Easy to customize</li>
<li>Photoshop file included</li>
</ul>
Note: There is a file embedded within this post, please visit this post to download the file.
<div class="preview_theme"><strong>Demo:</strong> Open your iPhone/Android/Smartphone&#8217;s browser and go to <em>bit.ly/gmt_gonative</em></div>
<p>&nbsp;</p>
<p><center></p>
<h2>Screenshots</h2>
<p></center></p>
<div class="preview_scr">

<a href='http://www.gomobiletemplates.com/gonative_template/gonative_home/' title='Home Page'><img width="64" height="96" src="http://www.gomobiletemplates.com/images/gonative_home.png" class="attachment-thumbnail" alt="Home Page" title="Home Page" /></a>
<a href='http://www.gomobiletemplates.com/gonative_template/gonative_about/' title='About Page'><img width="64" height="96" src="http://www.gomobiletemplates.com/images/gonative_about.png" class="attachment-thumbnail" alt="About Page" title="About Page" /></a>
<a href='http://www.gomobiletemplates.com/gonative_template/gonative_products/' title='Products Page'><img width="64" height="96" src="http://www.gomobiletemplates.com/images/gonative_products.png" class="attachment-thumbnail" alt="Products Page" title="Products Page" /></a>
<a href='http://www.gomobiletemplates.com/gonative_template/gonative_address/' title='Address Page'><img width="64" height="96" src="http://www.gomobiletemplates.com/images/gonative_address.png" class="attachment-thumbnail" alt="Address Page" title="Address Page" /></a>
<a href='http://www.gomobiletemplates.com/gonative_template/gonative_feedback/' title='Feedback Page'><img width="64" height="96" src="http://www.gomobiletemplates.com/images/gonative_feedback.png" class="attachment-thumbnail" alt="Feedback Page" title="Feedback Page" /></a>

</div>
]]></content:encoded>
			<wfw:commentRss>http://www.gomobiletemplates.com/gonative_template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
