2010-01-03, 12:24 PM
جرب وضع الكود مكان جملة "كود الأدسيسن هنا"
كود :
<!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" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_get_archives('type=yearly&format=link'); ?>
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
<?php if(is_singular()){ wp_enqueue_script('comment-reply');}?>
<?php wp_enqueue_script('jquery');?>
<?php wp_head(); ?>
<script type="text/javascript"><!--
var t_height,t_gap, container_height,content_height;
jQuery(document).ready(
function(){
//alert(jQuery("#container").height());
if(jQuery("#container").height()<583) jQuery("#container").height(583);
t_height=jQuery("#container").height()-82;
t_gap=Math.ceil(t_height/167)*167-t_height;
container_height=jQuery("#container").height()+t_gap;
jQuery("#container").height(container_height);
jQuery(window).resize();
});
jQuery(window).resize(
function(){
if(jQuery("body").width()%2 ==0){
if(jQuery.browser.safari || jQuery.browser.mozilla){
jQuery("body").css("margin-left","-1px");
}else if(jQuery.browser.opera){
jQuery("body").css("margin-left","1px");
}
}else{
jQuery("body").css("margin-left","0px");
};
});
--></script>
<style type="text/css">
#header {
<?php
$tmp=file_exists(dirname(__FILE__)."/images/bg_header_new.jpg")? "bg_header_new.jpg":"bg_header.jpg";
echo "background:url(".get_bloginfo('template_directory')."/images/{$tmp}) no-repeat top center;";
?>
}
</style>
<meta name="google-site-verification" content="DbYUmvRDmWwMAtBiDayvZpYFabCi5u4V6YDTM2ip808" />
</head>
<body>
<div id="base">
<div id="menu">
<ul><?php
$options = get_option('widget_pages');
$exclude = empty($options['exclude'] ) ? '' : $options['exclude'];
wp_list_pages('sort_column=menu_order&depth=1&title_li=&exclude='.$exclude);
?>
</ul>
</div>
<div id="header">
<?php if($tmp=="bg_header.jpg"){?>
<?php $tmp=(is_single() || is_page())? "div":"h1";?>
<<?php echo $tmp;?> id="blogtitle"><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a></<?php echo $tmp;?>>
<div id="subtitle"><?php bloginfo('description');?></div>
<?php }?>
<a href="<?php bloginfo('url'); ?>/" title="Home"><img src="<?php bloginfo('template_directory'); ?>/images/spacer.gif" alt="Home" class="home"/></a>
<div style="float:left;">كود الأدسينس هنا</div>
</div>
<div id="container_btm"><div id="container">