Date: Fri, 29 Mar 2024 12:35:07 +0100 (CET) Message-ID: <1785103715.113.1711712107962@confluence-esup.uphf.fr> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_112_566435332.1711712107962" ------=_Part_112_566435332.1711712107962 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Le th=C3=A8me universality ne propose plus de bouton de r=C3=A9= duction ou de restauration de fen=C3=AAtre.
Pour les ajouter, =C3=A9ditez le fichier ${esup.root}/custom/uPortal/upo= rtal-war/src/main/resources/layout/theme/universality/content.xsl :
Lignes 75, 102, 141 modifiez :
<xsl= :copy-of select=3D"."/> <!-- Write in the contents of the portlet. --= >
Par :
<xsl= :if test=3D"@minimized !=3D 'true'"> <xsl:copy-of select=3D"."/> <!-- Write in the contents of the po= rtlet. --> </xsl:if>
Dans la partie template controls, ajoutez :
=09=09= =09<xsl:if test=3D"not(//focused)"> =09=09=09=09<xsl:choose> =09=09=09=09=09<xsl:when test=3D"@minimized=3D'true'"> <!-- Unmini= mize. --> =09=09=09=09=09=09<a =09=09=09=09=09=09=09href=3D"{$baseActionURL}?uP_tcattr=3Dminimized&= ;minimized_channelId=3D{@ID}&minimized_{@ID}_value=3Dfalse#{@ID}" c= lass=3D"portlet-control unminimize"> =09=09=09=09=09=09=09<span> =09=09=09=09=09=09=09=09<xsl:value-of select=3D"$TOKEN[@name=3D'PORTLET_= UNMINIMIZE_LABEL']" /> =09=09=09=09=09=09=09</span> =09=09=09=09=09=09</a> =09=09=09=09=09</xsl:when> =09=09=09=09=09<xsl:otherwise> <!-- Minimize. --> =09=09=09=09=09=09<a =09=09=09=09=09=09=09href=3D"{$baseActionURL}?uP_tcattr=3Dminimized&= ;minimized_channelId=3D{@ID}&minimized_{@ID}_value=3Dtrue#{@ID}" cl= ass=3D"portlet-control minimize"> =09=09=09=09=09=09=09<span> =09=09=09=09=09=09=09=09<xsl:value-of select=3D"$TOKEN[@name=3D'PORTLET_= MINIMIZE_LABEL']" /> =09=09=09=09=09=09=09</span> =09=09=09=09=09=09</a> =09=09=09=09=09</xsl:otherwise> =09=09=09=09</xsl:choose> =09=09=09</xsl:if>
Pour ajouter un contr=C3=B4le de d=C3=A9tachement d'un canal iframe vers=
un nouvel onglet/fen=C3=AAtre, =C3=A9ditez le fichier ${esup.root}/custom/=
uPortal/uportal-war/src/main/resources/layout/theme/universality/content.xs=
l :
Dans la partie template controls, ajoutez :
= <xsl:if test=3D"parameter[@name=3D'url']"> <!-- Detach iframe cont= ent. --> =09 <xsl:choose> =09 <xsl:when test=3D"string-length(substring-after(parameter[@na= me=3D'url']/@value,'service=3D'))> 0"> =09 <a href=3D"{substring-after(parameter[@name=3D'url']/@value= ,'service=3D')}" target=3D"_blank" title=3D"{$TOKEN[@name=3D'PORTLET_DETACH= _LONG_LABEL']}" class=3D"portlet-control detach"> <span><xsl:value-of select=3D"$TOKEN[@name=3D'PORTLE= T_DETACH_LABEL']"/></span> </a> =09 </xsl:when> =09 <xsl:otherwise> <a href=3D"{parameter[@name=3D'url']/@value}" target=3D"_bla= nk" title=3D"{$TOKEN[@name=3D'PORTLET_DETACH_LONG_LABEL']}" class=3D"portle= t-control detach"> <span><xsl:value-of select=3D"$TOKEN[@name=3D'PORTLE= T_DETACH_LABEL']"/></span> </a> =09 </xsl:otherwise> =09 </xsl:choose> </xsl:if>