Вредоносный код в шаблоне темы??? Подскажите, кто разбирается...

123 4
L7
На сайте с 19.03.2013
Offline
1
4236

Здравствуйте, уважаемые форумчане!

Помогите, умоляю!

Антивирусник Титаниум не захотел открывать мой сайт, якобы в нем опасное по. Проверяла на всех возможных сервисах онлайн, вирусов нет. Написано только, что обнаружен подозрительный код, не являющийся вирусом. На одном из форумов задала вопрос что за код, никто не помог.

Вот сайт:

http://currentwomen.ru/

В Гугл и Яндекс проиндексирован, проверяла в Яндексе - вирусов нет. Сайт чистый. Но на вот этом самом бесполезном форуме написали, что код вшит в шаблон темы. А какой код и как его увидеть не знаю. Теперь вот волнуюсь. Может знающие люди сразу увидят код.

Помогите. Плииииииииззззз

SeVlad
На сайте с 03.11.2008
Offline
1609
#1
LISA7:
Антивирусник Титаниум не захотел открывать мой сайт, якобы в нем опасное по.

Полный текст сообщения в студию.

LISA7:
А какой код и как его увидеть не знаю. Теперь вот волнуюсь. Может знающие люди сразу увидят код.

И где же файлы темы (в которых искать)?

Делаю хорошие сайты хорошим людям. Предпочтение коммерческим направлениям. Связь со мной через http://wp.me/P3YHjQ-3.
IL
На сайте с 20.04.2007
Offline
435
#2
SeVlad:
И где же файлы темы (в которых искать)?

Ща.. экстрасенсы набегут, без кода скажут..

На самом деле, если "антивирусник" сообщает о вирусе, скорее всего и мы его сможем увидеть.

LISA7:
Антивирусник Титаниум не захотел открывать мой сайт, якобы в нем опасное по

А он не подсказывает, где это якобы ПО лежит? Или, быть может, есть смысл обратной связью с разработчиками антивируса воспользоваться?

