<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/"
>

<channel>
	<title>Anahitapolis Blog &#187; template</title>
	<atom:link href="http://blog.anahitapolis.com/tag/template/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.anahitapolis.com</link>
	<description>Liberating the world with nodes, graphs, and stories!</description>
	<lastBuildDate>Wed, 03 Apr 2013 06:20:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
<!-- podcast_generator="Blubrry PowerPress/4.0.8" -->
	<itunes:summary>Hangout sessions with the Anahita tribe members. Anahita is a developer friendly and open source social networking platform and framework that helps you build the foundations of your apps and services in less time using a correct nodes-graphs-stories architecture. Visit www.Anahitapolis.com for more information.</itunes:summary>
	<itunes:author>Rastin Mehr and Ash Sanieyan</itunes:author>
	<itunes:explicit>clean</itunes:explicit>
	<itunes:image href="http://podcast.anahitapolis.com.s3.amazonaws.com/anahita_logo.png" />
	<itunes:owner>
		<itunes:name>Rastin Mehr and Ash Sanieyan</itunes:name>
		<itunes:email>rastin@rmdstudio.com</itunes:email>
	</itunes:owner>
	<managingEditor>rastin@rmdstudio.com (Rastin Mehr and Ash Sanieyan)</managingEditor>
	<copyright>Copyright &#xA9; 2012 Anahitapolis.com</copyright>
	<itunes:subtitle>Anahita® Podcast</itunes:subtitle>
	<itunes:keywords>social networking, open source, software, framework, platform</itunes:keywords>
	<image>
		<title>Anahitapolis Blog &#187; template</title>
		<url>http://podcast.anahitapolis.com.s3.amazonaws.com/podcast_icon.png</url>
		<link>http://blog.anahitapolis.com</link>
	</image>
	<itunes:category text="Technology">
		<itunes:category text="Software How-To" />
	</itunes:category>
		<rawvoice:location>Vancouver, BC, Canada</rawvoice:location>
		<rawvoice:frequency>Monthly</rawvoice:frequency>
		<item>
		<title>So long Gantry and thank you for the grid</title>
		<link>http://blog.anahitapolis.com/2012/08/so-long-gantry-and-thank-you-for-the-grid/</link>
		<comments>http://blog.anahitapolis.com/2012/08/so-long-gantry-and-thank-you-for-the-grid/#comments</comments>
		<pubDate>Fri, 31 Aug 2012 07:03:35 +0000</pubDate>
		<dc:creator>Rastin Mehr</dc:creator>
				<category><![CDATA[Rastin Mehr]]></category>
		<category><![CDATA[gantry framework]]></category>
		<category><![CDATA[shiraz]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://blog.anahitapolis.com/?p=1251</guid>
		<description><![CDATA[Anahitapolis is now using the Anahita Embryo release 2.1 with her own native template framework and the new release of Shiraz template. That also means that we are no longer using the Gantry framework (by RocketTheme) for Anahita and it has been completely removed from the Anahita 2.1 release. The new Shiraz template is now [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.anahitapolis.com">Anahitapolis</a> is now using the Anahita Embryo release 2.1 with her own native template framework and the new release of Shiraz template. That also means that we are no longer using the <a href="http://www.gantry-framework.org/">Gantry framework</a> (by <a href="http://www.rockettheme.com/" target="_blank">RocketTheme</a>) for Anahita and it has been completely removed from the Anahita 2.1 release. The new Shiraz template is now technically an Anahita app that extends a default base. The base template provides all the default <a href="http://lesscss.org/" target="_blank">LESS</a> files, main grid, and layouts which can all be overwritten in Shiraz or any custom template that you wish to develop. Anahita 2.1 is now extending the latest <a href="http://twitter.github.com/bootstrap/" target="_blank">Twitter Bootstrap</a> library and did I mention that Anahita comes with it&#8217;s own native LessCSS compiler to help you compile a single compressed stylesheet that contains all the bootstrap and anahita styling.</p>
<p>In January 2011 when we released Anahita 1.5 it was mainly a distribution of <a href="http://www.joomla.org/" target="_blank">Joomla!</a> 1.5 with Anahita libraries installed on it. We even had the intention of bringing compatibility between Anahita and the templates and extensions that Rockettheme was distributing. However soon we learned that the best strategy for the Anahita project would be dropping all the Joomla code and rewriting all the required parts using Anahita&#8217;s native framework. That also meant the compatibility between Anahita and RocketTheme extensions was going to be broken, because Anahita was no longer a Joomla! distro and she was on her path to become a stand alone technology.</p>
<p>In Anahita 2.0 we were using very little of what Gantry framework was providing us so it was time to completely remove it from Anahita. I must say that Gantry has been a great concept, however it was really built to compensate with the shortcomings of Joomla! as well as creating an environment for the Rockettheme specific extensions.</p>
<p>For the past year the Gantry framework has been providing us a <a href="http://960.gs/" target="_blank">960 grid system</a> and means to manage it. In fact Gantry provides a lot more that are really useful in a Joomla environment, however we have been removing more and more of what was left of Joomla code from Anahita and writing all the required parts using Anahita&#8217;s native libraries. So in Anahita 2.0 very little of Gantry was being used while we were carrying around the entire library and codebase. It was time to build our own native template framework suitable for Anahita and say goodbye to Gantry.</p>
<p>We would like to thank the Rockettheme team for developing Gantry; such a great technology that helped us go through last year. In fact we did get some inspiration from the Gantry while developing the Anahita&#8217;s grid management system and bootstrap. We just didn&#8217;t need the other 90% of Gantry that we were not using. If you are a Joomla, WordPress, Drupal, or PHPBB3 user, you should really checkout Rockettheme&#8217;s products at <a href="http://www.rockettheme.com/" target="_blank">RocketTheme.com</a> Those people have been building some solid and beautiful templates and extensions and distributing them at very reasonable prices.</p>
<p>As for the Anahita Embryo 2.1 goes, the packages will be available to the Premium Tribe shortly. As soon as we are confident that the code is stable, we will branch out a 2.1 Birth release and make it available for free to public.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.anahitapolis.com/2012/08/so-long-gantry-and-thank-you-for-the-grid/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>The Dark Side of the Anahita</title>
		<link>http://blog.anahitapolis.com/2011/05/the-dark-side-of-the-anahita/</link>
		<comments>http://blog.anahitapolis.com/2011/05/the-dark-side-of-the-anahita/#comments</comments>
		<pubDate>Fri, 13 May 2011 23:25:30 +0000</pubDate>
		<dc:creator>Rastin Mehr</dc:creator>
				<category><![CDATA[Rastin Mehr]]></category>
		<category><![CDATA[announcement]]></category>
		<category><![CDATA[birth release]]></category>
		<category><![CDATA[gantry]]></category>
		<category><![CDATA[shiraz]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://blog.anahitapolis.com/?p=734</guid>
		<description><![CDATA[Until now the Anahita Shiraz template only came with a light theme. This month I had some time to develop the dark theme for the Shiraz template as well. Use the dark theme for your gaming, fashion, artistic, or that none-vanilla subculture lifestyle social networking project that you are about to launch and let your [...]]]></description>
				<content:encoded><![CDATA[<p><a title="Group Profile by Aristocrat, on Flickr" href="http://www.flickr.com/photos/netphotography/5714320394/"><img src="http://farm3.static.flickr.com/2206/5714320394_35ae206c69_z.jpg" alt="Group Profile" width="500" /></a></p>
<p>Until now the Anahita Shiraz template only came with a light theme. This month I had some time to develop the dark theme for the Shiraz template as well. Use the dark theme for your gaming, fashion, artistic, or that none-vanilla subculture lifestyle social networking project that you are about to launch and let your members experience the dark side of Anahita.</p>
<p><a title="Person Profile by Aristocrat, on Flickr" href="http://www.flickr.com/photos/netphotography/5713758795/"><img src="http://farm3.static.flickr.com/2576/5713758795_3493690894_z.jpg" alt="Person Profile" width="500" /></a></p>
<p><a title="Photos - Album by Aristocrat, on Flickr" href="http://www.flickr.com/photos/netphotography/5713757919/"><img src="http://farm4.static.flickr.com/3374/5713757919_c58307ebd4_z.jpg" alt="Photos - Album" width="500" /></a></p>
<h2>Change Log</h2>
<p>The following is the change log for the Anahita Shiraz template 1.2 Birth Release:</p>
<p><code><br />
Legend:</code></p>
<p><code>* -&gt; Security Fix<br />
# -&gt; Bug Fix<br />
$ -&gt; Language fix or change<br />
+ -&gt; Addition<br />
^ -&gt; Change<br />
- -&gt; Removed<br />
! -&gt; Note?&gt;</code></p>
<p><code> </code></p>
<p>&nbsp;</p>
<p><code>===Version 1.1===<br />
^ hardcoded url for the favicon has been removed<br />
^ manifest date, author, and desicription have been updated.<br />
+ style2.css has been added<br />
^ color codes have been moved to the anahita social networking engine and apps to the style1.css file<br />
+ preset2.png icon in the admin/presets has been added<br />
^ The preset2 info has been added to the gantry.config.php as the Dark theme<br />
</code></p>
<h2>Do Update Your Shiraz Template</h2>
<p>If you are using the default Shiraz template on your Anahita installation do update your Shiraz template. A lot of improvements and changes have been done in the new release that are necessary for the next releases of Anahita ™, Groups, Discussions, Photos, and Connect to render properly. For example all the css color codes have been removed from the Anahita™ and applications and instead they have been added to the Shiraz template. If you don&#8217;t upgrade your Shiraz template, the next time that you will be upgrading the Anahita™ and apps a lot of the colors will be missing until you upgrade your template.</p>
<p>To upgrade the Shiraz template, download the most recent copy of Anahita package <a href="http://www.anahitapolis.com/download/anahita-shiraz-template">from here</a> and then go to the administration back-end of your Anahita Installation. Under Extend &gt; Install/Uninstall select and upload your template zip file package.</p>
<h2>Do Update Your Anahita Templates</h2>
<p>If you have developed you own custom Anahita templates that are perhaps a derivative of Shiraz template, you very likely need to upgrade your css files so the next updates of Anahita social networking engine, Groups, Discussions, Photos, and Connect won&#8217;t won&#8217;t distort how your pages are rendered.</p>
<p>That is because all the css color codes from the Anahita™ and the existing applications have been moved to the new Shiraz template. To get a list of CSS tags that contained color codes (or styling images) checkout the <em>style1.css</em> and <em>style2.css</em> files in the css directory of the new Shiraz template.</p>
<h2>What&#8217;s next?</h2>
<p>In the upcoming releases of Anahita Shiraz template we would like to experiment with the iPhone friendly features of the Gantry framework so we can have pages that are more user friendly for the iPhone devices.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.anahitapolis.com/2011/05/the-dark-side-of-the-anahita/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Tachyon &#8211; The first Anahita compatible template from RocketTheme</title>
		<link>http://blog.anahitapolis.com/2011/02/tachyon-the-first-anahita-compatible-template-from-rockettheme/</link>
		<comments>http://blog.anahitapolis.com/2011/02/tachyon-the-first-anahita-compatible-template-from-rockettheme/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 20:48:46 +0000</pubDate>
		<dc:creator>Rastin Mehr</dc:creator>
				<category><![CDATA[Rastin Mehr]]></category>
		<category><![CDATA[announcement]]></category>
		<category><![CDATA[discussions]]></category>
		<category><![CDATA[gantry]]></category>
		<category><![CDATA[groups]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[promotion]]></category>
		<category><![CDATA[rockettheme]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://blog.anahitapolis.com/?p=528</guid>
		<description><![CDATA[The great folks at the RockeTheme have been working for us to make their new template &#8211; Tachyon - which is compatible with the Anahita™ Social Networking Engine. The template was released yesterday and now it is available to all the RocketTheme paid members. I must say it was such a pleasure working with the [...]]]></description>
				<content:encoded><![CDATA[<p><a title="RocketTheme Tachyon Template and Anahita Groups by Aristocrat, on Flickr" href="http://www.flickr.com/photos/netphotography/5408044727/"><img src="http://farm6.static.flickr.com/5175/5408044727_43c429a5ac_z.jpg" alt="RocketTheme Tachyon Template and Anahita Groups" width="500" height="620" /></a></p>
<p>The great folks at the RockeTheme have been working for us to make <a href="http://demo.rockettheme.com/feb11/extensions/anahita" target="_blank">their new template &#8211; Tachyon -</a> which is compatible with the Anahita™ Social Networking Engine. The template was released yesterday and now it is available to all the RocketTheme paid members.</p>
<p>I must say it was such a pleasure working with the RT guys. They are just amazing and I really had fun during this collaboration. So thank you so much!</p>
<ul>
<li>Andy Miller, the founder and CEO of <a href="http://www.rockettheme.com" target="_blank">RocketTheme.com</a> for making this possible and providing last minute feature request support.</li>
<li>Brian Towles for the last minute feature implementation</li>
<li>James Spencer for putting together the updates in the last minute and being so patient with us.</li>
</ul>
<h3>More On the Tachyon Template and Anahita</h3>
<p>The minimalist Tachyon template from RocketTheme provides styling for the Anahita™ main user interfaces as well as 4 of the existing Anahita social applications: Groups, Discussions, Projects, and Photos.</p>
<p>The Tachyon template provides a custom layout with a 2,6,4 ratio by default which is required by the Anahita. This feature activates automatically when the Tachyon template detects the Anahita framework on the system.</p>
<h3>We have a promotion</h3>
<p><img src="http://www.anahitapolis.com/images/stories/partners/rockettheme_logo.png" alt="" /></p>
<p>If you are a <a href="http://www.rockettheme.com" target="_blank">RocketTheme.com</a> member we are giving away 100$ off on the first 100 people who sign up as Premium Tribe members with Anahitapolis.com</p>
<p>That is an awesome <strong>35% discount</strong>. Go to <a href="http://www.rockettheme.com/promotions">RocketTheme.com/promotions</a> to obtain your discount coupon and sign up for one year <a href="http://www.anahitapolis.com/join" target="_blank">Premium Tribe membership plan</a> with Anahitapolis.com</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.anahitapolis.com/2011/02/tachyon-the-first-anahita-compatible-template-from-rockettheme/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Shiraz: a template for Anahita ™</title>
		<link>http://blog.anahitapolis.com/2010/12/shiraz-a-template-for-anahita-social-engine/</link>
		<comments>http://blog.anahitapolis.com/2010/12/shiraz-a-template-for-anahita-social-engine/#comments</comments>
		<pubDate>Tue, 14 Dec 2010 07:45:06 +0000</pubDate>
		<dc:creator>Rastin Mehr</dc:creator>
				<category><![CDATA[Rastin Mehr]]></category>
		<category><![CDATA[gantry framework]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[rockettheme]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://blog.anahitapolis.com/?p=478</guid>
		<description><![CDATA[Template is important. It skins and renders all the application user interfaces and delivers all the things that we are all obsessed about: The User Experience, the Branding, and all those good things! We&#8217;ve had a basic template for Anahita which was quite good, except that it could only be used in one configuration. Anahita [...]]]></description>
				<content:encoded><![CDATA[<p><a title="Working on the next release of Anahita Social Engine ™ by Aristocrat, on Flickr" href="http://www.flickr.com/photos/netphotography/5205286993/"><img src="http://farm6.static.flickr.com/5209/5205286993_b3e8f2cb02.jpg" alt="Working on the next release of Anahita Social Engine ™" width="500" height="375" /></a></p>
<p>Template is important. It skins and renders all the application user interfaces and delivers all the things that we are all obsessed about: The User Experience, the Branding, and all those good things!</p>
<p>We&#8217;ve had a basic template for Anahita which was quite good, except that it could only be used in one configuration. Anahita also uses the more recent version of the <a href="http://mootools.net/" target="_blank">Mootools javascript library</a> and since <a href="http://www.joomla.org" target="_blank">Joomla!</a> was using the old mootools 1.1 for a while, that meant a lot of existing Joomla templates and modules could not be upgraded to work with the Anahita social networking engine.</p>
<p>Now things have changed. The Joomla! team has finally, &#8230; <strong>FINALLY</strong>! came up with a solution to upgrade the mootools library.  Also the wonderful <a href="http://www.gantry-framework.org" target="_blank">Gantry Framework</a> was released by the <a href="http://www.rockettheme.com" target="_blank">RocketTheme</a> which provides an awesome <a href="http://www.960.gs">960 standard grid system</a>, a very snazzy administration interface, and a wonderful framework to help us build flexible templates that are great not only for a CMS but also for more sophisticated software such as social networks. After doing some client projects with the Gantry framework, we really liked it and we have decided to develop the new default Anahita template using the Gantry Framework. That is how the Shiraz template was born.</p>
<p><a title="Shiraz: a template for Anahita ™ by Aristocrat, on Flickr" href="http://www.flickr.com/photos/netphotography/5256163563/"><img src="http://farm6.static.flickr.com/5209/5256163563_1398b81c8f.jpg" alt="Shiraz: a template for Anahita ™" width="485" height="500" /></a></p>
<p>The Shiraz template for Anahita ™ provides almost all the <a href="http://www.gantry-framework.org/documentation/joomla/basics/key-features" target="_blank">key features and main positions</a> that the Gantry framework does, in 12 column positions, as well as all the styling for the Anahita ™ and the following list of social applications:</p>
<ul>
<li>Anahita Social ™ Discussions</li>
<li>Anahita Social ™ Photos</li>
<li>Anahita Social ™ Groups</li>
<li>Anahita Social ™ Projects</li>
</ul>
<p><a title="Shiraz Template for Anahita ™ - Administration by Aristocrat, on Flickr" href="http://www.flickr.com/photos/netphotography/5256748690/"><img src="http://farm6.static.flickr.com/5002/5256748690_3c42aa9e13_z.jpg" alt="Shiraz Template for Anahita ™ - Administration" width="466" /></a></p>
<p>The Shiraz template is not a done and finished template. It is a blueprint for all the Anahita developers to learn how to customize the develop their own templates while exploiting all the features that the Anahita and Gantry framework provide. This also means that Anahita powered social networks can now use other <a href="http://www.rockettheme.com/extensions">great extensions</a> that are being distributed via the <a href="http://RocketTheme.com" target="_blank">RocketTheme.com</a> website as long as they are using the recent version of Mootools library.</p>
<p>To give you an example we are currently using the Shiraz template and the RocketTheme&#8217;s <a href="http://www.rockettheme.com/extensions-joomla/roknavmenu">RokNavMenu</a> extension on the Anahitapolis social network. We will be testing and using more of the RocketTheme&#8217;s extensions on the Shiraz template once we have merged the <a href="http://www.anahitapolis.com">Anahitapolis.com</a> and <a href="http://community.anahitapolis.com">community.anahitapolis.com</a> websites in a few weeks.</p>
<p><span id="more-478"></span></p>
<p>This however does not mean that all the rest of RocketTheme templates that are built using the Gantry Framework will be able to render the Anahita user interfaces yet. That is because they are still missing the required Anahita styling. If you have noticed RocketTheme actually includes additional styling for all the 3rd party extensions that they are supporting.</p>
<h3>Some Screen Captures</h3>
<p>Here are some screen captures that I have prepared for you. You can click on the images and see the original size images on the flickr.com website.</p>
<p><a title="Shiraz Template for Anahita ™ - Dashboard by Aristocrat, on Flickr" href="http://www.flickr.com/photos/netphotography/5256087881/sizes/o/in/photostream/" target="_blank"><img class="alignnone" src="http://farm6.static.flickr.com/5290/5256087881_8ab49783e0_b.jpg" alt="Shiraz Template for Anahita ™ - Dashboard" width="196" height="1024" /></a></p>
<p><a title="Shiraz Template for Anahita ™ - Photos Album by Aristocrat, on Flickr" href="http://www.flickr.com/photos/netphotography/5256627904/sizes/o/in/photostream/" target="_blank"><img src="http://farm6.static.flickr.com/5205/5256627904_175c0c0d8c_b.jpg" alt="Shiraz Template for Anahita ™ - Photos Album" width="316" height="1024" /></a></p>
<p><a title="Anahita Shiraz Template for Anahita ™ - Group Profile by Aristocrat, on Flickr" href="http://www.flickr.com/photos/netphotography/5256581162/sizes/o/in/photostream/" target="_blank"><img src="http://farm6.static.flickr.com/5283/5256581162_0aed32a0a3_b.jpg" alt="Anahita Shiraz Template for Anahita ™ - Group Profile" width="282" height="1024" /></a></p>
<p><a title="Anahita Shiraz Template - Person Profile by Aristocrat, on Flickr" href="http://www.flickr.com/photos/netphotography/5255916693/sizes/o/in/photostream/" target="_blank"><img src="http://farm6.static.flickr.com/5208/5255916693_11a75b4a14_b.jpg" alt="Anahita Shiraz Template - Person Profile" width="350" height="1024" /></a></p>
<h3>Don&#8217;t stay behind</h3>
<p><a href="http://www.anahitapolis.com/get-an-account">Get an account on Anahitapolis</a> to learn more about the project and ask your questions before signing up.</p>
<p><a href="http://www.anahitapolis.com/become-a-partner">Sign up here</a> to gain access to the most recent version of Anahita code, existing social applications, project management sites, and the support groups.</p>
<p>Join the <a href="http://www.facebook.com/anahitasocial" target="_blank">Anahita Facebook page</a><br />
Follow us on Twitter <a href="http://www.twitter.com/anahitapolis" target="_blank">@anahitapolis</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.anahitapolis.com/2010/12/shiraz-a-template-for-anahita-social-engine/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How To Develop a Template for Anahita</title>
		<link>http://blog.anahitapolis.com/2009/09/how-to-develop-a-template-for-anahita/</link>
		<comments>http://blog.anahitapolis.com/2009/09/how-to-develop-a-template-for-anahita/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 19:23:06 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Rastin Mehr]]></category>
		<category><![CDATA[nooku]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://blog.anahitapolis.com/?p=139</guid>
		<description><![CDATA[The focus of Anahita Social Engine 0.9.3 release was mainly to improve the template structure, views, and developing a set of standard CSS tags for the social engine and other existing applications. Before this release, our implementation was trying to accommodate every possible case scenario, but soon we learned that it was rather adding more [...]]]></description>
				<content:encoded><![CDATA[<p><a title="Untitled by Aristocrat, on Flickr" href="http://www.flickr.com/photos/netphotography/3916135029/"><img src="http://farm4.static.flickr.com/3423/3916135029_97056a1ae7.jpg" alt="" width="500" height="375" /></a></p>
<p>The focus of Anahita Social Engine 0.9.3 release was mainly to improve the template structure, views, and developing a set of standard CSS tags for the social engine and other existing applications. Before this release, our implementation was trying to accommodate every possible case scenario, but soon we learned that it was rather adding more to the complexity of the system than providing new options to the developers, so we decided to simplify, simplify, simplify instead!</p>
<p>We have also developed the first set of CSS tags that are descriptive and name-spaced properly so they won&#8217;t conflict with any other Joomla extensions that will be running on the same system.</p>
<p><span id="more-139"></span></p>
<h3>So How Different is an Anahita Template with a Joomla Template?</h3>
<p>The answer is not much! Developing template for Anahita is not much different than developing a template for Joomla, except one issue: Joomla 1.5 is natively using mootools 1.1 as the javascript framework and Anahita is currently using the <a href="http://www.mootools.net" target="_self">mootools 1.2.3</a>. So you&#8217;ll need to include these files in the index.php of your template:</p>
<pre class="html">&lt;script src="&lt;?php print $this-&gt;baseurl ?&gt;/media/plg_anahita/js/mootools.pack.js" /&gt;
&lt;script src="&lt;?php print $this-&gt;baseurl ?&gt;/media/plg_anahita/js/anahita.js" /&gt;</pre>
<p>Basically anytime that Anahita renders a page, it switches from the older 1.1 to the new 1.2.3, so if there are any modules that are developed using the older version of mootools, may not work properly withing the Anahita environment.</p>
<p><img class="alignnone" title="Mootools Javascript Framework" src="http://media.anahitapolis.com/logos/mootools.png" alt="" width="500" height="114" /></p>
<p>Other than that we haven&#8217;t changed the nature of how Joomla! 1.5 framework behaves and as a matter of fact extended the possibilities to make the template development for Anahita even simpler and more fun.</p>
<h3>You Get To Enjoy the View!</h3>
<p>Anahita is developed following a very clean and structured MVC code thanks to the <a href="http://www.nooku.org/en/framework.html" target="_self">Nooku ™ Framework</a>, which means all the views rendered by the Anahita Social Engine, Extensions, and Social Applications can be overwritten at the template level. That is nothing new since Joomla! 1.5 is already providing that functionality to us and we&#8217;ve just made sure that it has been used to its full potential.</p>
<p><img class="alignnone size-full wp-image-154" title="View-layout-0.9.3" src="http://blog.anahitapolis.com/wp-content/uploads/2009/09/View-layout-0.9.3.png" alt="View-layout-0.9.3" width="501" height="351" /></p>
<p>That means if you don&#8217;t like the classic social network look for your project, you can restructure the HTML outputs entirely and come up with your own version.</p>
<h3>No Funny Ways To Incorporate the CSS</h3>
<p>Have you seen how some Joomal extensions come up with funny and inconsistent ways to skin their components? For Anahita we have came up with a simple convention.</p>
<p>Anahita Social Engine, Extensions, and Social Apps all come with their own default style sheet that will be stored in the <em>media/css/{com_extension_name}/</em> directory. For example:</p>
<ul>
<li><em>media/com_socialengine/css/socialengine.css</em></li>
<li><em>media/com_discussions/css/discussions.css</em></li>
<li><em>media/com_photos/css/photos.css</em></li>
</ul>
<p>What they provide is a set of CSS styling for the user interfaces with a neutral grey &amp; white look &amp; feel that doesn&#8217;t&#8217; compete with the colors of your existing template. You can also overwrite the default stylesheet at the joomla template level. For example to completely overwrite the:</p>
<p><em>media/com_socialengine/css/socialengine.css</em></p>
<p>by just creating a file here:</p>
<p><em>templates/yourtemplatename/css/com_socialengine/socialengine.css</em></p>
<p>This is the same case for all other Anahita based components such as photos and discussions. To overwrite their default CSS files just create the following files respectively</p>
<ul>
<li><em>templates/anahita/css/com_discussions/discussions.css</em></li>
<li><em>templates/anahita/css/com_photos/photos.css</em></li>
</ul>
<p>One note about socialengine.css. socialengine.css  is a global styling for all the Anahita Social ™ apps and many of the tags in that file are and can be reused within the social application layouts. it&#8217;s always included automatically whether you are within the social engine environment or a social application environment.</p>
<p>If you decided to overwrite a tag at the template level intead of overwriting the entire stylesheet file, just include a new stylesheet file with a different name in your template&#8217;s</p>
<p><em>/html/componentname/viewname/layoutname.php</em></p>
<p>that way Anahita will still include the file from the media folder, yet you still get the chance to overwrite only some of the tags in your newly created CSS file.</p>
<h3>All CSS Tags Are Name Spaced</h3>
<p>All the tags are names spaced so they won&#8217;t possibly conflict with other components layouts. Here is the convention for name spacing the CSS tags:</p>
<p><em>.an-se-people</em></p>
<p>&#8220;an&#8221; stands for Anahita, &#8220;se&#8221; stands for Social Engine, and the class name follows.</p>
<p>as you can see they are dash &#8220;-&#8221; separated.</p>
<p>for the social apps you can use:</p>
<p><em>.an-photos-albums</em></p>
<p>&#8220;an&#8221; stands for Anahita, &#8220;photos&#8221; is the component com_photos, albums is the class name</p>
<h3>Don&#8217;t Have to Squish The Application Interface In The Middle!</h3>
<p>A Joomla! component as an application often needs more room than just the main component area. We have seen scenarios that an entire discussion board is squished in the middle component area and that just doesn&#8217;t look right. In Anahita we have an easy solution to that problem:</p>
<p>Traditionally we thought template positions (top, left, right, bottom, footer, user1, user2, &#8230; ) were used only for Joomla modules and that made sense if Joomla was mainly used as a CMS for publishing web pages, but when we are using Joomla as a web application framework, sometimes we need modules that only show on one particular screen rendered by a component. Anahita Social Engine has many screens and therefore developing modules for every page is a lot of work right?</p>
<p>We came up with a simple way to let the component inject HTML code snips (partials) to the template positions while rendering a UI. These partials look just like modules. Take a look at the following screen capture:</p>
<p><a title="Anahita Component Partials by Aristocrat, on Flickr" href="http://www.flickr.com/photos/netphotography/3914773196/"><img src="http://farm3.static.flickr.com/2614/3914773196_0f2dc4ef6a_o.png" alt="Anahita Component Partials" width="500" height="799" /></a></p>
<p>The green regions are not modules. They are code snips (partials) injected by the component in those positions. This will save you lots of time from developing modules, configuring and maintaining them. The red region is a module pushed down by the component partial. You can have the component inject partials under the modules if you like.</p>
<p>So how do we do that in Anahita? in your component view layout simply do this:</p>
<pre class="html">&lt;component:right&gt;
&lt;div&gt;
 &lt;?= @$gadget-&gt;render('socialengine', 'socialcloud') ?&gt;
 &lt;?= @$gadget-&gt;render('socialengine', 'publicmessages') ?&gt;
&lt;/div&gt;
&lt;/component:right&gt;</pre>
<p>and this is how you can retrieve them in your template index.php file:</p>
<pre>&lt;?php if( ($this-&gt;countModules('right') || $this-&gt;countModules('component.right')) ): ?&gt;
&lt;div id="right"&gt;
&lt;jdoc:include type="modules" name="component.right"  /&gt;
&lt;jdoc:include type="modules" name="right" style="rounded" /&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;</pre>
<p>and what that does is to inject the generated HTML for the social cloud or public messages in the template position &#8220;right&#8221;. If you are still confused, here is the generic code:</p>
<pre class="html">&lt;component:position_name&gt;
HTML code goes here
&lt;/component:position_name&gt;</pre>
<p>and since all the layouts can be over written at the Joomla template level, that means you have the freedom to rewrite and change the positions that the code snips are injected too.</p>
<p>Here is a question: what if a position that component is trying to inject the HTML code into didn&#8217;t exist? well, in that case the &lt;component:position_name&gt; will be ignored and that code snip will render within the component area.</p>
<p>You have noticed that because we are using the Nooku ™ Framework you don&#8217;t have to use</p>
<pre class="html">&lt;?php print $this-&gt;gadget-&gt;render(...) ?&gt;</pre>
<p>and instead you can use:</p>
<pre class="html">&lt;?= @$gadget-&gt;render() ?&gt;</pre>
<p>You can also use @script($path) to include a javascript file, @style($path) to include a style sheet, @route($URI) for creating a SEF URL.</p>
<h3>Questions? Comments?</h3>
<p>Please post them here or ask us on twitter <a href="http://www.twitter.com/anahitapolis" target="_blank">@anahitapolis</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.anahitapolis.com/2009/09/how-to-develop-a-template-for-anahita/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
