Commit 94147940 authored by alexpott's avatar alexpott

Issue #1843742 by chrisjlee, joelpittet, 2ndmile: Convert...

Issue #1843742 by chrisjlee, joelpittet, 2ndmile: Convert views/templates/views-more.tpl.php to twig.
parent 80cb1e46
{#
/**
* @file
* Default theme implementation for a views "more" link.
*
* Available variables:
* - view: The view object.
* - more_url: The URL for the views "more" link.
* - link_text: The text for the views "more" link.
*
* @see template_preprocess()
*
* @ingroup themeable
*/
#}
<div class="more-link">
<a href="{{ more_url }}">
{{ link_text }}
</a>
</div>
<?php
/**
* @file
* Theme the more link.
*
* - $view: The view object.
* - $more_url: the url for the more link.
* - $link_text: the text for the more link.
*
* @ingroup views_templates
*/
?>
<div class="more-link">
<a href="<?php print $more_url ?>">
<?php print $link_text; ?>
</a>
</div>
......@@ -168,9 +168,8 @@ function views_theme($existing, $type, $theme, $path) {
);
$hooks['views_more'] = $base + array(
'template' => 'views-more',
'pattern' => 'views_more__',
'variables' => array('more_url' => NULL, 'link_text' => 'more', 'view' => NULL),
'template' => 'views-more',
);
return $hooks;
......
Markdown is supported
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