예제 #1
0
    ?>
                  <li <?php 
    echo $section == '' ? 'class="topactive"' : '';
    ?>
><a href="register" class="icongrayish"><i class="fa fa-fw fa-lg fa-child"></i> Join OpenML</a></li>
              <?php 
} else {
    ?>
                  <li <?php 
    echo $section == '' ? 'class="topactive"' : '';
    ?>
><a href="u/<?php 
    echo $this->user->id;
    ?>
"><img src="<?php 
    echo htmlentities(authorImage($this->user->image));
    ?>
" width="25" height="25" class="img-circle" alt="<?php 
    echo $this->user->first_name . ' ' . $this->user->last_name;
    ?>
" /> <?php 
    echo user_display_text();
    ?>
</a></li>
              <?php 
}
?>
                  <li <?php 
echo $section == 'Data' ? 'class="topactive"' : '';
?>
><a href="search?type=data<?php 
예제 #2
0
파일: user.php 프로젝트: jaksmid/website
  <div class="panel">
    <?php 
$authimg = "img/community/misc/anonymousMan.png";
if ($this->author) {
    $authimg = htmlentities(authorImage($this->author->image));
}
?>
     <div class="col-sm-2">
       <img src="<?php 
echo $authimg;
?>
" width="130" height="130" class="img-circle userimage" />
     </div>
     <div class="col-sm-10 userdata">
       <h1 class="username"><?php 
echo $this->userinfo['first_name'] . ' ' . $this->userinfo['last_name'];
?>
</h1>
       <div class="userbio"><?php 
echo $this->userinfo['bio'];
?>
</div>
       <div class="userdetails">
       <?php 
if ($this->userinfo['affiliation']) {
    echo '<i class="fa fa-fw fa-institution"></i> ' . $this->userinfo['affiliation'];
}
?>
       <?php 
if ($this->userinfo['country']) {
    echo '<i class="fa fa-fw fa-map-marker"></i> ' . $this->userinfo['country'];
예제 #3
0
파일: team.php 프로젝트: jaksmid/website
<div class="row">

<h2 id="team-core">Our Team</h2>
<p>OpenML is a community effort, and as such many people have contributed to it over the years.<br />
Want to join? Leave a message on the <a href="mailto:openml@googlegroups.com">community mailing list</a>.</p>

<?php 
if ($this->team != false) {
    foreach ($this->team as $t) {
        ?>
			<div class="col-md-4 head">
				<img src="<?php 
        echo htmlentities(authorImage($t->image));
        ?>
" class="img-circle" width="70" /><br/><br/>
				<span class="membername"><a href="u/<?php 
        echo $t->id;
        ?>
"><?php 
        echo $t->first_name . ' ' . $t->last_name;
        ?>
</a></span><br>
				<span class="memberline"><?php 
        echo $t->bio;
        ?>
</span>
			</div>
<?php 
    }
}
?>
예제 #4
0
파일: pre.php 프로젝트: jaksmid/website
$data = curl_exec($ch);
$results = json_decode($data);
$category_code = array('3200853' => 'general', '3353609' => 'data', '3353608' => 'flow', '3353607' => 'task', '3353606' => 'run', '3760343' => 'task_type');
$threads = $results->response;
foreach ($threads as $thread) {
    $type = $category_code[$thread->category];
    $id = end(explode('/', $thread->link));
    $message = "Could not retrieve message";
    if ($type == 'general') {
        $t = $this->Thread->getById($tid);
        if ($t) {
            $thread->message = nl2br(stripslashes($t->body));
            $thread->title = nl2br(stripslashes($t->title));
            $auth = $this->Author->getById($t->author_id);
            $thread->authname = user_display_text($auth);
            $thread->authimage = htmlentities(authorImage($auth->image));
        }
    } else {
        //get data from ES
        $p = array();
        $p['index'] = 'openml';
        $p['type'] = $type;
        $p['id'] = $id;
        $p['fields'] = 'description';
        try {
            $thread->message = substr(preg_replace('/\\s+/', ' ', $this->searchclient->get($p)['fields']['description'][0]), 0, 150) . ' ...';
        } catch (Exception $e) {
        }
    }
}
$this->popular = $threads;
예제 #5
0
파일: results.php 프로젝트: jaksmid/website
                                echo $k . ': ' . $v . ', ';
                            }
                        }
                    }
                    ?>
				</div>

		   <?php 
                } elseif ($type == 'user') {
                    ?>
				<div class="itemheadhead">
					<?php 
                    $auth = $this->Author->getById($r['_id']);
                    $authimg = "img/community/misc/anonymousMan.png";
                    if ($auth) {
                        $authimg = htmlentities(authorImage($auth->image));
                    }
                    ?>
					<i><img src="<?php 
                    echo $authimg;
                    ?>
" width="40" height="40" class="img-circle" /></i></div>
		   		<a href="u/<?php 
                    echo $r['_id'];
                    ?>
"><?php 
                    echo $rs['first_name'] . ' ' . $rs['last_name'];
                    ?>
</a>
					<div class="teaser"><?php 
                    echo $rs['bio'];