mirror of
https://github.com/Mibew/java.git
synced 2025-01-23 01:50:34 +03:00
Use 'company.*' vars instead of 'ct.company.*' in tempates
This commit is contained in:
parent
0cfd1df846
commit
2c9e65b518
@ -139,13 +139,15 @@ function setup_logo($group = NULL) {
|
|||||||
|
|
||||||
$toplevelgroup = (!$group)?array():get_top_level_group($group);
|
$toplevelgroup = (!$group)?array():get_top_level_group($group);
|
||||||
|
|
||||||
$data['ct.company.name'] = topage(empty($toplevelgroup['vctitle'])
|
$data['company'] = array(
|
||||||
|
'name' => topage(empty($toplevelgroup['vctitle'])
|
||||||
? Settings::get('title')
|
? Settings::get('title')
|
||||||
: $toplevelgroup['vctitle']);
|
: $toplevelgroup['vctitle']),
|
||||||
|
|
||||||
$data['ct.company.chatLogoURL'] = topage(empty($toplevelgroup['vclogo'])
|
'chatLogoURL' => topage(empty($toplevelgroup['vclogo'])
|
||||||
? Settings::get('logo')
|
? Settings::get('logo')
|
||||||
: $toplevelgroup['vclogo']);
|
: $toplevelgroup['vclogo'])
|
||||||
|
);
|
||||||
|
|
||||||
$data['webimHost'] = topage(empty($toplevelgroup['vchosturl'])
|
$data['webimHost'] = topage(empty($toplevelgroup['vchosturl'])
|
||||||
? Settings::get('hosturl')
|
? Settings::get('hosturl')
|
||||||
|
@ -108,15 +108,15 @@
|
|||||||
<!-- Chat window top. Includes logo and some info about company -->
|
<!-- Chat window top. Includes logo and some info about company -->
|
||||||
<div id="top">
|
<div id="top">
|
||||||
<div id="logo">
|
<div id="logo">
|
||||||
${if:ct.company.chatLogoURL}
|
${if:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
</a>
|
</a>
|
||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${else:ct.company.chatLogoURL}
|
${else:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
@ -124,7 +124,7 @@
|
|||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${endif:ct.company.chatLogoURL}
|
${endif:company.chatLogoURL}
|
||||||
|
|
||||||
<div id="page-title">${page:chat.title}</div>
|
<div id="page-title">${page:chat.title}</div>
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
|
@ -8,15 +8,15 @@
|
|||||||
<body class="bgbody">
|
<body class="bgbody">
|
||||||
<div id="top2">
|
<div id="top2">
|
||||||
<div id="logo">
|
<div id="logo">
|
||||||
${if:ct.company.chatLogoURL}
|
${if:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
</a>
|
</a>
|
||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${else:ct.company.chatLogoURL}
|
${else:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
@ -24,7 +24,7 @@
|
|||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${endif:ct.company.chatLogoURL}
|
${endif:company.chatLogoURL}
|
||||||
|
|
||||||
<div id="page-title">${msg:leavemessage.title}</div>
|
<div id="page-title">${msg:leavemessage.title}</div>
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
|
@ -22,15 +22,15 @@ ${endif:groups}
|
|||||||
|
|
||||||
<div id="top2">
|
<div id="top2">
|
||||||
<div id="logo">
|
<div id="logo">
|
||||||
${if:ct.company.chatLogoURL}
|
${if:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
</a>
|
</a>
|
||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${else:ct.company.chatLogoURL}
|
${else:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
@ -38,7 +38,7 @@ ${endif:groups}
|
|||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${endif:ct.company.chatLogoURL}
|
${endif:company.chatLogoURL}
|
||||||
|
|
||||||
<div id="page-title">${if:formgroupname}${form:groupname}: ${endif:formgroupname}${msg:leavemessage.title}</div>
|
<div id="page-title">${if:formgroupname}${form:groupname}: ${endif:formgroupname}${msg:leavemessage.title}</div>
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
|
@ -8,15 +8,15 @@
|
|||||||
<body class="bgbody">
|
<body class="bgbody">
|
||||||
<div id="top2">
|
<div id="top2">
|
||||||
<div id="logo">
|
<div id="logo">
|
||||||
${if:ct.company.chatLogoURL}
|
${if:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
</a>
|
</a>
|
||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${else:ct.company.chatLogoURL}
|
${else:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
@ -24,7 +24,7 @@
|
|||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${endif:ct.company.chatLogoURL}
|
${endif:company.chatLogoURL}
|
||||||
|
|
||||||
<div id="page-title">${msg:leavemessage.sent.title}</div>
|
<div id="page-title">${msg:leavemessage.sent.title}</div>
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
|
@ -12,15 +12,15 @@
|
|||||||
|
|
||||||
<div id="top2">
|
<div id="top2">
|
||||||
<div id="logo">
|
<div id="logo">
|
||||||
${if:ct.company.chatLogoURL}
|
${if:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
</a>
|
</a>
|
||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${else:ct.company.chatLogoURL}
|
${else:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
@ -28,7 +28,7 @@
|
|||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${endif:ct.company.chatLogoURL}
|
${endif:company.chatLogoURL}
|
||||||
<br />
|
<br />
|
||||||
<div id="page-title">${msg:mailthread.title}</div>
|
<div id="page-title">${msg:mailthread.title}</div>
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
|
@ -8,15 +8,15 @@
|
|||||||
<body class="bgbody">
|
<body class="bgbody">
|
||||||
<div id="top2">
|
<div id="top2">
|
||||||
<div id="logo">
|
<div id="logo">
|
||||||
${if:ct.company.chatLogoURL}
|
${if:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
</a>
|
</a>
|
||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${else:ct.company.chatLogoURL}
|
${else:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
@ -24,7 +24,7 @@
|
|||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${endif:ct.company.chatLogoURL}
|
${endif:company.chatLogoURL}
|
||||||
|
|
||||||
<div id="page-title">${msg:chat.mailthread.sent.title}</div>
|
<div id="page-title">${msg:chat.mailthread.sent.title}</div>
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
|
@ -8,15 +8,15 @@
|
|||||||
<body class="bgbody">
|
<body class="bgbody">
|
||||||
<div id="top2">
|
<div id="top2">
|
||||||
<div id="logo">
|
<div id="logo">
|
||||||
${if:ct.company.chatLogoURL}
|
${if:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
</a>
|
</a>
|
||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${else:ct.company.chatLogoURL}
|
${else:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
@ -24,7 +24,7 @@
|
|||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${endif:ct.company.chatLogoURL}
|
${endif:company.chatLogoURL}
|
||||||
|
|
||||||
<div id="page-title">${msg:page.chat.old_browser.title}</div>
|
<div id="page-title">${msg:page.chat.old_browser.title}</div>
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
|
@ -8,15 +8,15 @@
|
|||||||
<body class="bgbody">
|
<body class="bgbody">
|
||||||
<div id="top2">
|
<div id="top2">
|
||||||
<div id="logo">
|
<div id="logo">
|
||||||
${if:ct.company.chatLogoURL}
|
${if:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
</a>
|
</a>
|
||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${else:ct.company.chatLogoURL}
|
${else:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
@ -24,7 +24,7 @@
|
|||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${endif:ct.company.chatLogoURL}
|
${endif:company.chatLogoURL}
|
||||||
<br />
|
<br />
|
||||||
<div id="page-title">${msg:chat.redirect.title}</div>
|
<div id="page-title">${msg:chat.redirect.title}</div>
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
|
@ -8,15 +8,15 @@
|
|||||||
<body class="bgbody">
|
<body class="bgbody">
|
||||||
<div id="top2">
|
<div id="top2">
|
||||||
<div id="logo">
|
<div id="logo">
|
||||||
${if:ct.company.chatLogoURL}
|
${if:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
</a>
|
</a>
|
||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${else:ct.company.chatLogoURL}
|
${else:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
@ -24,7 +24,7 @@
|
|||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${endif:ct.company.chatLogoURL}
|
${endif:company.chatLogoURL}
|
||||||
|
|
||||||
<div id="page-title">${msg:chat.redirected.title}</div>
|
<div id="page-title">${msg:chat.redirected.title}</div>
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
|
@ -20,15 +20,15 @@
|
|||||||
<body class="bgbody">
|
<body class="bgbody">
|
||||||
<div id="top2">
|
<div id="top2">
|
||||||
<div id="logo">
|
<div id="logo">
|
||||||
${if:ct.company.chatLogoURL}
|
${if:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
</a>
|
</a>
|
||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${page:ct.company.chatLogoURL}" alt=""/>
|
<img src="${page:company.chatLogoURL}" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${else:ct.company.chatLogoURL}
|
${else:company.chatLogoURL}
|
||||||
${if:webimHost}
|
${if:webimHost}
|
||||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
@ -36,7 +36,7 @@
|
|||||||
${else:webimHost}
|
${else:webimHost}
|
||||||
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
<img src="${tplroot}/images/default-logo.gif" alt=""/>
|
||||||
${endif:webimHost}
|
${endif:webimHost}
|
||||||
${endif:ct.company.chatLogoURL}
|
${endif:company.chatLogoURL}
|
||||||
|
|
||||||
<div id="page-title">${msg:presurvey.title}</div>
|
<div id="page-title">${msg:presurvey.title}</div>
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
|
Loading…
Reference in New Issue
Block a user