Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

Fix height calculations for Instagram responsive embeds #195

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Commits on Dec 9, 2016

  1. Add "height-adjust" to responive elements script

    Because from iframes, like Instagram embeds, have a non-responsive
    element (header + footer) as well as the responsive part (the image), it
    would be helpful to be able to specify the two separately. This adds an
    additional data-element (data-height-adjust) which can be specified on
    the .shortcake-bakery-responsive element. If this is set, that portion
    of the height will be considered "static" and will not be recalculated
    on resize.
    goldenapples committed Dec 9, 2016
    Configuration menu
    Copy the full SHA
    d12c833 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c8cb864 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2016

  1. Update height calculations to include height-adjust

    Try to match the padding from the wrapper div in the initial embed code,
    and use it to set the "ratio" on the shortcode. Leaves the "ratio"
    argument out if it's 100%.
    goldenapples committed Dec 10, 2016
    Configuration menu
    Copy the full SHA
    fdcd311 View commit details
    Browse the repository at this point in the history
  2. Update phpcs to ^2.6

    Satisfies minimum requirements for wp-coding-standards @Dev-Master.
    goldenapples committed Dec 10, 2016
    Configuration menu
    Copy the full SHA
    b0bb3aa View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c744cf5 View commit details
    Browse the repository at this point in the history
  4. Fix some phpcs issues preventing build from passing

    Mostly whitespace cleanup and the like...
    goldenapples committed Dec 10, 2016
    Configuration menu
    Copy the full SHA
    2e079ac View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2016

  1. Configuration menu
    Copy the full SHA
    2771a8b View commit details
    Browse the repository at this point in the history
  2. More phpcs fixes

    tfw phpcs has two conflicting rules applied to one line...
    goldenapples committed Dec 13, 2016
    Configuration menu
    Copy the full SHA
    14ce417 View commit details
    Browse the repository at this point in the history