Advertisement
Guest User

SEO

a guest
Mar 29th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. @foreach($stylesheet as $node)
  2. @if($node->getAttribute('rel')=='canonical' && $node->getAttribute('href') >! 0)
  3. {!! $showErrorMessage = 1; !!}
  4. @else
  5. {{$node->getAttribute('href'), PHP_EOL}} <br />
  6. @endif
  7. @endforeach
  8.  
  9. @if($showErrorMessage == 1)
  10. {!! $showErrorMessage = 0; !!}
  11. <p class="red">Geen canonical url</p>
  12. @endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement