mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-23 02:51:06 +01:00
120 lines
3.5 KiB
PHP
120 lines
3.5 KiB
PHP
<?php global $SMTheme;
|
|
if (preg_match('/mobi/i', $_SERVER['HTTP_USER_AGENT'])) echo '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">'."\r\n";
|
|
else echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-transitional.dtd">'."\r\n";
|
|
?>
|
|
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
|
|
<head profile="http://gmpg.org/xfn/11">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
<?php
|
|
$SMTheme->show_title();
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
if(
|
|
(is_archive()&&is_day()&&$SMTheme->get( 'seo', 'day' ))||
|
|
(is_archive()&&is_month()&&$SMTheme->get( 'seo', 'month' ))||
|
|
(is_archive()&&is_year()&&$SMTheme->get( 'seo', 'year' ))||
|
|
(is_category()&&$SMTheme->get( 'seo', 'category' ))||
|
|
(is_tag()&&$SMTheme->get( 'seo', 'tag' ))||
|
|
(is_author()&&$SMTheme->get( 'seo', 'author' ))||
|
|
(is_search()&&$SMTheme->get( 'seo', 'search' ))
|
|
) {
|
|
?><meta name="robots" content="noindex" /><?php
|
|
}
|
|
|
|
?>
|
|
|
|
<?php if ( is_singular() ) { wp_enqueue_script( 'comment-reply' ); } ?>
|
|
|
|
<?php wp_head(); ?>
|
|
|
|
<style type="text/css">
|
|
<?php echo $SMTheme->get( 'integration','css' )?>
|
|
</style>
|
|
<?php
|
|
echo $SMTheme->get( 'integration','headcode' );
|
|
?>
|
|
<script type="text/javascript">
|
|
jQuery(document).ready(function() {
|
|
|
|
<?php
|
|
$SMTheme->block_slider_config();
|
|
?>
|
|
jQuery(".menus .children").addClass('sub-menu');
|
|
|
|
<?php
|
|
$SMTheme->block_menu_config("menus");
|
|
?>
|
|
jQuery('textarea[name="comment"]').each(function(){
|
|
jQuery(this).attr('name','<?php echo $_SESSION['commentinput']; ?>');
|
|
});
|
|
jQuery('.feedback input').each(function(){
|
|
jQuery(this).attr('name','<?php echo $_SESSION['commentinput']; ?>['+jQuery(this).attr('name')+']');
|
|
});
|
|
jQuery('.feedback textarea').each(function(){
|
|
jQuery(this).attr('name','<?php echo $_SESSION['commentinput']; ?>['+jQuery(this).attr('name')+']');
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
<body <?php
|
|
$class=$SMTheme->block_slider_css();
|
|
$class.=' '.$SMTheme->sidebars_type;
|
|
body_class( $class );
|
|
?> layout='<?php echo $SMTheme->layout; ?>'>
|
|
<div id='scrollUp'><img src='<?php echo get_template_directory_uri().'/images/smt/arrow-up.png';?>' alt='Up' title='Scroll window up' /></div>
|
|
<div id='header'>
|
|
<div class='container clearfix'>
|
|
|
|
|
|
<div id='secondarymenu-container'>
|
|
<div id="logo">
|
|
<?php $SMTheme->block_logo();?>
|
|
</div>
|
|
|
|
<div class="menusearch" title="">
|
|
<?php get_search_form(); ?>
|
|
</div>
|
|
|
|
<div id='menu-box'>
|
|
<div id='secondarymenu'>
|
|
<?php wp_nav_menu('depth=0&theme_location=sec-menu&container_class=menu-topmenu-container&menu_class=menus menu-topmenu&fallback_cb=block_sec_menu'); ?>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<?php smt_mobile_menu('sec-menu'); ?>
|
|
<?php smt_mobile_menu('main-menu'); ?>
|
|
|
|
<div id='mainmenu-container'>
|
|
<div id='mainmenu'>
|
|
<?php $nav_menu_params=array(
|
|
'depth'=>0,
|
|
'theme_location'=>'main-menu',
|
|
'menu_class'=>'menus menu-primary',
|
|
'fallback_cb'=>'block_main_menu'
|
|
);
|
|
wp_nav_menu($nav_menu_params); ?>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
if ((is_front_page()&&$SMTheme->get( 'slider', 'homepage'))||(!is_front_page()&&$SMTheme->get( 'slider', 'innerpage'))) {?>
|
|
<div class='slider-container'>
|
|
<?php $SMTheme->block_slider(); ?>
|
|
</div><?php
|
|
}?>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div id='content-top' class='container'></div>
|
|
<div id='content'>
|
|
<div class='container clearfix'>
|
|
|