* ---------------------------------------------------------------------- */ $vs_id_prefix = $this->getVar('placement_code') . $this->getVar('id_prefix'); $vs_element = $this->getVar('form_element'); $va_settings = $this->getVar('settings'); $t_instance = $this->getVar('t_instance'); $vs_bundle_name = $this->getVar('bundle_name'); $vb_batch = $this->getVar('batch'); $va_errors = array(); if (is_array($va_action_errors = $this->getVar('errors'))) { foreach ($va_action_errors as $o_error) { $va_errors[] = $o_error->getErrorDescription(); } } if ($vb_batch) { print caBatchEditorIntrinsicModeControl($t_instance, $vs_bundle_name); } else { print caEditorBundleShowHideControl($this->request, "intrinsic_{$vs_bundle_name}"); } ?> <div> <?php if (isset($va_settings['forACLAccessScreen']) && $va_settings['forACLAccessScreen']) { ?> <div class="globalAccess"> <div class='title'><?php print $t_instance->getFieldInfo($vs_bundle_name, 'LABEL'); ?> </div> <p> <?php
$t_instance = $this->getVar('t_instance'); $vs_bundle_name = $this->getVar('bundle_name'); $vb_batch = $this->getVar('batch'); // fetch data for bundle preview $vs_bundle_preview = $t_instance->get($vs_bundle_name, array('convertCodesToDisplayText' => true)); if (is_array($vs_bundle_preview)) { $vs_bundle_preview = ''; } $va_errors = array(); if (is_array($va_action_errors = $this->getVar('errors'))) { foreach ($va_action_errors as $o_error) { $va_errors[] = $o_error->getErrorDescription(); } } if ($vb_batch) { print caBatchEditorIntrinsicModeControl($t_instance, $vs_id_prefix); } else { print caEditorBundleShowHideControl($this->request, $vs_id_prefix, $va_settings, caInitialValuesArrayHasValue($vs_id_prefix, $vs_bundle_preview)); ?> <script type="text/javascript"> jQuery(document).ready(function() { jQuery('#' + '<?php print $vs_id_prefix; ?> ' + '_BundleContentPreview').text(<?php print caEscapeForBundlePreview($vs_bundle_preview); ?> ); }); </script> <?php