Sample Theme: Difference between revisions


mNo edit summary
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The sample Viviti theme below will give you a clear example of the minimal requirements necessary to create a working theme.
The sample theme below will give you a clear example of the minimal requirements necessary to create a working theme.


==Sample Theme for Download==


====Sample Viviti Theme for Download:====
http://builderexample.com/files/others/blank_theme.zip
 
    [http://viviti.com/docs/blank_viviti_theme.zip blank_viviti_theme.zip] ZIP Archive A blank Viviti theme to work from


This includes all the files you need to get started.
This includes all the files you need to get started.


If you downloaded the file above, you should recognize the html below. Here is an example showing only the required html elements for a Viviti theme and nothing more:
==Blank theme HTML showing only required elements==


If you downloaded the file above, you should recognize the html below. Here is an example showing only the required html elements for a theme and nothing more:


====Blank Viviti theme html showing only required elements:====
<pre>
<pre>
     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     <html>
     <html>
     <head>
     <head>
     <title>Viviti Example Theme</title>
     <title>Example Theme</title>
     </head>
     </head>
     <body>
     <body>
Line 39: Line 38:




If the above was all the html in your Viviti theme, it would work; the requirements are very minimal.
If the above was all the html in your theme, it would work; the requirements are very minimal.




'''Viviti will automatically remove any html you place inside any of the required elements and then populate them with predefined html based on any content you add later using the Viviti editor toolbar.'''
'''We will automatically remove any html you place inside any of the required elements and then populate them with predefined html based on any content you add later using the editor toolbar.'''




In addition to the required html elements, you will be able to add Optional [[:Category:Components | Components]] such as blogs, friends lists, photo galleries, and more using the Viviti editor toolbar. These differ from the [[required HTML Elements]] in that they are optional rather than required, but you can style them in the same way, by knowing what html gets inserted and creating css for it in your stylesheet.
In addition to the required html elements, you will be able to add Optional [[:Category:Components | Components]] such as blogs, friends lists, photo galleries, and more using the editor toolbar. These differ from the [[required HTML Elements]] in that they are optional rather than required, but you can style them in the same way, by knowing what html gets inserted and creating css for it in your stylesheet.


[[Category:Themes]]
[[Category:Creating Themes]]

Latest revision as of 11:45, 20 December 2010

The sample theme below will give you a clear example of the minimal requirements necessary to create a working theme.

Sample Theme for Download

http://builderexample.com/files/others/blank_theme.zip

This includes all the files you need to get started.

Blank theme HTML showing only required elements

If you downloaded the file above, you should recognize the html below. Here is an example showing only the required html elements for a theme and nothing more:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <title>Example Theme</title>
    </head>
    <body>
→   <h1 id="site_heading">Site Heading</h1>          
→   <h2 id="site_subheading">Site Subheading</h2>    
    
→   <div id="primary_navigation">Primary navigation list</div>                    

→   <div id="location_0" class="location">
    Main site content
    </div>
  
→   <div id="copyright">
    Copyright content
    </div>

    </body>
    </html>

In the code sample above, the required html elements are noted with arrows.


If the above was all the html in your theme, it would work; the requirements are very minimal.


We will automatically remove any html you place inside any of the required elements and then populate them with predefined html based on any content you add later using the editor toolbar.


In addition to the required html elements, you will be able to add Optional Components such as blogs, friends lists, photo galleries, and more using the editor toolbar. These differ from the required HTML Elements in that they are optional rather than required, but you can style them in the same way, by knowing what html gets inserted and creating css for it in your stylesheet.