generated from CuBoulder/general-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ucb_migration_shortcodes.module
111 lines (108 loc) · 3.15 KB
/
ucb_migration_shortcodes.module
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
<?php
/**
* @file
* Register hooks for ShortCodes that use Twig templates.
*/
/**
* Implements hook_theme().
*/
function ucb_migration_shortcodes_theme() {
return [
// Box.
'shortcode_box' => [
'variables' => ['title' => NULL, 'color' => NULL, 'style' => NULL, 'float' => NULL, 'text' => ''],
],
// Icon.
'shortcode_icon' => [
'variables' => ['shape' => NULL, 'color' => NULL, 'size' => NULL, 'pull' => NULL, 'wrapper' => NULL, 'text' => ''],
],
// Button.
'shortcode_button' => [
'variables' => ['link' => NULL, 'ico' => NULL, 'title' => NULL, 'color' => NULL, 'size' => NULL, 'style' => NULL, 'text' => '',],
],
// Column.
'shortcode_column' => [
'variables' => ['size' => NULL, 'order' => NULL, 'text' => ''],
],
// Colset.
'shortcode_colset' => [
'variables' => ['text' => ''],
],
// Expand.
'shortcode_expand' => [
'variables' => ['title' => NULL, 'style' => NULL, 'text' => ''],
],
// Countup.
'shortcode_countup' => [
'variables' => ['text' => ''],
],
// Callout.
'shortcode_callout' => [
'variables' => ['size' => NULL, 'text' => ''],
],
// Give.
'shortcode_give' => [
'variables' => ['link' => NULL, 'ico' => NULL, 'title' => NULL, 'color' => NULL, 'size' => NULL, 'style' => NULL, 'text' => '',],
],
// Map.
'shortcode_map' => [
'variables' => ['size' => NULL, 'maplocation' => NULL, 'mapfragment' => NULL, 'text' => ''],
],
// ImageCaption.
'shortcode_imagecaption' => [
'variables' => ['align' => NULL, 'text' => ''],
],
// ButtonGroup.
'shortcode_buttongroup' => [
'variables' => ['color' => NULL, 'size' => NULL, 'text' => '',],
],
// Invisible.
'shortcode_invisible' => [
'variables' => ['text' => ''],
],
// Google Calendar.
'shortcode_googlecalendar' => [
'variables' => ['text' => ''],
],
// Print.
'shortcode_print' => [
'variables' => ['text' => ''],
],
// Clear.
'shortcode_clear' => [
'variables' => ['text' => ''],
],
// Close Margin.
'shortcode_closemargin' => [
'variables' => ['text' => ''],
],
// Responsive Table.
'shortcode_responsivetable' => [
'variables' => ['breakpoint' => NULL, 'text' => ''],
],
// Column List.
'shortcode_columnlist' => [
'variables' => ['columns' => NULL, 'text' => ''],
],
// List Item.
'shortcode_listitem' => [
'variables' => ['text' => ''],
],
// Countdown.
'shortcode_countdown' => [
'variables' => ['style' => NULL, 'size' => NULL, 'background' => NULL, 'text' => ''],
],
// Blockquote.
'shortcode_blockquote' => [
'variables' => ['style' => NULL, 'float' => NULL, 'icon' => NULL, 'text' => ''],
],
// Masonry Images.
'shortcode_masonryimages' => [
'variables' => ['columns' => NULL, 'text' => ''],
],
];
}
function ucb_migration_shortcodes_preprocess_page(&$variables) {
// Theme name: 'ucb_migration_shortcodes', library name: 'shortcodes-library'.
$variables['#attached']['library'][] = 'ucb_migration_shortcodes/shortcodes-library';
}