Plugin Directory

Changeset 2647297


Ignore:
Timestamp:
12/21/2021 11:45:20 AM (4 years ago)
Author:
ainsleyclark
Message:

Updated readme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • squidge/trunk/readme.txt

    r2641409 r2647297  
    5757
    5858### Function
    59 ```php
     59`
    6060/**
    6161 * Returns a <picture> element with source media for the standard file passed
     
    7474 */
    7575function squidge_image($image_id, $class = '', $lazy = false)
    76 ```
     76`
    7777
    7878### Output
    79 ```html
     79`
    8080<picture class="picture">
    8181    <!-- Loads if AVIF is supported and the window is smaller than 400px wide -->
     
    8989    <img src="/sample-image.jpg" alt="Alt text" title="Sample JPG">
    9090</picture>
    91 ```
     91`
    9292
    9393== Frequently Asked Questions ==
Note: See TracChangeset for help on using the changeset viewer.