array_pop($this->_tag_stack);
        ?>
</td>
	<?php 
    }
    ?>
    </tr>
<?php 
}
?>
<tr id="Phone_Block_<?php 
echo $this->_tpl_vars['blockId'];
?>
">
    <td><?php 
echo is_array($_tmp = $this->_tpl_vars['form']['phone'][$this->_tpl_vars['blockId']]['phone']['html']) ? $this->_run_mod_handler('crmReplace', true, $_tmp, 'class', 'twenty') : smarty_modifier_crmReplace($_tmp, 'class', 'twenty');
?>
&nbsp;<?php 
echo $this->_tpl_vars['form']['phone'][$this->_tpl_vars['blockId']]['location_type_id']['html'];
?>
</td>
    <td colspan="2"><?php 
echo $this->_tpl_vars['form']['phone'][$this->_tpl_vars['blockId']]['phone_type_id']['html'];
?>
</td>
    <td align="center" id="Phone-Primary-html" <?php 
if ($this->_tpl_vars['blockId'] == 1) {
    ?>
class="hiddenElement"<?php 
}
?>
?>
             <?php 
if ($this->_tpl_vars['form']['postal_greeting_custom']) {
    ?>
                <td><span id="postal_greeting_id_html" class="hiddenElement"><?php 
    echo is_array($_tmp = $this->_tpl_vars['form']['postal_greeting_custom']['html']) ? $this->_run_mod_handler('crmReplace', true, $_tmp, 'class', 'big') : smarty_modifier_crmReplace($_tmp, 'class', 'big');
    ?>
</span></td>
            <?php 
}
?>
            <?php 
if ($this->_tpl_vars['form']['addressee_custom']) {
    ?>
                <td><span id="addressee_id_html" class="hiddenElement"><?php 
    echo is_array($_tmp = $this->_tpl_vars['form']['addressee_custom']['html']) ? $this->_run_mod_handler('crmReplace', true, $_tmp, 'class', 'big') : smarty_modifier_crmReplace($_tmp, 'class', 'big');
    ?>
</span></td>
            <?php 
}
?>
        </tr>
        <tr>
            <?php 
$_from = $this->_tpl_vars['commPreference'];
if (!is_array($_from) && !is_object($_from)) {
    settype($_from, 'array');
}
if (count($_from)) {
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']) {
        ?>
                     <?php 
                            $this->assign('element_name_to', is_array($_tmp = $this->_tpl_vars['element_name']) ? $this->_run_mod_handler('cat', true, $_tmp, '_to') : smarty_modifier_cat($_tmp, '_to'));
                            ?>
			<dt><?php 
                            echo $this->_tpl_vars['form'][$this->_tpl_vars['element_name_from']]['label'];
                            ?>
</dt><dd>
			 <?php 
                            echo is_array($_tmp = $this->_tpl_vars['form'][$this->_tpl_vars['element_name_from']]['html']) ? $this->_run_mod_handler('crmReplace', true, $_tmp, 'class', 'six') : smarty_modifier_crmReplace($_tmp, 'class', 'six');
                            ?>

	                 &nbsp;&nbsp;<?php 
                            echo $this->_tpl_vars['form'][$this->_tpl_vars['element_name_to']]['label'];
                            ?>
&nbsp;&nbsp;<?php 
                            echo is_array($_tmp = $this->_tpl_vars['form'][$this->_tpl_vars['element_name_to']]['html']) ? $this->_run_mod_handler('crmReplace', true, $_tmp, 'class', 'six') : smarty_modifier_crmReplace($_tmp, 'class', 'six');
                            ?>

	    <?php 
                        } else {
                            ?>
			<dt><?php 
                            echo $this->_tpl_vars['form'][$this->_tpl_vars['element_name']]['label'];
                            ?>
</dt><dd>&nbsp;<?php 
                            echo $this->_tpl_vars['form'][$this->_tpl_vars['element_name']]['html'];
                            ?>

		  <?php 
                        }
                        ?>
