style="background-image: url('<?php print file_create_url($n['uri']); ?>')"
$n = $node->field_front_page_image[LANGUAGE_NONE][0];
$image_style = 'front_page_slider';
$classes = array('thumb');
$img = theme(
'image_style', array(
'style_name' => $image_style,
'path' => $n['uri'],
'alt' => $node->title,
'title' => $node->title,
'getsize' => TRUE,
'attributes' => array('class' => $classes)
)
);
Notice: Undefined index: und in include() (line 84 of path/sites/all/themes/invest/templates/nodes/node--front-page-slider.tpl.php).
$n = $node->field_front_page_image[LANGUAGE_NONE][0];
<?php print image_style_url('front_page_slider', $node->field_front_page_image['und'][0]['uri']); ?>
kpr($language);
пусто
$node->field_front_page_image[$language->language][0]['uri’]
:) я что то не так делаю?
Notice: Trying to get property of non-object in include() (line 85 of path/sites/all/themes/invest/templates/nodes/node--front-page-slider.tpl.php).
@codev0, и какой ответ ты ожидаешь услышать?
function invest_form_user_login_form_alter($form) {
$form['#action'] = url(current_path(), array('query' => drupal_get_destination(), 'external' => FALSE));
$form['#id'] = 'user-login-form';
$form['#validate'] = user_login_default_validators();
$form['#submit'][] = 'user_login_submit';
$form['name'] = array('#type' => 'textfield',
'#title' => t('Username'),
'#maxlength' => USERNAME_MAX_LENGTH,
'#size' => 15,
'#required' => TRUE,
);
$form['pass'] = array('#type' => 'password',
'#title' => t('Password'),
'#size' => 15,
'#required' => TRUE,
);
$form['actions'] = array('#type' => 'actions');
$form['actions']['submit'] = array('#type' => 'submit',
'#value' => t('Test'),
);
$items = array();
if (variable_get('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL)) {
$items[] = l(t('Create new account'), 'user/register', array('attributes' => array('title' => t('Create a new user account.'))));
}
$items[] = l(t('Request new password'), 'user/password', array('attributes' => array('title' => t('Request new password via e-mail.'))));
$form['links'] = array('#markup' => theme('item_list', array('items' => $items)));
return $form;
}
$form['#suffix'] = array('#markup' => theme('item_list', array('items' => $items)));
$form[‘actions']['#suffix’]
?
if (variable_get('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL)) {
$items[] = l(t('Create new account'), 'user/register', array('attributes' => array('title' => t('Create a new user account.'))));
}
$items[] = l(t('Request new password'), 'user/password', array('attributes' => array('title' => t('Request new password via e-mail.'))));
$links = array('#markup' => theme('item_list', array('items' => $items)));
$form['#suffix'] = render($links);