у меня такая проблема появилось при создания блока, как можно исправить ?

Главные вкладки

Аватар пользователя Maxam Maxam 29 мая 2014 в 19:43

Notice: Undefined variable: is_front в функции eval() (строка 5 в файле Z:\home\mineconomy.copy\www\modules\php\php.module(80) : eval()'d code).

у меня такая проблема появилось при создания блока, как можно исправить ?

/style.css" rel="stylesheet" type="text/css" />
/misc/jquery.js">
<?php if($is_front): ?>
<?php if(!$user->uid) print $scripts; ?>
/js/jquery.jfeed.pack.js">

/* language.'&'.date('dmH', time()); ?>',
success: function(feed){
var html = '';
for(var i = 0; i < feed.items.length && i < 3; i++) {
var item = feed.items[i];
html += '

'
+ item.title
+ '

';
html += '

'
+ item.description
+ '

';
html += '

'
+ '<?php print t('Read more');?> »
<?php print t('Published')?>: '
+ item.updated
+ '

';
}
jQuery('#uza-news').text('').append(html);
}
});
jQuery('.news-item').each(function(){
var $img = jQuery('img', this).remove().clone();
$img.css({'float':'left','margin-right':'10px','height':'50px','width':'50px'});
jQuery('p:last', this).prepend($img);
});
});
/* ]]> */

<?php endif; ?>

И это тот код ,который я хотел брать новости из другово сайта . Спасибо заранее

Комментарии

Аватар пользователя Maxam Maxam 29 мая 2014 в 19:45

/style.css" rel="stylesheet" type="text/css" />
/misc/jquery.js">
<?php if($is_front): ?>
<?php if(!$user->uid) print $scripts; ?>
/js/jquery.jfeed.pack.js">

/* language.'&'.date('dmH', time()); ?>',
success: function(feed){
var html = '';
for(var i = 0; i < feed.items.length && i < 3; i++) {
var item = feed.items[i];
html += '

'
+ item.title
+ '

';
html += '

'
+ item.description
+ '

';
html += '

'
+ '<?php print t('Read more');?> »
<?php print t('Published')?>: '
+ item.updated
+ '

';
}
jQuery('#uza-news').text('').append(html);
}
});
jQuery('.news-item').each(function(){
var $img = jQuery('img', this).remove().clone();
$img.css({'float':'left','margin-right':'10px','height':'50px','width':'50px'});
jQuery('p:last', this).prepend($img);
});
});
/* ]]> */

<?php endif; ?>