!!! Permalien / lecteur exportable : ces lignes permettent d'integrer facilement la page courante a un autre site :

!set current_module=!replace / by , in $module
!set module_path= !item 1 of $current_module
!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)
  !set permalien=$wims_ref_name?module=$module

!!# Si les librairies Jquery sont chargées, on fait un "slide".
!if $jquery_defined=yes
  !set js_show_export = jQuery('#export_media').slideDown();jQuery('#lien_export_media').hide();
  !set js_hide_export = jQuery('#export_media').slideUp();jQuery('#lien_export_media').slideDown();
!else
  !set js_show_export = document.getElementById('export_media').style.display = 'block';document.getElementById('lien_export_media').style.display = 'none';
  !set js_hide_export = document.getElementById('export_media').style.display = 'none';document.getElementById('lien_export_media').style.display = 'block';
!endif

<!-- _widgets/permalink.phtml -->
<$div0 class="menuitem" id="header_export">
  <$div1 id="lien_export_media">
   <a href="#wimstopbox" class="about" onclick="$js_show_export">$wims_name_display1</a>
  </$div1>
</$div0><!--menuitem-->

<div id="export_media" style="display:none;">
   <a href="#wimstopbox" onclick="$js_hide_export" class="float_right">X</a>

   <h2 class="about">$wims_name_display1</h2>

   <div class="field">
    <label for="wims_permalink">$wims_name_permalink1</label>
    <div class="formHelp">$wims_name_display2</div>
    <input id="wims_permalink" name="wims_permalink" value="$permalien" size="70">
   </div>

   <hr>

   <div class="field">
    <label for="wims_embed_textarea">$wims_name_embeddable</label>
    <div class="formHelp">$wims_name_display3</div>
    <textarea style="vertical-align:middle" rows="3" cols="50" readonly="readonly" id="wims_embed_textarea" name="wims_embed_textarea" >&lt;iframe src="$permalien&+embededwindow=true" title="WIMS embeddable" frameborder="0" class="wims_embed" style="width:100%;height:100%;min-height:800px;" allowfullscreen>&lt;/iframe></textarea>
   </div>
</div>
<!-- end _widgets/permalink.phtml -->
!endif
