-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathosehra.phtml
More file actions
executable file
·402 lines (357 loc) · 17.4 KB
/
osehra.phtml
File metadata and controls
executable file
·402 lines (357 loc) · 17.4 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
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
<?php
/*=========================================================================
*
* Copyright OSHERA Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
echo $this->doctype()
?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:cc="http://creativecommons.org/ns#">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo $this->title ?></title>
<meta name="description" content="<?php echo htmlentities($this->metaDescription)?>" />
<meta name="keywords" content="<?php echo htmlentities($this->metaKeywords)?>" />
<meta name="robots" content="index, follow, all" />
<noscript>
<meta http-equiv="refresh" content="1; URL=<?php echo $this->webroot?>/index/nojs">
</noscript>
<!--[if lte IE 6]>
<meta http-equiv="refresh" content="1; URL=<?php echo $this->webroot?>/index/nobrowser">
<![endif]-->
<!-- Import CSS -->
<link rel="shortcut icon" href="<?php echo $this->webroot ?>/privateModules/journal/public/images/favicon.ico" />
<?php
echo '<link type="text/css" rel="stylesheet" href="'.$this->webroot.'/privateModules/journal/public/css/layout/bootstrap.min.css" />';
if (Zend_Registry::get("configGlobal")->smartoptimizer == 1)
{
echo '<link type="text/css" rel="stylesheet" href="'.$this->coreWebroot.'/public/css/layout/form.css'.
'jquery.qtip.min.css" />';
}
else
{
echo '<link type="text/css" rel="stylesheet" href="'.$this->coreWebroot.'/public/css/layout/form.css" />';;
echo '<link type="text/css" rel="stylesheet" href="'.$this->coreWebroot.'/public/css/layout/jquery.qtip.min.css" />';
}
echo '<link type="text/css" rel="stylesheet" href="'.$this->webroot.'/privateModules/journal/public/js/lib/jquery-ui-1.10.3.custom/css/smoothness/jquery-ui-1.10.3.custom.min.css"/>';
echo '<link type="text/css" rel="stylesheet" href="'.$this->webroot.'/privateModules/journal/public/css/layout/main.css" />';
echo '<link type="text/css" rel="stylesheet" href="'.$this->webroot.'/privateModules/journal/public/css/layout/osehra.css" />';
?>
<?php
$headers = Zend_Registry::get('notifier')->callback("CALLBACK_CORE_GET_FOOTER_HEADER", array());
if(!empty($headers))
{
foreach($headers as $header)
{
echo $header;
}
}
?>
<?php echo $this->headLink(); // import the css ?>
<?php echo $this->headStyle(); // import the css ?>
<script src='https://www.google.com/recaptcha/api.js'></script>
</head>
<body>
<div id="announcement-banner" class="alertHeader">
<script type="text/template" id="osehranav-iframe-data">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>
OSEHRA header bar
</title>
<style type="text/css">
body {background-color: #E6E6E6;}
* {padding: 0px;margin: 0px;}
.logo {float: left;padding:2px 9px;}
li {
font-size: 16px;
font-family: lato,oswald,"Francois One",Arial,Helvetica,sans-serif;
text-decoration: none;
letter-spacing: 0px;
font-weight: normal;
list-style: none;
float: left;
font-weight:bold;
height: 17px;
border-left: 1px solid #BBB;
padding:9px;
}
li a{margin-top:3px;}
a {text-decoration: none;color: #666;}
</style>
<base target="_parent">
</head>
<body>
<div id="wrapper">
<div id="header">
<!--<h2>Resources</h2> -->
<a class="logo" href="http://osehra.org"><img src="http://www.osehra.org/profiles/drupal_commons/themes/commons_osehra_earth/images/logo.png" border="0" height="35" width="150"/></a>
<ul id="nav_primary">
<li><a href="http://www.osehra.org/groups" title="Open Source Workgroup">Open Source Workgroup</a></li>
<li><a href="http://issues.osehra.org" title="Fill bug reports, improvements and feature requests here">Issue Tracker</a></li>
<li><a href="http://wiki.osehra.org" title="The place to collaboratively author project documents, and to find documentation on the Open Source Project">Open Source Project Wiki</a></li>
<li><a href="http://code.osehra.org/journal/" title="OSEHRA Technical Journal">OSEHRA Technical Journal</a></li>
<li><a href="http://www.osehra.org/content/joining-osehra" title="OSEHRA is community driven - please join in!">Join OSEHRA</a></li>
</ul>
</div>
</div>
</body>
</html>
</script>
</div>
<div class="TopDynamicBar" style="display:none;">
<div class="dumbBoxOverlay">
</div>
<div class="vertical-offset">
<div class="dumbBox">
<div class="TopDynamicClose">
<a class="closeButton" onclick="$('.TopDynamicBar').hide();" href="#" ><span><img alt="" src="<?php echo $this->coreWebroot?>/public/images/icons/close.png"/> </a>
</div>
<div class="TopDynamicContent">
</div>
<div class="TopDynamicLoading">
<img alt="" src="<?php echo $this->coreWebroot?>/public/images/icons/loading.gif" />
</div>
<input type="hidden" class="DynamicContentPage"/>
</div>
</div>
</div>
<div class="MainDialog" style="display:none;">
<div class="MainDialogContent">
</div>
<div class="MainDialogLoading">
<img alt="" src="<?php echo $this->coreWebroot?>/public/images/icons/loading.gif" />
</div>
<input type="hidden" class="DialogContentPage"/>
</div>
<div class="Header ">
<div class="HeaderTopContent panelsBackground">
<div id="menu">
<div id="topmenu">
<a style='border:none;' href="<?php echo $this->webroot?>">
<img style='border:none;' src="http://osehra.org/profiles/drupal_commons/themes/commons_osehra_earth/images/logo.png" alt="logo" height="50"/>
</a>
</div>
<div id="title">
OSEHRA Technical Journal
</div>
<div id="toplogin">
<?php
if(!$this->logged)
{?>
<form id="loginForm" action="<?php echo $this->webroot?>/user/login" method="POST">
Email: <input name="email" type="text"/>
Password: <input name="password" type="password"/>
<input name="submit" class="login" type="image" src="<?php echo $this->webroot.'/privateModules/journal/public/images/login.png'?>" alt="login"/>
</form>
<br/> <div style="position:absolute;right:0px;">
<div style="position:relative;top:7px;left:-8px;font-size:11px;color:white;">
<a href="<?php echo $this->webroot."/journal/help/about"?>">About</a>
<a style="margin-left: 7px;padding-left: 7px;border-left: 1px solid grey;" id="forgotPasswordLink">Forgot your password?</a>
<a style="margin-left: 7px;padding-left: 7px;border-left: 1px solid grey;" href="<?php echo $this->webroot."/register/register"?>" class="register">Register</a>
<a style="margin-left: 7px;padding-left: 7px;border-left: 1px solid grey;" href='<?php echo $this->webroot?>/googleoauth/user/login'>
Sign in with your Google Account <img style='top:-2px;border:none;position:relative;' src="<?php echo $this->webroot ?>/privateModules/journal/public/images/google_icon.png"/></a>
</div>
</div>
<?php
}
else
{ ?>
Welcome <?php echo $this->userDao->getFullName() ?> | <a href="<?php echo $this->webroot ?>/user/logout" class="logout">Logout</a>
<div style="position:absolute;right:0px;">
<div style="position:relative;top:7px;left:-8px;font-size:11px;color:white;">
<a href="<?php echo $this->webroot."/journal/help/about"?>">About</a>
</div>
</div>
<?php }?>
</div>
</div>
<div id="topbar"><ul id="Nav" class="nav navbar-nav"><li id='browseLink'><a href="<?php echo $this->webroot ?>/journal">Home</a></li>
<li>
<a href="<?php echo $this->webroot."/journal/view/journals"?>">Journal</a>
</li>
<li>
<a href="<?php echo $this->webroot."/journal/submit/selectissue"?>">New Publication</a>
</li>
<?php if($this->logged)
{?>
<li>
<a href="<?php echo $this->webroot."/journal/user/settings"?>">My Profile</a>
<ul>
<li>
<a class="submm" href="<?php echo $this->webroot."/journal/?q=text-journal.submitter:".$this->userDao->getKey()?>">My Publications</a>
</li>
<li>
<a class="submm" href="<?php echo $this->webroot."/journal/user/settings"?>">Edit Profile</a>
</li>
</ul>
</li>
<?php }?>
<?php if($this->logged && $this->userDao->isAdmin())
{?>
<li>
<a href="<?php echo $this->webroot."/journal/admin/issues"?>">Admin</a>
<ul>
<li>
<a class="submm" href="<?php echo $this->webroot."/journal/admin/issues"?>">Journals</a>
</li>
<li>
<a class="submm" href="<?php echo $this->webroot."/user"?>">Users</a>
</li>
<li>
<a class="submm" href="<?php echo $this->webroot."/journal/admin/categories"?>">Categories</a>
</li>
<li>
<a class="submm" href="<?php echo $this->webroot."/journal/admin/disclaimer"?>">Disclaimers</a>
</li>
<li>
<a class="submm" href="<?php echo $this->webroot."/journal/admin/help"?>">Help & About</a>
</li>
<li>
<a class="submm" href="<?php echo $this->webroot."/journal/config"?>">Midas</a>
</li>
<?php
$elements = Zend_Registry::get('notifier')->callback('CALLBACK_JOURNAL_ADMIN_MENU', array());
$element = end($elements);
if(is_array($element))
{
echo $this->action($element['action'], $element['controller'], $element['module'], $element['params']);
}?>
</ul>
</li>
<?php }?>
<li>
<a href="<?php echo $this->webroot."/journal/help"?>">Help</a>
<ul >
<li>
<a class="submm" style="width:160px;" href="<?php echo $this->webroot."/journal/help"?>">Submission and Review</a>
</li>
<li>
<a class="submm" style="width:160px;" href="<?php echo $this->webroot."/journal/help/faq"?>">F.A.Q.</a>
</li>
<li>
<a class="submm" style="width:160px;" href="<?php echo $this->webroot."/journal/help/feedback"?>">Feedback</a>
</li>
</ul>
</li>
<?php
if(!empty($this->waitingApproval))
{?>
<li>
<a style="color:orange;" href="<?php echo $this->webroot."/journal/admin/approval"?>">Waiting approval: <?php echo count($this->waitingApproval)?></a>
</li>
<?php
}?>
<?php
$hideBlog = true;
if(!$hideBlog)
{?>
<li ><a href="<?php echo $this->webroot."blog"?>">Blog</a></li>
<?php
}
?>
</ul>
<div class="HeaderSearch nav navbar-nav navbar-right">
<input type="text" class="panelsBackground" id="live_search" value="<?php echo (isset($this->query))? $this->query:'Search...'; ?>" autocomplete="off" autocorrect="off" autocapitalize="off" />
<input type="hidden" id="live_search_value" value="init" />
<div id="searchloading" style="display:none"></div>
<input type="button" class="" id="search_button" value="Search"/>
<input type="button" class="" id="clear_button" value="Clear"/>
</div>
</div>
<div class="HeaderAction">
<div class="viewNoticeWrapper">
<div class="viewNotice"></div>
</div>
</div>
</div>
</div>
<div class="Wrapper">
<div class="Content">
<!-- Content -->
<?php echo $this->layout()->content ?>
<!-- End Content -->
<div class="clear"/>
</div>
<div class="Footer">
<div class="text">
<b><?php if(is_array($this->footerStat)) echo join(", ", $this->footerStats)?><br/>
<a href="<?php echo $this->webroot?>/journal/rss"><img border="0" src="<?php echo $this->webroot ?>/privateModules/journal/public/images/feed-icon16x16.png" alt="RSS Feed"/></a>
<br/>
</div>
<div class="copyright">
<a href="http://osehra.org"><img src="<?php echo $this->webroot ?>/privateModules/journal/public/images/osehra/big-logo.jpg" alt="Kitware Logo"/></a><br/>
<br/>
</div>
</div>
<div class="powered" style="font-size:8px;">
Powered by <a href="http://midasplatform.org/">Midas</a>
</div>
</div>
</div>
<hr style="display: none;"/>
<?php
echo '<script type="text/javascript" src="'.$this->webroot.'/privateModules/journal/public/js/lib/jquery-1.10.1.min.js"></script>';
echo '<script type="text/javascript" src="'.$this->webroot.'/privateModules/journal/public/js/lib/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.min.js"></script>';
if (Zend_Registry::get("configGlobal")->smartoptimizer == 1)
{
echo '<script type="text/javascript" src="' . $this->coreWebroot.'/public/js/layout/'.
'midas.common.js,'.
'midas.callback.js,'.
'midas.dialog.js,'.
'jquery.qtip.min.js"></script>';
}
else
{
echo '<script type="text/javascript" src="'.$this->coreWebroot.'/public/js/layout/midas.common.js"></script>';
echo '<script type="text/javascript" src="'.$this->coreWebroot.'/public/js/layout/midas.callback.js"></script>';
echo '<script type="text/javascript" src="'.$this->coreWebroot.'/public/js/layout/midas.dialog.js"></script>';
echo '<script type="text/javascript" src="'.$this->coreWebroot.'/public/js/layout/jquery.qtip.min.js"></script>';
}
if(!$this->logged)
{
echo '<script type="text/javascript" src="'.$this->coreWebroot.'/public/js/jquery/jquery.form.js"></script>';
}
echo '<script type="text/javascript" src="'.$this->webroot.'/privateModules/journal/public/js/layout/layout.js"></script>';
echo '<script type="text/javascript" src="'.$this->webroot.'/modules/api/public/js/common/common.ajaxapi.js"></script>';
echo '<script type="text/javascript" src="'.$this->coreWebroot.'/public/js/layout/midas.notice.js"></script>';
?>
<?php echo $this->headScript() ?>
<input type="hidden" class="webroot" value="<?php echo $this->webroot?>" />
<script type="text/javascript">
var rawJson="<?php echo addslashes(trim($this->json))?>";
</script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-26757196-6");
pageTracker._trackPageview();
</script>
</body>
<?php
$footers = Zend_Registry::get('notifier')->callback("CALLBACK_CORE_GET_FOOTER_LAYOUT", array());
if(!empty($footers))
{
foreach($footers as $footer)
{
echo $footer;
}
}
?>