diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-10-28 18:06:47 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-10-28 18:06:47 -0200 |
commit | eee4a85c92590b62a26d398ff2cca38367ed1742 (patch) | |
tree | 203f2b3501d645b5b652a74d85a44766510e5e63 /features | |
parent | 45df9bca0b3a509d633c106471f6c626e303c716 (diff) | |
download | muamba-eee4a85c92590b62a26d398ff2cca38367ed1742.tar.gz muamba-eee4a85c92590b62a26d398ff2cca38367ed1742.tar.bz2 |
Updating interface (2)
Diffstat (limited to 'features')
-rw-r--r-- | features/muamba_interface/muamba_interface.pages_default.inc | 295 | ||||
-rw-r--r-- | features/muamba_interface/muamba_interface.views_default.inc | 377 |
2 files changed, 610 insertions, 62 deletions
diff --git a/features/muamba_interface/muamba_interface.pages_default.inc b/features/muamba_interface/muamba_interface.pages_default.inc index 58c0486..c20ac0e 100644 --- a/features/muamba_interface/muamba_interface.pages_default.inc +++ b/features/muamba_interface/muamba_interface.pages_default.inc @@ -71,8 +71,8 @@ function muamba_interface_default_page_manager_handlers() { 'context' => array( 0 => 'relationship_og_group_from_node_1', ), - 'override_title' => 0, - 'override_title_text' => '', + 'override_title' => 1, + 'override_title_text' => 'Participantes', ); $pane->cache = array(); $pane->style = array( @@ -86,16 +86,20 @@ function muamba_interface_default_page_manager_handlers() { $pane = new stdClass; $pane->pid = 'new-2'; $pane->panel = 'right'; - $pane->type = 'views_panes'; - $pane->subtype = 'og_nodes-panel_pane_1'; + $pane->type = 'node_content'; + $pane->subtype = 'node_content'; $pane->shown = TRUE; $pane->access = array(); $pane->configuration = array( - 'context' => array( - 0 => 'relationship_og_group_from_node_1', - ), + '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( @@ -109,20 +113,16 @@ function muamba_interface_default_page_manager_handlers() { $pane = new stdClass; $pane->pid = 'new-3'; $pane->panel = 'right'; - $pane->type = 'node_content'; - $pane->subtype = 'node_content'; + $pane->type = 'views_panes'; + $pane->subtype = 'og_nodes-panel_pane_1'; $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', + 'context' => array( + 0 => 'relationship_og_group_from_node_1', + ), + 'override_title' => 1, + 'override_title_text' => 'Muambas no grupo', ); $pane->cache = array(); $pane->style = array( @@ -201,8 +201,8 @@ function muamba_interface_default_page_manager_pages() { $pane = new stdClass; $pane->pid = 'new-1'; $pane->panel = 'middle'; - $pane->type = 'block'; - $pane->subtype = 'search-form'; + $pane->type = 'views'; + $pane->subtype = 'og_list'; $pane->shown = TRUE; $pane->access = array( 'plugins' => array( @@ -210,7 +210,7 @@ function muamba_interface_default_page_manager_pages() { 'name' => 'role', 'settings' => array( 'rids' => array( - 0 => 2, + 0 => 1, ), ), 'context' => 'logged-in-user', @@ -219,8 +219,20 @@ function muamba_interface_default_page_manager_pages() { ), ); $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' => 'Busca', + 'override_title_text' => 'Grupos', ); $pane->cache = array(); $pane->style = array( @@ -282,7 +294,20 @@ function muamba_interface_default_page_manager_pages() { $pane->type = 'views'; $pane->subtype = 'og_list'; $pane->shown = TRUE; - $pane->access = array(); + $pane->access = array( + 'plugins' => array( + 0 => array( + 'name' => 'role', + 'settings' => array( + 'rids' => array( + 0 => 2, + ), + ), + 'context' => 'logged-in-user', + 'not' => FALSE, + ), + ), + ); $pane->configuration = array( 'override_pager_settings' => 0, 'use_pager' => 1, @@ -314,7 +339,20 @@ function muamba_interface_default_page_manager_pages() { $pane->type = 'views'; $pane->subtype = 'transacoes'; $pane->shown = TRUE; - $pane->access = array(); + $pane->access = array( + 'plugins' => array( + 0 => array( + 'name' => 'role', + 'settings' => array( + 'rids' => array( + 0 => 2, + ), + ), + 'context' => 'logged-in-user', + 'not' => FALSE, + ), + ), + ); $pane->configuration = array( 'override_pager_settings' => 0, 'use_pager' => 1, @@ -346,7 +384,20 @@ function muamba_interface_default_page_manager_pages() { $pane->type = 'views'; $pane->subtype = 'muambas'; $pane->shown = TRUE; - $pane->access = array(); + $pane->access = array( + 'plugins' => array( + 0 => array( + 'name' => 'role', + 'settings' => array( + 'rids' => array( + 0 => 2, + ), + ), + 'context' => 'logged-in-user', + 'not' => FALSE, + ), + ), + ); $pane->configuration = array( 'override_pager_settings' => 0, 'use_pager' => 1, @@ -359,9 +410,9 @@ function muamba_interface_default_page_manager_pages() { 'link_to_view' => 0, 'args' => '', 'url' => '', - 'display' => 'block_3', + 'display' => 'block_2', 'override_title' => 1, - 'override_title_text' => 'Favoritos', + 'override_title_text' => 'Todas', ); $pane->cache = array(); $pane->style = array( @@ -376,13 +427,26 @@ function muamba_interface_default_page_manager_pages() { $pane->pid = 'new-6'; $pane->panel = 'middle'; $pane->type = 'views'; - $pane->subtype = 'muambas'; + $pane->subtype = 'transacoes'; $pane->shown = TRUE; - $pane->access = array(); + $pane->access = array( + 'plugins' => array( + 0 => array( + 'name' => 'role', + 'settings' => array( + 'rids' => array( + 0 => 2, + ), + ), + 'context' => 'logged-in-user', + 'not' => FALSE, + ), + ), + ); $pane->configuration = array( 'override_pager_settings' => 0, 'use_pager' => 1, - 'nodes_per_page' => '5', + 'nodes_per_page' => '10', 'pager_id' => '0', 'offset' => '0', 'more_link' => 0, @@ -391,9 +455,9 @@ function muamba_interface_default_page_manager_pages() { 'link_to_view' => 0, 'args' => '', 'url' => '', - 'display' => 'block_4', + 'display' => 'block_2', 'override_title' => 1, - 'override_title_text' => 'Emprestei', + 'override_title_text' => 'Pediram', ); $pane->cache = array(); $pane->style = array( @@ -408,13 +472,26 @@ function muamba_interface_default_page_manager_pages() { $pane->pid = 'new-7'; $pane->panel = 'middle'; $pane->type = 'views'; - $pane->subtype = 'transacoes'; + $pane->subtype = 'muambas'; $pane->shown = TRUE; - $pane->access = array(); + $pane->access = array( + 'plugins' => array( + 0 => array( + 'name' => 'role', + 'settings' => array( + 'rids' => array( + 0 => 2, + ), + ), + 'context' => 'logged-in-user', + 'not' => FALSE, + ), + ), + ); $pane->configuration = array( 'override_pager_settings' => 0, 'use_pager' => 1, - 'nodes_per_page' => '10', + 'nodes_per_page' => '5', 'pager_id' => '0', 'offset' => '0', 'more_link' => 0, @@ -423,9 +500,9 @@ function muamba_interface_default_page_manager_pages() { 'link_to_view' => 0, 'args' => '', 'url' => '', - 'display' => 'block_2', + 'display' => 'block', 'override_title' => 1, - 'override_title_text' => 'Me pediram', + 'override_title_text' => 'Minhas', ); $pane->cache = array(); $pane->style = array( @@ -440,13 +517,26 @@ function muamba_interface_default_page_manager_pages() { $pane->pid = 'new-8'; $pane->panel = 'middle'; $pane->type = 'views'; - $pane->subtype = 'transacoes'; + $pane->subtype = 'muambas'; $pane->shown = TRUE; - $pane->access = array(); + $pane->access = array( + 'plugins' => array( + 0 => array( + 'name' => 'role', + 'settings' => array( + 'rids' => array( + 0 => 2, + ), + ), + 'context' => 'logged-in-user', + 'not' => FALSE, + ), + ), + ); $pane->configuration = array( 'override_pager_settings' => 0, 'use_pager' => 1, - 'nodes_per_page' => '10', + 'nodes_per_page' => '5', 'pager_id' => '0', 'offset' => '0', 'more_link' => 0, @@ -455,9 +545,9 @@ function muamba_interface_default_page_manager_pages() { 'link_to_view' => 0, 'args' => '', 'url' => '', - 'display' => 'block_1', + 'display' => 'block_4', 'override_title' => 1, - 'override_title_text' => 'Meus pedidos', + 'override_title_text' => 'Emprestei', ); $pane->cache = array(); $pane->style = array( @@ -474,7 +564,20 @@ function muamba_interface_default_page_manager_pages() { $pane->type = 'views'; $pane->subtype = 'muambas'; $pane->shown = TRUE; - $pane->access = array(); + $pane->access = array( + 'plugins' => array( + 0 => array( + 'name' => 'role', + 'settings' => array( + 'rids' => array( + 0 => 2, + ), + ), + 'context' => 'logged-in-user', + 'not' => FALSE, + ), + ), + ); $pane->configuration = array( 'override_pager_settings' => 0, 'use_pager' => 1, @@ -487,9 +590,9 @@ function muamba_interface_default_page_manager_pages() { 'link_to_view' => 0, 'args' => '', 'url' => '', - 'display' => 'block_5', + 'display' => 'block_3', 'override_title' => 1, - 'override_title_text' => 'Peguei', + 'override_title_text' => 'Favoritos', ); $pane->cache = array(); $pane->style = array( @@ -504,7 +607,7 @@ function muamba_interface_default_page_manager_pages() { $pane->pid = 'new-10'; $pane->panel = 'middle'; $pane->type = 'views'; - $pane->subtype = 'og_list'; + $pane->subtype = 'muambas'; $pane->shown = TRUE; $pane->access = array( 'plugins' => array( @@ -512,7 +615,7 @@ function muamba_interface_default_page_manager_pages() { 'name' => 'role', 'settings' => array( 'rids' => array( - 0 => 1, + 0 => 2, ), ), 'context' => 'logged-in-user', @@ -523,7 +626,7 @@ function muamba_interface_default_page_manager_pages() { $pane->configuration = array( 'override_pager_settings' => 0, 'use_pager' => 1, - 'nodes_per_page' => '0', + 'nodes_per_page' => '10', 'pager_id' => '0', 'offset' => '0', 'more_link' => 0, @@ -532,9 +635,9 @@ function muamba_interface_default_page_manager_pages() { 'link_to_view' => 0, 'args' => '', 'url' => '', - 'display' => 'page_2', + 'display' => 'page_1', 'override_title' => 1, - 'override_title_text' => 'Grupos', + 'override_title_text' => 'Disponíveis', ); $pane->cache = array(); $pane->style = array( @@ -545,8 +648,98 @@ function muamba_interface_default_page_manager_pages() { $pane->position = 9; $display->content['new-10'] = $pane; $display->panels['middle'][9] = 'new-10'; + $pane = new stdClass; + $pane->pid = 'new-11'; + $pane->panel = 'middle'; + $pane->type = 'views'; + $pane->subtype = 'muambas'; + $pane->shown = TRUE; + $pane->access = array( + 'plugins' => array( + 0 => array( + 'name' => 'role', + 'settings' => array( + 'rids' => array( + 0 => 2, + ), + ), + 'context' => 'logged-in-user', + 'not' => FALSE, + ), + ), + ); + $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_5', + 'override_title' => 1, + 'override_title_text' => 'Peguei', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 10; + $display->content['new-11'] = $pane; + $display->panels['middle'][10] = 'new-11'; + $pane = new stdClass; + $pane->pid = 'new-12'; + $pane->panel = 'middle'; + $pane->type = 'views'; + $pane->subtype = 'transacoes'; + $pane->shown = TRUE; + $pane->access = array( + 'plugins' => array( + 0 => array( + 'name' => 'role', + 'settings' => array( + 'rids' => array( + 0 => 2, + ), + ), + 'context' => 'logged-in-user', + 'not' => FALSE, + ), + ), + ); + $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' => 'Pedi', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 11; + $display->content['new-12'] = $pane; + $display->panels['middle'][11] = 'new-12'; $display->hide_title = PANELS_TITLE_FIXED; - $display->title_pane = 'new-8'; + $display->title_pane = 'new-12'; $handler->conf['display'] = $display; $page->default_handlers[$handler->name] = $handler; $pages['principal'] = $page; diff --git a/features/muamba_interface/muamba_interface.views_default.inc b/features/muamba_interface/muamba_interface.views_default.inc index 9de7fac..7948989 100644 --- a/features/muamba_interface/muamba_interface.views_default.inc +++ b/features/muamba_interface/muamba_interface.views_default.inc @@ -554,11 +554,192 @@ function muamba_interface_views_default_views() { $handler->display->display_options['pager']['options']['expose']['items_per_page_options_all_label'] = '- Todos -'; $handler->display->display_options['pager']['options']['expose']['offset_label'] = 'Deslocamento'; $handler->display->display_options['defaults']['style_plugin'] = FALSE; - $handler->display->display_options['style_plugin'] = 'default'; + $handler->display->display_options['style_plugin'] = 'table'; + $handler->display->display_options['style_options']['columns'] = array( + 'field_foto' => 'field_foto', + 'title' => 'field_foto', + 'picture' => 'picture', + 'name' => 'picture', + 'changed' => 'changed', + ); + $handler->display->display_options['style_options']['default'] = '-1'; + $handler->display->display_options['style_options']['info'] = array( + 'field_foto' => array( + 'align' => '', + 'separator' => '<br />', + ), + 'title' => array( + 'sortable' => 0, + 'default_sort_order' => 'asc', + 'align' => '', + 'separator' => '', + ), + 'picture' => array( + 'sortable' => 0, + 'default_sort_order' => 'asc', + 'align' => '', + 'separator' => '', + ), + 'name' => array( + 'sortable' => 0, + 'default_sort_order' => 'asc', + 'align' => '', + 'separator' => '', + ), + 'changed' => array( + 'sortable' => 0, + 'default_sort_order' => 'asc', + 'align' => '', + 'separator' => '', + ), + ); + $handler->display->display_options['style_options']['override'] = 1; + $handler->display->display_options['style_options']['sticky'] = 0; + $handler->display->display_options['style_options']['empty_table'] = 0; $handler->display->display_options['defaults']['style_options'] = FALSE; $handler->display->display_options['defaults']['row_plugin'] = FALSE; - $handler->display->display_options['row_plugin'] = 'fields'; $handler->display->display_options['defaults']['row_options'] = FALSE; + $handler->display->display_options['defaults']['relationships'] = FALSE; + /* Relação: Conteúdo: Autor */ + $handler->display->display_options['relationships']['uid']['id'] = 'uid'; + $handler->display->display_options['relationships']['uid']['table'] = 'node'; + $handler->display->display_options['relationships']['uid']['field'] = 'uid'; + $handler->display->display_options['relationships']['uid']['required'] = 1; + /* Relação: Muamba: Muamba node asset */ + $handler->display->display_options['relationships']['nid']['id'] = 'nid'; + $handler->display->display_options['relationships']['nid']['table'] = 'muamba'; + $handler->display->display_options['relationships']['nid']['field'] = 'nid'; + /* Relação: Muamba: Muamba requester user */ + $handler->display->display_options['relationships']['uid_1']['id'] = 'uid_1'; + $handler->display->display_options['relationships']['uid_1']['table'] = 'muamba'; + $handler->display->display_options['relationships']['uid_1']['field'] = 'uid'; + $handler->display->display_options['relationships']['uid_1']['required'] = 0; + $handler->display->display_options['defaults']['fields'] = FALSE; + /* Campo: Conteúdo: Foto */ + $handler->display->display_options['fields']['field_foto']['id'] = 'field_foto'; + $handler->display->display_options['fields']['field_foto']['table'] = 'field_data_field_foto'; + $handler->display->display_options['fields']['field_foto']['field'] = 'field_foto'; + $handler->display->display_options['fields']['field_foto']['label'] = 'Item'; + $handler->display->display_options['fields']['field_foto']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['field_foto']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['field_foto']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['field_foto']['alter']['external'] = 0; + $handler->display->display_options['fields']['field_foto']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['field_foto']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['field_foto']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['field_foto']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['field_foto']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['field_foto']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['field_foto']['alter']['trim'] = 0; + $handler->display->display_options['fields']['field_foto']['alter']['html'] = 0; + $handler->display->display_options['fields']['field_foto']['element_label_colon'] = 0; + $handler->display->display_options['fields']['field_foto']['element_default_classes'] = 1; + $handler->display->display_options['fields']['field_foto']['hide_empty'] = 0; + $handler->display->display_options['fields']['field_foto']['empty_zero'] = 0; + $handler->display->display_options['fields']['field_foto']['hide_alter_empty'] = 0; + $handler->display->display_options['fields']['field_foto']['click_sort_column'] = 'fid'; + $handler->display->display_options['fields']['field_foto']['settings'] = array( + 'image_style' => 'thumbnail', + 'image_link' => 'content', + ); + $handler->display->display_options['fields']['field_foto']['group_rows'] = 1; + $handler->display->display_options['fields']['field_foto']['delta_offset'] = '0'; + $handler->display->display_options['fields']['field_foto']['delta_reversed'] = 0; + $handler->display->display_options['fields']['field_foto']['field_api_classes'] = 0; + /* Campo: Conteúdo: Título */ + $handler->display->display_options['fields']['title']['id'] = 'title'; + $handler->display->display_options['fields']['title']['table'] = 'node'; + $handler->display->display_options['fields']['title']['field'] = 'title'; + $handler->display->display_options['fields']['title']['label'] = 'Item'; + $handler->display->display_options['fields']['title']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['title']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['title']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['title']['alter']['external'] = 0; + $handler->display->display_options['fields']['title']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['title']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['title']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['title']['alter']['word_boundary'] = 0; + $handler->display->display_options['fields']['title']['alter']['ellipsis'] = 0; + $handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['title']['alter']['trim'] = 0; + $handler->display->display_options['fields']['title']['alter']['html'] = 0; + $handler->display->display_options['fields']['title']['element_label_colon'] = 1; + $handler->display->display_options['fields']['title']['element_default_classes'] = 1; + $handler->display->display_options['fields']['title']['hide_empty'] = 0; + $handler->display->display_options['fields']['title']['empty_zero'] = 0; + $handler->display->display_options['fields']['title']['hide_alter_empty'] = 0; + $handler->display->display_options['fields']['title']['link_to_node'] = 1; + /* Campo: Usuário: Foto */ + $handler->display->display_options['fields']['picture']['id'] = 'picture'; + $handler->display->display_options['fields']['picture']['table'] = 'users'; + $handler->display->display_options['fields']['picture']['field'] = 'picture'; + $handler->display->display_options['fields']['picture']['relationship'] = 'uid_1'; + $handler->display->display_options['fields']['picture']['label'] = 'Emprestado para'; + $handler->display->display_options['fields']['picture']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['picture']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['picture']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['picture']['alter']['external'] = 0; + $handler->display->display_options['fields']['picture']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['picture']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['picture']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['picture']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['picture']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['picture']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['picture']['alter']['trim'] = 0; + $handler->display->display_options['fields']['picture']['alter']['html'] = 0; + $handler->display->display_options['fields']['picture']['element_label_colon'] = 0; + $handler->display->display_options['fields']['picture']['element_default_classes'] = 1; + $handler->display->display_options['fields']['picture']['hide_empty'] = 0; + $handler->display->display_options['fields']['picture']['empty_zero'] = 0; + $handler->display->display_options['fields']['picture']['hide_alter_empty'] = 0; + /* Campo: Usuário: Nome */ + $handler->display->display_options['fields']['name']['id'] = 'name'; + $handler->display->display_options['fields']['name']['table'] = 'users'; + $handler->display->display_options['fields']['name']['field'] = 'name'; + $handler->display->display_options['fields']['name']['relationship'] = 'uid_1'; + $handler->display->display_options['fields']['name']['label'] = 'Empresado para'; + $handler->display->display_options['fields']['name']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['name']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['name']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['name']['alter']['external'] = 0; + $handler->display->display_options['fields']['name']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['name']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['name']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['name']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['name']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['name']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['name']['alter']['trim'] = 0; + $handler->display->display_options['fields']['name']['alter']['html'] = 0; + $handler->display->display_options['fields']['name']['element_label_colon'] = 0; + $handler->display->display_options['fields']['name']['element_default_classes'] = 1; + $handler->display->display_options['fields']['name']['hide_empty'] = 0; + $handler->display->display_options['fields']['name']['empty_zero'] = 0; + $handler->display->display_options['fields']['name']['hide_alter_empty'] = 0; + $handler->display->display_options['fields']['name']['link_to_user'] = 1; + $handler->display->display_options['fields']['name']['overwrite_anonymous'] = 0; + /* Campo: Muamba: Alterado */ + $handler->display->display_options['fields']['changed']['id'] = 'changed'; + $handler->display->display_options['fields']['changed']['table'] = 'muamba'; + $handler->display->display_options['fields']['changed']['field'] = 'changed'; + $handler->display->display_options['fields']['changed']['label'] = 'Última atualização'; + $handler->display->display_options['fields']['changed']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['changed']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['changed']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['changed']['alter']['external'] = 0; + $handler->display->display_options['fields']['changed']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['changed']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['changed']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['changed']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['changed']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['changed']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['changed']['alter']['trim'] = 0; + $handler->display->display_options['fields']['changed']['alter']['html'] = 0; + $handler->display->display_options['fields']['changed']['element_label_colon'] = 0; + $handler->display->display_options['fields']['changed']['element_default_classes'] = 1; + $handler->display->display_options['fields']['changed']['hide_empty'] = 0; + $handler->display->display_options['fields']['changed']['empty_zero'] = 0; + $handler->display->display_options['fields']['changed']['hide_alter_empty'] = 0; + $handler->display->display_options['fields']['changed']['date_format'] = 'privatemsg_current_day'; $handler->display->display_options['defaults']['filters'] = FALSE; /* Filter criterion: Conteúdo: Publicado */ $handler->display->display_options['filters']['status']['id'] = 'status'; @@ -606,10 +787,48 @@ function muamba_interface_views_default_views() { $handler->display->display_options['pager']['options']['expose']['items_per_page_options_all_label'] = '- Todos -'; $handler->display->display_options['pager']['options']['expose']['offset_label'] = 'Deslocamento'; $handler->display->display_options['defaults']['style_plugin'] = FALSE; - $handler->display->display_options['style_plugin'] = 'default'; + $handler->display->display_options['style_plugin'] = 'table'; + $handler->display->display_options['style_options']['columns'] = array( + 'field_foto' => 'field_foto', + 'title' => 'field_foto', + 'ops' => 'ops', + 'picture' => 'picture', + 'name' => 'picture', + ); + $handler->display->display_options['style_options']['default'] = '-1'; + $handler->display->display_options['style_options']['info'] = array( + 'field_foto' => array( + 'align' => '', + 'separator' => '<br />', + ), + 'title' => array( + 'sortable' => 0, + 'default_sort_order' => 'asc', + 'align' => '', + 'separator' => '', + ), + 'ops' => array( + 'align' => '', + 'separator' => '', + ), + 'picture' => array( + 'sortable' => 0, + 'default_sort_order' => 'asc', + 'align' => '', + 'separator' => '', + ), + 'name' => array( + 'sortable' => 0, + 'default_sort_order' => 'asc', + 'align' => '', + 'separator' => '', + ), + ); + $handler->display->display_options['style_options']['override'] = 1; + $handler->display->display_options['style_options']['sticky'] = 0; + $handler->display->display_options['style_options']['empty_table'] = 0; $handler->display->display_options['defaults']['style_options'] = FALSE; $handler->display->display_options['defaults']['row_plugin'] = FALSE; - $handler->display->display_options['row_plugin'] = 'fields'; $handler->display->display_options['defaults']['row_options'] = FALSE; $handler->display->display_options['defaults']['relationships'] = FALSE; /* Relação: Conteúdo: Autor */ @@ -623,12 +842,17 @@ function muamba_interface_views_default_views() { $handler->display->display_options['relationships']['flag_content_rel']['field'] = 'flag_content_rel'; $handler->display->display_options['relationships']['flag_content_rel']['required'] = 0; $handler->display->display_options['relationships']['flag_content_rel']['flag'] = 'bookmarks'; + /* Relação: Muamba: Muamba asset owner */ + $handler->display->display_options['relationships']['owner']['id'] = 'owner'; + $handler->display->display_options['relationships']['owner']['table'] = 'muamba'; + $handler->display->display_options['relationships']['owner']['field'] = 'owner'; + $handler->display->display_options['relationships']['owner']['required'] = 0; $handler->display->display_options['defaults']['fields'] = FALSE; /* Campo: Conteúdo: Foto */ $handler->display->display_options['fields']['field_foto']['id'] = 'field_foto'; $handler->display->display_options['fields']['field_foto']['table'] = 'field_data_field_foto'; $handler->display->display_options['fields']['field_foto']['field'] = 'field_foto'; - $handler->display->display_options['fields']['field_foto']['label'] = ''; + $handler->display->display_options['fields']['field_foto']['label'] = 'Item'; $handler->display->display_options['fields']['field_foto']['alter']['alter_text'] = 0; $handler->display->display_options['fields']['field_foto']['alter']['make_link'] = 0; $handler->display->display_options['fields']['field_foto']['alter']['absolute'] = 0; @@ -641,7 +865,7 @@ function muamba_interface_views_default_views() { $handler->display->display_options['fields']['field_foto']['alter']['strip_tags'] = 0; $handler->display->display_options['fields']['field_foto']['alter']['trim'] = 0; $handler->display->display_options['fields']['field_foto']['alter']['html'] = 0; - $handler->display->display_options['fields']['field_foto']['element_label_colon'] = FALSE; + $handler->display->display_options['fields']['field_foto']['element_label_colon'] = 0; $handler->display->display_options['fields']['field_foto']['element_default_classes'] = 1; $handler->display->display_options['fields']['field_foto']['hide_empty'] = 0; $handler->display->display_options['fields']['field_foto']['empty_zero'] = 0; @@ -659,24 +883,79 @@ function muamba_interface_views_default_views() { $handler->display->display_options['fields']['title']['id'] = 'title'; $handler->display->display_options['fields']['title']['table'] = 'node'; $handler->display->display_options['fields']['title']['field'] = 'title'; - $handler->display->display_options['fields']['title']['label'] = ''; + $handler->display->display_options['fields']['title']['label'] = 'Item'; $handler->display->display_options['fields']['title']['alter']['alter_text'] = 0; $handler->display->display_options['fields']['title']['alter']['make_link'] = 0; $handler->display->display_options['fields']['title']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['title']['alter']['external'] = 0; + $handler->display->display_options['fields']['title']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['title']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['title']['alter']['nl2br'] = 0; $handler->display->display_options['fields']['title']['alter']['word_boundary'] = 0; $handler->display->display_options['fields']['title']['alter']['ellipsis'] = 0; $handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0; $handler->display->display_options['fields']['title']['alter']['trim'] = 0; $handler->display->display_options['fields']['title']['alter']['html'] = 0; + $handler->display->display_options['fields']['title']['element_label_colon'] = 0; + $handler->display->display_options['fields']['title']['element_default_classes'] = 1; $handler->display->display_options['fields']['title']['hide_empty'] = 0; $handler->display->display_options['fields']['title']['empty_zero'] = 0; + $handler->display->display_options['fields']['title']['hide_alter_empty'] = 0; $handler->display->display_options['fields']['title']['link_to_node'] = 1; + /* Campo: Usuário: Foto */ + $handler->display->display_options['fields']['picture']['id'] = 'picture'; + $handler->display->display_options['fields']['picture']['table'] = 'users'; + $handler->display->display_options['fields']['picture']['field'] = 'picture'; + $handler->display->display_options['fields']['picture']['relationship'] = 'owner'; + $handler->display->display_options['fields']['picture']['label'] = 'Dono'; + $handler->display->display_options['fields']['picture']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['picture']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['picture']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['picture']['alter']['external'] = 0; + $handler->display->display_options['fields']['picture']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['picture']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['picture']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['picture']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['picture']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['picture']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['picture']['alter']['trim'] = 0; + $handler->display->display_options['fields']['picture']['alter']['html'] = 0; + $handler->display->display_options['fields']['picture']['element_label_colon'] = 0; + $handler->display->display_options['fields']['picture']['element_default_classes'] = 1; + $handler->display->display_options['fields']['picture']['hide_empty'] = 0; + $handler->display->display_options['fields']['picture']['empty_zero'] = 0; + $handler->display->display_options['fields']['picture']['hide_alter_empty'] = 0; + /* Campo: Usuário: Nome */ + $handler->display->display_options['fields']['name']['id'] = 'name'; + $handler->display->display_options['fields']['name']['table'] = 'users'; + $handler->display->display_options['fields']['name']['field'] = 'name'; + $handler->display->display_options['fields']['name']['relationship'] = 'owner'; + $handler->display->display_options['fields']['name']['label'] = 'Dono'; + $handler->display->display_options['fields']['name']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['name']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['name']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['name']['alter']['external'] = 0; + $handler->display->display_options['fields']['name']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['name']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['name']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['name']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['name']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['name']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['name']['alter']['trim'] = 0; + $handler->display->display_options['fields']['name']['alter']['html'] = 0; + $handler->display->display_options['fields']['name']['element_label_colon'] = 0; + $handler->display->display_options['fields']['name']['element_default_classes'] = 1; + $handler->display->display_options['fields']['name']['hide_empty'] = 0; + $handler->display->display_options['fields']['name']['empty_zero'] = 0; + $handler->display->display_options['fields']['name']['hide_alter_empty'] = 0; + $handler->display->display_options['fields']['name']['link_to_user'] = 1; + $handler->display->display_options['fields']['name']['overwrite_anonymous'] = 0; /* Campo: Flags: Flag link */ $handler->display->display_options['fields']['ops']['id'] = 'ops'; $handler->display->display_options['fields']['ops']['table'] = 'flag_content'; $handler->display->display_options['fields']['ops']['field'] = 'ops'; $handler->display->display_options['fields']['ops']['relationship'] = 'flag_content_rel'; - $handler->display->display_options['fields']['ops']['label'] = ''; + $handler->display->display_options['fields']['ops']['label'] = 'Favoritos'; $handler->display->display_options['fields']['ops']['alter']['alter_text'] = 0; $handler->display->display_options['fields']['ops']['alter']['make_link'] = 0; $handler->display->display_options['fields']['ops']['alter']['absolute'] = 0; @@ -689,12 +968,35 @@ function muamba_interface_views_default_views() { $handler->display->display_options['fields']['ops']['alter']['strip_tags'] = 0; $handler->display->display_options['fields']['ops']['alter']['trim'] = 0; $handler->display->display_options['fields']['ops']['alter']['html'] = 0; - $handler->display->display_options['fields']['ops']['element_label_colon'] = FALSE; + $handler->display->display_options['fields']['ops']['element_label_colon'] = 0; $handler->display->display_options['fields']['ops']['element_default_classes'] = 1; $handler->display->display_options['fields']['ops']['hide_empty'] = 0; $handler->display->display_options['fields']['ops']['empty_zero'] = 0; $handler->display->display_options['fields']['ops']['hide_alter_empty'] = 0; $handler->display->display_options['fields']['ops']['link_type'] = 'toggle'; + /* Campo: Muamba: Alterado */ + $handler->display->display_options['fields']['changed']['id'] = 'changed'; + $handler->display->display_options['fields']['changed']['table'] = 'muamba'; + $handler->display->display_options['fields']['changed']['field'] = 'changed'; + $handler->display->display_options['fields']['changed']['label'] = 'Última atualização'; + $handler->display->display_options['fields']['changed']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['changed']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['changed']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['changed']['alter']['external'] = 0; + $handler->display->display_options['fields']['changed']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['changed']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['changed']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['changed']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['changed']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['changed']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['changed']['alter']['trim'] = 0; + $handler->display->display_options['fields']['changed']['alter']['html'] = 0; + $handler->display->display_options['fields']['changed']['element_label_colon'] = 0; + $handler->display->display_options['fields']['changed']['element_default_classes'] = 1; + $handler->display->display_options['fields']['changed']['hide_empty'] = 0; + $handler->display->display_options['fields']['changed']['empty_zero'] = 0; + $handler->display->display_options['fields']['changed']['hide_alter_empty'] = 0; + $handler->display->display_options['fields']['changed']['date_format'] = 'privatemsg_current_day'; $handler->display->display_options['defaults']['filters'] = FALSE; /* Filter criterion: Conteúdo: Publicado */ $handler->display->display_options['filters']['status']['id'] = 'status'; @@ -1161,13 +1463,19 @@ function muamba_interface_views_default_views() { t('Emprestei (bloco)'), t('Emprestei'), t('Muambas que emprestei (bloco)'), + t('Muamba requester'), + t('Item'), + t('Emprestado para'), + t('Empresado para'), + t('Última atualização'), t('Peguei (bloco)'), t('Peguei emprestado'), t('Peguei emprestado (bloco)'), - t('Favoritas (bloco)'), + t('Muamba item owner'), + t('Dono'), t('Favoritos'), + t('Favoritas (bloco)'), t('Muambas favoritas (bloco)'), - t('Item'), t('Dono(a)'), t('Disponível?'), t('Status'), @@ -1780,6 +2088,53 @@ function muamba_interface_views_default_views() { /* Display: Content pane */ $handler = $view->new_display('panel_pane', 'Content pane', 'panel_pane_1'); + $handler->display->display_options['defaults']['fields'] = FALSE; + /* Campo: Usuário: Nome */ + $handler->display->display_options['fields']['name']['id'] = 'name'; + $handler->display->display_options['fields']['name']['table'] = 'users'; + $handler->display->display_options['fields']['name']['field'] = 'name'; + $handler->display->display_options['fields']['name']['label'] = ''; + $handler->display->display_options['fields']['name']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['name']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['name']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['name']['alter']['external'] = 0; + $handler->display->display_options['fields']['name']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['name']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['name']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['name']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['name']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['name']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['name']['alter']['trim'] = 0; + $handler->display->display_options['fields']['name']['alter']['html'] = 0; + $handler->display->display_options['fields']['name']['element_label_colon'] = FALSE; + $handler->display->display_options['fields']['name']['element_default_classes'] = 1; + $handler->display->display_options['fields']['name']['hide_empty'] = 0; + $handler->display->display_options['fields']['name']['empty_zero'] = 0; + $handler->display->display_options['fields']['name']['hide_alter_empty'] = 0; + $handler->display->display_options['fields']['name']['link_to_user'] = 1; + $handler->display->display_options['fields']['name']['overwrite_anonymous'] = 0; + /* Campo: Usuário: Foto */ + $handler->display->display_options['fields']['picture']['id'] = 'picture'; + $handler->display->display_options['fields']['picture']['table'] = 'users'; + $handler->display->display_options['fields']['picture']['field'] = 'picture'; + $handler->display->display_options['fields']['picture']['label'] = ''; + $handler->display->display_options['fields']['picture']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['picture']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['picture']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['picture']['alter']['external'] = 0; + $handler->display->display_options['fields']['picture']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['picture']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['picture']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['picture']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['picture']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['picture']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['picture']['alter']['trim'] = 0; + $handler->display->display_options['fields']['picture']['alter']['html'] = 0; + $handler->display->display_options['fields']['picture']['element_label_colon'] = FALSE; + $handler->display->display_options['fields']['picture']['element_default_classes'] = 1; + $handler->display->display_options['fields']['picture']['hide_empty'] = 0; + $handler->display->display_options['fields']['picture']['empty_zero'] = 0; + $handler->display->display_options['fields']['picture']['hide_alter_empty'] = 0; $handler->display->display_options['pane_title'] = 'Membros do grupo'; $handler->display->display_options['allow']['use_pager'] = 0; $handler->display->display_options['allow']['items_per_page'] = 0; |