Skip to content
Snippets Groups Projects
Select Git revision
  • a39b5cfad9d90106db03b3f733fb5447618ded56
  • main default protected
2 results

inc_mode_boxes.php

Blame
  • inc_mode_boxes.php 1.24 KiB
    <?php
    // ======================================================================
    //
    // AAI LOGIN WITH SHIBBOLETH HANDLING MULTIPLE ORGANIZATIONS
    // 
    // Boxes for all organizations with an input field for filter
    //
    // License: GNU GPL 3.0
    // Source: https://git-repo.iml.unibe.ch/iml-open-source/login-aai
    // ======================================================================
    
    if (is_array($aIdplist) && count($aIdplist)) {
        $sOut = '';
        $sOut .= '<div id="filterbox"></div><div class="boxes">';
        foreach ($aIdplist as $aEntry) {
            $sOut .= '
                        <a href="' . $aEntry['_url']. '" 
                            class="idp"
                            title="' . str_replace('"', '',$aEntry['_description']) . '"
                            >' . htmlentities($aEntry['_label']) . '<br>
                            <span class="hidden">' . str_replace('"', '', $aEntry['_description'] . ' ' . $aEntry['_keywords']) . ' .'. $aEntry['_tld'] . '</span>
                            <img src="' . $aEntry['_image'] . '"><br>
                        </a>
                    '
                    . "\n"
                    ;
        }
        $sOut.='</div><div style="clear:both"></div>';
        echo $sOut;
    } else {
        echo '<div class="msg error">No IDPs found in Discovery Feed.</div>';
    }