If you want to provide a default value for this field, enter it here. For date fields, format is YYYY-MM-DD.<?php 
        $_block_content = ob_get_contents();
        ob_end_clean();
        echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat = false);
    }
    array_pop($this->_tag_stack);
    ?>
</span></dd>
        <?php 
}
?>
        <dt><?php 
echo $this->_tpl_vars['form']['help_post']['label'];
?>
</dt><dd>&nbsp;<?php 
echo is_array($_tmp = $this->_tpl_vars['form']['help_post']['html']) ? $this->_run_mod_handler('crmReplace', true, $_tmp, 'class', 'huge') : smarty_modifier_crmReplace($_tmp, 'class', 'huge');
?>
&nbsp;</dd>
        <?php 
if ($this->_tpl_vars['action'] != 4) {
    ?>
        <dt>&nbsp;</dt><dd class="description"><?php 
    $this->_tag_stack[] = array('ts', array());
    smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
    while ($_block_repeat) {
        ob_start();
        ?>
Explanatory text displayed to users for this field.<?php 
        $_block_content = ob_get_contents();
        ob_end_clean();
        echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat = false);
echo $this->_tpl_vars['form']['location_type']['html'];
echo '<div class="description">';
$this->_tag_stack[] = array('ts', array());
smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
while ($_block_repeat) {
    ob_start();
    echo 'Location search uses the PRIMARY location for each contact by default. To search by specific location types (e.g. Home, Work...), check one or more boxes above.';
    $_block_content = ob_get_contents();
    ob_end_clean();
    echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat = false);
}
array_pop($this->_tag_stack);
echo '</div></td><td class="label">';
echo $this->_tpl_vars['form']['location_name']['label'];
echo '</td><td>';
echo is_array($_tmp = $this->_tpl_vars['form']['location_name']['html']) ? $this->_run_mod_handler('crmReplace', true, $_tmp, 'class', 'medium') : smarty_modifier_crmReplace($_tmp, 'class', 'medium');
echo '</td></tr></table></fieldset><fieldset><legend>';
$this->_tag_stack[] = array('ts', array());
smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
while ($_block_repeat) {
    ob_start();
    echo 'Activity History';
    $_block_content = ob_get_contents();
    ob_end_clean();
    echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat = false);
}
array_pop($this->_tag_stack);
echo '</legend><table class="form-layout"><tr><td class="label">';
echo $this->_tpl_vars['form']['activity_type']['label'];
echo '</td><td>';
echo $this->_tpl_vars['form']['activity_type']['html'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $this->_foreach['btns'] = array('total' => count($_from), 'iteration' => 0);
        if ($this->_foreach['btns']['total'] > 0) {
            foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['button']) {
                $this->_foreach['btns']['iteration']++;
                ?>
    <?php 
                if ((is_array($_tmp = $this->_tpl_vars['key']) ? $this->_run_mod_handler('substring', true, $_tmp, 0, 4) : smarty_modifier_substring($_tmp, 0, 4)) == '_qf_') {
                    ?>
        <?php 
                    if ($this->_tpl_vars['location']) {
                        ?>
          <?php 
                        $this->assign('html', is_array($_tmp = $this->_tpl_vars['form']['buttons'][$this->_tpl_vars['key']]['html']) ? $this->_run_mod_handler('crmReplace', true, $_tmp, 'id', $this->_tpl_vars['key'] . "-" . $this->_tpl_vars['location']) : smarty_modifier_crmReplace($_tmp, 'id', $this->_tpl_vars['key'] . "-" . $this->_tpl_vars['location']));
                        ?>
        <?php 
                    } else {
                        ?>
          <?php 
                        $this->assign('html', $this->_tpl_vars['form']['buttons'][$this->_tpl_vars['key']]['html']);
                        ?>
        <?php 
                    }
                    ?>
        <?php 
                    echo smarty_function_crmGetAttribute(array('html' => $this->_tpl_vars['html'], 'attr' => 'crm-icon', 'assign' => 'icon'), $this);
                    ?>

        <?php