<?php
/**
 * COmanage Match Home Page
 *
 * Portions licensed to the University Corporation for Advanced Internet
 * Development, Inc. ("UCAID") under one or more contributor license agreements.
 * See the NOTICE file distributed with this work for additional information
 * regarding copyright ownership.
 *
 * UCAID licenses this file to you under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with the
 * License. You may obtain a copy of the License at:
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @link          http://www.internet2.edu/comanage COmanage Project
 * @package       match
 * @since         COmanage Match v1.0.0
 * @license       Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
 */

declare(strict_types = 1);
?>
<?php if(empty($vv_user)): ?>
  <h1 class="loginMsg"><?= __('match.home.welcome', [__('match.meta.match')]); ?></h1>
  <?php
    // Print the login button
    $buttonClasses = "btn btn-primary btn-large";
    print '<div id="welcome-login">';
    print $this->Html->link(__('match.op.login'),
                            ['controller' => 'matchgrids',
                             'action'     => 'select',
                             'plugin'     => false],
                            ['escape'     => false,
                             'id'         => 'welcome-login-button',
                             'class' => $buttonClasses]);
    print '</div>';
  ?>
<?php endif; // vv_user ?>