Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.
/ WordPress-Link Public archive
forked from onvardgmbh/wp-link
Notifications You must be signed in to change notification settings

Shopnative/WordPress-Link

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WpLink

Build Status

Detect if a link is internal to enable easily setting target="_blank" for external links.

Usage

Require the library with composer and use it in your blades like this:

<a href="{{ $uri }}" {!! \Onvardgmbh\WpLink::target($uri) !!}>Foo</a>

Run Tests

To run the tests, run composer run-script test or composer run-script test:dox in the project root directory.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Languages

  • PHP 100.0%