Skip to content

Commit

Permalink
Update to elseif in template files
Browse files Browse the repository at this point in the history
  • Loading branch information
sbreker committed Feb 7, 2024
1 parent 86db156 commit e96c541
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
</div>
<?php if ($sf_context->getConfiguration()->isPluginEnabled('arCasPlugin')) { ?>
<?php echo $form->renderFormTag(url_for(['module' => 'cas', 'action' => 'login']), ['class' => 'mx-3 my-2']); ?>
<?php } else if ($sf_context->getConfiguration()->isPluginEnabled('arOidcPlugin')) { ?>
<?php } elseif ($sf_context->getConfiguration()->isPluginEnabled('arOidcPlugin')) { ?>
<?php echo $form->renderFormTag(url_for(['module' => 'oidc', 'action' => 'login']), ['class' => 'mx-3 my-2']); ?>
<?php } ?>
<?php echo $form->renderHiddenFields(); ?>
<button class="btn btn-sm atom-btn-secondary" type="submit">
<?php if ($sf_context->getConfiguration()->isPluginEnabled('arCasPlugin')) { ?>
<?php echo __('Log in with CAS'); ?>
<?php } else if ($sf_context->getConfiguration()->isPluginEnabled('arOidcPlugin')) { ?>
<?php } elseif ($sf_context->getConfiguration()->isPluginEnabled('arOidcPlugin')) { ?>
<?php echo __('Log in with SSO'); ?>
<?php } ?>
</button>
Expand All @@ -41,7 +41,7 @@
<li>
<?php if ($sf_context->getConfiguration()->isPluginEnabled('arCasPlugin')) { ?>
<?php echo link_to($menuLabels['logout'], ['module' => 'cas', 'action' => 'logout'], ['class' => 'dropdown-item']); ?>
<?php } else if ($sf_context->getConfiguration()->isPluginEnabled('arOidcPlugin')) { ?>
<?php } elseif ($sf_context->getConfiguration()->isPluginEnabled('arOidcPlugin')) { ?>
<?php echo link_to($menuLabels['logout'], ['module' => 'oidc', 'action' => 'logout'], ['class' => 'dropdown-item']); ?>
<?php } ?>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<?php if ($sf_context->getConfiguration()->isPluginEnabled('arCasPlugin')) { ?>
<?php echo $form->renderFormTag(url_for(['module' => 'cas', 'action' => 'login'])); ?>
<?php } else if ($sf_context->getConfiguration()->isPluginEnabled('arOidcPlugin')) { ?>
<?php } elseif ($sf_context->getConfiguration()->isPluginEnabled('arOidcPlugin')) { ?>
<?php echo $form->renderFormTag(url_for(['module' => 'oidc', 'action' => 'login'])); ?>
<?php } ?>

Expand All @@ -17,7 +17,7 @@
<button type="submit" class="btn atom-btn-outline-success">
<?php if ($sf_context->getConfiguration()->isPluginEnabled('arCasPlugin')) { ?>
<?php echo __('Log in with CAS'); ?>
<?php } else if ($sf_context->getConfiguration()->isPluginEnabled('arOidcPlugin')) { ?>
<?php } elseif ($sf_context->getConfiguration()->isPluginEnabled('arOidcPlugin')) { ?>
<?php echo __('Log in with SSO'); ?>
<?php } ?>
</button>
Expand Down

0 comments on commit e96c541

Please sign in to comment.