"> <div class="field-left"><?php echo $reqData['title']; ?> ... <?php echo $reqData['value']; ?> </div> <div class="field-right"> <?php echo isset($reqData['skipped']) ? status_skipped() : status($reqData['status'], $reqName); if (!$reqData['status']) { if (isHardError($reqName)) { ga_event('error', 'reqs', $reqName); } else { ga_event('warning', 'reqs', $reqName); } ?> <img id="failed-image-<?php echo $reqName; ?> " class="link-expanded" style="display: none;" src="<?php echo $skinsDir; ?> images/arrow_red.png" alt="" /> <?php } ?> </div>
/** * Display warning_error message * * @param string $txt * @param string $errorCategory * @param string $errorCode OPTIONAL * * @return void */ function warning_error($txt, $errorCategory, $errorCode = '') { x_install_log(xtr('Warning') . ': ' . $txt); ga_event('warning', $errorCategory, $errorCode); ?> <div class="warning-text"> <?php echo xtr('Warning'); ?> : <?php echo $txt; ?> </div> <?php }
</script> <?php $gaStepNumber = $current + 1; // Get list of repeated steps $repeatedSteps = !empty($_COOKIE['passed_steps']) ? explode(',', $_COOKIE['passed_steps']) : array(); if ('cfg_install_db' == $modules[$current]['name'] && isset($_POST['cfg_install_db_step'])) { $stepGASuffix = ' (review)'; $gaStepNumber += 100; } else { $stepGASuffix = ''; } // Get GA event category name $stepGA = in_array($gaStepNumber, $repeatedSteps) ? 'step-repeat' : 'step'; $gaValue = in_array($modules[$current]['name'], array('default', 'install_done')) ? 1 : 0; ga_event($stepGA, sprintf('step-%d-%s%s', $current + 1, $modules[$current]['name'], $stepGASuffix), sprintf('Step %d: %s%s', $current + 1, $modules[$current]['comment'], $stepGASuffix), $gaValue); // Update passed steps list $repeatedSteps[] = $gaStepNumber; $repeatedSteps = array_unique($repeatedSteps); $passedSteps = implode(',', $repeatedSteps); ?> <script type="text/javascript"> document.cookie = 'passed_steps=<?php echo $passedSteps; ?> '; </script> </head>