Skip to content

Commit 3a9317b

Browse files
committed
Use static version cache also
1 parent 555fabf commit 3a9317b

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

lhc_web/design/defaulttheme/tpl/pagelayouts/userchat2.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,24 +94,28 @@
9494
<?php endif; ?>
9595

9696
<?php
97+
98+
$cfg = erConfigClassLhConfig::getInstance();
99+
$staticVersion = (int)$cfg->getSetting('site', 'static_version', false);
100+
97101
$detect = new Mobile_Detect();
98102
if (
99103
$detect->version('IE') !== false ||
100104
($detect->version('Chrome') !== false && $detect->version('Chrome',Mobile_Detect::VERSION_TYPE_FLOAT) < 46) ||
101105
($detect->version('Firefox') !== false && $detect->version('Firefox',Mobile_Detect::VERSION_TYPE_FLOAT) < 35)
102106
) : ?>
103107
<?php if (!isset($Result['voice_call'])) : ?>
104-
<script <?php isset($Result['app_scope']) ? print 'scope="' . htmlspecialchars($Result['app_scope']) . '"' : '' ?> src="<?php echo erLhcoreClassDesign::design('js/widgetv2/vendor.ie.js')?>?v=a4"></script>
105-
<script <?php isset($Result['app_scope']) ? print 'scope="' . htmlspecialchars($Result['app_scope']) . '"' : '' ?> src="<?php echo erLhcoreClassDesign::design('js/widgetv2/react.app.ie.js')?>?t=391"></script>
108+
<script <?php isset($Result['app_scope']) ? print 'scope="' . htmlspecialchars($Result['app_scope']) . '"' : '' ?> src="<?php echo erLhcoreClassDesign::design('js/widgetv2/vendor.ie.js')?>?v=a5_<?php echo $staticVersion;?>"></script>
109+
<script <?php isset($Result['app_scope']) ? print 'scope="' . htmlspecialchars($Result['app_scope']) . '"' : '' ?> src="<?php echo erLhcoreClassDesign::design('js/widgetv2/react.app.ie.js')?>?t=391_<?php echo $staticVersion;?>"></script>
106110
<?php else : ?>
107-
<script <?php isset($Result['app_scope']) ? print 'scope="' . htmlspecialchars($Result['app_scope']) . '"' : '' ?> src="<?php echo erLhcoreClassDesign::design('js/voice/voice.call.js')?>?t=3"></script>
111+
<script <?php isset($Result['app_scope']) ? print 'scope="' . htmlspecialchars($Result['app_scope']) . '"' : '' ?> src="<?php echo erLhcoreClassDesign::design('js/voice/voice.call.js')?>?t=3_<?php echo $staticVersion;?>"></script>
108112
<?php endif; ?>
109113
<?php else : ?>
110114
<?php if (!isset($Result['voice_call'])) : ?>
111-
<script <?php isset($Result['app_scope']) ? print 'scope="' . htmlspecialchars($Result['app_scope']) . '"' : '' ?> src="<?php echo erLhcoreClassDesign::design('js/widgetv2/vendor.js')?>?v=a4"></script>
112-
<script <?php isset($Result['app_scope']) ? print 'scope="' . htmlspecialchars($Result['app_scope']) . '"' : '' ?> src="<?php echo erLhcoreClassDesign::design('js/widgetv2/react.app.js')?>?t=391"></script>
115+
<script <?php isset($Result['app_scope']) ? print 'scope="' . htmlspecialchars($Result['app_scope']) . '"' : '' ?> src="<?php echo erLhcoreClassDesign::design('js/widgetv2/vendor.js')?>?v=a5_<?php echo $staticVersion;?>"></script>
116+
<script <?php isset($Result['app_scope']) ? print 'scope="' . htmlspecialchars($Result['app_scope']) . '"' : '' ?> src="<?php echo erLhcoreClassDesign::design('js/widgetv2/react.app.js')?>?t=391_<?php echo $staticVersion;?>"></script>
113117
<?php else : ?>
114-
<script <?php isset($Result['app_scope']) ? print 'scope="' . htmlspecialchars($Result['app_scope']) . '"' : '' ?> src="<?php echo erLhcoreClassDesign::design('js/voice/voice.call.js')?>?t=2"></script>
118+
<script <?php isset($Result['app_scope']) ? print 'scope="' . htmlspecialchars($Result['app_scope']) . '"' : '' ?> src="<?php echo erLhcoreClassDesign::design('js/voice/voice.call.js')?>?t=2_<?php echo $staticVersion;?>"></script>
115119
<?php endif; ?>
116120
<?php endif; ?>
117121

0 commit comments

Comments
 (0)