forked from Dwist/WoWFailureCMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
userplate.php
171 lines (160 loc) · 6.43 KB
/
userplate.php
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<?php if(!isset($_SESSION['username'])){ ?>
<div xmlns="http://www.w3.org/1999/xhtml" class="user-plate">
<a href="?login" class="card-login" onclick="BnetAds.trackImpression('Battle.net Login', 'Character Card', 'New'); return Login.open('login.php');">
<strong>Log in now</strong> to enhance and personalize your experience!
</a>
<div class="card-overlay"></div>
</div>
<?php }else{
$side = rand(1,2);
switch($side){
case 1:
$side = "alliance";
break;
case 2:
$side = "horde";
break;
}
?>
<div class="user-plate">
<div id="user-plate" class="card-character plate-<?php echo $side; ?> ajax-update" style="background: url(<?php echo $website['root']; ?>wow/static/images/layout/cards/no-chars.png) 0 100% no-repeat;">
<div class="card-overlay"></div>
<span class="hover"></span>
</a>
<div class="meta">
<div class="player-name"><?php echo strtolower($_SESSION['username']); ?></div>
<div class="character">
<a class="character-name context-link"
href="#"
rel="np"
data-tooltip="Change character">No Characters</a>
<div id="context-1" class="ui-context character-select">
<div class="context">
<a href="javascript:;" class="close" onclick="return CharSelect.close(this);"></a>
<div class="context-user">
<strong>No Characters</strong>
<br />
<span>No Realm</span>
</div>
<div class="context-links">
<a href="#" title="Profile" class="icon-profile link-first">Profile</a>
<a href="#" title="View my posts" class="icon-posts"> </a>
<a href="#" title="View auctions" rel="np"class="icon-auctions"> </a>
<a href="#" title="View events" rel="np" class="icon-events link-last"> </a>
</div>
</div>
<div class="character-list">
<div class="primary chars-pane">
<div class="char-wrapper">
<a href="javascript:;" class="char pinned" rel="np">
<span class="pin"></span>
<span class="name">No Characters</span>
<span class="class color-c1">level race class</span>
<span class="realm">No Realm</span>
</a>
<!-- At href="advanced.php?NAME" that has to be there-->
<a href="javascript:;" onclick="CharSelect.pin(1, this); return false;" class="char " rel="np">
<span class="pin"></span>
<span class="name">Test Character</span>
<span class="class color-c1">80 Human Warrior</span>
<span class="realm">No Realm</span>
</a>
</div>
<!--
<a href="javascript:;" class="manage-chars" onclick="CharSelect.swipe('in', this); return false;">
<span class="plus"></span>
Manage Characters<br />
<span>Customize characters that appear in this menu.</span>
</a>
-->
</div>
<!--
<div class="secondary chars-pane" style="display: none">
<div class="char-wrapper scrollbar-wrapper" id="scroll">
<div class="scrollbar">
<div class="track"><div class="thumb"></div></div>
</div>
<div class="viewport">
<div class="overview">
<a href="javascript:;"
class="color-c1 pinned"
rel="np"
onmouseover="Tooltip.show(this, $(this).children('.hide').text());">
<img src="/wow/static/images/icons/race/2-0.gif" alt="" />
<img src="/wow/static/images/icons/class/1.gif" alt="" />
28 Aghman
<span class="hide">Orc Warrior (Burning Steppes)</span>
</a>
<a href="/wow/en/character/burning-steppes/stefyvolt/"
class="color-c2"
rel="np"
onclick="CharSelect.pin(1, this); return false;"
onmouseover="Tooltip.show(this, $(this).children('.hide').text());">
<img src="/wow/static/images/icons/race/10-0.gif" alt="" />
<img src="/wow/static/images/icons/class/2.gif" alt="" />
80 Stefyvolt
<span class="hide">Blood Elf Paladin (Burning Steppes)</span>
</a>
<a href="/wow/en/character/burning-steppes/taylda/"
class="color-c6"
rel="np"
onclick="CharSelect.pin(2, this); return false;"
onmouseover="Tooltip.show(this, $(this).children('.hide').text());">
<img src="/wow/static/images/icons/race/10-1.gif" alt="" />
<img src="/wow/static/images/icons/class/6.gif" alt="" />
62 Taylda
<span class="hide">Blood Elf Death Knight (Burning Steppes)</span>
</a>
<a href="/wow/en/character/burning-steppes/stefybank/"
class="color-c1"
rel="np"
onclick="CharSelect.pin(3, this); return false;"
onmouseover="Tooltip.show(this, $(this).children('.hide').text());">
<img src="/wow/static/images/icons/race/6-0.gif" alt="" />
<img src="/wow/static/images/icons/class/1.gif" alt="" />
5 Stefybank
<span class="hide">Tauren Warrior (Burning Steppes)</span>
</a>
<a href="/wow/en/character/arathi/pvpsausage/"
class="color-c7"
rel="np"
onclick="CharSelect.pin(4, this); return false;"
onmouseover="Tooltip.show(this, $(this).children('.hide').text());">
<img src="/wow/static/images/icons/race/2-0.gif" alt="" />
<img src="/wow/static/images/icons/class/7.gif" alt="" />
1 Pvpsausage
<span class="hide">Orc Shaman (Arathi)</span>
</a>
<a href="/wow/en/character/ragnaros/adenor/"
class="color-c6"
rel="np"
onclick="CharSelect.pin(5, this); return false;"
onmouseover="Tooltip.show(this, $(this).children('.hide').text());">
<img src="/wow/static/images/icons/race/11-0.gif" alt="" />
<img src="/wow/static/images/icons/class/6.gif" alt="" />
61 Adenor
<span class="hide">Draenei Death Knight (Ragnaros)</span>
</a>
<div class="no-results hide">No characters were found</div>
</div>
</div>
</div>
<div class="filter">
<input type="input" class="input character-filter" value="Filter�" alt="Filter�" /><br />
<a href="javascript:;" onclick="CharSelect.swipe('out', this); return false;">Return to characters</a>
</div>
</div>
-->
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
Tooltip.bind('#header .user-meta .character-name', { location: 'topCenter' });
});
//]]>
</script>
<?php } ?>