diff options
Diffstat (limited to 'features/muamba_interface/muamba_interface.pages_default.inc')
-rw-r--r-- | features/muamba_interface/muamba_interface.pages_default.inc | 414 |
1 files changed, 414 insertions, 0 deletions
diff --git a/features/muamba_interface/muamba_interface.pages_default.inc b/features/muamba_interface/muamba_interface.pages_default.inc new file mode 100644 index 0000000..6f8c901 --- /dev/null +++ b/features/muamba_interface/muamba_interface.pages_default.inc @@ -0,0 +1,414 @@ +<?php +/** + * @file + * muamba_interface.pages_default.inc + */ + +/** + * Implements hook_default_page_manager_handlers(). + */ +function muamba_interface_default_page_manager_handlers() { + $export = array(); + + $handler = new stdClass; + $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */ + $handler->api_version = 1; + $handler->name = 'node_view_panel_context'; + $handler->task = 'node_view'; + $handler->subtask = ''; + $handler->handler = 'panel_context'; + $handler->weight = 0; + $handler->conf = array( + 'title' => 'OG Group', + 'no_blocks' => 0, + 'pipeline' => 'standard', + 'css_id' => '', + 'css' => '', + 'contexts' => array(), + 'relationships' => array( + 0 => array( + 'identifier' => 'OG group from node', + 'keyword' => 'group', + 'name' => 'og_group_from_node', + 'context' => 'argument_entity_id:node_1', + 'id' => 1, + ), + ), + 'access' => array( + 'plugins' => array( + 0 => array( + 'name' => 'og_is_node_group', + 'settings' => NULL, + 'context' => 'argument_entity_id:node_1', + 'not' => FALSE, + ), + ), + 'logic' => 'and', + ), + ); + $display = new panels_display; + $display->layout = 'twocol'; + $display->layout_settings = array(); + $display->panel_settings = array( + 'style_settings' => array( + 'default' => NULL, + 'left' => NULL, + 'right' => NULL, + ), + ); + $display->cache = array(); + $display->title = ''; + $display->content = array(); + $display->panels = array(); + $pane = new stdClass; + $pane->pid = 'new-1'; + $pane->panel = 'left'; + $pane->type = 'views_panes'; + $pane->subtype = 'og_members-panel_pane_1'; + $pane->shown = TRUE; + $pane->access = array(); + $pane->configuration = array( + 'context' => array( + 0 => 'relationship_og_group_from_node_1', + ), + 'override_title' => 0, + 'override_title_text' => '', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 0; + $display->content['new-1'] = $pane; + $display->panels['left'][0] = 'new-1'; + $pane = new stdClass; + $pane->pid = 'new-2'; + $pane->panel = 'right'; + $pane->type = 'views_panes'; + $pane->subtype = 'og_nodes-panel_pane_1'; + $pane->shown = TRUE; + $pane->access = array(); + $pane->configuration = array( + 'context' => array( + 0 => 'relationship_og_group_from_node_1', + ), + 'override_title' => 0, + 'override_title_text' => '', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 0; + $display->content['new-2'] = $pane; + $display->panels['right'][0] = 'new-2'; + $pane = new stdClass; + $pane->pid = 'new-3'; + $pane->panel = 'right'; + $pane->type = 'node_content'; + $pane->subtype = 'node_content'; + $pane->shown = TRUE; + $pane->access = array(); + $pane->configuration = array( + 'links' => 1, + 'no_extras' => 1, + 'override_title' => 0, + 'override_title_text' => '', + 'identifier' => '', + 'link' => 1, + 'leave_node_title' => 0, + 'build_mode' => 'full', + 'context' => 'argument_entity_id:node_1', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 1; + $display->content['new-3'] = $pane; + $display->panels['right'][1] = 'new-3'; + $display->hide_title = PANELS_TITLE_FIXED; + $display->title_pane = 'new-1'; + $handler->conf['display'] = $display; + $export['node_view_panel_context'] = $handler; + + return $export; +} + +/** + * Implements hook_default_page_manager_pages(). + */ +function muamba_interface_default_page_manager_pages() { + $page = new stdClass; + $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */ + $page->api_version = 1; + $page->name = 'principal'; + $page->task = 'page'; + $page->admin_title = 'Principal'; + $page->admin_description = 'Painel principal'; + $page->path = 'principal'; + $page->access = array( + 'plugins' => array(), + 'logic' => 'and', + ); + $page->menu = array(); + $page->arguments = array(); + $page->conf = array( + 'admin_paths' => FALSE, + ); + $page->default_handlers = array(); + $handler = new stdClass; + $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */ + $handler->api_version = 1; + $handler->name = 'page_principal_panel_context'; + $handler->task = 'page'; + $handler->subtask = 'principal'; + $handler->handler = 'panel_context'; + $handler->weight = 0; + $handler->conf = array( + 'title' => 'Panel', + 'no_blocks' => 0, + 'pipeline' => 'standard', + 'css_id' => '', + 'css' => '', + 'contexts' => array(), + 'relationships' => array(), + ); + $display = new panels_display; + $display->layout = 'onecol'; + $display->layout_settings = array(); + $display->panel_settings = array( + 'style_settings' => array( + 'default' => NULL, + 'middle' => array( + 'tabs_type' => 'horizontal_tabs', + ), + ), + 'middle' => array( + 'style' => 'tabs', + ), + ); + $display->cache = array(); + $display->title = 'Meu painel'; + $display->content = array(); + $display->panels = array(); + $pane = new stdClass; + $pane->pid = 'new-1'; + $pane->panel = 'middle'; + $pane->type = 'views'; + $pane->subtype = 'og_list'; + $pane->shown = TRUE; + $pane->access = array( + 'plugins' => array( + 0 => array( + 'name' => 'role', + 'settings' => array( + 'rids' => array( + 0 => 1, + ), + ), + 'context' => 'logged-in-user', + 'not' => FALSE, + ), + ), + ); + $pane->configuration = array( + 'override_pager_settings' => 0, + 'use_pager' => 1, + 'nodes_per_page' => '0', + 'pager_id' => '0', + 'offset' => '0', + 'more_link' => 0, + 'feed_icons' => 0, + 'panel_args' => 0, + 'link_to_view' => 0, + 'args' => '', + 'url' => '', + 'display' => 'page_2', + 'override_title' => 1, + 'override_title_text' => 'Grupos', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 0; + $display->content['new-1'] = $pane; + $display->panels['middle'][0] = 'new-1'; + $pane = new stdClass; + $pane->pid = 'new-2'; + $pane->panel = 'middle'; + $pane->type = 'views'; + $pane->subtype = 'og_list'; + $pane->shown = TRUE; + $pane->access = array(); + $pane->configuration = array( + 'override_pager_settings' => 0, + 'use_pager' => 1, + 'nodes_per_page' => '0', + 'pager_id' => '0', + 'offset' => '0', + 'more_link' => 0, + 'feed_icons' => 0, + 'panel_args' => 0, + 'link_to_view' => 0, + 'args' => '', + 'url' => '', + 'display' => 'page_1', + 'override_title' => 1, + 'override_title_text' => 'Todos os grupos', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 1; + $display->content['new-2'] = $pane; + $display->panels['middle'][1] = 'new-2'; + $pane = new stdClass; + $pane->pid = 'new-3'; + $pane->panel = 'middle'; + $pane->type = 'views'; + $pane->subtype = 'og_user_groups'; + $pane->shown = TRUE; + $pane->access = array(); + $pane->configuration = array( + 'override_pager_settings' => 0, + 'use_pager' => 1, + 'nodes_per_page' => '0', + 'pager_id' => '0', + 'offset' => '0', + 'more_link' => 0, + 'feed_icons' => 0, + 'panel_args' => 0, + 'link_to_view' => 0, + 'args' => '', + 'url' => '', + 'display' => 'page_1', + 'override_title' => 1, + 'override_title_text' => 'Meus grupos', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 2; + $display->content['new-3'] = $pane; + $display->panels['middle'][2] = 'new-3'; + $pane = new stdClass; + $pane->pid = 'new-4'; + $pane->panel = 'middle'; + $pane->type = 'views'; + $pane->subtype = 'muambas'; + $pane->shown = TRUE; + $pane->access = array(); + $pane->configuration = array( + 'override_pager_settings' => 0, + 'use_pager' => 1, + 'nodes_per_page' => '5', + 'pager_id' => '0', + 'offset' => '0', + 'more_link' => 0, + 'feed_icons' => 0, + 'panel_args' => 0, + 'link_to_view' => 0, + 'args' => '', + 'url' => '', + 'display' => 'block_3', + 'override_title' => 1, + 'override_title_text' => 'Favoritos', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 3; + $display->content['new-4'] = $pane; + $display->panels['middle'][3] = 'new-4'; + $pane = new stdClass; + $pane->pid = 'new-5'; + $pane->panel = 'middle'; + $pane->type = 'views'; + $pane->subtype = 'transacoes'; + $pane->shown = TRUE; + $pane->access = array(); + $pane->configuration = array( + 'override_pager_settings' => 0, + 'use_pager' => 1, + 'nodes_per_page' => '10', + 'pager_id' => '0', + 'offset' => '0', + 'more_link' => 0, + 'feed_icons' => 0, + 'panel_args' => 0, + 'link_to_view' => 0, + 'args' => '', + 'url' => '', + 'display' => 'block_2', + 'override_title' => 1, + 'override_title_text' => 'Me pediram', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 4; + $display->content['new-5'] = $pane; + $display->panels['middle'][4] = 'new-5'; + $pane = new stdClass; + $pane->pid = 'new-6'; + $pane->panel = 'middle'; + $pane->type = 'views'; + $pane->subtype = 'transacoes'; + $pane->shown = TRUE; + $pane->access = array(); + $pane->configuration = array( + 'override_pager_settings' => 0, + 'use_pager' => 1, + 'nodes_per_page' => '10', + 'pager_id' => '0', + 'offset' => '0', + 'more_link' => 0, + 'feed_icons' => 0, + 'panel_args' => 0, + 'link_to_view' => 0, + 'args' => '', + 'url' => '', + 'display' => 'block_1', + 'override_title' => 1, + 'override_title_text' => 'Meus pedidos', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 5; + $display->content['new-6'] = $pane; + $display->panels['middle'][5] = 'new-6'; + $display->hide_title = PANELS_TITLE_FIXED; + $display->title_pane = 'new-6'; + $handler->conf['display'] = $display; + $page->default_handlers[$handler->name] = $handler; + $pages['principal'] = $page; + + return $pages; + +} |