... :) Облачные серверы от RegRu - промокод 3F85-3D10-806D-7224 ( http://levik.info/regru )
K5
На сайте с 21.07.2010
Offline
209
#3

1. покажите картинку на что ругается ваш антивирус.

2. у вас идет обращение к этому сайту http://dtmvdvtzf8rz0.cloudfront.net/ , он вам знаком?

3. и поправьте код немного:

<link rel="shortcut
<link rel="icon" href="http://wp.ru/wp-content/uploads/2013/02/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="http://wp.ru/wp-content/uploads/2013/02/favicon.ico" type="image/x-icon"
</head>
<body class="home blog custom-background">

тег link rel="shortcut icon" не закрыт...

аська 45два48499два записки на работе (http://memoryhigh.ru) помогу с сайтом, удалю вирусы, настрою впс -> отзывы ТУТ (/ru/forum/836248) и ТАМ (http://www.maultalk.com/topic140187.html) !!!всегда проверяйте данные людей, которые сами пишут вам в аську или скайп!!!
SeVlad
На сайте с 03.11.2008
Offline
1609
#4
ivan-lev:
На самом деле, если "антивирусник" сообщает о вирусе, скорее всего и мы его сможем увидеть.

Тут зайти на "обычный" сайт желание редко возникает, а уж шастать по заведомо вирусным.. :) Хотя я ща и на линухе, но безопасность превыше всего.

Будут файлы - можно и посмотреть.

kgtu5:
тег link rel="shortcut icon" не закрыт...

и адреса иконок...

На вирусный сайт не ходил, но сдаётся мне тема взята на помойке.

LISA7, для понимания.

6666
На сайте с 10.01.2005
Offline
505
#5
SeVlad:
Тут зайти на "обычный" сайт желание редко возникает

+100050000, ТС, читайте прилепленную тему про вирусы.

Каждое мое сообщение проверила и одобрила Елена Летучая. (c) Для меня очень важно все что Вы говорите! (http://surrealism.ru/123.mp3) .
T
На сайте с 19.03.2013
Offline
1
#6

LISA7, ну поиск по содержанию в файлах темы делали?

L7
На сайте с 19.03.2013
Offline
1
#7

Отвечаю по порядку.

SeVlad, Titanium написал, что этот сайт может распространять вредоносное по, или быть вовлечен в подлог и мошенничество.

Так вот я же и не знаю в каком из файлов искать. Какой файл скопировать? Может исходный код страницы?

---------- Добавлено 21.03.2013 в 18:49 ----------

kgtu5, а откуда это обращение к сайту? не знаком такой сайт. А где поправить код? Простите за тупость(((

Вот такое сообщение антивируса:

Trend Micro подтверждает, что данный веб-сайт может передавать вредоносное программное обеспечение или быть вовлеченным в сетевое мошенничество или подлог.

Закрыть это окно

Открыть эту страницу вопреки риску?

Открыть заблокированную страницу

Попросите Trend Micro пересмотреть степень риска (если уверены, что веб-сайт безопасен).

Больше не блокировать (добавить его в список разрешенных сайтов)

---------- Добавлено 21.03.2013 в 18:52 ----------

SeVlad, а что начит тема взята на помоке???

кстати, ссылку, которую вы выложили для понимания Титаниум тоже запретил к открытию в браузере)). Это о чем - нибудь вам скажет?

Тема Libero для Wordpress. Какие файлы нужны? вот, выкладываю, если нужно другие - напишите.

---------- Добавлено 21.03.2013 в 18:56 ----------

functions.php

<?php

require TEMPLATEPATH . '/lib/shortcodes/shortcodes.php';

require TEMPLATEPATH . '/lib/features.php';

if ( function_exists('register_sidebar') ) {

register_sidebar(array(

'name' => 'Left Sidebar',

'before_widget' => '<li id="%1$s" class="widget %2$s">',

'after_widget' => '</li>',

'before_title' => '<h2 class="widgettitle">',

'after_title' => '</h2>',

));

register_sidebar(

array(

'name' => 'Right Sidebar',

'before_widget' => '<li id="%1$s" class="widget %2$s">',

'after_widget' => '</li>',

'before_title' => '<h2 class="widgettitle">',

'after_title' => '</h2>',

));

}

$themename = "Libera";

$shortname = str_replace(' ', '_', strtolower($themename));

function get_theme_option($option)

{

global $shortname;

return stripslashes(get_option($shortname . '_' . $option));

}

function get_theme_settings($option)

{

return stripslashes(get_option($option));

}

function cats_to_select()

{

$categories = get_categories('hide_empty=0');

$categories_array[] = array('value'=>'0', 'title'=>'Select');

foreach ($categories as $cat) {

if($cat->category_count == '0') {

$posts_title = 'No posts!';

} elseif($cat->category_count == '1') {

$posts_title = '1 post';

} else {

$posts_title = $cat->category_count . ' posts';

}

$categories_array[] = array('value'=> $cat->cat_ID, 'title'=> $cat->cat_name . ' ( ' . $posts_title . ' )');

}

return $categories_array;

}

$options = array (

array( "type" => "open"),

array( "name" => "Contact Form Email",

"desc" => "The messages submitted from the contact form will be sent to this email address.",

"id" => $shortname."_contact_form_email",

"std" => get_option('admin_email'),

"type" => "text"),

array( "name" => "Logo Image",

"desc" => "Enter the logo image full path. Leave it blank if you don't want to use logo image.",

"id" => $shortname."_logo",

"std" => get_bloginfo('template_url') . "/images/logo.png",

"type" => "text"),

array( "name" => "Featured Posts Enabled?",

"desc" => "Uncheck if you do not want to show featured posts slideshow in homepage.",

"id" => $shortname."_featured_posts",

"std" => "true",

"type" => "checkbox"),

array( "name" => "Featured Posts Category",

"desc" => "Last 5 posts form the selected categoey will be listed as featured at homepage. <br />The selected category should contain at last 2 posts with images. <br /> <br /> <b>How to add images to your featured posts slideshow?</b> <br />

<b>&raquo;</b> If you are using WordPress version 2.9 and above: Just set \"Post Thumbnail\" when adding new post for the posts in selected category above. <br />

<b>&raquo;</b> If you are using WordPress version under 2.9 you have to add custom fields in each post on the category you set as featured category. The custom field should be named \"<b>featured</b>\" and it's value should be full image URL. <a href=\"http://newwpthemes.com/public/featured_custom_field.jpg\" target=\"_blank\">Click here</a> for a screenshot. <br /> <br />

In both situation, the image sizes should be: Width: <b>520 px</b>. Height: <b>300 px.</b>",

"id" => $shortname."_featured_posts_category",

"options" => cats_to_select(),

"std" => "0",

"type" => "select"),

array( "name" => "Header Banner (468x60 px)",

"desc" => "Header banner code. You may use any html code here, including your 468x60 px Adsense code.",

"id" => $shortname."_ad_header",

"type" => "textarea",

"std" => ''

), array( "name" => "Sidebar 125x125 px Ads",

"desc" => "Add your 125x125 px ads here. You can add unlimited ads. Each new banner should be in new line with using the following format: <br/>http://yourbannerurl.com/banner.gif, http://theurl.com/to_link.html",

"id" => $shortname."_ads_125",

"type" => "textarea",

"std" => 'http://newwpthemes.com/uploads/newwp/newwp12.png,http://newwpthemes.com/

http://flexithemes.com/wp-content/partners/fta.gif, http://flexithemes.com/?partner=19'

),

array( "name" => "Twitter",

"desc" => "Enter your twitter account url here.",

"id" => $shortname."_twitter",

"std" => "http://twitter.com/WPTwits",

"type" => "text"),

array( "name" => "Twitter Text",

"desc" => "",

"id" => $shortname."_twittertext",

"std" => "Follow me!",

"type" => "text"),

array( "name" => "Sidebar 1 Bottom Banner",

"desc" => "Sidebar 1 Bottom Banner code.",

"id" => $shortname."_ad_sidebar1_bottom",

"type" => "textarea",

"std" => ''

), array( "name" => "Sidebar 2 Bottom Banner",

"desc" => "Sidebar 2 Bottom Banner code.",

"id" => $shortname."_ad_sidebar2_bottom",

"type" => "textarea",

"std" => ''

), array( "name" => "Head Scrip(s)",

"desc" => "The content of this box will be added immediately before &lt;/head&gt; tag. Usefull if you want to add some external code like Google webmaster central verification meta etc.",

"id" => $shortname."_head",

"type" => "textarea"

),

array( "name" => "Footer Scrip(s)",

"desc" => "The content of this box will be added immediately before &lt;/body&gt; tag. Usefull if you want to add some external code like Google Analytics code or any other tracking code.",

"id" => $shortname."_footer",

"type" => "textarea"

),

array( "type" => "close")

);

function mytheme_add_admin() {

global $themename, $shortname, $options;

if ( $_GET['page'] == basename(__FILE__) ) {

if ( 'save' == $_REQUEST['action'] ) {

foreach ($options as $value) {

update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }

foreach ($options as $value) {

if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } }

echo '<meta http-equiv="refresh" content="0;url=themes.php?page=functions.php&saved=true">';

die;

}

}

add_theme_page($themename . " Theme Options", "".$themename . " Theme Options", 'edit_themes', basename(__FILE__), 'mytheme_admin');

}

function mytheme_admin_init() {

global $themename, $shortname, $options;

$get_theme_options = get_option($shortname . '_options');

if($get_theme_options != 'yes') {

$new_options = $options;

foreach ($new_options as $new_value) {

update_option( $new_value['id'], $new_value['std'] );

}

update_option($shortname . '_options', 'yes');

}

}

L7
На сайте с 19.03.2013
Offline
1
#8

Продолжение:

if(!function_exists('get_sidebars')) {

function get_sidebars($args='')

{

get_sidebar($args);

}

}

function mytheme_admin() {

global $themename, $shortname, $options;

if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings saved.</strong></p></div>';

?>

<div class="wrap">

<h2><?php echo $themename; ?> Theme Options | </h2>

<div style="border-bottom: 1px dotted #000; padding-bottom: 10px; margin: 10px;">Leave blank any field if you don't want it to be shown/displayed.</div>

<?php $buy_theme_name = str_replace(' ', '-', strtolower(trim($themename))); ?>

<form method="post">

<?php foreach ($options as $value) {

switch ( $value['type'] ) {

case "open":

?>

<table width="100%" border="0" style=" padding:10px;">

<?php break;

case "close":

?>

</table><br />

<?php break;

case "title":

?>

<table width="100%" border="0" style="padding:5px 10px;"><tr>

<td colspan="2"><h3 style="font-family:Georgia,'Times New Roman',Times,serif;"><?php echo $value['name']; ?></h3></td>

</tr>

<?php break;

case 'text':

?>

<tr>

<td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>

<td width="80%"><input style="width:100%;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php echo get_theme_settings( $value['id'] ); ?>" /></td>

</tr>

<tr>

<td><small><?php echo $value['desc']; ?></small></td>

</tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>

<?php

break;

case 'textarea':

?>

<tr>

<td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>

<td width="80%"><textarea name="<?php echo $value['id']; ?>" style="width:100%; height:140px;" type="<?php echo $value['type']; ?>" cols="" rows=""><?php echo get_theme_settings( $value['id'] ); ?></textarea></td>

</tr>

<tr>

<td><small><?php echo $value['desc']; ?></small></td>

</tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>

<?php

break;

case 'select':

?>

<tr>

<td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>

<td width="80%">

<select style="width:240px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">

<?php

foreach ($value['options'] as $option) { ?>

<option value="<?php echo $option['value']; ?>" <?php if ( get_theme_settings( $value['id'] ) == $option['value']) { echo ' selected="selected"'; } ?>><?php echo $option['title']; ?></option>

<?php } ?>

</select>

</td>

</tr>

<tr>

<td><small><?php echo $value['desc']; ?></small></td>

</tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>

<?php

break;

case "checkbox":

?>

<tr>

<td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>

<td width="80%"><?php if(get_theme_settings($value['id'])){ $checked = "checked=\"checked\""; }else{ $checked = ""; } ?>

<input type="checkbox" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />

</td>

</tr>

<tr>

<td><small><?php echo $value['desc']; ?></small></td>

</tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>

<?php break;

}

}

?>

<!--</table>-->

<p class="submit">

<input name="save" type="submit" value="Save changes" />

<input type="hidden" name="action" value="save" />

</p>

</form>

<?php

}

mytheme_admin_init();

global $pagenow;

if(isset($_GET['activated'] ) && $pagenow == "themes.php") {

wp_redirect( admin_url('themes.php?page=functions.php') );

exit();

}

add_action('admin_menu', 'mytheme_add_admin');

function sidebar_ads_125()

{

global $shortname;

$option_name = $shortname."_ads_125";

$option = get_option($option_name);

$values = explode("\n", $option);

if(is_array($values)) {

foreach ($values as $item) {

$ad = explode(',', $item);

$banner = trim($ad['0']);

$url = trim($ad['1']);

if(!empty($banner) && !empty($url)) {

echo "<a href=\"$url\" target=\"_new\"><img class=\"ad125\" src=\"$banner\" /></a> \n";

}

}

}

}

if ( function_exists("add_theme_support") ) { add_theme_support("post-thumbnails"); }

if(function_exists('add_custom_background')) {

add_custom_background();

}

if ( function_exists( 'register_nav_menus' ) ) {

register_nav_menus(

array(

'menu_1' => 'Menu 1',

'menu_2' => 'Menu 2'

)

);

}

?>

---------- Добавлено 21.03.2013 в 18:57 ----------

footer

<div class="span-24">

<div id="footer">Copyright &copy; <a href="<?php bloginfo('home'); ?>"><strong><?php bloginfo('name'); ?></strong></a> - <?php bloginfo('description'); ?></div>

<div id="credits">Powered by </div>

</div>

</div>

</div>

<?php

wp_footer();

echo get_theme_option("footer") . "\n";

?>

<!--LiveInternet counter--><script type="text/javascript"><!--

document.write("<a href='http://www.liveinternet.ru/click' "+

"target=_blank><img src='//counter.yadro.ru/hit?t16.15;r"+

escape(document.referrer)+((typeof(screen)=="undefined")?"":

";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?

screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+

";"+Math.random()+

"' alt='' title='LiveInternet: показано число просмотров за 24"+

" часа, посетителей за 24 часа и за сегодня' "+

"border='0' width='88' height='31'><\/a>")

//--></script><!--/LiveInternet-->

<!-- Rating@Mail.ru counter -->

<script type="text/javascript">//<![CDATA[ (function(w,n,d,r,s){d.write('<p><a href="http://top.mail.ru/jump?from=2319662">'+

'<img src="http://d5.c6.b3.a2.top.mail.ru/counter?id=2319662;t=210;js=13'+

((r=d.referrer)?';r='+escape(r):'')+((s=w.screen)?';s='+s.width+'*'+s.height:'')+';_='+Math.random()+

'" style="border:0;" height="31" width="88" alt="Рейтинг@Mail.ru" /><\/a><\/p>');})(window,navigator,document);//]]>

