1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
<?php /* Smarty version 2.6.31, created on 2019-08-30 19:47:59
compiled from CRM/Activity/Form/ActivityLinks.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'crmScope', 'CRM/Activity/Form/ActivityLinks.tpl', 1, false),array('block', 'ts', 'CRM/Activity/Form/ActivityLinks.tpl', 34, false),array('modifier', 'escape', 'CRM/Activity/Form/ActivityLinks.tpl', 71, false),)), $this); ?>
<?php $this->_tag_stack[] = array('crmScope', array('extensionKey' => "")); $_block_repeat=true;smarty_block_crmScope($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
<?php if ($this->_tpl_vars['contact_id']): ?>
<?php $this->assign('contactId', $this->_tpl_vars['contact_id']); ?>
<?php endif; ?>
<?php if ($this->_tpl_vars['as_select']): ?> <select name="other_activity" class="crm-form-select crm-select2 crm-action-menu fa-plus">
<option value=""><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>New Activity<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></option>
<?php $_from = $this->_tpl_vars['activityTypes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['act']):
?>
<option value="<?php echo $this->_tpl_vars['act']['url']; ?>
" data-icon="<?php echo $this->_tpl_vars['act']['icon']; ?>
"><?php echo $this->_tpl_vars['act']['label']; ?>
</option>
<?php endforeach; endif; unset($_from); ?>
</select>
<?php echo '
<script type="text/javascript">
CRM.$(function($) {
$(\'[name=other_activity].crm-action-menu\').change(function() {
var
$el = $(this),
url = $el.val();
if (url) {
$el.select2(\'val\', \'\');
CRM.loadForm(url).on(\'crmFormSuccess\', function() {
CRM.refreshParent($el);
});
}
});
});
</script>
'; ?>
<?php else: ?>
<ul>
<li class="crm-activity-tab"><a href="#" data-tab="activity"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Record Activity:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></a></li>
<?php $_from = $this->_tpl_vars['activityTypes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['act']):
?>
<li class="crm-activity-type_<?php echo $this->_tpl_vars['k']; ?>
">
<a href="<?php echo $this->_tpl_vars['act']['url']; ?>
" data-tab="activity">
<i class="crm-i <?php echo $this->_tpl_vars['act']['icon']; ?>
"></i> <?php echo $this->_tpl_vars['act']['label']; ?>
</a>
</li>
<?php endforeach; endif; unset($_from); ?>
<?php if ($this->_tpl_vars['hookLinks']): ?>
<?php $_from = $this->_tpl_vars['hookLinks']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['link']):
?>
<li>
<a href="<?php echo $this->_tpl_vars['link']['url']; ?>
" data-tab="activity"<?php if (! empty ( $this->_tpl_vars['link']['title'] )): ?> title="<?php echo ((is_array($_tmp=$this->_tpl_vars['link']['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"<?php endif; ?>
<?php if (! empty ( $this->_tpl_vars['link']['class'] )): ?> class="<?php echo $this->_tpl_vars['link']['class']; ?>
"<?php endif; ?>>
<?php if ($this->_tpl_vars['link']['img']): ?>
<img src="<?php echo $this->_tpl_vars['link']['img']; ?>
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['link']['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
<?php endif; ?>
<?php echo $this->_tpl_vars['link']['name']; ?>
</a>
</li>
<?php endforeach; endif; unset($_from); ?>
<?php endif; ?>
</ul>
<?php endif; ?>
<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_crmScope($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
|