diff --git a/modules/commons/commons_groups/commons_groups.views_default.inc b/modules/commons/commons_groups/commons_groups.views_default.inc index 3751f01..a369882 100644 --- a/modules/commons/commons_groups/commons_groups.views_default.inc +++ b/modules/commons/commons_groups/commons_groups.views_default.inc @@ -170,7 +170,7 @@ function commons_groups_views_default_views() { /* Display: Master */ $handler = $view->new_display('default', 'Master', 'default'); - $handler->display->display_options['title'] = 'Group contributors'; + $handler->display->display_options['title'] = 'Group members'; $handler->display->display_options['use_more'] = TRUE; $handler->display->display_options['use_more_always'] = FALSE; $handler->display->display_options['access']['type'] = 'perm'; diff --git a/modules/groups/groups_events/groups_events.features.field_base.inc b/modules/groups/groups_events/groups_events.features.field_base.inc new file mode 100644 index 0000000..83ef160 --- /dev/null +++ b/modules/groups/groups_events/groups_events.features.field_base.inc @@ -0,0 +1,43 @@ + 1, + 'cardinality' => 1, + 'deleted' => 0, + 'entity_types' => array(), + 'field_name' => 'field_venue_name', + 'foreign keys' => array( + 'format' => array( + 'columns' => array( + 'format' => 'format', + ), + 'table' => 'filter_format', + ), + ), + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'locked' => 0, + 'module' => 'text', + 'settings' => array( + 'max_length' => 60, + ), + 'translatable' => 0, + 'type' => 'text', + ); + + return $field_bases; +} diff --git a/modules/groups/groups_events/groups_events.features.field_instance.inc b/modules/groups/groups_events/groups_events.features.field_instance.inc new file mode 100644 index 0000000..0c41adc --- /dev/null +++ b/modules/groups/groups_events/groups_events.features.field_instance.inc @@ -0,0 +1,59 @@ + 'event', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => 13, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'display_in_partial_form' => 0, + 'entity_type' => 'node', + 'field_name' => 'field_venue_name', + 'label' => 'Venue name', + 'required' => 0, + 'settings' => array( + 'text_processing' => 0, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'text', + 'settings' => array( + 'size' => 60, + ), + 'type' => 'text_textfield', + 'weight' => 7, + ), + ); + + // Translatables + // Included for use with string extractors like potx. + t('Venue name'); + + return $field_instances; +} diff --git a/modules/groups/groups_events/groups_events.info b/modules/groups/groups_events/groups_events.info index 81db8b6..b338840 100644 --- a/modules/groups/groups_events/groups_events.info +++ b/modules/groups/groups_events/groups_events.info @@ -4,10 +4,14 @@ core = 7.x package = Groups - Building Blocks version = 7.x-1.0 project = groups_events +dependencies[] = features +dependencies[] = text dependencies[] = views dependencies[] = views_content dependencies[] = views_load_more features[ctools][] = views:views_default:3.0 features[features_api][] = api:2 +features[field_base][] = field_venue_name +features[field_instance][] = node-event-field_venue_name features[views_view][] = groups_events_upcoming_events features_exclude[dependencies][ctools] = ctools diff --git a/modules/groups/groups_events/groups_events.module b/modules/groups/groups_events/groups_events.module index 9451046..25e93f1 100644 --- a/modules/groups/groups_events/groups_events.module +++ b/modules/groups/groups_events/groups_events.module @@ -5,3 +5,12 @@ */ include_once 'groups_events.features.inc'; + +/** + * Implements hook_ctools_plugin_directory(). + */ +function groups_events_ctools_plugin_directory($module, $plugin) { + if ($module == 'addressfield') { + return 'plugins/' . $plugin; + } +} diff --git a/modules/groups/groups_events/groups_events.views_default.inc b/modules/groups/groups_events/groups_events.views_default.inc index 9591aa0..e6a23ba 100644 --- a/modules/groups/groups_events/groups_events.views_default.inc +++ b/modules/groups/groups_events/groups_events.views_default.inc @@ -196,6 +196,30 @@ function groups_events_views_default_views() { $handler->display->display_options['fields']['body']['settings'] = array( 'trim_length' => '600', ); + /* Field: Content: Date */ + $handler->display->display_options['fields']['field_date_1']['id'] = 'field_date_1'; + $handler->display->display_options['fields']['field_date_1']['table'] = 'field_data_field_date'; + $handler->display->display_options['fields']['field_date_1']['field'] = 'field_date'; + /* Field: Content: Venue name */ + $handler->display->display_options['fields']['field_venue_name']['id'] = 'field_venue_name'; + $handler->display->display_options['fields']['field_venue_name']['table'] = 'field_data_field_venue_name'; + $handler->display->display_options['fields']['field_venue_name']['field'] = 'field_venue_name'; + $handler->display->display_options['fields']['field_venue_name']['label'] = ''; + $handler->display->display_options['fields']['field_venue_name']['element_label_colon'] = FALSE; + /* Field: Content: Address */ + $handler->display->display_options['fields']['field_address']['id'] = 'field_address'; + $handler->display->display_options['fields']['field_address']['table'] = 'field_data_field_address'; + $handler->display->display_options['fields']['field_address']['field'] = 'field_address'; + $handler->display->display_options['fields']['field_address']['label'] = ''; + $handler->display->display_options['fields']['field_address']['element_label_colon'] = FALSE; + $handler->display->display_options['fields']['field_address']['click_sort_column'] = 'country'; + $handler->display->display_options['fields']['field_address']['type'] = 'addressfield_linear'; + $handler->display->display_options['fields']['field_address']['settings'] = array( + 'use_widget_handlers' => 1, + 'format_handlers' => array( + 'address' => 'address', + ), + ); $handler->display->display_options['defaults']['arguments'] = FALSE; /* Contextual filter: OG membership: Group ID */ $handler->display->display_options['arguments']['gid']['id'] = 'gid'; diff --git a/modules/groups/groups_pages/groups_pages.panelizer.inc b/modules/groups/groups_pages/groups_pages.panelizer.inc index 6cde52f..3acb5a2 100644 --- a/modules/groups/groups_pages/groups_pages.panelizer.inc +++ b/modules/groups/groups_pages/groups_pages.panelizer.inc @@ -76,6 +76,29 @@ function groups_pages_panelizer_defaults() { $display->content['new-D535E2E0-1D0E-4B62-9093-D9DE4722EB29'] = $pane; $display->panels['two_66_33_first'][0] = 'new-D535E2E0-1D0E-4B62-9093-D9DE4722EB29'; $pane = new stdClass(); + $pane->pid = 'new-54C2DF39-C222-48D2-A1E6-31E4C9D18B4F'; + $pane->panel = 'two_66_33_first'; + $pane->type = 'views_panes'; + $pane->subtype = 'groups_events_upcoming_events-panel_pane_1'; + $pane->shown = TRUE; + $pane->access = array(); + $pane->configuration = array( + 'context' => array( + 0 => 'panelizer', + ), + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 1; + $pane->locks = array(); + $pane->uuid = '54C2DF39-C222-48D2-A1E6-31E4C9D18B4F'; + $display->content['new-54C2DF39-C222-48D2-A1E6-31E4C9D18B4F'] = $pane; + $display->panels['two_66_33_first'][1] = 'new-54C2DF39-C222-48D2-A1E6-31E4C9D18B4F'; + $pane = new stdClass(); $pane->pid = 'new-4D07DA83-5650-4EE6-AA34-DEBDE8467ADB'; $pane->panel = 'two_66_33_first'; $pane->type = 'entity_field'; @@ -99,34 +122,11 @@ function groups_pages_panelizer_defaults() { ); $pane->css = array(); $pane->extras = array(); - $pane->position = 1; + $pane->position = 2; $pane->locks = array(); $pane->uuid = '4D07DA83-5650-4EE6-AA34-DEBDE8467ADB'; $display->content['new-4D07DA83-5650-4EE6-AA34-DEBDE8467ADB'] = $pane; - $display->panels['two_66_33_first'][1] = 'new-4D07DA83-5650-4EE6-AA34-DEBDE8467ADB'; - $pane = new stdClass(); - $pane->pid = 'new-54C2DF39-C222-48D2-A1E6-31E4C9D18B4F'; - $pane->panel = 'two_66_33_first'; - $pane->type = 'views_panes'; - $pane->subtype = 'groups_events_upcoming_events-panel_pane_1'; - $pane->shown = TRUE; - $pane->access = array(); - $pane->configuration = array( - 'context' => array( - 0 => 'panelizer', - ), - ); - $pane->cache = array(); - $pane->style = array( - 'settings' => NULL, - ); - $pane->css = array(); - $pane->extras = array(); - $pane->position = 2; - $pane->locks = array(); - $pane->uuid = '54C2DF39-C222-48D2-A1E6-31E4C9D18B4F'; - $display->content['new-54C2DF39-C222-48D2-A1E6-31E4C9D18B4F'] = $pane; - $display->panels['two_66_33_first'][2] = 'new-54C2DF39-C222-48D2-A1E6-31E4C9D18B4F'; + $display->panels['two_66_33_first'][2] = 'new-4D07DA83-5650-4EE6-AA34-DEBDE8467ADB'; $pane = new stdClass(); $pane->pid = 'new-0702E7C9-CCB9-4EA3-B2C5-7D1ACDF55BD5'; $pane->panel = 'two_66_33_second'; diff --git a/themes/openstack_bootstrap/custom-sass/style.scss b/themes/openstack_bootstrap/custom-sass/style.scss index 61a3e62..de5a18c 100644 --- a/themes/openstack_bootstrap/custom-sass/style.scss +++ b/themes/openstack_bootstrap/custom-sass/style.scss @@ -245,9 +245,15 @@ } .pane-groups-events-upcoming-events-panel-pane-1 h2.pane-title { display: inline-block; - line-height: 16px; + line-height: 20px; font-size: 80%; text-transform: uppercase; + margin-bottom: 0px; + background: #C4E0E9; + display: inline-block; + color: #254C7C; + padding: 0px 10px; + font-weight: 400; } .region-two-66-33-second h2.pane-title { color: #2A4E68; @@ -275,6 +281,7 @@ display: inline-block; color: #254C7C; padding: 0px 10px; + font-weight: 400; } a { color: #30739C; @@ -323,14 +330,15 @@ /* === Event large teaser === */ .event--large-teaser { - @extend .clearfix; + @extend .row; + .container-header { + @extend .col-md-8; + } .container-first { - float: left; - width: 60%; + @extend .col-md-8; } .container-second { - float: left; - width: 40%; + @extend .col-md-2; } h3 { margin-bottom: 5px; @@ -343,24 +351,17 @@ .field-name-field-address { margin-bottom: 10px; } + .field-venue { + .field-content { + display: inline-block; + } + } .field-body { color: #888; line-height: 1.4; font-size: 16px; padding-bottom: 10px; - } - .field-date { - font-size: 18px; - color: #000; - font-weight: 300; - .date-part { - font-weight: 400; - font-size: 18px; - } - .date-display-start { - } - .date-display-end { - } + padding-top: 10px; } .field-name-field-organizers .field-label { font-weight: 400; diff --git a/themes/openstack_bootstrap/templates/views-view-fields--groups-events-upcoming-events--panel-pane-1.tpl.php b/themes/openstack_bootstrap/templates/views-view-fields--groups-events-upcoming-events--panel-pane-1.tpl.php index 3ea502a..61bd6e6 100644 --- a/themes/openstack_bootstrap/templates/views-view-fields--groups-events-upcoming-events--panel-pane-1.tpl.php +++ b/themes/openstack_bootstrap/templates/views-view-fields--groups-events-upcoming-events--panel-pane-1.tpl.php @@ -11,23 +11,16 @@ */ ?> - -

content; ?>

+
content; ?>
+
content; ?> (content; ?>)
content; ?>
-
content; - $date_str = str_replace('
', '
', $date_str); - $date_str = str_replace(',', '
', $date_str); - print $date_str; - ?>
content; ?>
content; ?>