</script><noscript><p><a href="http://top.mail.ru/jump?from=2319662">

<img src="http://d5.c6.b3.a2.top.mail.ru/counter?id=2319662;t=210;js=na"

style="border:0;" height="31" width="88" alt="Рейтинг@Mail.ru" /></a></p></noscript>

<!-- //Rating@Mail.ru counter -->

<!-- Yandex.Metrika counter -->

<script type="text/javascript">

(function (d, w, c) {

(w[c] = w[c] || []).push(function() {

try {

w.yaCounter20470162 = new Ya.Metrika({id:20470162,

clickmap:true,

trackLinks:true,

accurateTrackBounce:true});

} catch(e) { }

});

var n = d.getElementsByTagName("script")[0],

s = d.createElement("script"),

f = function () { n.parentNode.insertBefore(s, n); };

s.type = "text/javascript";

s.async = true;

s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";

if (w.opera == "[object Opera]") {

d.addEventListener("DOMContentLoaded", f, false);

} else { f(); }

})(document, window, "yandex_metrika_callbacks");

</script>

<noscript><div><img src="//mc.yandex.ru/watch/20470162" style="position:absolute; left:-9999px;" alt="" /></div></noscript>

<!-- /Yandex.Metrika counter -->

<!-- begin of Top100 code -->

