1 |
2545992a
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* @file
|
5 |
|
|
*
|
6 |
|
|
*/
|
7 |
|
|
|
8 |
|
|
/**
|
9 |
|
|
* Implements hook_ctools_plugin_api().
|
10 |
|
|
*/
|
11 |
|
|
function panelizer_test_exportables_ctools_plugin_api($module = NULL, $api = NULL) {
|
12 |
|
|
if ($module == "panelizer" && $api == "panelizer") {
|
13 |
|
|
return array("version" => "1");
|
14 |
|
|
}
|
15 |
|
|
}
|
16 |
|
|
|
17 |
|
|
/**
|
18 |
|
|
* Implements hook_panelizer_defaults().
|
19 |
|
|
*/
|
20 |
|
|
function panelizer_test_exportables_panelizer_defaults() {
|
21 |
|
|
$export = array();
|
22 |
|
|
|
23 |
|
|
$panelizer = new stdClass();
|
24 |
|
|
$panelizer->disabled = FALSE; /* Edit this to true to make a default panelizer disabled initially */
|
25 |
|
|
$panelizer->api_version = 1;
|
26 |
|
|
$panelizer->title = 'Test (with Storage API)';
|
27 |
|
|
$panelizer->panelizer_type = 'node';
|
28 |
|
|
$panelizer->panelizer_key = 'page';
|
29 |
|
|
$panelizer->access = array();
|
30 |
|
|
$panelizer->view_mode = 'page_manager';
|
31 |
|
|
$panelizer->name = 'node:page:with_storage';
|
32 |
|
|
$panelizer->css_id = '';
|
33 |
|
|
$panelizer->css_class = 'node-page-with_storage';
|
34 |
|
|
$panelizer->css = '';
|
35 |
|
|
$panelizer->no_blocks = FALSE;
|
36 |
|
|
$panelizer->title_element = 'H2';
|
37 |
|
|
$panelizer->link_to_entity = TRUE;
|
38 |
|
|
$panelizer->extra = array();
|
39 |
|
|
$panelizer->pipeline = 'standard';
|
40 |
|
|
$panelizer->contexts = array();
|
41 |
|
|
$panelizer->relationships = array();
|
42 |
|
|
$display = new panels_display();
|
43 |
|
|
$display->layout = 'flexible';
|
44 |
|
|
$display->layout_settings = array();
|
45 |
|
|
$display->panel_settings = array(
|
46 |
|
|
'style_settings' => array(
|
47 |
|
|
'default' => NULL,
|
48 |
|
|
'center' => NULL,
|
49 |
|
|
),
|
50 |
|
|
);
|
51 |
|
|
$display->cache = array();
|
52 |
|
|
$display->storage_type = 'panelizer_default';
|
53 |
|
|
$display->storage_id = 'node:page:with_storage';
|
54 |
|
|
$display->title = '%node:title';
|
55 |
|
|
$display->uuid = '4c374a0f-7b0b-476a-a0b4-86c8507c9a1d';
|
56 |
|
|
$display->content = array();
|
57 |
|
|
$display->panels = array();
|
58 |
|
|
$pane = new stdClass();
|
59 |
|
|
$pane->pid = 'new-e469448b-1f59-4eed-9551-00aede8e914d';
|
60 |
|
|
$pane->panel = 'center';
|
61 |
|
|
$pane->type = 'entity_field';
|
62 |
|
|
$pane->subtype = 'node:body';
|
63 |
|
|
$pane->shown = TRUE;
|
64 |
|
|
$pane->access = array();
|
65 |
|
|
$pane->configuration = array(
|
66 |
|
|
'label' => 'hidden',
|
67 |
|
|
'formatter' => 'text_default',
|
68 |
|
|
'delta_limit' => 0,
|
69 |
|
|
'delta_offset' => '0',
|
70 |
|
|
'delta_reversed' => FALSE,
|
71 |
|
|
'formatter_settings' => array(),
|
72 |
|
|
'context' => 'panelizer',
|
73 |
|
|
);
|
74 |
|
|
$pane->cache = array();
|
75 |
|
|
$pane->style = array(
|
76 |
|
|
'settings' => NULL,
|
77 |
|
|
);
|
78 |
|
|
$pane->css = array();
|
79 |
|
|
$pane->extras = array();
|
80 |
|
|
$pane->position = 0;
|
81 |
|
|
$pane->locks = array();
|
82 |
|
|
$pane->uuid = 'e469448b-1f59-4eed-9551-00aede8e914d';
|
83 |
|
|
$display->content['new-e469448b-1f59-4eed-9551-00aede8e914d'] = $pane;
|
84 |
|
|
$display->panels['center'][] = 'new-e469448b-1f59-4eed-9551-00aede8e914d';
|
85 |
|
|
$pane = new stdClass();
|
86 |
|
|
$pane->pid = 'new-59b236d1-4b04-4009-9845-a9a41141658d';
|
87 |
|
|
$pane->panel = 'center';
|
88 |
|
|
$pane->type = 'node_links';
|
89 |
|
|
$pane->subtype = 'node_links';
|
90 |
|
|
$pane->shown = TRUE;
|
91 |
|
|
$pane->access = array();
|
92 |
|
|
$pane->configuration = array(
|
93 |
|
|
'override_title' => FALSE,
|
94 |
|
|
'override_title_text' => '',
|
95 |
|
|
'build_mode' => 'page_manager',
|
96 |
|
|
'identifier' => '',
|
97 |
|
|
'link' => TRUE,
|
98 |
|
|
'context' => 'panelizer',
|
99 |
|
|
);
|
100 |
|
|
$pane->cache = array();
|
101 |
|
|
$pane->style = array(
|
102 |
|
|
'settings' => NULL,
|
103 |
|
|
);
|
104 |
|
|
$pane->css = array(
|
105 |
|
|
'css_class' => 'link-wrapper',
|
106 |
|
|
);
|
107 |
|
|
$pane->extras = array();
|
108 |
|
|
$pane->position = 3;
|
109 |
|
|
$pane->locks = array();
|
110 |
|
|
$pane->uuid = '59b236d1-4b04-4009-9845-a9a41141658d';
|
111 |
|
|
$display->content['new-59b236d1-4b04-4009-9845-a9a41141658d'] = $pane;
|
112 |
|
|
$display->panels['center'][] = 'new-59b236d1-4b04-4009-9845-a9a41141658d';
|
113 |
|
|
$display->hide_title = PANELS_TITLE_FIXED;
|
114 |
|
|
$display->title_pane = 'new-e469448b-1f59-4eed-9551-00aede8e914d';
|
115 |
|
|
$panelizer->display = $display;
|
116 |
|
|
$export[$panelizer->name] = $panelizer;
|
117 |
|
|
|
118 |
|
|
$panelizer = new stdClass();
|
119 |
|
|
$panelizer->disabled = FALSE; /* Edit this to true to make a default panelizer disabled initially */
|
120 |
|
|
$panelizer->api_version = 1;
|
121 |
|
|
$panelizer->title = 'Test (without Storage API)';
|
122 |
|
|
$panelizer->panelizer_type = 'node';
|
123 |
|
|
$panelizer->panelizer_key = 'page';
|
124 |
|
|
$panelizer->access = array();
|
125 |
|
|
$panelizer->view_mode = 'page_manager';
|
126 |
|
|
$panelizer->name = 'node:page:without_storage';
|
127 |
|
|
$panelizer->css_id = '';
|
128 |
|
|
$panelizer->css_class = 'node-page-without_storage';
|
129 |
|
|
$panelizer->css = '';
|
130 |
|
|
$panelizer->no_blocks = FALSE;
|
131 |
|
|
$panelizer->title_element = 'H2';
|
132 |
|
|
$panelizer->link_to_entity = TRUE;
|
133 |
|
|
$panelizer->extra = array();
|
134 |
|
|
$panelizer->pipeline = 'standard';
|
135 |
|
|
$panelizer->contexts = array();
|
136 |
|
|
$panelizer->relationships = array();
|
137 |
|
|
$display = new panels_display();
|
138 |
|
|
$display->layout = 'flexible';
|
139 |
|
|
$display->layout_settings = array();
|
140 |
|
|
$display->panel_settings = array(
|
141 |
|
|
'style_settings' => array(
|
142 |
|
|
'default' => NULL,
|
143 |
|
|
'center' => NULL,
|
144 |
|
|
),
|
145 |
|
|
);
|
146 |
|
|
$display->cache = array();
|
147 |
|
|
$display->title = '%node:title';
|
148 |
|
|
$display->uuid = '4c374a0f-7b0b-476a-a0b4-86c8507c9a1c';
|
149 |
|
|
$display->content = array();
|
150 |
|
|
$display->panels = array();
|
151 |
|
|
$pane = new stdClass();
|
152 |
|
|
$pane->pid = 'new-e469448b-1f59-4eed-9551-00aede8e914f';
|
153 |
|
|
$pane->panel = 'center';
|
154 |
|
|
$pane->type = 'entity_field';
|
155 |
|
|
$pane->subtype = 'node:body';
|
156 |
|
|
$pane->shown = TRUE;
|
157 |
|
|
$pane->access = array();
|
158 |
|
|
$pane->configuration = array(
|
159 |
|
|
'label' => 'hidden',
|
160 |
|
|
'formatter' => 'text_default',
|
161 |
|
|
'delta_limit' => 0,
|
162 |
|
|
'delta_offset' => '0',
|
163 |
|
|
'delta_reversed' => FALSE,
|
164 |
|
|
'formatter_settings' => array(),
|
165 |
|
|
'context' => 'panelizer',
|
166 |
|
|
);
|
167 |
|
|
$pane->cache = array();
|
168 |
|
|
$pane->style = array(
|
169 |
|
|
'settings' => NULL,
|
170 |
|
|
);
|
171 |
|
|
$pane->css = array();
|
172 |
|
|
$pane->extras = array();
|
173 |
|
|
$pane->position = 0;
|
174 |
|
|
$pane->locks = array();
|
175 |
|
|
$pane->uuid = 'e469448b-1f59-4eed-9551-00aede8e914f';
|
176 |
|
|
$display->content['new-e469448b-1f59-4eed-9551-00aede8e914f'] = $pane;
|
177 |
|
|
$display->panels['center'][] = 'new-e469448b-1f59-4eed-9551-00aede8e914f';
|
178 |
|
|
$pane = new stdClass();
|
179 |
|
|
$pane->pid = 'new-59b236d1-4b04-4009-9845-a9a411416580';
|
180 |
|
|
$pane->panel = 'center';
|
181 |
|
|
$pane->type = 'node_links';
|
182 |
|
|
$pane->subtype = 'node_links';
|
183 |
|
|
$pane->shown = TRUE;
|
184 |
|
|
$pane->access = array();
|
185 |
|
|
$pane->configuration = array(
|
186 |
|
|
'override_title' => FALSE,
|
187 |
|
|
'override_title_text' => '',
|
188 |
|
|
'build_mode' => 'page_manager',
|
189 |
|
|
'identifier' => '',
|
190 |
|
|
'link' => TRUE,
|
191 |
|
|
'context' => 'panelizer',
|
192 |
|
|
);
|
193 |
|
|
$pane->cache = array();
|
194 |
|
|
$pane->style = array(
|
195 |
|
|
'settings' => NULL,
|
196 |
|
|
);
|
197 |
|
|
$pane->css = array(
|
198 |
|
|
'css_class' => 'link-wrapper',
|
199 |
|
|
);
|
200 |
|
|
$pane->extras = array();
|
201 |
|
|
$pane->position = 3;
|
202 |
|
|
$pane->locks = array();
|
203 |
|
|
$pane->uuid = '59b236d1-4b04-4009-9845-a9a411416580';
|
204 |
|
|
$display->content['new-59b236d1-4b04-4009-9845-a9a411416580'] = $pane;
|
205 |
|
|
$display->panels['center'][] = 'new-59b236d1-4b04-4009-9845-a9a411416580';
|
206 |
|
|
$display->hide_title = PANELS_TITLE_FIXED;
|
207 |
|
|
$display->title_pane = 'new-e469448b-1f59-4eed-9551-00aede8e914f';
|
208 |
|
|
$panelizer->display = $display;
|
209 |
|
|
$export[$panelizer->name] = $panelizer;
|
210 |
|
|
|
211 |
|
|
return $export;
|
212 |
|
|
} |