コード例 #1
0
 $cfgFile = $fx_dir . '/' . ($config ? $config : 'No_FX_animation.xml');
 if (empty($config) && $params->get('digits_xml', '')) {
     // Custom profile not empty
     $xml = $params->get('digits_xml', '');
 } else {
     // Preset profile
     if (JFile::exists($cfgFile)) {
         $xml = JFile::read($cfgFile);
     } else {
         $xml = false;
     }
 }
 $scaleBy = $params->get('scale_by', 1);
 $digitsConfig = modSmartCountdownHelper::getDigitsConfig($xml, $scaleBy);
 // get layout config
 $layoutConfig = modSmartCountdownHelper::getLayoutConfig($params);
 $options = new stdClass();
 $options->hide_zero_fields = $params->get('hide_zero_fields', 1);
 $options->display_seconds = $params->get('display_seconds', 1);
 $options->compact_view = $params->get('compact_view', 0);
 $options->show_countdown = $params->get('show_countdown', -1);
 $options->show_countup = $params->get('show_countup', -1);
 $options->images_folder = $digitsConfig['images_folder'];
 $options->blinking_separator = $params->get('separator_blink', 0);
 $options->left_pad_days = $params->get('left_pad_days', 0);
 // pass redirection type options, so that js can decide when to do the
 // redirection: "on deadline reached" or "on click"
 $options->event_goto = $params->get('event_goto', 0);
 $options->counter_clickable = $params->get('counter_clickable', 0);
 $options->confirm_redirect = $params->get('confirm_redirect', 1);
 $options->session_time_count = $params->get('session_time_count', 0);