<script id="top100Counter" type="text/javascript" src="http://counter.rambler.ru/top100.jcn?2866440"></script>

<noscript>

<a href="http://top100.rambler.ru/navi/2866440/">

<img src="http://counter.rambler.ru/top100.cnt?2866440" alt="Rambler's Top100" border="0" />

</a>

</noscript>

L7
На сайте с 19.03.2013
Offline
1
#9

features.php

<?php

add_theme_support( 'woocommerce' );

wp_enqueue_script( 'mobilemenu', get_template_directory_uri() . '/lib/js/jquery.mobilemenu.js', array('jquery') );

add_action('wp_footer', 'themater_menu_js');

function themater_menu_js()

{

$return .= "<script type='text/javascript'>\n";

$return .= '/* <![CDATA[ */' . "\n";

$return .= "if (jQuery('#pagemenucontainer').length > 0) {

jQuery('#pagemenucontainer').mobileMenu({

defaultText: 'Menu',

className: 'menu-primary-responsive',

containerClass: 'menu-primary-responsive-container',

subMenuDash: '&ndash;'

});

} else if (jQuery('#pagemenu').length > 0) {

jQuery('#pagemenu').mobileMenu({

defaultText: 'Menu',

className: 'menu-primary-responsive',

containerClass: 'menu-primary-responsive-container',

subMenuDash: '&ndash;'

});

} \n";

$return .= "if (jQuery('#navcontainer').length > 0) {

jQuery('#navcontainer').mobileMenu({

defaultText: 'Navigation',

className: 'menu-secondary-responsive',

containerClass: 'menu-secondary-responsive-container',

subMenuDash: '&ndash;'

});

} else if (jQuery('#nav').length > 0) {

jQuery('#nav').mobileMenu({

defaultText: 'Navigation',

className: 'menu-secondary-responsive',

containerClass: 'menu-secondary-responsive-container',

subMenuDash: '&ndash;'

});

} else if (jQuery('.navcontainer').length > 0) {

jQuery('.navcontainer').mobileMenu({

defaultText: 'Navigation',

className: 'menu-secondary-responsive',

containerClass: 'menu-secondary-responsive-container',

subMenuDash: '&ndash;'

});

} \n";

$return .= "

themater_widow = jQuery(window).width();

function themater_content_first(){

get_parrent = jQuery('#content').parent();

jQuery('.sidebar-left').parent().insertAfter(get_parrent);

}

function themater_sidebar_first(){

get_parrent = jQuery('#content').parent();

jQuery('.sidebar-left').parent().insertBefore(get_parrent);

}

if ( themater_widow < 769) {

themater_content_first();

}

jQuery(window).resize(function() {

themater_widow_resized = jQuery(window).width();

if ( themater_widow_resized < 769) {

themater_content_first();

} else {

themater_sidebar_first()

}

});

\n";

$return .= '/* ]]> */' . "\n";

$return .= '</script>' . "\n";

---------- Добавлено 21.03.2013 в 18:59 ----------

Какие еще нуны?

Помогите пожалуйста, а то я боюсь сама шаблон поломать совсем.

---------- Добавлено 21.03.2013 в 19:01 ----------

header

<!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'); ?>" />

<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' |'; } ?> <?php bloginfo('name'); ?></title>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/screen.css" type="text/css" media="screen, projection" />

<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/print.css" type="text/css" media="print" />

<!--[if IE]><link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/ie.css" type="text/css" media="screen, projection"><![endif]-->

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

<?php if(get_theme_option('featured_posts') != '' && is_home()) {

?>

<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/jdgallery/jd.gallery.css" type="text/css" media="screen" charset="utf-8" />

<script src="<?php bloginfo('template_directory'); ?>/jdgallery/mootools-1.2.5-core-yc.js" type="text/javascript"></script>

<script src="<?php bloginfo('template_directory'); ?>/jdgallery/mootools-1.2-more.js" type="text/javascript"></script>

<script src="<?php bloginfo('template_directory'); ?>/jdgallery/jd.gallery.js" type="text/javascript"></script>

<script src="<?php bloginfo('template_directory'); ?>/jdgallery/jd.gallery.transitions.js" type="text/javascript"></script>

<?php } ?>

<!--[if IE 6]>

<script src="<?php bloginfo('template_url'); ?>/js/pngfix.js"></script>

<![endif]-->

<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />

<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<script src="<?php bloginfo('template_directory'); ?>/menu/mootools-1.2.5-core-yc.js" type="text/javascript"></script>

<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/menu/MenuMatic.css" type="text/css" media="screen" charset="utf-8" />

<!--[if lt IE 7]>

<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/menu/MenuMatic-ie6.css" type="text/css" media="screen" charset="utf-8" />

<![endif]-->

<!-- Load the MenuMatic Class -->

<script src="<?php bloginfo('template_directory'); ?>/menu/MenuMatic_0.68.3.js" type="text/javascript" charset="utf-8"></script>

<?php echo get_theme_option("head") . "\n"; wp_head(); ?>

</head>

<body <?php body_class(); ?>>

<script type="text/javascript">

window.addEvent('domready', function() {

var myMenu = new MenuMatic();

});

</script>

<div id="wrapper">

<div id="container" class="container">

<div class="span-24">

<div class="span-22">

<div id="pagemenucontainer">

<?php

if(function_exists('wp_nav_menu')) {

wp_nav_menu( 'depth=1&theme_location=menu_1&menu_id=pagemenu&container=&fallback_cb=menu_1_default');

} else {

menu_1_default();

}

function menu_1_default()

{

?>

<ul id="pagemenu">

<li <?php if(is_home()) { ?> class="current_page_item" <?php } ?>><a href="<?php echo get_option('home'); ?>/">Home</a></li>

<?php wp_list_pages('depth=1&sort_column=menu_order&title_li=' ); ?>

</ul>

<?php

}

?>

</div>

</div>

<div class="span-2 last">

<div class="feedtwitter">

<a href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/rss.png" style="margin:0 4px 0 0;" /></a>

<?php if(get_theme_option('twitter') != '') { ?><a href="<?php echo get_theme_option('twitter'); ?>" title="<?php echo get_theme_option('twittertext'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/twitter.png" style="margin:0 4px 0 0; " title="<?php echo get_theme_option('twittertext'); ?>" /></a><?php } ?>

</div>

</div>

</div>

<div id="header" class="span-24">

<div class="span-12">

<?php

$get_logo_image = get_theme_option('logo');

if($get_logo_image != '') {

?>

<a href="<?php bloginfo('url'); ?>"><img src="<?php echo $get_logo_image; ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>" class="logoimg" /></a>

<?php

} else {

?>

<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>

<h2><?php bloginfo('description'); ?></h2>

<?php

}

?>

</div>

<div class="span-12 last" style="padding-top: 32px; text-align:right;">

<?php echo get_theme_option('ad_header'); ?>

</div>

</div>

<div class="span-24">

<div id="navcontainer">

<?php

if(function_exists('wp_nav_menu')) {

wp_nav_menu( 'theme_location=menu_2&menu_id=nav&container=&fallback_cb=menu_2_default');

} else {

menu_2_default();

}

function menu_2_default()

{

?>

<ul id="nav">

<li <?php if(is_home()) { echo ' class="current-cat" '; } ?>><a href="<?php bloginfo('url'); ?>">Home</a></li>

<?php wp_list_categories('depth=3&exclude=1&hide_empty=0&orderby=name&show_count=0&use_desc_for_title=1&title_li='); ?>

</ul>

<?php

}

?>

</div>

</div>

L7
На сайте с 19.03.2013
Offline
1
#10

И прошу ва, уважаемые мужчины, не судите меня строго. это мой первый сайт.

123 4

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий