Project

General

Profile

« Previous | Next » 

Revision d9c55e6c

Added by Andreas Kohlbecker almost 11 years ago

maximum extend of profile image configurabel

View differences:

7.x/themes/zen_dataportal/theme-settings.php
30 30
    return;
31 31
  }
32 32

  
33
  if(!module_exists('cdm_dataportal')) {
34
    drupal_set_message('<strong>FATAL MISCONFIGURATION:</strong>The zen_dataportal theme requires the cdm_dataportal module to be installed and enabled.', 'error');
35
    return;
36
  }
37

  
33 38
  $path_to_theme = drupal_get_path('theme', 'zen_dataportal');
34 39

  
35 40
  // check browser compatibility requirements
......
275 280
  );
276 281
}
277 282

  
278
/**
279
 *
280
 * Enter description here ...
281
 * @param $color_settings_key
282
 *
283
 */
284
function zen_dataportal_form_widget_color(&$form, $color_settings_key, $description) {
285
  $label = str_replace('_', ' ', $color_settings_key);
286
  $form['zen_dataportal_colors'][$color_settings_key] = array(
287
          '#type'          => 'textfield',
288
          '#title'         => ucfirst(t($label)),
289
          '#default_value' => theme_get_setting($color_settings_key),
290
          '#description'   => $description, //t('Set the color of the site name which is shown in the header. Must be a css color value like: #000000'),
291
          '#attributes' => array(
292
            'class' => array('color-picker'),
293
            'size' => '7',
294
          ),
295
  );
296
}
297

  
298 283
/**
299 284
 *
300 285
 * Enter description here ...

Also available in: Unified diff