aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver/template/overall_header.html
diff options
context:
space:
mode:
authorVjacheslav Trushkin <cyberalien@gmail.com>2013-08-16 19:45:38 +0300
committerVjacheslav Trushkin <cyberalien@gmail.com>2013-09-14 10:10:43 +0300
commit22c8df5403b74cbcad8a267f12c048eaaf053e0f (patch)
treefc1d24e6e9341c920c155b026238185799212f2c /phpBB/styles/prosilver/template/overall_header.html
parent4c2aad4ca959d1806c1833a3d4dd141b5c9f50ba (diff)
downloadforums-22c8df5403b74cbcad8a267f12c048eaaf053e0f.tar
forums-22c8df5403b74cbcad8a267f12c048eaaf053e0f.tar.gz
forums-22c8df5403b74cbcad8a267f12c048eaaf053e0f.tar.bz2
forums-22c8df5403b74cbcad8a267f12c048eaaf053e0f.tar.xz
forums-22c8df5403b74cbcad8a267f12c048eaaf053e0f.zip
[ticket/11795] Move PM popup JS to forum_fn.js
Move PM popup JavaScript from overall_header to forum_fn.js Use TWIG to escape PM popup URL PHPBB3-11795
Diffstat (limited to 'phpBB/styles/prosilver/template/overall_header.html')
-rw-r--r--phpBB/styles/prosilver/template/overall_header.html17
1 files changed, 5 insertions, 12 deletions
diff --git a/phpBB/styles/prosilver/template/overall_header.html b/phpBB/styles/prosilver/template/overall_header.html
index 8342136da3..26394034d4 100644
--- a/phpBB/styles/prosilver/template/overall_header.html
+++ b/phpBB/styles/prosilver/template/overall_header.html
@@ -24,17 +24,6 @@
Modified by:
-->
-<script type="text/javascript">
-// <![CDATA[
-
- <!-- IF S_USER_PM_POPUP and S_NEW_PM -->
- var url = '{UA_POPUP_PM}';
- window.open(url.replace(/&amp;/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400');
- <!-- ENDIF -->
-
-// ]]>
-</script>
-
<link href="{T_THEME_PATH}/print.css?assets_version={T_ASSETS_VERSION}" rel="stylesheet" type="text/css" media="print" title="printonly" />
<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />
<link href="{T_STYLESHEET_LANG_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />
@@ -47,12 +36,16 @@
<link href="{T_THEME_PATH}/tweaks.css?assets_version={T_ASSETS_VERSION}" rel="stylesheet" type="text/css" media="screen, projection" />
<![endif]-->
+<!-- IF S_USER_PM_POPUP and S_NEW_PM -->
+ {% set body_attributes %}{{ body_attributes }} data-popup-pm-url="{{ U_POPUP_PM|e('html_attr') }}"{% endset %}
+<!-- ENDIF -->
+
<!-- EVENT overall_header_head_append -->
{$STYLESHEETS}
</head>
-<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">
+<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}"{{ body_attributes }}>
<div id="wrap">
<a id="top" accesskey="t"></a>