Skip to content
adaptdkPublic
forked from Prophe1/wp-image

About

Responsive image output scripts for WordPress

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

49 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Image

This repository contains with image output scripts for WordPress.

Usage

Install package with composer, add repository to your composer.json:

"repositories": [
    {
      "type": "git",
      "url": "https://github.com/Prophe1/wp-image.git"
    }
],

Then:

"prophe1/wp-image": "VERSION.dev"

Usage:

{!! \Prophe1\Wp\Image\Render::output($image_id, $default_size = null, $media_sizes = [], $imageClass = null, $format) !!}

Parameter meaning

Parameter Type Meaning
$image_id integer Attachment post type ID
$default_size string Default image size, for example - thumbnail
$media_sizes array Array of sizes and media rules
array('thumbnail' => '(min-width: 551px)')
$imageClass string Class attribute for image tag

About

Responsive image output scripts for WordPress

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages