| 52 | | <?php } else { |
| 53 | | $base = 'repository/trunk/demos/'; |
| 54 | | $section = $base . $_GET['load']; |
| 55 | | |
| 56 | | ?> |
| 57 | | <script type="text/javascript"> |
| 58 | | var section; |
| 59 | | |
| 60 | | <?php printf ('section = "%s";', $section); ?> |
| 61 | | |
| 62 | | section && jQuery(function($){ |
| 63 | | $('dl.nav a').each(function(){ |
| 64 | | this.setAttribute('href', '/' + section + '/' + this.getAttribute('href')); |
| 65 | | $(this).attr('target', 'preview'); |
| 66 | | }); |
| 67 | | }); |
| 68 | | </script> |
| 97 | | <?php if(isset($plain) && isset($_GET['load'])) { |
| 98 | | echo html_entity_decode('<h4 class="demo-subheader">Functional demo:</h4>'); |
| 99 | | echo html_entity_decode('<h3>'. $_GET['load'] .'</h3>'); |
| 100 | | echo html_entity_decode('<div class="demo-config">'); |
| 101 | | echo html_entity_decode('<iframe id="preview" name="preview" src="/'. $section .'/default.html" width="520" height="314" border="0" frameborder="0" style="overflow:auto"></iframe>'); |
| 102 | | echo html_entity_decode('<div class="demo-config-menu">'); |
| 103 | | include($section .'/index.html'); |
| 104 | | echo html_entity_decode('</div>'); |
| 105 | | echo html_entity_decode('</div>'); |
| 106 | | } else { ?> |
| | 80 | <?php if(isset($plain) && $content) { echo $content; } else { ?> |