Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

Commit 575fd71

Browse files
Merge branch '3.4.2'
2 parents 7938d50 + b06bfc7 commit 575fd71

File tree

5 files changed

+26
-5
lines changed

5 files changed

+26
-5
lines changed

culturefeed.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = CultureFeed
22
description = CultureFeed
33
package = CultureFeed
4-
version = "7.x-3.3"
4+
version = "7.x-3.4"
55
core = 7.x
66

77
files[] = lib/Drupal/DrupalCultureFeedBase.php

culturefeed_agenda/includes/helpers.inc

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,6 @@ function culturefeed_agenda_parse_weekscheme(CultureFeed_Cdb_Data_Calendar_Weeks
581581
function culturefeed_agenda_parse_timestamps($timestamps) {
582582

583583
$timestamps_array = array();
584-
585584
$timestamps_count = iterator_count($timestamps);
586585
$timestamps->rewind();
587586
$current_timestamp = 0;
@@ -678,12 +677,26 @@ function culturefeed_agenda_parse_calendar($calendar) {
678677
$calendar_array = array(
679678
'type' => 'timestamps',
680679
);
680+
$calendar_array['start_date'] = culturefeed_agenda_get_startdate($calendar);
681681
$calendar_array['timestamps'] = culturefeed_agenda_parse_timestamps($calendar);
682682
$calendar_array['timestamps'] = culturefeed_agenda_group_timestamps($calendar_array['timestamps']);
683683
}
684684
return $calendar_array;
685685
}
686686

687+
/**
688+
* Get the startdate if its a timestamplist
689+
*/
690+
function culturefeed_agenda_get_startdate($dates) {
691+
$dates->rewind();
692+
693+
for ($i = 0; $i < 1; $i++) {
694+
$date = $dates->current();
695+
$startdate = $date->getDate() . ' ' . $date->getStartTime();
696+
}
697+
return $startdate;
698+
}
699+
687700
/**
688701
* Function to search for 5 actors in the neighbourhood for a given eventtype.
689702
* @param type $event

culturefeed_social/culturefeed_social.module

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,16 @@ function culturefeed_social_base_report_abuse_form($form, &$form_state, $activit
897897
$form['submit'] = array(
898898
'#type' => 'submit',
899899
'#value' => t('Submit'),
900-
'#attributes' => array('class' => array('btn-primary')),
900+
'#attributes' => array('style' => array('float:left')),
901+
);
902+
903+
$destination = drupal_get_destination();
904+
905+
$form['cancel'] = array(
906+
'#type' => 'link',
907+
'#title' => t('Cancel'),
908+
'#href' => url($GLOBALS['base_url'] . '/' . $destination['destination']),
909+
'#attributes' => array('class' => array('abuse-button-decline')),
901910
);
902911

903912
$form['#theme'] = 'culturefeed_social_report_abuse_form';

culturefeed_social/includes/pages.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ function culturefeed_social_page_activity_delete_confirm_form($form, &$form_stat
267267
$form['decline'] = array(
268268
'#type' => 'link',
269269
'#title' => t('Cancel'),
270-
'#href' => url($destination['destination']),
270+
'#href' => url($GLOBALS['base_url'] . '/' . $destination['destination']),
271271
'#attributes' => array('class' => array('button-decline')),
272272
);
273273

culturefeed_ui/culturefeed_ui.blocks.inc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ function culturefeed_ui_block_profile_menu_view() {
206206
$block['content'] = array(
207207
'#theme' => 'item_list',
208208
'#items' => $items,
209-
'#attributes' => array('class' => 'dropdown-menu', 'role' => 'menu'),
210209
);
211210

212211
return $block;

0 commit comments

Comments
 (0)