| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
|---|
| 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|---|
| 3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|---|
| 4 | <head> |
|---|
| 5 | <title>PSE widget structure</title> |
|---|
| 6 | <meta http-equiv="content-type" content="text/html;charset=utf-8" /> |
|---|
| 7 | <meta name="generator" content="Geany 0.20" /> |
|---|
| 8 | </head> |
|---|
| 9 | |
|---|
| 10 | <body> |
|---|
| 11 | <h1>Widget structure</h1> |
|---|
| 12 | <p>This is the basic widget layout. Please change styles and anything within <code>a.entry-widget-launcher</code>, |
|---|
| 13 | but all class names should stay the same, while the structure (divs etc) should be altered only after discussion.</p> |
|---|
| 14 | <p>All <code>style</code> attributes can be edited -- QUESTION: we're probably best not to import a CSS file since it's likely to |
|---|
| 15 | clash with the host page's CSS and is another file to include... All the CSS magic will be in the iFrame</p> |
|---|
| 16 | <p>The 'pretent sidebar' div (<code>div#pretend-sidebar</code>) is just to hold the widget container as if in a page and is not part of the widget.</p> |
|---|
| 17 | <p>View the source to see the code.</p> |
|---|
| 18 | <h3>CSS Classes</h3> |
|---|
| 19 | <p>Will be used by jQuery etc to manipulate the code</p> |
|---|
| 20 | <ul> |
|---|
| 21 | <li><strong>.tn-pse-widget-container</strong> - container wrapper for the whole thing.</li> |
|---|
| 22 | <li><strong>.widget-upper</strong> - upper wrapper inside container.</li> |
|---|
| 23 | <li><strong>.view-widget</strong> - iFrame within upper section</li> |
|---|
| 24 | <li><strong>.widget-lower</strong> - lower wrapper inside container.</li> |
|---|
| 25 | <li><strong>.entry-widget-launcher</strong> - <code><a></code> tag with image for add button</li> |
|---|
| 26 | </ul> |
|---|
| 27 | |
|---|
| 28 | <div id="pretend-sidebar" style="max-width: 200px"> |
|---|
| 29 | |
|---|
| 30 | <!-- TN-PSE: widget begin --> |
|---|
| 31 | <script type="text/javascript" src="#"></script> |
|---|
| 32 | <div class="tn-pse-widget-container" style="background: white; border: 1px solid #d0e7b4"> |
|---|
| 33 | <div class="widget-upper" style="padding: 5px; overflow:hidden"> |
|---|
| 34 | <iframe class="view-widget" src="http://www.transitionnetwork.org/" frameborder="0" |
|---|
| 35 | style="width: 100%; height: 300px; border: none; overflow: hidden;"></iframe> |
|---|
| 36 | </div> |
|---|
| 37 | <div class="widget-lower" style="padding: 5px"> |
|---|
| 38 | <a href="#" class="entry-widget-launcher"><span>Add your project!</span></a> |
|---|
| 39 | </div> |
|---|
| 40 | </div> |
|---|
| 41 | <!-- TN-PSE: widget end --> |
|---|
| 42 | |
|---|
| 43 | </div> |
|---|
| 44 | </body> |
|---|
| 45 | |
|---|
| 46 | </html> |
|---|