aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver/template/ucp_pm_viewmessage.html
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-03-20 02:33:19 -0700
committerCesar G <prototech91@gmail.com>2014-04-15 08:56:34 -0700
commiteae37267a5dd88233af8c8d93b1f9c8d80dc4757 (patch)
tree32f6fc01d1462c673b27eabfb1a0f4ae2c7de274 /phpBB/styles/prosilver/template/ucp_pm_viewmessage.html
parent7d4be1fe195061fa9ff38d2b83480874843d36bb (diff)
downloadforums-eae37267a5dd88233af8c8d93b1f9c8d80dc4757.tar
forums-eae37267a5dd88233af8c8d93b1f9c8d80dc4757.tar.gz
forums-eae37267a5dd88233af8c8d93b1f9c8d80dc4757.tar.bz2
forums-eae37267a5dd88233af8c8d93b1f9c8d80dc4757.tar.xz
forums-eae37267a5dd88233af8c8d93b1f9c8d80dc4757.zip
[ticket/12265] Simplify contact icon design and move to dropdown.
PHPBB3-12265
Diffstat (limited to 'phpBB/styles/prosilver/template/ucp_pm_viewmessage.html')
-rw-r--r--phpBB/styles/prosilver/template/ucp_pm_viewmessage.html63
1 files changed, 47 insertions, 16 deletions
diff --git a/phpBB/styles/prosilver/template/ucp_pm_viewmessage.html b/phpBB/styles/prosilver/template/ucp_pm_viewmessage.html
index f14e4708e7..efc45e1af8 100644
--- a/phpBB/styles/prosilver/template/ucp_pm_viewmessage.html
+++ b/phpBB/styles/prosilver/template/ucp_pm_viewmessage.html
@@ -35,24 +35,55 @@
<!-- IF U_PM or U_EMAIL or U_JABBER -->
- <dd class="profile-contact">
- <ul class="profile-icons">
- <!-- EVENT ucp_pm_viewmessage_contact_fields_before -->
- <!-- IF U_PM --><li class="pm-icon"><a href="{U_PM}" title="{L_PRIVATE_MESSAGE}"><span>{L_PRIVATE_MESSAGE}</span></a></li><!-- ENDIF -->
- <!-- IF U_EMAIL --><li class="email-icon"><a href="{U_EMAIL}" title="{L_SEND_EMAIL_USER} {MESSAGE_AUTHOR}"><span>{L_SEND_EMAIL_USER} {MESSAGE_AUTHOR}</span></a></li><!-- ENDIF -->
- <!-- IF U_JABBER --><li class="jabber-icon"><a href="{U_JABBER}" onclick="popup(this.href, 550, 320); return false;" title="{L_JABBER}"><span>{L_JABBER}</span></a></li><!-- ENDIF -->
+ {% set CELL_BREAK = {1: 1, 2: 1, 3: 2, 4: 2, 5: 3, 6: 3, 7: 4, 8: 4, 9: 5, 10: 5, 11: 4, 12: 4, 13: 5, 14: 5, 16: 4} %}
+ {% set CONTACT_CNT = 0 %}
+ {% set CNT = 0 %}
+ <!-- IF U_PM -->{% set CONTACT_CNT = CONTACT_CNT + 1 %}<!-- ENDIF -->
+ <!-- IF U_EMAIL -->{% set CONTACT_CNT = CONTACT_CNT + 1 %}<!-- ENDIF -->
+ <!-- IF U_JABBER -->{% set CONTACT_CNT = CONTACT_CNT + 1 %}<!-- ENDIF -->
+
<!-- BEGIN custom_fields -->
- <!-- IF custom_fields.S_PROFILE_CONTACT -->
- <li class="{custom_fields.PROFILE_FIELD_IDENT}-icon">
- <a href="<!-- IF custom_fields.PROFILE_FIELD_CONTACT -->{custom_fields.PROFILE_FIELD_CONTACT}<!-- ELSE -->{U_MESSAGE_AUTHOR}<!-- ENDIF -->">
- <span>{custom_fields.PROFILE_FIELD_NAME}</span>
- </a>
- </li>
- <!-- ENDIF -->
+ <!-- IF custom_fields.S_PROFILE_CONTACT -->{% set CONTACT_CNT = CONTACT_CNT + 1 %}<!-- ENDIF -->
<!-- END custom_fields -->
- <!-- EVENT ucp_pm_viewmessage_contact_fields_after -->
- </ul>
- </dd>
+ <!-- IF CELL_BREAK[CONTACT_CNT] -->{% set DIV_CNT = CELL_BREAK[CONTACT_CNT] %}<!-- ELSE -->{% set DIV_CNT = 4 %}<!-- ENDIF -->
+
+ <dd class="profile-contact">
+ <strong>{L_CONTACT_USER}{L_COLON}</strong>
+ <div class="dropdown-container">
+ <a href="#" class="dropdown-trigger">Trigger</a>
+ <div class="dropdown hidden">
+ <div class="pointer"><div class="pointer-inner"></div></div>
+ <div class="dropdown-contents contact-icons">
+ <div>
+ <!-- EVENT ucp_pm_viewmessage_contact_fields_before -->
+ <!-- IF U_PM -->
+ {% set CNT = CNT + 1 %}
+ <a href="{U_PM}" title="{L_PRIVATE_MESSAGE}"><span class="contact-icon pm-icon"></span></a>
+ <!-- ENDIF -->
+ <!-- IF U_EMAIL -->
+ {% set CNT = CNT + 1 %}
+ <a href="{U_EMAIL}" title="{L_SEND_EMAIL_USER} {POST_AUTHOR}"><span class="contact-icon email-icon"></span></a>
+ <!-- ENDIF -->
+ <!-- IF U_JABBER -->
+ {% set CNT = CNT + 1 %}
+ <a <!-- IF CNT % DIV_CNT == 0 -->class="last-cell" <!-- ENDIF -->href="{U_JABBER}" onclick="popup(this.href, 550, 320); return false;" title="{L_JABBER}"><span class="contact-icon jabber-icon"></span></a>
+ <!-- IF (CNT % DIV_CNT == 0) && CNT != CONTACT_CNT --></div><div><!-- ENDIF -->
+ <!-- ENDIF -->
+ <!-- BEGIN custom_fields -->
+ <!-- IF custom_fields.S_PROFILE_CONTACT -->
+ {% set CNT = CNT + 1 %}
+ <a <!-- IF CNT % DIV_CNT == 0 -->class="last-cell" <!-- ENDIF -->href="<!-- IF postrow.custom_fields.PROFILE_FIELD_CONTACT -->{custom_fields.PROFILE_FIELD_CONTACT}<!-- ELSE -->{U_POST_AUTHOR}<!-- ENDIF -->" title="{custom_fields.PROFILE_FIELD_NAME}">
+ <span class="contact-icon {custom_fields.PROFILE_FIELD_IDENT}-icon"></span>
+ </a>
+ <!-- IF (CNT % DIV_CNT == 0) && CNT != CONTACT_CNT --></div><div><!-- ENDIF -->
+ <!-- ENDIF -->
+ <!-- END custom_fields -->
+ <!-- EVENT ucp_pm_viewmessage_contact_fields_after -->
+ </div>
+ </div>
+ </div>
+ </div>
+ </dd>
<!-- ENDIF -->
</dl>