Skip to content

romanseidl/TextformatterImageLinkInterceptor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

TextformatterImageLinkInterceptor

Processwire Image Link Interceptor Module

@copyright 2015, Roman Seidl
based on HTML Image Interceptor Textformatter @copyright 2013, Martijn Geerts
Licensed under GNU/GPL v2, see LICENSE.TXT

This module simply adds a class to all links that contain images as the first child.

Thus the following:

  <a href="/">
    <img src="/site/assets/files/1/hansi.jpg" alt="Hansi">
  </a>

Should be filtered to be:

  <a class="imglink" href="/">
    <img src="/site/assets/files/1/hansi.jpg" alt="Hansi">
  </a>

About

Processwire Image Link Interceptor Module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published