Rev 17170 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
17821 | bpr | 1 | !!! Permalien / lecteur exportable : ces lignes permettent d'integrer facilement la page courante a un autre site : |
5989 | bpr | 2 | |
3 | !set current_module=!replace / by , in $module |
||
10560 | obado | 4 | !set module_path= !item 1 of $current_module |
5989 | bpr | 5 | !if $module_path notitemof home,adm,classes and _exam notin $session and $wims_lightpopup!=yes and ($wims_user=supervisor or $wims_user=$empty) and ($cmd=intro or $cmd=$empty) |
12590 | obado | 6 | !set permalien=$wims_ref_name?module=$module |
5989 | bpr | 7 | |
6042 | obado | 8 | !!# Si les librairies Jquery sont chargées, on fait un "slide". |
9 | !if $jquery_defined=yes |
||
12590 | obado | 10 | !set js_show_export = jQuery('#export_media').slideDown();jQuery('#lien_export_media').hide(); |
11 | !set js_hide_export = jQuery('#export_media').slideUp();jQuery('#lien_export_media').slideDown(); |
||
6042 | obado | 12 | !else |
12590 | obado | 13 | !set js_show_export = document.getElementById('export_media').style.display = 'block';document.getElementById('lien_export_media').style.display = 'none'; |
14 | !set js_hide_export = document.getElementById('export_media').style.display = 'none';document.getElementById('lien_export_media').style.display = 'block'; |
||
6042 | obado | 15 | !endif |
16 | |||
12590 | obado | 17 | <!-- _widgets/permalink.phtml --> |
18 | <$div0 class="menuitem" id="header_export"> |
||
6042 | obado | 19 | <$div1 id="lien_export_media"> |
20 | <a href="#wimstopbox" class="about" onclick="$js_show_export">$wims_name_display1</a> |
||
21 | </$div1> |
||
12590 | obado | 22 | </$div0><!--menuitem--> |
10560 | obado | 23 | |
12590 | obado | 24 | <div id="export_media" style="display:none;"> |
6042 | obado | 25 | <a href="#wimstopbox" onclick="$js_hide_export" class="float_right">X</a> |
26 | |||
27 | <h2 class="about">$wims_name_display1</h2> |
||
28 | |||
29 | <div class="field"> |
||
10560 | obado | 30 | <label for="wims_permalink">$wims_name_permalink1</label> |
6042 | obado | 31 | <div class="formHelp">$wims_name_display2</div> |
17170 | bpr | 32 | <input id="wims_permalink" name="wims_permalink" value="$permalien" size="70"> |
6042 | obado | 33 | </div> |
10560 | obado | 34 | |
17170 | bpr | 35 | <hr> |
10560 | obado | 36 | |
6042 | obado | 37 | <div class="field"> |
38 | <label for="wims_embed_textarea">$wims_name_embeddable</label> |
||
39 | <div class="formHelp">$wims_name_display3</div> |
||
40 | <textarea style="vertical-align:middle" rows="3" cols="50" readonly="readonly" id="wims_embed_textarea" name="wims_embed_textarea" ><iframe src="$permalien&+embededwindow=true" title="WIMS embeddable" frameborder="0" class="wims_embed" style="width:100%;height:100%;min-height:800px;" allowfullscreen></iframe></textarea> |
||
41 | </div> |
||
12590 | obado | 42 | </div> |
6042 | obado | 43 | <!-- end _widgets/permalink.phtml --> |
5989 | bpr | 44 | !endif |