Skip to content
This repository has been archived by the owner on Mar 25, 2019. It is now read-only.

issue #798: Добавить target=_blank для ссылок на компании #802

Merged
merged 1 commit into from Nov 8, 2017

Conversation

ivnish
Copy link
Member

@ivnish ivnish commented Nov 8, 2017

'#markup' => l($node->website, $website, array('attributes' => array(
'rel' => 'nofollow',
'target' => '_blank',
))),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Просто для вашего знания: можно делать не #makup => l(), а

$node->content['website'] = array(
  '#theme'   => 'link',
  '#text'    => $node->website,
  '#path'    => $website,
  '#options' => array(
    'attributes' => array(
      'rel'    => 'nofollow',
      'target' => '_blank',
    ),
  ),
);

На мой взгляд, так симпатичнее. Но это просто на будущее.

@awd-studio awd-studio merged commit 493592a into DrupalRU:dev Nov 8, 2017
@ivnish
Copy link
Member Author

ivnish commented Nov 8, 2017

Согласен. Надо было запросить изменения, я бы переделал

@ivnish ivnish deleted the issue-798 branch November 9, 2017 05:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants