This repository has been archived by the owner on Nov 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
84 lines (83 loc) · 4.05 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
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo mtx_default_direction()=='0' ? 'ltr': 'rtl'; ?>" lang="<?php echo str_replace('_', '-', osc_current_user_locale()); ?>">
<head>
<?php osc_current_web_theme_path('common/head.php') ; ?>
</head>
<body <?php mtx_body_class(); ?>>
<div id="header">
<!-- header ad 728x60-->
<div class="ads_header">
<?php echo osc_get_preference('header-728x90', 'matrix'); ?>
<!-- /header ad 728x60-->
</div>
<div class="clear"></div>
<div class="wrapper">
<div id="logo">
<?php echo logo_header(); ?>
<span id="description"><?php echo osc_page_description(); ?></span>
</div>
<ul class="nav">
<?php if( osc_is_static_page() || osc_is_contact_page() ){ ?>
<li class="search"><a class="ico-search icons" data-bclass-toggle="display-search"></a></li>
<li class="cat"><a class="ico-menu icons" data-bclass-toggle="display-cat"></a></li>
<?php } ?>
<?php if( osc_users_enabled() ) { ?>
<?php if( osc_is_web_user_logged_in() ) { ?>
<li class="first logged">
<span><?php echo sprintf(__('Hi %s', 'matrix'), osc_logged_user_name() . '!'); ?> ·</span>
<strong><a href="<?php echo osc_user_dashboard_url(); ?>"><?php _e('My account', 'matrix'); ?></a></strong> ·
<a href="<?php echo osc_user_logout_url(); ?>"><?php _e('Logout', 'matrix'); ?></a>
</li>
<?php } else { ?>
<li><a id="login_open" href="<?php echo osc_user_login_url(); ?>"><?php _e('Login', 'matrix') ; ?></a></li>
<?php if(osc_user_registration_enabled()) { ?>
<li><a href="<?php echo osc_register_account_url() ; ?>"><?php _e('Register for a free account', 'matrix'); ?></a></li>
<?php }; ?>
<?php } ?>
<?php } ?>
<?php if( osc_users_enabled() || ( !osc_users_enabled() && !osc_reg_user_post() )) { ?>
<li class="publish"><a href="<?php echo osc_item_post_url_in_category() ; ?>"><?php _e("Publish your ad for free", 'matrix');?></a></li>
<?php } ?>
</ul>
</div>
<?php if( osc_is_home_page() || osc_is_static_page() || osc_is_contact_page() ) { ?>
<form action="<?php echo osc_base_url(true); ?>" method="get" class="search nocsrf" <?php /* onsubmit="javascript:return doSearch();"*/ ?>>
<input type="hidden" name="page" value="search"/>
<div class="main-search">
<div class="cell">
<input type="text" name="sPattern" id="query" class="input-text" value="" placeholder="<?php echo osc_esc_html(__(osc_get_preference('keyword_placeholder', 'matrix'), 'matrix')); ?>" />
</div>
<?php if ( osc_count_categories() ) { ?>
<div class="cell selector">
<?php osc_categories_select('sCategory', null, __('Select a category', 'matrix')) ; ?>
</div>
<div class="cell reset-padding">
<?php } else { ?>
<div class="cell">
<?php } ?>
<button class="ui-button ui-button-big js-submit"><?php _e("Search", 'matrix');?></button>
</div>
</div>
<div id="message-seach"></div>
</form>
<?php } ?>
</div>
<?php osc_show_widgets('header'); ?>
<div class="wrapper wrapper-flash">
<?php
$breadcrumb = osc_breadcrumb('»', false, get_breadcrumb_lang());
if( $breadcrumb !== '') { ?>
<div class="breadcrumb">
<?php echo $breadcrumb; ?>
<div class="clear"></div>
</div>
<?php
}
?>
<?php osc_show_flash_message(); ?>
</div>
<?php osc_run_hook('before-content'); ?>
<div class="wrapper" id="content">
<?php osc_run_hook('before-main'); ?>
<div id="main">
<?php osc_run_hook('inside-main'); ?>