Skip to content

Commit

Permalink
Merge pull request #971 from StadGent/feature/SGD8-2465
Browse files Browse the repository at this point in the history
SGD8-2465: Add classes to btn via theme
  • Loading branch information
SvenVdv authored Jan 8, 2024
2 parents aacb6b2 + fe97f32 commit 2497d58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gent_base.theme
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,10 @@ function gent_base_preprocess_menu_local_task(&$variables) {
* Implements hook_preprocess_field().
*/
function gent_base_preprocess_field(&$variables) {
if ($variables["element"]["#field_name"] == 'field_event_subscription_link') {
$variables['items'][0]['content']['#options']['attributes']['class'] = 'button button-secondary';
}

if ($variables["element"]["#field_name"] == 'field_tags' && count($variables["items"]) > 0) {

foreach ($variables['items'] as $key => $item) {
Expand Down

0 comments on commit 2497d58

Please sign in to comment.