1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
$handler = new stdClass();
|
4 |
|
|
$handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
|
5 |
|
|
$handler->api_version = 1;
|
6 |
|
|
$handler->name = 'forum_panel_context_top';
|
7 |
|
|
$handler->task = 'forum';
|
8 |
|
|
$handler->subtask = '';
|
9 |
|
|
$handler->handler = 'panel_context';
|
10 |
|
|
$handler->weight = 0;
|
11 |
|
|
$handler->conf = array(
|
12 |
|
|
'title' => 'Top Level Forum',
|
13 |
|
|
'no_blocks' => 0,
|
14 |
|
|
'css_id' => 'forum',
|
15 |
|
|
'css' => '',
|
16 |
|
|
'contexts' => array(),
|
17 |
|
|
'relationships' => array(),
|
18 |
|
|
'access' => array(
|
19 |
|
|
'plugins' => array(
|
20 |
|
|
0 => array(
|
21 |
|
|
'name' => 'forum_id',
|
22 |
|
|
'settings' => array(
|
23 |
|
|
'tids' => array(
|
24 |
|
|
0 => '0',
|
25 |
|
|
),
|
26 |
|
|
),
|
27 |
|
|
'context' => 'argument_forum_id_1',
|
28 |
|
|
),
|
29 |
|
|
),
|
30 |
|
|
'logic' => 'and',
|
31 |
|
|
),
|
32 |
|
|
'pipeline' => 'standard',
|
33 |
|
|
);
|
34 |
|
|
|
35 |
|
|
if (module_exists('panels')) {
|
36 |
|
|
$display = new panels_display();
|
37 |
|
|
$display->layout = 'flexible';
|
38 |
|
|
$display->layout_settings = array();
|
39 |
|
|
$display->panel_settings = array(
|
40 |
|
|
'style_settings' => array(
|
41 |
|
|
'default' => NULL,
|
42 |
|
|
'center' => NULL,
|
43 |
|
|
),
|
44 |
|
|
);
|
45 |
|
|
$display->cache = array();
|
46 |
|
|
$display->title = '%forum:name';
|
47 |
|
|
$display->content = array();
|
48 |
|
|
$display->panels = array();
|
49 |
|
|
$pane = new stdClass();
|
50 |
|
|
$pane->pid = 'new-1';
|
51 |
|
|
$pane->panel = 'center';
|
52 |
|
|
$pane->type = 'forum_list';
|
53 |
|
|
$pane->subtype = 'forum_list';
|
54 |
|
|
$pane->shown = TRUE;
|
55 |
|
|
$pane->access = array();
|
56 |
|
|
$pane->configuration = array(
|
57 |
|
|
'context' => 'argument_forum_id_1',
|
58 |
|
|
'override_title' => 0,
|
59 |
|
|
'override_title_text' => '',
|
60 |
|
|
);
|
61 |
|
|
$pane->cache = array();
|
62 |
|
|
$pane->style = array(
|
63 |
|
|
'settings' => NULL,
|
64 |
|
|
);
|
65 |
|
|
$pane->css = array();
|
66 |
|
|
$pane->extras = array();
|
67 |
|
|
$pane->position = 0;
|
68 |
|
|
$pane->locks = '';
|
69 |
|
|
$display->content['new-1'] = $pane;
|
70 |
|
|
$display->panels['center'][0] = 'new-1';
|
71 |
|
|
$pane = new stdClass();
|
72 |
|
|
$pane->pid = 'new-2';
|
73 |
|
|
$pane->panel = 'center';
|
74 |
|
|
$pane->type = 'forum_legend';
|
75 |
|
|
$pane->subtype = 'forum_legend';
|
76 |
|
|
$pane->shown = TRUE;
|
77 |
|
|
$pane->access = array();
|
78 |
|
|
$pane->configuration = array(
|
79 |
|
|
'context' => 'argument_forum_id_1',
|
80 |
|
|
'override_title' => 0,
|
81 |
|
|
'override_title_text' => '',
|
82 |
|
|
);
|
83 |
|
|
$pane->cache = array();
|
84 |
|
|
$pane->style = array(
|
85 |
|
|
'settings' => NULL,
|
86 |
|
|
);
|
87 |
|
|
$pane->css = array();
|
88 |
|
|
$pane->extras = array();
|
89 |
|
|
$pane->position = 1;
|
90 |
|
|
$pane->locks = '';
|
91 |
|
|
$display->content['new-2'] = $pane;
|
92 |
|
|
$display->panels['center'][1] = 'new-2';
|
93 |
|
|
$pane = new stdClass();
|
94 |
|
|
$pane->pid = 'new-3';
|
95 |
|
|
$pane->panel = 'center';
|
96 |
|
|
$pane->type = 'forum_statistics';
|
97 |
|
|
$pane->subtype = 'forum_statistics';
|
98 |
|
|
$pane->shown = TRUE;
|
99 |
|
|
$pane->access = array();
|
100 |
|
|
$pane->configuration = array(
|
101 |
|
|
'context' => 'argument_forum_id_1',
|
102 |
|
|
'override_title' => 0,
|
103 |
|
|
'override_title_text' => '',
|
104 |
|
|
);
|
105 |
|
|
$pane->cache = array();
|
106 |
|
|
$pane->style = array(
|
107 |
|
|
'settings' => NULL,
|
108 |
|
|
);
|
109 |
|
|
$pane->css = array();
|
110 |
|
|
$pane->extras = array();
|
111 |
|
|
$pane->position = 2;
|
112 |
|
|
$pane->locks = '';
|
113 |
|
|
$display->content['new-3'] = $pane;
|
114 |
|
|
$display->panels['center'][2] = 'new-3';
|
115 |
|
|
$display->hide_title = PANELS_TITLE_FIXED;
|
116 |
|
|
$display->title_pane = '0';
|
117 |
|
|
$handler->conf['display'] = $display;
|
118 |
|
|
} |