-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
47 lines (45 loc) · 2.45 KB
/
header.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
<?php
$additional_wizard_class = '';
$additional_header_class = '';
if ($title == 'Create New Page') {
$additional_wizard_class = ' op-bsw-wizard-full';
$additional_header_class = ' op-bsw-header-full';
}
?>
<div class="op-bsw-wizard<?php echo $additional_wizard_class; ?>">
<div class="op-bsw-content cf">
<div class="op-bsw-header cf<?php echo $additional_header_class; ?>">
<?php
switch(strtolower($title)){
case 'launch suite':
$logo_file = 'launchsuite';
break;
case 'theme settings':
$logo_file = 'blogsettings';
break;
case 'dashboard': //Uncomment once we have the dashboard logo file in place
$logo_file = 'dashboard';
break;
default:
$logo_file = 'optimizepress';
}
?>
<?php
$host = explode('/', str_replace(array('http://', 'https://'), '', $_SERVER['HTTP_HOST']));
$img_path = str_replace(array('http://', 'https://', $host[0]), '', op_img('', true));
if (!file_exists($_SERVER['DOCUMENT_ROOT'].$img_path.'logo-'.$logo_file.'.png')) $logo_file = 'optimizepress';
?>
<div class="op-logo"><img src="<?php op_img() ?>logo-<?php echo $logo_file; ?>.png" alt="OptimizePress" height="50" class="animated flipInY" /></div>
<ul>
<li><a href="<?php echo OP_SUPPORT_LINK; ?>" target="_blank"><img src="<?php echo OP_IMG ?>live_editor/le_help_bg.png" onmouseover="this.src='<?php echo OP_IMG ?>live_editor/le_help_icon.png'" onmouseout="this.src='<?php echo OP_IMG ?>live_editor/le_help_bg.png'" alt="<?php _e('Help', 'optimizepress') ?>" class="tooltip animated pulse" title="<?php _e('Help', 'optimizepress') ?>" /></a></li>
<?php
//wp_enqueue_script(OP_SN.'-tooltipster', OP_JS.'tooltipster.min.js', array(OP_SN.'-noconflict-js'), OP_VERSION);
?>
<script src='<?php echo OP_JS ?>tooltipster.min.js'></script>
<script>
opjq(document).ready(function($) {
$('.tooltip').tooltipster({animation: 'grow'});
});
</script>
</ul>
</div> <!-- end .op-bsw-header -->