-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
69 lines (61 loc) · 2.39 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php wp_title(); ?> <?php bloginfo( 'name' ); ?></title>
<link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen" />
<style type="text/css">
<?php
global $q_config;
if(isset($q_config) && $q_config['language'] == "en"){ ?>
.page_item {
font-size: 40px !important;
margin-right: 32px !important;
}
<?php } else { ?>
.page_item {
font-size: 38px !important;
margin-right: 28px !important;
}
<?php }; ?>
</style>
<?php
function my_scripts_method() {
wp_register_script( 'mainJS', get_bloginfo('template_directory') . '/application.js', array('jquery'));
wp_enqueue_script( 'mainJS' );
//if (is_front_page()) :
wp_register_script( 'videoJS', get_bloginfo('template_directory') . '/video.js', array('jquery'));
wp_enqueue_script( 'videoJS' );
wp_register_script( 'video_gallery', get_bloginfo('template_directory') . '/video_gallery.js', array('jquery'));
wp_enqueue_script( 'video_gallery' );
//endif;
}
add_action('wp_enqueue_scripts', 'my_scripts_method');
?>
<?php wp_head(); ?>
</head>
<body id="index" class="home">
<div id="container">
<div id="header">
<a id="logo_anchor" href="<?php echo get_option('home'); global $q_config; if(isset($q_config) && $q_config['default_language'] != $q_config['language']){echo "/" . $q_config['language'];} ?>"><img id="logoimg" src="<?php bloginfo('template_directory'); ?>/images/VEGAlogo_top_picwhite.gif" border="0" alt="logo"></a>
<img id="unitedimg" src="<?php bloginfo('template_directory'); ?>/images/part_of_UNITED.png" border="0" alt="Part of UNITED">
</div>
<div class="menu_wrapper">
<?php wp_nav_menu(); ?>
<p class="intro">VEGA PICTURES / tv / film / doc / web / corporate
<?php
global $q_config;
if(isset($q_config)){
if(is_404()) $url = get_option('home'); else $url = '';
foreach(qtrans_getSortedLanguages() as $language) {
if($language != $q_config['language']){
echo '<a href="'.qtrans_convertURL($url, $language).'"';
echo ' class="qtrans_flag_'.$language.' qtrans_flag_and_text" title="'.$q_config['language_name'][$language].'"';
echo '></a>';
//echo '><span>'.$q_config['language_name'][$language].'</span></a>';
}
}
}
?>
</p>
</div>