Skip to content

Commit

Permalink
PLANET-5501 Make cookies button secondary
Browse files Browse the repository at this point in the history
  • Loading branch information
mleray committed Oct 23, 2020
1 parent a26f2b6 commit cefcdd1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions src/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -685,16 +685,16 @@ protected function set_context( &$context ) {
protected function set_general_context( &$context ) {

// Search context.
$context['posts'] = $this->posts;
$context['paged_posts'] = $this->paged_posts;
$context['current_page'] = $this->current_page;
$context['search_query'] = $this->search_query;
$context['selected_sort'] = $this->selected_sort;
$context['default_sort'] = self::DEFAULT_SORT;
$context['filters'] = $this->filters;
$context['found_posts'] = $this->total_matches;
$context['page_category'] = 'Search Page';
$context['sort_options'] = [
$context['posts'] = $this->posts;
$context['paged_posts'] = $this->paged_posts;
$context['current_page'] = $this->current_page;
$context['search_query'] = $this->search_query;
$context['selected_sort'] = $this->selected_sort;
$context['default_sort'] = self::DEFAULT_SORT;
$context['filters'] = $this->filters;
$context['found_posts'] = $this->total_matches;
$context['page_category'] = 'Search Page';
$context['sort_options'] = [
'_score' => [
'name' => __( 'Most relevant', 'planet4-master-theme' ),
'order' => 'DESC',
Expand Down
2 changes: 1 addition & 1 deletion templates/cookies.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<div>
{{ cookies.text|e('wp_kses_post')|raw }}
</div>
<button class="btn p-0" id="hidecookie">{{ __( 'Got it!', 'planet4-master-theme' ) }}</button>
<button class="btn btn-secondary p-0" id="hidecookie">{{ __( 'Got it!', 'planet4-master-theme' ) }}</button>
</div>
{% endif %}

0 comments on commit cefcdd1

Please sign in to comment.