<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Theme</title><link>https://sourceforge.net/p/pockeit/wiki/Theme/</link><description>Recent changes to Theme</description><atom:link href="https://sourceforge.net/p/pockeit/wiki/Theme/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 18 Nov 2013 21:20:23 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pockeit/wiki/Theme/feed" rel="self" type="application/rss+xml"/><item><title>Theme modified by Vincent Le Borgne</title><link>https://sourceforge.net/p/pockeit/wiki/Theme/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="theme"&gt;Theme&lt;/h1&gt;
&lt;p&gt;Themes manage all the style and the structure of your mobile app.&lt;/p&gt;
&lt;p&gt;Themes own four folders:&lt;br /&gt;
- header : all the js and third part that you want to import in your mobile app&lt;br /&gt;
- layout-templates : The templates of your layouts&lt;br /&gt;
- res : icones and screen splash for your app&lt;br /&gt;
- style : Own CSS files and resources&lt;br /&gt;
All your themes have to follow this folder pattern&lt;/p&gt;
&lt;h1 id="header"&gt;header&lt;/h1&gt;
&lt;p&gt;Header folder contains:&lt;br /&gt;
- A "js" folder where you can put css and js files. All the folder will be copy in the mobile app&lt;br /&gt;
- the file header.html witch defined how to import the js folder un an html layout&lt;br /&gt;
Exemple of header.html:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;script src="js/jquery.mobile-1.3.1.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;link href='http://fonts.googleapis.com/css?family=Meie+Script' rel='stylesheet' type='text/css'&amp;gt;&lt;br /&gt;
&amp;lt;link rel="stylesheet" type="text/css" href="js/jquery.mobile.structure-1.3.1.min.css" /&amp;gt;&lt;br /&gt;
&amp;lt;link rel="stylesheet" type="text/css" href="theme/main.css" /&amp;gt;&lt;br /&gt;
&amp;lt;script src="https://maps.googleapis.com/maps/api/js?sensor=false"&amp;gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="layout-templates"&gt;layout-templates&lt;/h1&gt;
&lt;p&gt;In layout-templates folder, you can create custom templates for your layouts.&lt;br /&gt;
All the template's name have to finish by "-template.html"&lt;br /&gt;
In those templates, you simply write HTML contents.&lt;br /&gt;
To define "zone" (place where you can add gadget), you just have to add html class zone to a DIV&lt;br /&gt;
for exemple:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;div data-role="content"&amp;gt;&lt;br /&gt;
  &amp;lt;div id="zone-corps" class="zone"&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The gadget style is independant from template&lt;/p&gt;
&lt;h1 id="res"&gt;res&lt;/h1&gt;
&lt;p&gt;res define all the icon app and screensplash for android and ios.&lt;br /&gt;
To update them, you can modify the /web/pockeit/templates/main-header/config.xml (cf &lt;a href="https://build.phonegap.com/docs/config-xml" rel="nofollow"&gt;https://build.phonegap.com/docs/config-xml&lt;/a&gt;) or just update existing pictures (keep the exact same dimensions).&lt;/p&gt;
&lt;h1 id="style"&gt;style&lt;/h1&gt;
&lt;p&gt;All the style folder will be copy in your mobile app.&lt;br /&gt;
The main.css is your entry point. You can import more css files using&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;@import url("style.css");&lt;br /&gt;
You can add image in the style subfolder of your choice and use them in your CSS like thant&lt;br /&gt;
background-image:url(img/logo.png);&lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vincent Le Borgne</dc:creator><pubDate>Mon, 18 Nov 2013 21:20:23 -0000</pubDate><guid>https://sourceforge.net41fc908676d2f9a952a0f2067786371d216f597a</guid></item></channel></rss>