summaryrefslogtreecommitdiff
path: root/www/crm/wp-content/uploads/civicrm/templates_c/es_ES/%%9C/9C5/9C5362F2%%additionalBlocks.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/crm/wp-content/uploads/civicrm/templates_c/es_ES/%%9C/9C5/9C5362F2%%additionalBlocks.tpl.php')
-rw-r--r--www/crm/wp-content/uploads/civicrm/templates_c/es_ES/%%9C/9C5/9C5362F2%%additionalBlocks.tpl.php196
1 files changed, 0 insertions, 196 deletions
diff --git a/www/crm/wp-content/uploads/civicrm/templates_c/es_ES/%%9C/9C5/9C5362F2%%additionalBlocks.tpl.php b/www/crm/wp-content/uploads/civicrm/templates_c/es_ES/%%9C/9C5/9C5362F2%%additionalBlocks.tpl.php
deleted file mode 100644
index 672d17d5..00000000
--- a/www/crm/wp-content/uploads/civicrm/templates_c/es_ES/%%9C/9C5/9C5362F2%%additionalBlocks.tpl.php
+++ /dev/null
@@ -1,196 +0,0 @@
-<?php /* Smarty version 2.6.31, created on 2019-08-30 19:47:35
- compiled from CRM/common/additionalBlocks.tpl */ ?>
-<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
-smarty_core_load_plugins(array('plugins' => array(array('block', 'crmScope', 'CRM/common/additionalBlocks.tpl', 1, false),array('function', 'crmURL', 'CRM/common/additionalBlocks.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(); ?><?php echo '
-<script type="text/javascript" >
-CRM.$(function($) {
- '; ?>
-
- <?php if ($this->_tpl_vars['generateAjaxRequest']): ?>
- <?php $_from = $this->_tpl_vars['ajaxRequestBlocks']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
- foreach ($_from as $this->_tpl_vars['blockName'] => $this->_tpl_vars['instances']):
-?>
- <?php $_from = $this->_tpl_vars['instances']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
- foreach ($_from as $this->_tpl_vars['instance'] => $this->_tpl_vars['active']):
-?>
- buildAdditionalBlocks( '<?php echo $this->_tpl_vars['blockName']; ?>
-', '<?php echo $this->_tpl_vars['className']; ?>
-' );
- <?php endforeach; endif; unset($_from); ?>
- <?php endforeach; endif; unset($_from); ?>
- <?php endif; ?>
-
- <?php if ($this->_tpl_vars['loadShowHideAddressFields']): ?>
- <?php $_from = $this->_tpl_vars['showHideAddressFields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
- foreach ($_from as $this->_tpl_vars['blockId'] => $this->_tpl_vars['fieldName']):
-?>
- processAddressFields( '<?php echo $this->_tpl_vars['fieldName']; ?>
-', '<?php echo $this->_tpl_vars['blockId']; ?>
-', 0 );
- <?php endforeach; endif; unset($_from); ?>
- <?php endif; ?>
- <?php echo '
-});
-
-function buildAdditionalBlocks( blockName, className ) {
- 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']): ?>
- dataUrl += "&qfKey=<?php echo $this->_tpl_vars['qfKey']; ?>
-";
- <?php endif; ?>
- <?php echo '
-
- if ( !dataUrl ) {
- return;
- }
-
- var fname = \'#\' + blockName + \'_Block_\'+ previousInstance;
-
- cj(\'#addMore\' + blockName + previousInstance ).hide( );
- cj.ajax({
- url : dataUrl,
- async : false,
- success : function(html){
- cj(fname).after(html);
- cj(fname).nextAll().trigger(\'crmLoad\');
- }
- });
-
- if ( blockName == \'Address\' ) {
- checkLocation(\'address_\' + currentInstance + \'_location_type_id\', true );
- /* FIX: for IE, To get the focus after adding new address block on first element */
- cj(\'#address_\' + currentInstance + \'_location_type_id\').focus();
- }
-}
-
-//select single for is_bulk & is_primary
-function singleSelect( object ) {
- var element = object.split( \'_\', 3 );
-
- var block = (element[\'0\'] == \'Address\') ? \'Primary\' : element[\'2\'].slice(\'2\');
- var execBlock = \'#\' + element[\'0\'] + \'-\' + block + \'-html Input[id*="\' + element[\'2\'] + \'"]\';
-
- //element to check for checkbox
- var elementChecked = cj( \'#\' + object ).prop(\'checked\');
- if ( elementChecked ) {
- cj( execBlock ).each( function() {
- if ( cj(this).attr(\'id\') != object ) {
- cj(this).prop(\'checked\', false );
- }
- });
- } else {
- cj( \'#\' + object ).prop(\'checked\', false );
- }
-
- //check if non of elements is set Primary / Allowed to Login.
- if( cj.inArray( element[\'2\'].slice(\'2\'), [ \'Primary\', \'Login\' ] ) != -1 ) {
- primary = false;
- cj( execBlock ).each( function( ) {
- if ( cj(this).prop(\'checked\' ) ) {
- primary = true;
- }
- });
- if( ! primary ) {
- cj(\'#\' + object).prop(\'checked\', true );
- }
- }
-}
-
-function removeBlock( blockName, blockId ) {
- var element = cj("#addressBlock > div").size();
- if ( ( blockName == \'Address\' ) && element == 1 ) {
- return clearFirstBlock(blockName , blockId);
- }
-
- if ( cj( "#"+ blockName + "_" + blockId + "_IsPrimary").prop(\'checked\') ) {
- var primaryBlockId = 1;
- // consider next block as a primary,
- // when user delete first block
- if ( blockId >= 1 ) {
- var blockIds = getAddressBlock(\'next\');
- for ( var i = 0; i <= blockIds.length; i++) {
- var curBlockId = blockIds[i];
- if ( curBlockId != blockId ) {
- primaryBlockId = curBlockId;
- break;
- }
- }
- }
-
- // finally sets the primary address
- cj( \'#\'+ blockName + \'_\' + primaryBlockId + \'_IsPrimary\').prop(\'checked\', true);
- }
-
- //remove the spacer for address block only.
- if ( blockName == \'Address\' && cj( "#"+ blockName + "_Block_" + blockId ).prev().attr(\'class\') == \'spacer\' ){
- cj( "#"+ blockName + "_Block_" + blockId ).prev().remove();
- }
-
- //unset block from html
- cj( "#"+ blockName + "_Block_" + blockId ).empty().remove();
-
- //show the link \'add address\' to last element of Address Block
- if ( blockName == \'Address\' ) {
- var lastAddressBlock = cj(\'div[id^=Address_Block_]\').last().attr(\'id\');
- var lastBlockId = lastAddressBlock.split( \'_\' );
- if ( lastBlockId[2] ) {
- cj( \'#addMoreAddress\' + lastBlockId[2] ).show();
- }
- }
-}
-
-function clearFirstBlock( blockName , blockId ) {
- var element = blockName + \'_Block_\' + blockId;
- cj("#" + element +" input, " + "#" + element + " select").each(function () {
- cj(this).val(\'\');
- });
- cj("#addressBlockId:not(.collapsed)").crmAccordionToggle();
- cj("#addressBlockId .active").removeClass(\'active\');
-}
-
-function getAddressBlock( position ) {
- var addressBlockIds = [];
- var i = 0;
- switch ( position ) {
- case \'last\':
- var lastBlockInfo = cj("#addressBlockId > div").children(\':last\').attr(\'id\').split( \'_\', 3);
- addressBlockIds[i] = lastBlockInfo[\'2\'];
- break;
- case \'next\':
- cj("#addressBlockId > div").children().each( function() {
- if ( cj(this).attr(\'id\') ) {
- var blockInfo = cj(this).attr(\'id\').split( \'_\', 3);
- addressBlockIds[i] = blockInfo[\'2\'];
- i++;
- }
- });
- break;
- }
- return addressBlockIds;
-}
-</script>
-'; ?>
-
-<?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); ?> \ No newline at end of file