Commit 12b332ac authored by ccarigna's avatar ccarigna
Browse files

Added 'more events' link on front page block in view footer

parent 8045577e
......@@ -30,4 +30,4 @@
.front .event-date {display: inline-block; width: 120px; font-size: .85em; color: #444;}
.front .event-link-title {width: 370px; display: inline-block; vertical-align: top;}
.front .view-events .more-link {font-weight: bold;}
\ No newline at end of file
.front .view-footer .events-more-link {text-align: right; font-weight: bold;}
\ No newline at end of file
......@@ -972,12 +972,19 @@ function uw_ct_event_views_default_views() {
/* Display: Events Block - Front Page */
$handler = $view->new_display('block', 'Events Block - Front Page', 'block_1');
$handler->display->display_options['defaults']['use_more'] = FALSE;
$handler->display->display_options['use_more'] = TRUE;
$handler->display->display_options['use_more_text'] = 'More events';
$handler->display->display_options['defaults']['pager'] = FALSE;
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['pager']['options']['items_per_page'] = '3';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['defaults']['footer'] = FALSE;
/* Footer: Global: Text area */
$handler->display->display_options['footer']['area']['id'] = 'area';
$handler->display->display_options['footer']['area']['table'] = 'views';
$handler->display->display_options['footer']['area']['field'] = 'area';
$handler->display->display_options['footer']['area']['empty'] = FALSE;
$handler->display->display_options['footer']['area']['content'] = '<p class="events-more-link"><a href="events">More events</a></p>';
$handler->display->display_options['footer']['area']['format'] = 'uw_tf_standard';
$handler->display->display_options['footer']['area']['tokenize'] = 0;
$handler->display->display_options['defaults']['empty'] = FALSE;
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: Content: Sticky */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment