Rev 12590 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 7606 | obado | 1 | !! Permalien / lecteur exportable : ces lignes permettent d'integrer facilement la page courante a un autre site : |
| 2 | |||
| 3 | !set current_module=!replace / by , in $module |
||
| 7671 | bpr | 4 | !set module_path= !item 1 of $current_module |
| 7606 | obado | 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) |
| 6 | !set permalien=$wims_ref_name?module=$module |
||
| 7 | |||
| 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').toggle(200); |
| 7606 | obado | 11 | !set js_hide_export = jQuery('#export_media').slideUp(); |
| 12 | !else |
||
| 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'; |
||
| 15 | !endif |
||
| 16 | |||
| 12590 | obado | 17 | <!-- _widgets/permalink.phtml --> |
| 18 | <div class="float_left"> |
||
| 7671 | bpr | 19 | |
| 12590 | obado | 20 | <ul class="wimsmenu menu"> |
| 21 | <li class="menuitem share" id="header_export"> |
||
| 22 | <a href="#wimstopbox" class="share" id="lien_export_media" onclick="$js_show_export">$wims_name_display1</a> |
||
| 23 | </li> |
||
| 24 | </ul> |
||
| 7606 | obado | 25 | |
| 12590 | obado | 26 | <fieldset id="export_media" class="property_fields wimscenter" style="display:none;position:absolute;"> |
| 27 | <legend>$wims_name_display1</legend> |
||
| 7606 | obado | 28 | |
| 12590 | obado | 29 | <a href="#wimstopbox" onclick="$js_hide_export" |
| 30 | style="margin-top:-1em;" |
||
| 31 | class="float_right wims_button icon_button small"><span class="back">$wims_name_Close</span></a> |
||
| 7671 | bpr | 32 | |
| 12590 | obado | 33 | <div class="field box"> |
| 34 | <label for="wims_permalink">$wims_name_permalink1</label> |
||
| 17178 | bpr | 35 | <input id="wims_permalink" name="wims_permalink" value="$permalien" size="70"> |
| 12590 | obado | 36 | <div class="formHelp">$wims_name_display2</div> |
| 37 | </div> |
||
| 7671 | bpr | 38 | |
| 12590 | obado | 39 | <div class="field box"> |
| 40 | <label for="wims_embed_textarea">$wims_name_embeddable</label> |
||
| 41 | <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> |
||
| 42 | <div class="formHelp">$wims_name_display3</div> |
||
| 43 | </div> |
||
| 7671 | bpr | 44 | |
| 12590 | obado | 45 | </fieldset> |
| 46 | </div> |
||
| 7606 | obado | 47 | |
| 48 | <!-- end _widgets/permalink.phtml --> |
||
| 49 | !endif |