Exemplo n.º 1
0
function app_get_user($email, $include_deleted = false)
{
    $apps = array();
    foreach (p_list() as $p) {
        $apps2 = app_find_user($p, $email, $include_deleted);
        foreach ($apps2 as $app) {
            $app->pname = $p->name;
            $app->p = $p;
        }
        $apps[$p->name] = $apps2;
    }
    return $apps;
}
Exemplo n.º 2
0
<header>
    <h2 class="title">Apply list:</h2>
    <p>Click on an item below to see its description and apply.</p>
</header>

<div class="p-list">
<?php 
foreach (p_list() as $pos) {
    ?>
    <div class="p-item">
        <a href="<?php 
    echo SITE_URL;
    ?>
apply/<?php 
    echo $pos->name;
    ?>
">
            <div class="p-item-title"><?php 
    echo $pos->name;
    ?>
</div>
            <p class="p-item-info"><?php 
    echo teaser(explode("\n", $pos->info)[0], 120);
    ?>
</p>
        </a>
        <?php 
    if (logged_in()) {
        ?>
        <a class="p-item-submitted" href="<?php 
        echo SITE_URL;