Révision b433176d
Ajouté par Assos Assos il y a environ 4 ans
drupal7/sites/all/modules/colorbox/colorbox.admin.inc | ||
---|---|---|
50 | 50 |
'#type' => 'checkbox', |
51 | 51 |
'#title' => t('Enable Colorbox inline'), |
52 | 52 |
'#default_value' => variable_get('colorbox_inline', 0), |
53 |
'#description' => t('This enables custom links that can open inline content in a Colorbox. Add the class "colorbox-inline" to the link and build the url like this "?width=500&height=500&inline=true#id-of-content". Other modules may activate this for easy Colorbox integration.'),
|
|
53 |
'#description' => t('<a href="https://www.drupal.org/files/druplicon-small.png" class="colorbox">This</a> enables custom links that can open inline content in a Colorbox. Add the class "colorbox-inline" to the link and build the url like this "?width=500&height=500&inline=true#id-of-content". Other modules may activate this for easy Colorbox integration.'),
|
|
54 | 54 |
); |
55 | 55 |
|
56 | 56 |
$form['colorbox_custom_settings'] = array( |
... | ... | |
73 | 73 |
'#title' => t('Style'), |
74 | 74 |
'#options' => $colorbox_styles, |
75 | 75 |
'#default_value' => variable_get('colorbox_style', 'default'), |
76 |
'#description' => t('Select the style to use for the Colorbox. The example styles are the ones that come with the Colorbox plugin. Select "None" if you have added Colorbox styles to your theme.'), |
|
76 |
'#description' => t('Select the style to use for the Colorbox. The example styles are the ones that come with the Colorbox plugin. Select "None" if you have added Colorbox styles to your theme. <br> <strong>Examples</strong>: <ul><li><a href="/sites/all/modules/colorbox/images/admin/example_default.png" target="blank">Default</a></li><li><a href="/sites/all/modules/colorbox/images/admin/example_plain.png" target="blank">Plain</a></li><li><a href="/sites/all/modules/colorbox/images/admin/example_stockholm_syndrome.png" target="blank">Stockholm Syndrome</a></li><li><a href="/sites/all/modules/colorbox/images/admin/colorbox_example_1.png" target="blank">Example 1</a></li><li><a href="/sites/all/modules/colorbox/images/admin/colorbox_example_2.png" target="blank">Example 2</a></li><li><a href="/sites/all/modules/colorbox/images/admin/colorbox_example_3.png" target="blank">Example 3</a></li><li><a href="/sites/all/modules/colorbox/images/admin/colorbox_example_4.png" target="blank">Example 4</a></li><li><a href="/sites/all/modules/colorbox/images/admin/colorbox_example_5.png" target="blank">Example 5</a></li><li><a href="/sites/all/modules/colorbox/images/admin/example_none.png" target="blank">None</a></li></ul>'),
|
|
77 | 77 |
); |
78 | 78 |
$form['colorbox_custom_settings']['colorbox_custom_settings_activate'] = array( |
79 | 79 |
'#type' => 'radios', |
... | ... | |
93 | 93 |
$form['colorbox_custom_settings']['colorbox_transition_type'] = array( |
94 | 94 |
'#type' => 'radios', |
95 | 95 |
'#title' => t('Transition type'), |
96 |
'#options' => array('elastic' => t('Elastic'), 'fade' => t('Fade'), 'none' => t('None')), |
|
96 |
'#options' => array( |
|
97 |
'elastic' => t('Elastic'), |
|
98 |
'fade' => t('Fade'), |
|
99 |
'none' => t('None'), |
|
100 |
), |
|
97 | 101 |
'#default_value' => variable_get('colorbox_transition_type', 'elastic'), |
98 | 102 |
'#description' => t('The transition type.'), |
99 | 103 |
); |
100 | 104 |
$form['colorbox_custom_settings']['colorbox_transition_speed'] = array( |
101 | 105 |
'#type' => 'select', |
102 | 106 |
'#title' => t('Transition speed'), |
103 |
'#options' => drupal_map_assoc(array(100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600)), |
|
107 |
'#options' => drupal_map_assoc(array( |
|
108 |
100, |
|
109 |
150, |
|
110 |
200, |
|
111 |
250, |
|
112 |
300, |
|
113 |
350, |
|
114 |
400, |
|
115 |
450, |
|
116 |
500, |
|
117 |
550, |
|
118 |
600, |
|
119 |
)), |
|
104 | 120 |
'#default_value' => variable_get('colorbox_transition_speed', 350), |
105 | 121 |
'#description' => t('Sets the speed of the fade and elastic transitions, in milliseconds.'), |
106 | 122 |
); |
107 | 123 |
$form['colorbox_custom_settings']['colorbox_opacity'] = array( |
108 | 124 |
'#type' => 'select', |
109 | 125 |
'#title' => t('Opacity'), |
110 |
'#options' => drupal_map_assoc(array('0', '0.10', '0.15', '0.20', '0.25', '0.30', '0.35', '0.40', '0.45', '0.50', '0.55', '0.60', '0.65', '0.70', '0.75', '0.80', '0.85', '0.90', '0.95', '1')), |
|
126 |
'#options' => drupal_map_assoc(array( |
|
127 |
'0', |
|
128 |
'0.10', |
|
129 |
'0.15', |
|
130 |
'0.20', |
|
131 |
'0.25', |
|
132 |
'0.30', |
|
133 |
'0.35', |
|
134 |
'0.40', |
|
135 |
'0.45', |
|
136 |
'0.50', |
|
137 |
'0.55', |
|
138 |
'0.60', |
|
139 |
'0.65', |
|
140 |
'0.70', |
|
141 |
'0.75', |
|
142 |
'0.80', |
|
143 |
'0.85', |
|
144 |
'0.90', |
|
145 |
'0.95', |
|
146 |
'1', |
|
147 |
)), |
|
111 | 148 |
'#default_value' => variable_get('colorbox_opacity', '0.85'), |
112 | 149 |
'#description' => t('The overlay opacity level. Range: 0 to 1.'), |
113 | 150 |
); |
... | ... | |
183 | 220 |
'#type' => 'checkbox', |
184 | 221 |
'#title' => t('Fixed'), |
185 | 222 |
'#default_value' => variable_get('colorbox_fixed', 1), |
186 |
'#description' => t('If the Colorbox should be displayed in a fixed position within the visitor\'s viewport or relative to the document.'),
|
|
223 |
'#description' => t("If the Colorbox should be displayed in a fixed position within the visitor's viewport or relative to the document."),
|
|
187 | 224 |
); |
188 | 225 |
|
189 | 226 |
$form['colorbox_custom_settings']['colorbox_slideshow_settings'] = array( |
... | ... | |
223 | 260 |
$form['colorbox_custom_settings']['colorbox_slideshow_settings']['colorbox_slideshowspeed'] = array( |
224 | 261 |
'#type' => 'select', |
225 | 262 |
'#title' => t('Slideshow speed'), |
226 |
'#options' => drupal_map_assoc(array(1000, 1500, 2000, 2500, 3000, 3500, 4000, 4500, 5000, 5500, 6000)), |
|
263 |
'#options' => drupal_map_assoc(array( |
|
264 |
1000, |
|
265 |
1500, |
|
266 |
2000, |
|
267 |
2500, |
|
268 |
3000, |
|
269 |
3500, |
|
270 |
4000, |
|
271 |
4500, |
|
272 |
5000, |
|
273 |
5500, |
|
274 |
6000, |
|
275 |
)), |
|
227 | 276 |
'#default_value' => variable_get('colorbox_slideshowspeed', 2500), |
228 | 277 |
'#description' => t('Sets the speed of the slideshow, in milliseconds.'), |
229 | 278 |
); |
... | ... | |
292 | 341 |
$form['colorbox_advanced_settings']['colorbox_caption_trim_length'] = array( |
293 | 342 |
'#type' => 'select', |
294 | 343 |
'#title' => t('Caption max length'), |
295 |
'#options' => drupal_map_assoc(array(40, 45, 50, 55, 60, 70, 75, 80, 85, 90, 95, 100, 105, 110, 115, 120)), |
|
344 |
'#options' => drupal_map_assoc(array( |
|
345 |
40, |
|
346 |
45, |
|
347 |
50, |
|
348 |
55, |
|
349 |
60, |
|
350 |
70, |
|
351 |
75, |
|
352 |
80, |
|
353 |
85, |
|
354 |
90, |
|
355 |
95, |
|
356 |
100, |
|
357 |
105, |
|
358 |
110, |
|
359 |
115, |
|
360 |
120, |
|
361 |
)), |
|
296 | 362 |
'#default_value' => variable_get('colorbox_caption_trim_length', 75), |
297 | 363 |
'#states' => array( |
298 | 364 |
'visible' => array( |
... | ... | |
310 | 376 |
'#type' => 'textarea', |
311 | 377 |
'#title' => '<span class="element-invisible">' . t('Pages') . '</span>', |
312 | 378 |
'#default_value' => variable_get('colorbox_pages', "admin*\nimagebrowser*\nimg_assist*\nimce*\nnode/add/*\nnode/*/edit\nprint/*\nprintpdf/*\nsystem/ajax\nsystem/ajax/*"), |
313 |
'#description' => t("Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. Example paths are %blog for the blog page and %blog-wildcard for every personal blog. %front is the front page.", array('%blog' => 'blog', '%blog-wildcard' => 'blog/*', '%front' => '<front>')), |
|
379 |
'#description' => t("Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. Example paths are %blog for the blog page and %blog-wildcard for every personal blog. %front is the front page. <p><a href=\"#\" class=\"colorbox-reset-specific-pages-default\">Reset to default</a></p>", array( |
|
380 |
'%blog' => 'blog', |
|
381 |
'%blog-wildcard' => 'blog/*', |
|
382 |
'%front' => '<front>', |
|
383 |
)), |
|
314 | 384 |
); |
315 | 385 |
$form['colorbox_advanced_settings']['colorbox_compression_type'] = array( |
316 | 386 |
'#type' => 'radios', |
Formats disponibles : Unified diff
Weekly update of contrib modules