-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
65 lines (47 loc) · 1.94 KB
/
index.php
File metadata and controls
65 lines (47 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
require 'includes/config.php';
require 'includes/aboutPage.class.php';
require 'includes/vcard.class.php';
$profile = new AboutPage($info);
if(array_key_exists('json',$_GET)){
$profile->generateJSON();
exit;
}
else if(array_key_exists('vcard',$_GET)){
$profile->downloadVcard();
exit;
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="description" content="Online info page of <?php echo $profile->fullName()?>. Learn more about me and download a vCard." />
<title>Pagina acerca de..</title>
<!-- Our CSS stylesheet file -->
<link rel="stylesheet" href="assets/css/styles.css" />
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<section id="infoPage">
<img src="<?php echo $profile->photoURL()?>" alt="<?php echo $profile->fullName()?>" width="164" height="164" />
<header>
<h1><?php echo $profile->fullName()?></h1>
<h2><?php echo $profile->tags()?></h2>
</header>
<p class="description"><?php echo nl2br($profile->description())?></p>
<a href="<?php echo $profile->twitter()?>" class="grayButton twitter">Follow me on Twitter</a>
<ul class="vcard">
<li class="fn"><?php echo $profile->fullName()?></li>
<li class="org"><?php echo $profile->company()?></li>
<li><a class="url" href="<?php echo $profile->website()?>"><?php echo $profile->website()?></a></li>
</ul>
</section>
<section id="links">
<a href="?vcard" class="vcard">Descargar V-Card</a>
<a href="?json" class="json">Descargar en formato JSON</a>
</section>
</body>
</html>