/**
 * Generate the html for a button-style link
 *
 * @param array $params
 *   Params of the {crmButton} call.
 * @param string $text
 *   Contents of block.
 * @param CRM_Core_Smarty $smarty
 *   The Smarty object.
 *
 * @return string
 *   The generated html.
 */
function smarty_block_crmButton($params, $text, &$smarty)
{
    // Generate url (pass 'html' param as false to avoid double-encode by htmlAttributes)
    if (empty($params['href'])) {
        $params['href'] = CRM_Utils_System::crmURL($params + array('h' => FALSE));
    }
    // Always add class 'button' - fixme probably should be crm-button
    $params['class'] = empty($params['class']) ? 'button' : 'button ' . $params['class'];
    // Any FA icon works
    $icon = CRM_Utils_Array::value('icon', $params, 'pencil');
    // All other params are treated as html attributes
    CRM_Utils_Array::remove($params, 'icon', 'p', 'q', 'a', 'f', 'h', 'fb', 'fe');
    $attributes = CRM_Utils_String::htmlAttributes($params);
    return "<a {$attributes}><span><i class='crm-i fa-{$icon}'></i>&nbsp; {$text}</span></a>";
}
<?php

/* Smarty version 2.6.26, created on 2010-04-27 15:25:33
   compiled from CRM/Core/I18n/Dialog.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'CRM/Core/I18n/Dialog.tpl', 26, false), array('function', 'crmURL', 'CRM/Core/I18n/Dialog.tpl', 27, false))), $this);
if (count($this->_tpl_vars['config']->languageLimit) >= 2 && $this->_tpl_vars['translatePermission']) {
    ?>
<a href="javascript:" onClick="loadDialog('<?php 
    echo CRM_Utils_System::crmURL(array('p' => 'civicrm/i18n', 'q' => "reset=1&table=" . $this->_tpl_vars['table'] . "&field=" . $this->_tpl_vars['field'] . "&id=" . $this->_tpl_vars['id'] . "&snippet=1&context=dialog", 'h' => 0), $this);
    ?>
', '<?php 
    echo $this->_tpl_vars['field'];
    ?>
');"><img src="<?php 
    echo $this->_tpl_vars['config']->resourceBase;
    ?>
i/langs.png" /></a><div id="locale-dialog_<?php 
    echo $this->_tpl_vars['field'];
    ?>
" style="display:none"></div>

<?php 
    echo '
<script type="text/javascript">
function loadDialog( url, fieldName ) {
 cj.ajax({
         url: url,
         success: function( content ) {
             cj("#locale-dialog_" +fieldName ).show( ).html( content ).dialog({
             		modal       : true,
<?php /* Smarty version 2.6.27, created on 2015-08-08 15:04:12
         compiled from CRM/common/navigation.js.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'crmScope', 'CRM/common/navigation.js.tpl', 1, false),array('block', 'ts', 'CRM/common/navigation.js.tpl', 32, false),array('function', 'crmURL', 'CRM/common/navigation.js.tpl', 30, false),array('modifier', 'date_format', 'CRM/common/navigation.js.tpl', 56, false),array('modifier', 'json_encode', 'CRM/common/navigation.js.tpl', 59, 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(); ?>// http://civicrm.org/licensing
<?php ob_start(); ?><?php echo '<ul id="civicrm-menu">'; ?><?php if (call_user_func ( array ( 'CRM_Core_Permission' , 'giveMeAllACLs' ) )): ?><?php echo '<li id="crm-qsearch" class="menumain"><form action="'; ?><?php echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/search/advanced','h' => 0), $this);?><?php echo '" name="search_block" id="id_search_block" method="post"><div id="quickSearch"><input type="text" class="form-text" id="sort_name_navigation" placeholder="'; ?><?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(); ?><?php echo 'Contacts'; ?><?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); ?><?php echo '" name="sort_name" style="width: 6em;" /><input type="text" id="sort_contact_id" style="display: none" /><input type="hidden" name="hidden_location" value="1" /><input type="hidden" name="qfKey" value="" /><div style="height:1px; overflow:hidden;"><input type="submit" 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(); ?><?php echo 'Go'; ?><?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); ?><?php echo '" name="_qf_Advanced_refresh" class="crm-form-submit default" /></div></div></form><ul><li><label class="crm-quickSearchField"><input type="radio" data-tablename="cc" checked="checked" value="" name="quickSearchField">'; ?><?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(); ?><?php echo 'Name/Email'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="cc" value="contact_id" name="quickSearchField">'; ?><?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(); ?><?php echo 'CiviCRM ID'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="cc" value="external_identifier" name="quickSearchField">'; ?><?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(); ?><?php echo 'External ID'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="cc" value="first_name" name="quickSearchField">'; ?><?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(); ?><?php echo 'First Name'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="cc" value="last_name" name="quickSearchField">'; ?><?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(); ?><?php echo 'Last Name'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="eml" value="email" name="quickSearchField">'; ?><?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(); ?><?php echo 'Email'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="phe" value="phone_numeric" name="quickSearchField">'; ?><?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(); ?><?php echo 'Phone'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="sts" value="street_address" name="quickSearchField">'; ?><?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(); ?><?php echo 'Street Address'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="sts" value="city" name="quickSearchField">'; ?><?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(); ?><?php echo 'City'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="sts" value="postal_code" name="quickSearchField">'; ?><?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(); ?><?php echo 'Postal Code'; ?><?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); ?><?php echo '</label></li><li><label class="crm-quickSearchField"><input type="radio" data-tablename="cc" value="job_title" name="quickSearchField">'; ?><?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(); ?><?php echo 'Job Title'; ?><?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); ?><?php echo '</label></li></ul></li>'; ?><?php endif; ?><?php echo ''; ?><?php echo $this->_tpl_vars['navigation']; ?><?php echo '</ul>'; ?>
<?php $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->assign('menuMarkup', ob_get_contents());ob_end_clean(); ?>// <script> Generated <?php echo ((is_array($_tmp=time())) ? $this->_run_mod_handler('date_format', true, $_tmp, '%d %b %Y %H:%M:%S') : smarty_modifier_date_format($_tmp, '%d %b %Y %H:%M:%S')); ?>

<?php echo '
(function($) {
  var menuMarkup = '; ?>
<?php echo json_encode($this->_tpl_vars['menuMarkup']); ?>
;
<?php if ($this->_tpl_vars['config']->userFramework != 'Joomla'): ?><?php echo '
  $(\'body\').append(menuMarkup);

  //Track Scrolling
  $(window).scroll(function () {
    var scroll = document.documentElement.scrollTop || document.body.scrollTop;
    $(\'#civicrm-menu\').css({top: "scroll", position: "fixed", top: "0px"});
    $(\'div.sticky-header\').css({top: "23px", position: "fixed"});
  });

  if ($(\'#edit-shortcuts\').length > 0) {
    $(\'#civicrm-menu\').css({\'width\': \'97%\'});
  }
'; ?>
<?php else: ?><?php echo '
  // below div is present in older version of joomla 2.5.x
  var elementExists = $(\'div#toolbar-box div.m\').length;
  if (elementExists > 0) {
            $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();
                ?>
status<?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);
            ?>
"/> &nbsp;
         <?php 
            ob_start();
            echo CRM_Utils_System::crmURL(array('p' => 'civicrm/admin/custom/group', 'q' => 'action=add&reset=1'), $this);
            $this->_smarty_vars['capture']['default'] = ob_get_contents();
            $this->assign('crmURL', ob_get_contents());
            ob_end_clean();
            ?>
         <?php 
            $this->_tag_stack[] = array('ts', array('1' => $this->_tpl_vars['crmURL']));
            smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
            while ($_block_repeat) {
                ob_start();
                ?>
No custom data groups have been created yet. You can <a href="%1">add one</a>.<?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 CRM_Utils_System::crmURL(array('p' => 'civicrm/event/ical', 'q' => "reset=1&list=1"), $this);
        $this->_smarty_vars['capture']['default'] = ob_get_contents();
        $this->assign('icalPage', ob_get_contents());
        ob_end_clean();
        ob_start();
        echo CRM_Utils_System::crmURL(array('p' => 'civicrm/event/ical', 'q' => "reset=1&list=1&rss=1"), $this);
        $this->_smarty_vars['capture']['default'] = ob_get_contents();
        $this->assign('rssFeed', ob_get_contents());
        ob_end_clean();
        ob_start();
        echo CRM_Utils_System::crmURL(array('p' => 'civicrm/event/ical', 'q' => "reset=1&list=1&html=1"), $this);
        $this->_smarty_vars['capture']['default'] = ob_get_contents();
        $this->assign('htmlFeed', ob_get_contents());
        ob_end_clean();
        ob_start();
        echo CRM_Utils_System::crmURL(array('p' => 'civicrm/event/ical', 'q' => "reset=1&list=1&type=3&start=20070101"), $this);
        $this->_smarty_vars['capture']['default'] = ob_get_contents();
        $this->assign('icalPageExample', ob_get_contents());
        ob_end_clean();
        ?>
<p>
<?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();
            ?>
iCalendar is a standard format for representing information about calendaring and scheduling. CiviEvent allows you to output your current and upcoming 'public' events in the iCalendar format - so this information can be shared with other iCalendar-enabled applications.<?php 
            $_block_content = ob_get_contents();
            ob_end_clean();
    echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/search/advanced', 'q' => "context=amtg&amtgID=" . $this->_tpl_vars['group']['id'] . "&reset=1&force=1"), $this);
    echo '">&raquo; ';
    $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 'Advanced Search';
        $_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 '</a>';
} else {
    echo '<a href="';
    echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/search/advanced'), $this);
    echo '">&raquo; ';
    $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 'Advanced Search';
        $_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 '</a>';
}
echo '</td></tr></table>';
?>
                     echo '</dd>';
                 }
                 echo '';
             }
         }
         unset($_from);
         echo '</dl><div class="spacer"></div></fieldset></div>';
     }
 }
 unset($_from);
 echo '';
 if ($this->_tpl_vars['editCustomData']) {
     echo '<div class="action-link">';
     if ($this->_tpl_vars['groupId']) {
         echo '<a href="';
         echo CRM_Utils_System::crmURL(array('p' => "civicrm/contact/view/cd", 'q' => "cid=" . $this->_tpl_vars['contactId'] . "&gid=" . $this->_tpl_vars['groupId'] . "&action=update&reset=1"), $this);
         echo '">&raquo; ';
         $this->_tag_stack[] = array('ts', array('1' => $this->_tpl_vars['groupTree'][$this->_tpl_vars['groupId']]['title']));
         smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
         while ($_block_repeat) {
             ob_start();
             echo 'Edit %1';
             $_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 '</a>';
     }
     echo '</div>';
 }
    var element = blockName + \'_Block_\';

    //get blockcount of last element of relevant blockName
    var previousInstance = cj( \'[id^="\'+ element +\'"]:last\' ).attr(\'id\').slice( element.length );
    var currentInstance  = parseInt( previousInstance ) + 1;

    //show primary option if block count = 2
    if ( currentInstance == 2) {
        cj("#" + blockName + \'-Primary\').show( );
        cj("#" + blockName + \'-Primary-html\').show( );
    }

    var dataUrl = ';
?>
"<?php 
echo CRM_Utils_System::crmURL(array('h' => 0, 'q' => 'snippet=4'), $this);
?>
"<?php 
echo ' + \'&block=\' + blockName + \'&count=\' + currentInstance;;

    if ( className == \'CRM_Event_Form_ManageEvent_Location\' ) {
        dataUrl = ( currentInstance <= 2 ) ? dataUrl + \'&subPage=Location\' : \'\';
    }

    ';
?>

    <?php 
if ($this->_tpl_vars['qfKey']) {
    ?>
    
    ?>
</div>
        </dd>
    <?php 
}
?>
     </dl>
    </fieldset>
</div>
<?php 
if ($this->_tpl_vars['action'] == 2 || $this->_tpl_vars['action'] == 4) {
    ?>
     <p></p>
    <div class="action-link">
    <a href="<?php 
    echo CRM_Utils_System::crmURL(array('p' => 'civicrm/admin/custom/group/field', 'q' => "action=browse&reset=1&gid=" . $this->_tpl_vars['gid']), $this);
    ?>
">&raquo;  <?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();
        ?>
Custom Fields for this Group<?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);
    ?>
</a>
</div>
  <?php 
        }
        ?>
</div>
<?php 
    } else {
        ?>
  <?php 
        if ($this->_tpl_vars['isSearch'] == 1) {
            ?>
  <div class="status messages">
    <div class="icon inform-icon"></div>
    <?php 
            ob_start();
            echo CRM_Utils_System::crmURL(array('p' => 'civicrm/event/manage', 'q' => "reset=1"), $this);
            $this->_smarty_vars['capture']['default'] = ob_get_contents();
            $this->assign('browseURL', ob_get_contents());
            ob_end_clean();
            ?>
    <?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();
                ?>
No available Events match your search criteria. Suggestions:<?php 
                $_block_content = ob_get_contents();
                ob_end_clean();
                $_block_repeat = false;
                $_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 '</a></td></tr>';
        }
        echo '</table>';
        ?>

       <?php 
        if ($this->_tpl_vars['permission'] == 'edit') {
            ?>
       <div class="action-link">
         <a href="<?php 
            echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/view/note', 'q' => "action=add&cid=" . $this->_tpl_vars['contactId']), $this);
            ?>
">&raquo; <?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();
                ?>
New Note<?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);
            ?>
</a>
i/custom_activity.gif" alt="<?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();
        ?>
Other Activities<?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);
    ?>
"/></a>&nbsp;
        <a href="<?php 
    echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/view/activity', 'q' => "activity_id=5&action=add&reset=1&cid=" . $this->_tpl_vars['contactId']), $this);
    ?>
"><?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();
        ?>
Other Activities<?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);
    ?>
</a>
    $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();
        ?>
status<?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);
    ?>
"/></dt>
        <?php 
    ob_start();
    echo CRM_Utils_System::crmURL(array('p' => 'civicrm/admin/gender', 'q' => "action=add&reset=1"), $this);
    $this->_smarty_vars['capture']['default'] = ob_get_contents();
    $this->assign('crmURL', ob_get_contents());
    ob_end_clean();
    ?>
        <dd><?php 
    $this->_tag_stack[] = array('ts', array('1' => $this->_tpl_vars['crmURL']));
    smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat = true);
    while ($_block_repeat) {
        ob_start();
        ?>
There are no Gender entered. You can <a href="%1">add one</a>.<?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);
    }
    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);
echo '" src="\' +resourceBase+\'i/close.png"/></a>\';
        cj( \'#enableDisableStatusMsg\' ).show( ).html( serverError ); 
    }
}

function saveEnableDisable( recordID, recordBAO, op ) {
    cj( \'#enableDisableStatusMsg\' ).hide( );
    var postUrl = ';
?>
"<?php 
echo CRM_Utils_System::crmURL(array('p' => 'civicrm/ajax/ed', 'h' => 0), $this);
?>
"<?php 
echo ';

    //post request and get response
    cj.post( postUrl, { recordID: recordID, recordBAO: recordBAO, op:op  }, function( html ){
        responseFromServer = true;      
       
        //this is custom status set when record update success.
        if ( html.status == \'record-updated-success\' ) {
           
            //change row class and show/hide action links.
            modifySelectorRow( recordID, op );

            //modify action link html        
<?php /* Smarty version 2.6.27, created on 2015-08-08 15:04:16
         compiled from CRM/Civizualise/Page/Main.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'crmScope', 'CRM/Civizualise/Page/Main.tpl', 1, false),array('function', 'crmTitle', 'CRM/Civizualise/Page/Main.tpl', 1, false),array('function', 'crmURL', 'CRM/Civizualise/Page/Main.tpl', 5, 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 echo smarty_function_crmTitle(array('string' => 'Civisualize'), $this);?>


You need to choose one of the following visualizations to start with:
<ul>
<li><a href="<?php echo CRM_Utils_System::crmURL(array('p' => 'civicrm/dataviz/contribute'), $this);?>
">Contributions</a></li>
<li><a href="<?php echo CRM_Utils_System::crmURL(array('p' => 'civicrm/dataviz/contacts'), $this);?>
">Contacts</a></li>
<li><a href="<?php echo CRM_Utils_System::crmURL(array('p' => 'civicrm/dataviz/events'), $this);?>
">Events</a></li>
<li><a href="<?php echo CRM_Utils_System::crmURL(array('p' => 'civicrm/dataviz/donortrends'), $this);?>
">Donor Trends</a></li>
</ul>
<p>
You might like to learn how to <a href="https://github.com/TechToThePeople/civisualize">build your own datavisualisation</a>
</p>
<?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); ?>
<?php 
} else {
    ?>
    <?php 
    echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/search/advanced', 'q' => "reset=1"), $this);
    ?>

<?php 
}
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('advSearchURL', ob_get_contents());
ob_end_clean();
ob_start();
?>
    <?php 
echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/search/builder', 'q' => "reset=1"), $this);
?>

<?php 
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('searchBuilderURL', ob_get_contents());
ob_end_clean();
?>

 <div id="search-status">
  <div class="float-right right">
    <?php 
if ($this->_tpl_vars['action'] == 256) {
    ?>
        <a href="<?php 
    echo $this->_tpl_vars['advSearchURL'];
     $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();
         echo 'Find more event participants';
         $_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);
     echo '...</a></td></tr></tr>';
 } elseif ($this->_tpl_vars['context'] == 'participant') {
     echo '<tr class="even-row"><td colspan="7"><a href="';
     echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/view', 'q' => "reset=1&force=1&selectedChild=participant&cid=" . $this->_tpl_vars['contactId']), $this);
     echo '">&raquo; ';
     $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();
         echo 'View all events for this contact';
         $_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);
     echo '...</a></td></tr></tr>';
 }
    smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
    while ($_block_repeat) {
        ob_start();
        ?>
Advanced Filter<?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></span>
              <?php 
    ob_start();
    echo CRM_Utils_System::crmURL(array('p' => "civicrm/admin/setting/search", 'q' => "reset=1"), $this);
    $this->_smarty_vars['capture']['default'] = ob_get_contents();
    $this->assign('searchPreferences', ob_get_contents());
    ob_end_clean();
    ?>
            <div class="messages status no-popup"><div class="icon ui-icon-alert"></div> <?php 
    $this->_tag_stack[] = array('ts', array('1' => $this->_tpl_vars['searchPreferences']));
    $_block_repeat = true;
    smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
    while ($_block_repeat) {
        ob_start();
        ?>
If you are planning on using this field in front-end profile, event registration or contribution forms, you should 'Limit List to Group' or configure an 'Advanced Filter'  (so that you do not unintentionally expose your entire set of contacts). Users must have either 'access contact reference fields' OR 'access CiviCRM' permission in order to use contact reference autocomplete fields. You can assign 'access contact reference fields' to the anonymous role if you want un-authenticated visitors to use this field. Use <a href='%1'>Search Preferences - Contact Reference Options</a> to control the fields included in the search results.<?php 
        $_block_content = ob_get_contents();
        ob_end_clean();
        $_block_repeat = false;
        	   }
		    } 
			
          }
	  ';
?>

   
	</script>

<?php 
if ($this->_tpl_vars['action'] == 2 && ($this->_tpl_vars['form']['data_type']['value']['1']['0'] == 'CheckBox' || $this->_tpl_vars['form']['data_type']['value']['1']['0'] == 'Radio' || $this->_tpl_vars['form']['data_type']['value']['1']['0'] == 'Select' || $this->_tpl_vars['form']['data_type']['value']['1']['0'] == 'Multi-Select')) {
    ?>
    <div class="action-link">
        <a href="<?php 
    echo CRM_Utils_System::crmURL(array('p' => "civicrm/admin/custom/group/field/option", 'q' => "reset=1&action=browse&fid=" . $this->_tpl_vars['id']), $this);
    ?>
">&raquo; <?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();
        ?>
View / Edit Multiple Choice Options<?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);
    ?>
</a>
"<?php 
echo CRM_Utils_System::crmURL(array('p' => 'civicrm/ajax/contactlist', 'q' => 'context=navigation', 'h' => 0), $this);
?>
"<?php 
echo ';

    cj( \'#sort_name\' ).autocomplete( contactUrl, {
        width: 200,
        selectFirst: false,
        minChars:2,
        matchContains: true 	 
    }).result(function(event, data, formatted) {
       document.location=';
?>
"<?php 
echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/view', 'h' => 0, 'q' => 'reset=1&cid='), $this);
?>
"<?php 
echo '+data[1];
       return false;
    });    
});

var framework = "';
echo $this->_tpl_vars['config']->userFramework;
echo '";
if( framework != \'Joomla\') {
	cj(\'body\').prepend( cj("#menu-container").html() );

	//Track Scrolling
	cj(window).scroll( function () { 
    <tr class="crm-preferences-display-form-block-contact_view_options">
      <td class="label"><?php 
    echo $this->_tpl_vars['form']['contact_view_options']['label'];
    ?>
</td>
      <td><?php 
    echo $this->_tpl_vars['form']['contact_view_options']['html'];
    ?>
</td>
    </tr>
    <tr class="crm-preferences-display-form-block-description">
      <td>&nbsp;</td>
      <td class="description">
        <?php 
    ob_start();
    echo CRM_Utils_System::crmURL(array('p' => 'civicrm/admin/setting/component', 'q' => 'action=add&reset=1'), $this);
    $this->_smarty_vars['capture']['default'] = ob_get_contents();
    $this->assign('crmURL', ob_get_contents());
    ob_end_clean();
    ?>
        <?php 
    $this->_tag_stack[] = array('ts', array('1' => $this->_tpl_vars['crmURL']));
    $_block_repeat = true;
    smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
    while ($_block_repeat) {
        ob_start();
        ?>
Select the <strong>tabs</strong>
          that should be displayed when viewing a contact record. EXAMPLE: If your organization does not keep track of
          'Relationships', then un-check this option to simplify the screen display. Tabs for Contributions, Pledges,
          Memberships, Events, Grants and Cases are also hidden if the corresponding component is not enabled. Go to
                        $_block_repeat = true;
                        smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
                        while ($_block_repeat) {
                            ob_start();
                            ?>
Household Address:<?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);
                        ?>
</strong><br />
                                        <a href="<?php 
                        echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/view', 'q' => "reset=1&cid=" . $this->_tpl_vars['mail_to_household_id']), $this);
                        ?>
"><?php 
                        echo $this->_tpl_vars['householdName'];
                        ?>
</a><br />
                                        <?php 
                    }
                    ?>
                                        <?php 
                    echo is_array($_tmp = $this->_tpl_vars['add']['display']) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp);
                    ?>

                                    </td>
                                </tr>
                            </table>
Beispiel #23
0
        <?php 
        if ($this->_tpl_vars['ssMappingID']) {
            ?>
            <?php 
            ob_start();
            echo CRM_Utils_System::crmURL(array('p' => "civicrm/contact/search/builder", 'q' => "reset=1&force=1&ssID=" . $this->_tpl_vars['ssID']), $this);
            $this->_smarty_vars['capture']['default'] = ob_get_contents();
            $this->assign('editSmartGroupURL', ob_get_contents());
            ob_end_clean();
            ?>
        <?php 
        } else {
            ?>
            <?php 
            ob_start();
            echo CRM_Utils_System::crmURL(array('p' => "civicrm/contact/search/advanced", 'q' => "reset=1&force=1&ssID=" . $this->_tpl_vars['ssID']), $this);
            $this->_smarty_vars['capture']['default'] = ob_get_contents();
            $this->assign('editSmartGroupURL', ob_get_contents());
            ob_end_clean();
            ?>
        <?php 
        }
        ?>
 
        <div class="action-link">
            <a href="<?php 
        echo $this->_tpl_vars['editSmartGroupURL'];
        ?>
">&raquo; <?php 
        $this->_tag_stack[] = array('ts', array('1' => $this->_tpl_vars['group']['title']));
        $_block_repeat = true;
$this->_smarty_include(array('smarty_include_tpl_file' => "CRM/Contact/Form/Location.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
if (!($this->_tpl_vars['action'] == 4)) {
    echo $this->_tpl_vars['form']['buttons']['html'];
    ?>

<?php 
}
?>
        <?php 
if ($this->_tpl_vars['action'] == 4) {
    ?>
        <div class="action-link">
    	<a href="<?php 
    echo CRM_Utils_System::crmURL(array('q' => "action=update&reset=1"), $this);
    ?>
" id="editDomainInfo">&raquo; <?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();
        ?>
Edit Domain Information<?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);
    ?>
</a>
        array_pop($this->_tag_stack);
        $_block_content = ob_get_contents();
        ob_end_clean();
        $_block_repeat = false;
        echo smarty_block_htxt($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat);
    }
    array_pop($this->_tag_stack);
    $this->_tag_stack[] = array('htxt', array('id' => "id-invoices_id"));
    $_block_repeat = true;
    smarty_block_htxt($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
    while ($_block_repeat) {
        ob_start();
        ?>
  <?php 
        ob_start();
        echo CRM_Utils_System::crmURL(array('p' => 'civicrm/admin/setting/preferences/contribute', 'q' => "reset=1"), $this);
        $this->_smarty_vars['capture']['default'] = ob_get_contents();
        $this->assign('invoiceURL', ob_get_contents());
        ob_end_clean();
        ?>
 
  <?php 
        $this->_tag_stack[] = array('ts', array('1' => $this->_tpl_vars['invoiceURL']));
        $_block_repeat = true;
        smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>
In order to enable logged in users to download invoices and credit notes from the dashboard. Please first enable CiviCRM invoicing functionality <a href='%1'>Administer > CiviContribute > CiviContribute Component Settings</a><?php 
            $_block_content = ob_get_contents();
            ob_end_clean();
<?php

/* Smarty version 2.6.27, created on 2016-02-14 08:40:09
   compiled from CRM/Core/I18n/Dialog.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('block', 'crmScope', 'CRM/Core/I18n/Dialog.tpl', 1, false), array('block', 'ts', 'CRM/Core/I18n/Dialog.tpl', 27, false), array('modifier', 'count', 'CRM/Core/I18n/Dialog.tpl', 26, false), array('function', 'crmURL', 'CRM/Core/I18n/Dialog.tpl', 27, false))), $this);
$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();
    if (count($this->_tpl_vars['config']->languageLimit) >= 2 && $this->_tpl_vars['translatePermission']) {
        ?>
  <a href="<?php 
        echo CRM_Utils_System::crmURL(array('p' => 'civicrm/i18n', 'q' => "reset=1&table=" . $this->_tpl_vars['table'] . "&field=" . $this->_tpl_vars['field'] . "&id=" . $this->_tpl_vars['id']), $this);
        ?>
" data-field="<?php 
        echo $this->_tpl_vars['field'];
        ?>
" class="crm-hover-button crm-multilingual-edit-button" title="<?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();
            ?>
Languages<?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);
<br/><?php 
                                                }
                                                ?>
</div>
              <?php 
                                            }
                                            ?>
            <?php 
                                        } else {
                                            ?>
              <div class="content">
                <?php 
                                            if ($this->_tpl_vars['element']['contact_ref_id']) {
                                                ?>
                  <a href='<?php 
                                                echo CRM_Utils_System::crmURL(array('p' => "civicrm/contact/view", 'q' => "reset=1&cid=" . $this->_tpl_vars['element']['contact_ref_id']), $this);
                                                ?>
'>
                <?php 
                                            }
                                            ?>
                <?php 
                                            if ($this->_tpl_vars['element']['field_data_type'] == 'Memo') {
                                                ?>
                  <?php 
                                                echo is_array($_tmp = $this->_tpl_vars['element']['field_value']) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp);
                                                ?>

                <?php 
                                            } else {
                                                ?>
;
  CRM.config.lcMessages = <?php echo json_encode($this->_tpl_vars['config']->lcMessages); ?>
;
  $.datepicker._defaults.dateFormat = CRM.config.dateInputFormat = <?php echo json_encode($this->_tpl_vars['config']->dateInputFormat); ?>
;
  CRM.config.timeIs24Hr = <?php if ($this->_tpl_vars['config']->timeInputFormat == 2): ?>true<?php else: ?>false<?php endif; ?>;
  CRM.config.ajaxPopupsEnabled = <?php echo json_encode($this->_tpl_vars['ajaxPopupsEnabled']); ?>
;

  // Merge entityRef settings
  CRM.config.entityRef = $.extend({}, <?php echo json_encode($this->_tpl_vars['entityRef']); ?>
, CRM.config.entityRef || {});

  // Initialize CRM.url and CRM.formatMoney
  CRM.url({back: '<?php echo CRM_Utils_System::crmURL(array('p' => "*path*",'q' => "*query*",'h' => 0,'fb' => 1), $this);?>
', front: '<?php echo CRM_Utils_System::crmURL(array('p' => "*path*",'q' => "*query*",'h' => 0,'fe' => 1), $this);?>
'});
  CRM.formatMoney('init', false, <?php echo $this->_tpl_vars['moneyFormat']; ?>
);

  // Localize select2
  $.fn.select2.defaults.formatNoMatches = "<?php $this->_tag_stack[] = array('ts', array('escape' => 'js')); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>None found.<?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); ?>";
  $.fn.select2.defaults.formatLoadMore = "<?php $this->_tag_stack[] = array('ts', array('escape' => 'js')); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Loading...<?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); ?>";
  $.fn.select2.defaults.formatSearching = "<?php $this->_tag_stack[] = array('ts', array('escape' => 'js')); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Searching...<?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); ?>";
  $.fn.select2.defaults.formatInputTooShort = function() {
    return ($(this).data('api-entity') === 'contact' || $(this).data('api-entity') === 'Contact') ? <?php echo $this->_tpl_vars['contactSearch']; ?>
 : <?php echo $this->_tpl_vars['otherSearch']; ?>
;
  };

  // Localize jQuery UI
     echo '';
     if ($this->_tpl_vars['row']['status'] == 'Pending') {
         echo '<td class="status-pending"}>';
     } elseif ($this->_tpl_vars['row']['status'] == 'Removed') {
         echo '<td class="status-removed">';
     } else {
         echo '<td>';
     }
     echo '';
     echo $this->_tpl_vars['row']['status'];
     echo '</td>';
 }
 echo '<td>';
 echo $this->_tpl_vars['row']['contact_type'];
 echo '</td><td><a href="';
 echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/view', 'q' => "reset=1&cid=" . $this->_tpl_vars['row']['contact_id']), $this);
 echo '">';
 echo $this->_tpl_vars['row']['sort_name'];
 echo '</a></td><td>';
 echo is_array($_tmp = $this->_tpl_vars['row']['street_address']) ? $this->_run_mod_handler('mb_truncate', true, $_tmp, 22, "...", true) : smarty_modifier_mb_truncate($_tmp, 22, "...", true);
 echo '</td><td>';
 echo $this->_tpl_vars['row']['city'];
 echo '</td><td>';
 echo $this->_tpl_vars['row']['state_province'];
 echo '</td><td>';
 echo $this->_tpl_vars['row']['postal_code'];
 echo '</td><td>';
 echo $this->_tpl_vars['row']['country'];
 echo '</td><td>';
 echo is_array($_tmp = $this->_tpl_vars['row']['email']) ? $this->_run_mod_handler('mb_truncate', true, $_tmp, 17, "...", true) : smarty_modifier_mb_truncate($_tmp, 17, "...", true);
 echo '</td><td>';
Beispiel #30
0
    smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
    while ($_block_repeat) {
        ob_start();
        ?>
status<?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);
    ?>
"/></dt>
            <?php 
    ob_start();
    echo CRM_Utils_System::crmURL(array('p' => 'civicrm/group/add', 'q' => "reset=1"), $this);
    $this->_smarty_vars['capture']['default'] = ob_get_contents();
    $this->assign('crmURL', ob_get_contents());
    ob_end_clean();
    ?>
             <dd><?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();
        ?>
No Groups have been created for this site.<?php 
        $_block_content = ob_get_contents();
        ob_end_clean();
        $_block_repeat = false;