function theme_more_link

Returns HTML for a "more" link, like those used in blocks.

Parameters

$variables: An associative array containing:

  • url: The URL of the main page.
  • title: A descriptive verb for the link, like 'Read more'.

Related topics

5 theme calls to theme_more_link()
AggregatorCategoryBlock::build in drupal/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Block/AggregatorCategoryBlock.php
Builds and returns the renderable array for this block plugin.
AggregatorFeedBlock::build in drupal/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Block/AggregatorFeedBlock.php
Builds and returns the renderable array for this block plugin.
forum_block_view_pre_render in drupal/core/modules/forum/forum.module
Render API callback: Lists nodes based on the element's #query property.
ThemeTestSubscriber::onRequest in drupal/core/modules/system/tests/modules/theme_test/lib/Drupal/theme_test/EventSubscriber/ThemeTestSubscriber.php
Generates themed output early in a page request.
theme_node_recent_block in drupal/core/modules/node/node.module
Returns HTML for a list of recent content.

File

drupal/core/includes/theme.inc, line 2430
The theme system, which controls the output of Drupal.

Code

function theme_more_link($variables) {
  return '<div class="more-link">' . l(t('More'), $variables['url'], array(
    'attributes' => array(
      'title' => $variables['title'],
    ),
  )) . '</div>';
}