Révision 0695d136
Ajouté par Assos Assos il y a plus de 9 ans
drupal7/sites/all/modules/calendar/includes/calendar_plugin_style.inc | ||
---|---|---|
83 | 83 |
$form['max_items'] = array( |
84 | 84 |
'#title' => t('Maximum items'), |
85 | 85 |
'#type' => 'select', |
86 |
'#options' => array(0 => t('Unlimited'), 1 => t('1 item'), 3 => t('3 items'), 5 => t('5 items'), 10 => t('10 items')), |
|
86 |
'#options' => array( |
|
87 |
0 => t('Unlimited'), |
|
88 |
1 => format_plural( 1, '1 item', '@count items'), |
|
89 |
3 => format_plural( 3, '1 item', '@count items'), |
|
90 |
5 => format_plural( 5, '1 item', '@count items'), |
|
91 |
10 => format_plural(10, '1 item', '@count items'), |
|
92 |
), |
|
87 | 93 |
'#default_value' => $this->options['calendar_type'] != 'day' ? $this->options['max_items'] : 0, |
88 | 94 |
'#description' => t('Maximum number of items to show in calendar cells, used to keep the calendar from expanding to a huge size when there are lots of items in one day.'), |
89 | 95 |
'#dependency' => array('edit-style-options-calendar-type' => array('month')), |
... | ... | |
920 | 926 |
date_modify($this->curday, '-' . strval((7 + $day_wday - $first_day) % 7) . ' days'); |
921 | 927 |
$curday_date = date_format($this->curday, DATE_FORMAT_DATE); |
922 | 928 |
|
929 |
if (!empty($this->date_info->style_with_weekno)) { |
|
930 |
$path = calendar_granularity_path($this->view, 'week'); |
|
931 |
if (!empty($path)) { |
|
932 |
$url = $path . '/' . $this->date_info->year . '-W' . $week; |
|
933 |
$weekno = l($week, $url, array('query' => !empty($this->date_info->append) ? $this->date_info->append : '')); |
|
934 |
} |
|
935 |
else { |
|
936 |
// Do not link week numbers, if Week views are disabled. |
|
937 |
$weekno = $week; |
|
938 |
} |
|
939 |
$rows[$week][] = array( |
|
940 |
'data' => $weekno, |
|
941 |
'class' => 'mini week', |
|
942 |
'id' => $this->view->name . '-weekno-' . $curday_date, |
|
943 |
); |
|
944 |
} |
|
945 |
|
|
923 | 946 |
for ($i = 0; $i < 7; $i++) { |
924 | 947 |
$curday_date = date_format($this->curday, DATE_FORMAT_DATE); |
925 | 948 |
$class = strtolower($weekdays[$i] . ' mini'); |
... | ... | |
956 | 979 |
return $rows; |
957 | 980 |
} |
958 | 981 |
|
959 |
} |
|
982 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules