Code Monkey home page Code Monkey logo

envira-latest-videos's Introduction

Description

Display the most recent videos added to a envira gallery or album via shortcodes

Requirements

Envira Gallery The albums shortcode will only work if the Albums add-on is installed and activated

Usage

This plugin provides 2 shortcodes:

[elvs-gallery]

[elvs-album]

Parameters (Shortcode Attributes)

gallery_id/album_id

The envira gallery or album id. This is required. Default is an empty string.

[elvs-gallery gallery_id="214"]

num_posts

How many gallery items to display. Default: 6

[elvs-gallery gallery_id="214" num_posts="8"]

sort_order

Whether to sort the gallery items ascending or descending. The items are sorted by date. Default: DESC.

[elvs-gallery gallery_id="214" num_posts="8" sort_order="ASC"]

Changelog

[1.1.0] 2020-07-22

Added

  • Explicit width and height for iframe
  • Move lightbox html output to a function

Changed

  • Class name for gallery container is elvs
  • Iframe markup no longer has width and height defined. This is defined in the CSS

Fixed

  • Album data variable now references the right meta key for getting album data. Removed _eg_album_data variable.
  • Conditional statements testing for valid gallery or album ids now has the proper condition parameters
  • Elvs gallery shortcode now call the correct function

[1.1.1] 2020-07-22

Added

  • Constant for plugin version

Changed

  • Styles and Javascript now use the plugin version constant for the versioning

Fixed

  • The albums shortcode now skips deleted gallery items/attachment posts

envira-latest-videos's People

Contributors

cjwd avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.