-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthor.php
More file actions
77 lines (63 loc) · 3.48 KB
/
author.php
File metadata and controls
77 lines (63 loc) · 3.48 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
66
67
68
69
70
71
72
73
74
75
76
77
<?php
global $CN_Visitor;
$curauth = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));
$User = new CN_User($curauth->ID);
get_header();
?>
<div id="template-user-profile">
<div id="floating-sidebar">
<a href="">
<div class="floating-sidebar-item">
Register
</div>
</a>
</div>
<div class="container">
<div class="col-20">
<h1><?php print($User->getName()); ?> <?php $CN_Visitor->editProfileLink($User->getUserId()); ?></h1>
</div>
</div>
<div class="container">
<div class="col-8">
<div id="page-sidebar">
<div class="sidebar-contents">
<h2>Summary</h2>
<div class="profile-summary-section">
<img class="profile-picture" src="<?php print($User->getPicture()); ?>" />
<a href=""><div class="user-contact">Contact</div></a>
</div>
<div class="profile-summary-section">
<?php
if($CN_Visitor->editItem($User->getUserId())) {
?>
<p><span>Type:</span><br/><?php $User->displayProfileTypeRadioButtons("type"); ?></p>
<p><span>Sector:</span><br/><?php $User->displayProfileSectorCheckboxes("sector"); ?></p>
<p><span>Company:</span><br/><?php $User->displayProfileCompanyDropdown("company"); ?></p>
<p><span>Business Center:</span><br/><?php $User->displayProfileBusinessCenterDropdown("business_center"); ?></p>
<p><span>Education:</span><br/><?php $User->displayProfileEducationDropdown("education"); ?></p>
<?php
}
else {
?>
<p><span>Type:</span><br/><?php print($User->getType()); ?></p>
<p><span>Sector:</span><br/><?php print($User->getSector()); ?></p>
<p><span>Company:</span><br/><a href="<?php print($User->getCompany()->getLink()); ?>"><?php print($User->getCompany()->getCompanyName()); ?></a></p>
<p><span>Business Center:</span><br/><a href="<?php print($User->getBusinessCenter()->getLink()); ?>"><?php print($User->getBusinessCenter()->getBusinessCenterName()); ?></a></p>
<p><span>Education:</span><br/><a href="<?php print($User->getEducation()->getLink()); ?>"><?php print($User->getEducation()->getEducationFacilityName()); ?></a></p>
<?php
}
?>
</div>
<div class="clear"></div>
</div>
</div>
</div>
<div class="col-12">
<div id="page-content">
<h2>About Me</h2>
<?php the_content(); ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>