1
<?php
2
3
/**
4
 * Implements hook_jcarousel_skin_info().
5
 */
6
function vojo_cdh_monterrey_jcarousel_skin_info() {
7
  $skins = array();
8
9
  $skins['cdhmonterrey'] = array(
10
    'title' => t('CDH Monterrey'),
11
    'file' => 'jcarousel_skin/jcarousel-cdhmonterrey.css',
12
  );
13
14
  return $skins;
15
}
16
17
/** --------- OPENLAYERS ------------------------------------------------------ **/
18
19
/**
20
 * Define custom styles for rendering the markers on a map.
21
 * Implements hook_openlayers_styles().
22
 *   http://drupal.org/node/620602
23
 */
24
function vojo_cdh_monterrey_openlayers_styles() {
25
  $styles = array();
26
  
27
  $style = new stdClass();
28
  $style->api_version = 1;
29
  $style->name = 'vojo_cdh_monterrey_default';
30
  $style->title = t('CDH Monterrey Default style');
31
  $style->description = t('Basic default style for the CDH Monterrey website.');
32
  $style->data = array(
33
    'pointRadius' => 6,
34
    'fillColor' => '#ffffff',
35
    'strokeColor' => '#6CD5E2',
36
    'strokeWidth' => 4,
37
    'fillOpacity' => 0.6,
38
    'strokeOpacity' => 0.6
39
  );
40
  $styles[ $style->name ] = $style;
41
  
42
  $style = new stdClass();
43
  $style->api_version = 1;
44
  $style->name = 'vojo_cdh_monterrey_selected';
45
  $style->title = t('CDH Monterrey Selected style');
46
  $style->description = t('Basic selected style for the CDH Monterrey website.');
47
  $style->data = array(
48
    'pointRadius' => 15,
49
    'fillColor' => '#ffffff',
50
    'strokeColor' => '#6CD5E2',
51
    'strokeWidth' => 10,
52
    'fillOpacity' => 1.0,
53
    'strokeOpacity' => 1.0
54
  );
55
  $styles[ $style->name ] = $style;
56
  
57
  $style = new stdClass();
58
  $style->api_version = 1;
59
  $style->name = 'vojo_cdh_monterrey_temporary';
60
  $style->title = t('CDH Monterrey Temporary style');
61
  $style->description = t('Basic temporary style for the CDH Monterrey website.');
62
  $style->data = array(
63
    'pointRadius' => 8,
64
    'fillColor' => '#ffffff',
65
    'strokeColor' => '#6CD5E2',
66
    'strokeWidth' => 6,
67
    'fillOpacity' => 0.5,
68
    'strokeOpacity' => 0.5
69
  );
70
  $styles[ $style->name ] = $style;
71
  
72
  return $styles;
73
}
74
75
/**
76
 * Tell ctools that we have custom marker styles.
77
 * Implements hook_ctools_plugin_api().
78
 *   http://drupal.org/node/620602
79
 */
80
function vojo_cdh_monterrey_ctools_plugin_api($module, $api) {
81
  if ($module == "openlayers") {
82
    switch ($api) {
83
      case 'openlayers_styles':
84
        return array('version' => 1);
85
86
    }
87
  }
88
}