Files
crm.clientright.ru/test/templates_c/v7/6b594fa767ea1062da98b55f6615d01634db561e.file.PhoneDetailView.tpl.php

58 lines
3.5 KiB
PHP
Raw Normal View History

2025-11-01 12:22:12 +03:00
<?php /* Smarty version Smarty-3.1.7, created on 2025-11-01 12:20:16
compiled from "/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Vtiger/uitypes/PhoneDetailView.tpl" */ ?>
2025-11-01 12:22:12 +03:00
<?php /*%%SmartyHeaderCode:591202396905d0d05c0ff2-28838392%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'6b594fa767ea1062da98b55f6615d01634db561e' =>
array (
0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Vtiger/uitypes/PhoneDetailView.tpl',
1 => 1711810494,
2 => 'file',
),
),
2025-11-01 12:22:12 +03:00
'nocache_hash' => '591202396905d0d05c0ff2-28838392',
'function' =>
array (
),
'variables' =>
array (
'MODULE' => 0,
'FIELD_MODEL' => 0,
'MODULEMODEL' => 0,
'FIELD_VALUE' => 0,
'PERMISSION' => 0,
'PHONE_FIELD_VALUE' => 0,
'PHONE_NUMBER' => 0,
'RECORD' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.7',
2025-11-01 12:22:12 +03:00
'unifunc' => 'content_6905d0d05cc38',
),false); /*/%%SmartyHeaderCode%%*/?>
2025-11-01 12:22:12 +03:00
<?php if ($_valid && !is_callable('content_6905d0d05cc38')) {function content_6905d0d05cc38($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_regex_replace')) include '/var/www/fastuser/data/www/crm.clientright.ru/libraries/Smarty/libs/plugins/modifier.regex_replace.php';
?>
<?php $_smarty_tpl->tpl_vars['MODULE'] = new Smarty_variable('PBXManager', null, 0);?>
<?php $_smarty_tpl->tpl_vars['MODULEMODEL'] = new Smarty_variable(Vtiger_Module_Model::getInstance($_smarty_tpl->tpl_vars['MODULE']->value), null, 0);?>
<?php $_smarty_tpl->tpl_vars['FIELD_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'), null, 0);?>
<?php if ($_smarty_tpl->tpl_vars['MODULEMODEL']->value&&$_smarty_tpl->tpl_vars['MODULEMODEL']->value->isActive()&&$_smarty_tpl->tpl_vars['FIELD_VALUE']->value){?>
<?php $_smarty_tpl->tpl_vars['PERMISSION'] = new Smarty_variable(PBXManager_Server_Model::checkPermissionForOutgoingCall(), null, 0);?>
<?php if ($_smarty_tpl->tpl_vars['PERMISSION']->value||Settings_SPVoipIntegration_Record_Model::isOutgoingCallsEnabled()){?>
<?php $_smarty_tpl->tpl_vars['PHONE_FIELD_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_VALUE']->value, null, 0);?>
<?php $_smarty_tpl->tpl_vars['PHONE_NUMBER'] = new Smarty_variable(smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['PHONE_FIELD_VALUE']->value,"/[-()\s]/",''), null, 0);?>
<a class="phoneField" data-value="<?php echo $_smarty_tpl->tpl_vars['PHONE_NUMBER']->value;?>
" record="<?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getId();?>
" onclick="Vtiger_PBXManager_Js.registerPBXOutboundCall('<?php echo $_smarty_tpl->tpl_vars['PHONE_NUMBER']->value;?>
',<?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getId();?>
)"><?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue');?>
</a>
<?php }else{ ?>
<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'),$_smarty_tpl->tpl_vars['RECORD']->value->getId(),$_smarty_tpl->tpl_vars['RECORD']->value);?>
<?php }?>
<?php }else{ ?>
<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'),$_smarty_tpl->tpl_vars['RECORD']->value->getId(),$_smarty_tpl->tpl_vars['RECORD']->value);?>
<?php }?>
<?php }} ?>