Also ich hab das bei mir jetzt mal im Portal an der Shoutbox ausprobiert. Es funktioniert. Bei der Evaluierung mit XHTML Strict wurde dieses auch nicht beanstandet - scheint also valid code zu sein.
Allerdings ist die Umsetzung mit etwas Arbeit verbunden, da man jeden Block editieren müsste.
Hier mal mein Beispiel von der Shoutbox:
Code: Select all
<div id="portal_shoutbox_h" style="display:none;">
<div>
{$C_BLOCK_H_L_MINMAX}<img style="padding-top:9px;padding-right:6px;float:right;cursor:pointer;" src="{T_THEME_PATH}/images/icon_maximize.gif" onclick="javascript:ShowHide('portal_shoutbox_nh','portal_shoutbox_h','portal_shoutbox_nh');" alt="Portal-Shoutbox" />{$C_BLOCK_H_L_MINMAX1}Shoutbox{$C_BLOCK_H_R}
<table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="row1"><span class="gensmall"> </span>
</td>
</tr>
</table>
{$C_BLOCK_F_L}{$C_BLOCK_F_R}
</div>
</div>
<div id="portal_shoutbox_nh">
<script type="text/javascript">
//<![CDATA[
<!--
tmp = 'portal_shoutbox';
if(GetCookie(tmp) == '2')
{
ShowHide('portal_shoutbox_nh', 'portal_shoutbox_h', 'portal_shoutbox_nh');
}
//-->
//]]>
</script>
<div>
{$C_BLOCK_H_L_MINMAX}<img style="padding-top:9px;padding-right:6px;float:right;cursor:pointer;" src="{T_THEME_PATH}/images/icon_minimize.gif" onclick="javascript:ShowHide('portal_shoutbox_nh','portal_shoutbox_h','portal_shoutbox_nh');" alt="Shoutbox" />{$C_BLOCK_H_L_MINMAX1}Shoutbox{$C_BLOCK_H_R}
<table class="tablebg" cellspacing="1" width="100%">
<tr>
<td>
<!-- IF not S_IS_BOT -->
<div style="font-size:1.2em;">
{SHOUTBOX}
</div>
<!-- ELSE -->
<div id="ajaxChatCopyright">
<a href="https://blueimp.net/ajax/">AJAX Chat</a> © <a href="https://blueimp.net">blueimp.net</a>
</div>
<!-- ENDIF -->
</td>
</tr>
</table>
{$C_BLOCK_F_L}{$C_BLOCK_F_R}
</div>
</div>
vielleicht gibt es eine Möglichkeit einen allg. Code zu entwickeln, den man dann in die Blöcke über einen include einfügen kann?!
Auf jeden Fall muss jeder Block eine eigene "ID" bekommen, damit man diesen dann über den Aufruf (javascript:ShowHide('portal_shoutbox_nh','portal_shoutbox_h','portal_shoutbox_nh');) auch entsprechend aus- oder einblenden kann.
Für den Black-Pearl Style hab ich dafür in der _block_config einfach $C_BLOCK_H_L_MINMAX und $C_BLOCK_H_L_MINMAX1 eingefügt
Code: Select all
<!-- DEFINE $C_BLOCK_H_L_MINMAX = '<div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c">' -->
<!-- DEFINE $C_BLOCK_H_L_MINMAX1 = '<div class="tbl-title"><span style="float: center">' -->
damit man diese minimize und maximize Bilder auch in den Block-Kopf bekommt. Denke das wäre ein guter Ansatz. Ich weis nicht ob man für einen allg. Ansatz für die unterschiedlichen "ID"s mit _FILE_ per php arbeiten kann.
Demo ist auf
http://trf.mc-sig.de bei der Shoutbox im Portal zu sehen