This repository has been archived by the owner on Nov 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
culturefeed_kickstart.install
852 lines (806 loc) · 29.1 KB
/
culturefeed_kickstart.install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
<?php
/**
* @file
* Installation file to add configuration and displays for the Kickstart project.
*/
/**
* Implements hook_install().
*/
function culturefeed_kickstart_install() {
// Import the domains and terms.
$import = new CultureFeedDomainImport();
$import->import();
// Import the cities.
$import = new CultureFeedCityImport();
$import->import();
// Enable some modules.
module_enable(array('block','menu','contact','contextual','filter','path'));
// Enable themes
theme_enable(array('bootstrap','culturefeed_bootstrap','seven'));
variable_set('theme_default', 'culturefeed_bootstrap');
variable_set('admin_theme', 'seven');
variable_set('node_admin_theme', '1');
$default_theme = variable_get('theme_default', 'culturefeed_bootstrap');
// Enable blocks for pages
$blocks = array(
// Module culturefeed_agenda
array(
'module' => 'culturefeed_agenda',
'delta' => 'agenda-related-activities',
'theme' => $default_theme,
'status' => 1,
'weight' => 10,
'region' => 'footer',
'pages' => "agenda/e/*\r\nagenda/p/*",
'visibility' => 1,
'cache' => -1,
'title' => ''
),
array(
'module' => 'culturefeed_agenda',
'delta' => 'agenda-search-block',
'theme' => $default_theme,
'status' => 1,
'weight' => -33,
'region' => 'header',
'pages' => '',
'cache' => -1,
'title' => ''
),
array(
'module' => 'culturefeed_agenda',
'delta' => 'agenda-event-types',
'theme' => $default_theme,
'status' => 1,
'weight' => -33,
'region' => 'header',
'pages' => '',
'cache' => -1,
'title' => ''
),
array(
'module' => 'culturefeed_agenda',
'delta' => 'agenda-actor-search',
'theme' => $default_theme,
'status' => 1,
'weight' => 1,
'region' => 'sidebar_first',
'pages' => '',
'cache' => -1,
'title' => ''
),
array(
'module' => 'culturefeed_agenda',
'delta' => 'actor-program',
'theme' => $default_theme,
'status' => 1,
'weight' => 10,
'region' => 'content',
'pages' => 'agenda/a/*',
'visibility' => 1,
'cache' => -1,
'title' => ''
),
// Module culturefeed_search_ui
array(
'module' => 'culturefeed_search_ui',
'delta' => 'culturefeed-search-activefilters',
'theme' => $default_theme,
'status' => 1,
'weight' => -39,
'region' => 'content',
'pages' => "agenda/search*\r\nagenda/pages*",
'visibility' => 1,
'cache' => -1,
'title' => ''
),
array(
'module' => 'culturefeed_search_ui',
'delta' => 'facet-actortype',
'theme' => $default_theme,
'status' => 1,
'weight' => -37,
'region' => 'sidebar_first',
'pages' => 'agenda/pages',
'visibility' => 1,
'cache' => -1,
'title' => ''
),
array(
'module' => 'culturefeed_search_ui',
'delta' => 'facet-datetype',
'theme' => $default_theme,
'status' => 1,
'weight' => -38,
'region' => 'sidebar_first',
'pages' => 'agenda/search',
'visibility' => 1,
'cache' => -1,
'title' => ''
),
array(
'module' => 'culturefeed_search_ui',
'delta' => 'facet-flandersregion',
'theme' => $default_theme,
'status' => 1,
'weight' => -36,
'region' => 'sidebar_first',
'pages' => "agenda/search\r\nagenda/pages",
'visibility' => 1,
'cache' => -1,
'title' => 'Where'
),
array(
'module' => 'culturefeed_search_ui',
'delta' => 'facet-city',
'theme' => $default_theme,
'status' => 1,
'weight' => -35,
'region' => 'sidebar_first',
'pages' => "agenda/search\r\nagenda/pages",
'visibility' => 1,
'cache' => -1,
'title' => '<none>'
),
array(
'module' => 'culturefeed_search_ui',
'delta' => 'facet-eventtype',
'theme' => $default_theme,
'status' => 1,
'weight' => -34,
'region' => 'sidebar_first',
'pages' => 'agenda/search',
'visibility' => 1,
'cache' => -1,
'title' => ''
),
array(
'module' => 'culturefeed_search_ui',
'delta' => 'facet-theme',
'theme' => $default_theme,
'status' => 1,
'weight' => -34,
'region' => 'sidebar_first',
'pages' => 'agenda/search',
'visibility' => 1,
'cache' => -1,
'title' => '<none>'
),
array(
'module' => 'culturefeed_search_ui',
'delta' => 'facet-age-range',
'theme' => $default_theme,
'status' => 1,
'weight' => -33,
'region' => 'sidebar_first',
'pages' => 'agenda/search',
'visibility' => 1,
'cache' => -1,
'title' => ''
),
array(
'module' => 'culturefeed_search_ui',
'delta' => 'filter-form',
'theme' => $default_theme,
'status' => 1,
'weight' => -32,
'region' => 'sidebar_first',
'pages' => 'agenda/search',
'visibility' => 1,
'cache' => -1,
'title' => 'Extra filters'
),
// Module culturefeed_social
array(
'module' => 'culturefeed_social',
'delta' => 'user-activities',
'theme' => $default_theme,
'status' => 1,
'weight' => 5,
'region' => 'content',
'pages' => 'user*',
'visibility' => 1,
'cache' => -1,
'title' => ''
),
array(
'module' => 'culturefeed_social',
'delta' => 'recommended-by',
'theme' => $default_theme,
'status' => 1,
'weight' => -31,
'region' => 'sidebar_second',
'pages' => "agenda/e/*\r\nagenda/p/*",
'visibility' => 1,
'cache' => -1,
'title' => ''
),
array(
'module' => 'culturefeed_social',
'delta' => 'attended-by',
'theme' => $default_theme,
'status' => 1,
'weight' => -30,
'region' => 'sidebar_second',
'pages' => "agenda/e/*\r\nagenda/p/*",
'visibility' => 1,
'cache' => -1,
'title' => ''
),
array(
'module' => 'culturefeed_social',
'delta' => 'recommendations',
'theme' => $default_theme,
'status' => 1,
'weight' => -31,
'region' => 'content',
'pages' => "agenda/e/*\r\nagenda/p/*",
'visibility' => 1,
'cache' => -1,
'title' => ''
),
// Module culturefeed_ui
array(
'module' => 'culturefeed_ui',
'delta' => 'profile_box',
'theme' => $default_theme,
'status' => 1,
'weight' => -29,
'region' => 'navigation',
'pages' => '',
'cache' => -1,
'title' => ''
),
array(
'module' => 'culturefeed_ui',
'delta' => 'my_uitid',
'theme' => $default_theme,
'status' => 1,
'weight' => -29,
'region' => 'sidebar_second',
'pages' => "culturefeed/*\r\nuser/*",
'visibility' => 1,
'cache' => -1,
'title' => '<none>'
),
array(
'module' => 'culturefeed_ui',
'delta' => 'profile_menu',
'theme' => $default_theme,
'status' => 1,
'weight' => -28,
'region' => 'sidebar_second',
'pages' => "culturefeed/*\r\nuser/*",
'visibility' => 1,
'cache' => -1,
'title' => '<none>'
),
// Module culturefeed_saved_searches
array(
'module' => 'culturefeed_saved_searches',
'delta' => 'saved-searches-teaser-list',
'theme' => $default_theme,
'status' => 1,
'weight' => -29,
'region' => 'header',
'pages' => '',
'cache' => -1,
'title' => ''
),
array(
'module' => 'culturefeed_saved_searches',
'delta' => 'culturefeed-saved-searches-cta-2',
'theme' => $default_theme,
'status' => 1,
'weight' => -1,
'region' => 'content',
'pages' => "agenda/search",
'visibility' => 1,
'cache' => -1,
'title' => ''
),
array(
'module' => 'culturefeed_saved_searches',
'delta' => 'culturefeed-saved-searches-cta',
'theme' => $default_theme,
'status' => 1,
'weight' => 20,
'region' => 'content',
'pages' => "agenda/search",
'visibility' => 1,
'cache' => -1,
'title' => ''
),
// Module culturefeed_pages
array(
'module' => 'culturefeed_pages',
'delta' => 'pages-admin-options',
'theme' => $default_theme,
'status' => 1,
'weight' => -32,
'region' => 'sidebar_second',
'pages' => "agenda/g/*",
'visibility' => 1,
'cache' => -1,
'title' => '<none>'
),
array(
'module' => 'culturefeed_pages',
'delta' => 'followers',
'theme' => $default_theme,
'status' => 1,
'weight' => -30,
'region' => 'sidebar_second',
'pages' => "agenda/g/*",
'visibility' => 1,
'cache' => -1,
'title' => ''
),
array(
'module' => 'culturefeed_pages',
'delta' => 'nearby-pages',
'theme' => $default_theme,
'status' => 1,
'weight' => -28,
'region' => 'sidebar_second',
'pages' => "agenda/g/*",
'visibility' => 1,
'cache' => -1,
'title' => ''
),
array(
'module' => 'culturefeed_pages',
'delta' => 'pages-admin-menu',
'theme' => $default_theme,
'status' => 1,
'weight' => -26,
'region' => 'sidebar_second',
'pages' => "pages/*/*",
'visibility' => 1,
'cache' => -1,
'title' => ''
),
array(
'module' => 'culturefeed_pages',
'delta' => 'page-timeline',
'theme' => $default_theme,
'status' => 1,
'weight' => 10,
'region' => 'content',
'pages' => "agenda/g/*",
'visibility' => 1,
'cache' => -1,
'title' => ''
),
);
$query = db_insert('block')->fields(array('module', 'delta', 'theme', 'status', 'weight', 'region', 'pages', 'cache', 'visibility','title'));
foreach ($blocks as $block) {
$block['visibility'] = isset($block['visibility']) ? $block['visibility'] : 0;
// Add block for default_theme
$query->values($block);
// Add block for bartik
$block['theme'] = 'bartik';
// Region 'navigation' doesn't exist in bartik
switch ($block['region']) {
case 'header':
$block['region'] = 'sidebar_second';
break;
case 'navigation':
$block['region'] = 'header';
break;
}
$query->values($block);
}
$query->execute();
// Set drupal variables
variable_set('menu_secondary_links_source', '');
variable_set('user_register', USER_REGISTER_ADMINISTRATORS_ONLY);
// Set jquery_update variables
variable_set('jquery_update_jquery_version', '1.8');
// Set additional culturefeed variables
// Use default pager (not infinite scroll)
variable_set('culturefeed_search_ui_pager_type', 0);
variable_set('culturefeed_search_ui_pager_items_per_page', 25);
variable_set('culturefeed_social_report_destin', 1);
// Set the domain id
variable_set('agenda_search_block_domain_id', 'eventtype');
// Set highest level of eventtype facet to level 2
variable_set('culturefeed_facet_highest_level_facet-eventtype', '2');
// Show themes facet only when types selected
variable_set('culturefeed_facet_theme_hide', TRUE);
// Set custom filter form to checkboxes with AND relation
variable_set('culturefeed_search_filter_display_options', 'checkboxes');
variable_set('culturefeed_search_filter_operator', 'and');
// Set defaults for related-activities block
variable_set('agenda_related_activities_context', 'eventtype');
variable_set('agenda_related_activities_range', '30');
variable_set('agenda_related_activities_sort', 'like_count');
variable_set('agenda_related_activities_sort_direction', 'desc');
variable_set('agenda_related_activities_total_items', '4');
// Enable all available actor-types for culturefeed_pages
$actor_types = array (
'8.9.1.0.0' => '8.9.1.0.0',
'8.46.0.0.0' => '8.46.0.0.0',
'8.9.2.0.0' => '8.9.2.0.0',
'8.2.0.0.0' => '8.2.0.0.0',
'8.47.0.0.0' => '8.47.0.0.0',
'8.3.0.0.0' => '8.3.0.0.0',
'8.4.0.0.0' => '8.4.0.0.0',
'8.48.0.0.0' => '8.48.0.0.0',
'8.6.0.0.0' => '8.6.0.0.0',
'8.5.0.0.0' => '8.5.0.0.0',
'8.21.1.0.0' => '8.21.1.0.0',
'8.32.0.0.0' => '8.32.0.0.0',
'8.49.0.0.0' => '8.49.0.0.0',
'8.1.0.0.0' => '8.1.0.0.0',
'8.44.0.0.0' => '8.44.0.0.0',
'8.10.0.0.0' => '8.10.0.0.0',
'8.50.0.0.0' => '8.50.0.0.0',
'8.51.0.0.0' => '8.51.0.0.0',
'8.52.0.0.0' => '8.52.0.0.0',
'8.53.0.0.0' => '8.53.0.0.0',
'8.40.0.0.0' => '8.40.0.0.0',
'8.15.0.0.0' => '8.15.0.0.0',
'8.0.0.0.0' => '8.0.0.0.0',
'8.11.0.0.0' => '8.11.0.0.0',
'8.60.0.0.0' => '8.60.0.0.0',
);
variable_set('culturefeed_pages_actor_types', $actor_types);
variable_set('culturefeed_facet_show_subitems_facet-actortype', '1');
// Configure default permissions for each role
db_query("INSERT INTO {role_permission} (rid, permission, module) VALUES (1, 'access content', 'node'), (2, 'access content', 'node')");
db_query("INSERT INTO {role_permission} (rid, permission, module) VALUES (1, 'access user profiles', 'user'), (2, 'access user profiles', 'user')");
db_query("INSERT INTO {role_permission} (rid, permission, module) VALUES (1, 'access site-wide contact form', 'contact'), (2, 'access site-wide contact form', 'contact')");
// Insert default user-defined node types into the database
$type = array(
'type' => 'page',
'name' => t('Page'),
'base' => 'node_content',
'description' => t('If you want to add a static page, like a contact page or an about page, use a page.'),
'custom' => 1,
'modified' => 1,
'locked' => 0,
);
$type = node_type_set_defaults($type);
node_type_save($type);
node_add_body_field($type);
// Default page to not be promoted and have comments disabled.
$theme_settings = variable_get('theme_settings', array());
$theme_settings['toggle_node_info_page'] = FALSE;
// Comment module is not enabled, so use the value of COMMENT_NODE_HIDDEN
// constant directly.
variable_set('comment_page', 0);
variable_set('node_submitted_page', 0);
variable_set('theme_settings', $theme_settings);
// Add text formats.
$filtered_html_format = array(
'format' => 'filtered_html',
'name' => 'Filtered HTML',
'weight' => 0,
'filters' => array(
// URL filter.
'filter_url' => array(
'weight' => 0,
'status' => 1,
),
// HTML filter.
'filter_html' => array(
'weight' => 1,
'status' => 1,
),
// Line break filter.
'filter_autop' => array(
'weight' => 2,
'status' => 1,
),
// HTML corrector filter.
'filter_htmlcorrector' => array(
'weight' => 10,
'status' => 1,
),
),
);
$filtered_html_format = (object) $filtered_html_format;
filter_format_save($filtered_html_format);
$full_html_format = array(
'format' => 'full_html',
'name' => 'Full HTML',
'weight' => 1,
'filters' => array(
// URL filter.
'filter_url' => array(
'weight' => 0,
'status' => 1,
),
// Line break filter.
'filter_autop' => array(
'weight' => 1,
'status' => 1,
),
// HTML corrector filter.
'filter_htmlcorrector' => array(
'weight' => 10,
'status' => 1,
),
),
);
$full_html_format = (object) $full_html_format;
filter_format_save($full_html_format);
//Add wysiwyg for full_html & filtered_html format
$settings = array(
'default' => 1,
'user_choose' => 0,
'show_toggle' => 1,
'theme' => 'advanced',
'language' => 'en',
'buttons' =>
array(
'default' =>
array(
'bold' => 1,
'italic' => 1,
'underline' => 1,
'strikethrough' => 1,
'justifyleft' => 1,
'justifycenter' => 1,
'justifyright' => 1,
'bullist' => 1,
'numlist' => 1,
'outdent' => 1,
'indent' => 1,
'undo' => 1,
'redo' => 1,
'link' => 1,
'unlink' => 1,
'anchor' => 1,
'cleanup' => 1,
'formatselect' => 1,
'cut' => 1,
'copy' => 1,
'paste' => 1,
'removeformat' => 1,
'image' => 1,
),
'imce' => array(
'imce' => 1,
),
'advlink' => array(
'advlink' => 1,
),
'contextmenu' => array(
'contextmenu' => 1,
),
'inlinepopups' => array(
'inlinepopups' => 1,
),
'paste' => array(
'pastetext' => 1,
'pasteword' => 1,
'selectall' => 1,
),
'searchreplace' => array(
'search' => 1,
'replace' => 1,
),
'table' => array(
'tablecontrols' => 1,
),
'xhtmlxtras' => array(
'del' => 1,
),
'advlist' => array(
'advlist' => 1,
),
'drupal' => array(
'break' => 1,
),
),
'toolbar_loc' => 'top',
'toolbar_align' => 'left',
'path_loc' => 'bottom',
'resizing' => 1,
'verify_html' => 1,
'preformatted' => 0,
'convert_fonts_to_spans' => 1,
'remove_linebreaks' => 1,
'apply_source_formatting' => 0,
'paste_auto_cleanup_on_paste' => 1,
'block_formats' => 'p,address,pre,h2,h3,h4,h5,h6,div',
'css_setting' => 'self',
'css_path' => '',
'css_classes' => '',
);
$fields = array(
'format' => 'full_html',
'editor' => 'tinymce',
'settings' => serialize($settings),
);
db_insert('wysiwyg')->fields($fields)->execute();
//Add same wysiwyg for filtered_html format
$fields = array(
'format' => 'filtered_html',
'editor' => 'tinymce',
'settings' => serialize($settings),
);
db_insert('wysiwyg')->fields($fields)->execute();
// Create a default role for site administrators, with all available permissions assigned.
$admin_role = new stdClass();
$admin_role->name = 'administrator';
$admin_role->weight = 2;
user_role_save($admin_role);
user_role_grant_permissions($admin_role->rid, array_keys(module_invoke_all('permission')));
// Set this as the administrator role.
variable_set('user_admin_role', $admin_role->rid);
// Assign user 1 the "administrator" role.
db_insert('users_roles')
->fields(array('uid' => 1, 'rid' => $admin_role->rid))
->execute();
// Disable contact form for users
variable_set('contact_default_status', 0);
// Disable registration of user accounts
variable_set('user_register', 0);
// Create a Home link in the main menu.
$item = array(
'link_title' => st('Home'),
'link_path' => '<front>',
'menu_name' => 'main-menu',
'weight' => 0,
);
menu_link_save($item);
// Create a Agenda link in the main menu.
$item = array(
'link_title' => st('Agenda'),
'link_path' => 'agenda/search',
'menu_name' => 'main-menu',
'weight' => 10,
);
menu_link_save($item);
// Create a Pages link in the main menu.
$item = array(
'link_title' => st('Pages'),
'link_path' => 'agenda/pages',
'menu_name' => 'main-menu',
'weight' => 12,
);
menu_link_save($item);
// Create a Contact link in the main menu.
$item = array(
'link_title' => st('Contact'),
'link_path' => 'contact',
'menu_name' => 'main-menu',
'weight' => 20,
);
menu_link_save($item);
// Update the menu router information.
menu_rebuild();
// Create a node with default homepage (with documentation)
$node = new stdClass();
$node->title = 'Congrats!';
$node->type = 'page';
$node->language = LANGUAGE_NONE;
$node->body[LANGUAGE_NONE][0]['value'] = '<div class="thumbnail">
<div class="row">
<div class="col-md-4 col-sm-6">
<div class="container">
<h2>Congrats!</h2>
<p class="lead visible-lg">So far, so good! But this is just the beginning. It\'s only getting better :-)</p>
<p class="visible-md">So far, so good! But this is just the beginning. It\'s only getting better :-)</p>
<p><a href="/culturefeed/oauth/connect" class="btn btn-warning btn-block">Log in to Culturefeed →</a></p>
<small class="text-muted hidden-xs hidden-sm">Logging in as a Culturefeed user will demonstrate some additional features.</small>
</div>
</div>
<div class="col-md-8 col-sm-6">
<img src="https://dl.dropboxusercontent.com/u/12018748/teaser-home.jpg" class="img-responsive hidden-xs">
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-4">
<div class="thumbnail text-center">
<span class="fa-stack fa-5x"><i class="fa fa-circle fa-stack-2x text-muted"></i><i class="fa fa-calendar fa-stack-1x fa-inverse"></i></span>
<div class="caption">
<h3>Events</h3>
<p class="text-left">What you want to search & browse the Culturefeed Events library, this is what you need:</p>
<table class="table table-condensed text-left">
<tbody id="cf-events">
<tr>
<td>
<a data-toggle="collapse" data-parent="#cf-events" href="#cf-events-one" class="bootstrap-collapse-processed"><strong><i class="fa fa-arrow-right"></i> API Key/Secret</strong></a>
<p class="text-muted collapse" id="cf-events-one"><small>This installation comes with a development key & secret. When going live you should <a href="http://tools.uitdatabank.be/authenticated?destination=<front>">apply for a dedicated key</a> for your project. This key will be configured to show only the events that are relevant for your project. Fill out this credentials on the <a href="/admin/config/culturefeed/search">Culturefeed Search settings page</a>.</small></p>
</td>
</tr>
<tr>
<td>
<a data-toggle="collapse" data-parent="#cf-events" href="#cf-events-two" class="bootstrap-collapse-processed"><strong><i class="fa fa-arrow-right"></i> Modules & Blocks</strong></a>
<p class="text-muted collapse" id="cf-events-two"><small>The <a href="/admin/config/culturefeed/search_ui">Culturefeed Search UI</a> and <a href="/admin/config/culturefeed/agenda">Culturefeed Agenda</a> submodules are by default enabled in this installation together with the most common blocks. Explore some more blocks for this submodules on the <a href="/admin/structure/block">blocks configuration</a> page or on the <a href="https://github.com/cultuurnet/culturefeed/wiki/Module-overview">Culturefeed Wiki</a></small></p>
</td>
</tr>
<tr>
<td>
<a data-toggle="collapse" data-parent="#cf-events" href="#cf-events-three" class="bootstrap-collapse-processed"><strong><i class="fa fa-arrow-right"></i> Documentation</strong></a>
<p class="text-muted collapse" id="cf-events-three"><small>The Culturefeed Events Search API is build on Solr. The possibilities for building search and filterqueries are numerous. <a href="http://tools.uitdatabank.be/docs/uitdatabank-search-api-v2-documentatie">Here\'s an overview</a> of all features.</small></p>
</td>
</tr>
</tbody>
</table>
<p><a href="/agenda/search" class="btn btn-primary btn-block">Browse Events →</a></p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="thumbnail text-center">
<span class="fa-stack fa-5x"><i class="fa fa-circle fa-stack-2x text-muted"></i><i class="fa fa-user fa-stack-1x fa-inverse"></i></span>
<div class="caption">
<h3>Users</h3>
<p class="text-left">Extending your agenda with some nice login and social features is just a piece of cake:</p>
<table class="table table-condensed text-left">
<tbody id="cf-users">
<tr>
<td>
<a data-toggle="collapse" data-parent="#cf-users" href="#cf-users-one" class="bootstrap-collapse-processed"><strong><i class="fa fa-arrow-right"></i> Users API</strong></a>
<p class="text-muted collapse" id="cf-users-one"><small>When you already have a key/secret for the Events API, you can use the same for the Users API. It\'s easy as that. Otherwise you should <a href="http://tools.uitdatabank.be/authenticated?destination=<front>">apply for a key</a> and update your credentials on the <a href="/admin/config/culturefeed/api-settings">Culturefeed API</a> settings page.<br><br>Good to know: our user authentication platform is also known as "UiTiD"</small></p>
</td>
</tr>
<tr>
<td>
<a data-toggle="collapse" data-parent="#cf-users" href="#cf-users-two" class="bootstrap-collapse-processed"><strong><i class="fa fa-arrow-right"></i> Modules & Blocks</strong></a>
<p class="text-muted collapse" id="cf-users-two"><small>The <a href="/admin/config/culturefeed/culturefeed_ui">Culturefeed UI</a> and <a href="/admin/config/culturefeed/social">Culturefeed Social</a> submodules are by default enabled in this installation together with the most common blocks. Discover all available <a href="/admin/structure/block">blocks</a> and <a href="/admin/config/culturefeed">settings</a> for this submodules.</small></p>
</td>
</tr>
<tr>
<td>
<a data-toggle="collapse" data-parent="#cf-users" href="#cf-users-three" class="bootstrap-collapse-processed"><strong><i class="fa fa-arrow-right"></i> Going full option</strong></a>
<p class="text-muted collapse" id="cf-users-three"><small>For some specific purposes you might want to enable Culturefeed Search Views, Culturefeed Entry UI, Culturefeed Saved Searches, Culturefeed Calendar, Culturefeed Pages or the Culturefeed Messages modules. Attention: these features are still in beta and not fully supported in the Culturefeed Bootstrap theme. <br><br>If you want to extend some functionalities or build your own modules, you will need the <a href="http://tools.uitdatabank.be/docs/functionaliteiten">UiTiD API documentation</a> (only in dutch).</small></p>
</td>
</tr>
</tbody>
</table>
<p><a href="/authenticated?destination=culturefeed/profile/edit" class="btn btn-primary btn-block">Edit your profile →</a></p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="thumbnail text-center"><span class="fa-stack fa-5x"><i class="fa fa-circle fa-stack-2x text-muted"></i><i class="fa fa-flag fa-stack-1x fa-inverse"></i></span>
<div class="caption">
<h3>Theme</h3>
<p class="text-left">Culturefeed Bootstrap is a responsive, mobile first subtheme of the Bootstrap Framework.</p>
<table class="table table-condensed text-left">
<tbody id="cf-events">
<tr>
<td>
<a data-toggle="collapse" data-parent="#cf-theme" href="#cf-theme-one" class="bootstrap-collapse-processed"><strong><i class="fa fa-arrow-right"></i> Customize it</strong></a>
<p class="text-muted collapse" id="cf-theme-one"><small>Culturefeed Bootstrap has some <a href="/admin/appearance/settings/culturefeed_bootstrap">basic theme settings</a> where you can customize branding colors, font-family, border-radius, navbars, etc. to your own needs. If you are a Drupal themer you can - of course - change all possible less variables and bootstrap overrides or kick everything out and build your own theme :-)</small></p>
</td>
</tr>
<tr>
<td>
<a data-toggle="collapse" data-parent="#cf-theme" href="#cf-theme-two" class="bootstrap-collapse-processed"><strong><i class="fa fa-arrow-right"></i> Bootstrap 3.0.2</strong></a>
<p class="text-muted collapse" id="cf-theme-two"><small>If you like the Culturefeed Bootstrap theme or plan to build your own <a href="http://www.drupal.org/project/bootstrap">Bootstrap subtheme</a> some knowledge about the <a href="http://getbootstrap.com/">Bootstrap Framework</a> (version 3.0.2) will come in handy. Good to know: Culturefeed Bootstrap uses <a href="http://www.drupal.org/project/less">Less</a> to compile the CSS.</small></p>
</td>
</tr>
<tr>
<td>
<a data-toggle="collapse" data-parent="#cf-theme" href="#cf-theme-three" class="bootstrap-collapse-processed"><strong><i class="fa fa-arrow-right"></i> Font Awesome 4.2.0</strong></a>
<p class="text-muted collapse" id="cf-theme-three"><small>We chose to make use of the Font Awesome Icon library (version 4.2.0) instead of the Glyphicons that are built in with Bootstrap. <a href="http://fortawesome.github.io/Font-Awesome/">Here\'s an overview</a> of all icons and examples.</small></p>
</td>
</tr>
</tbody>
</table>
<p><a href="/admin/appearance/settings/culturefeed_bootstrap" class="btn btn-primary btn-block">Customize theme →</a></p>
</div>
</div>
</div>
</div>
<hr>';
$node->body[LANGUAGE_NONE][0]['format'] = 'full_html';
node_object_prepare($node);
$node->uid = 1;
$node->status = 1;
$node->promote = 0;
$node->comment = 0;
$node = node_submit($node);
node_save($node);
// Make this node the default homepage
variable_set('site_frontpage', 'node/1');
}