All Projects → humanmade → Smart Media

humanmade / Smart Media

Smart Media enhancements for WordPress

Projects that are alternatives of or similar to Smart Media

Object Sync For Salesforce
WordPress plugin that maps and syncs data between Salesforce objects and WordPress objects.
Stars: ✭ 48 (-14.29%)
Mutual labels:  wordpress
Wp Functions
A compilation of function snippets for WordPress developers who create their own themes.
Stars: ✭ 1,055 (+1783.93%)
Mutual labels:  wordpress
Caddy Script
🐳 Caddy installation script
Stars: ✭ 53 (-5.36%)
Mutual labels:  wordpress
User Feedback
Collect user feedback directly from your WordPress site
Stars: ✭ 49 (-12.5%)
Mutual labels:  wordpress
Generator Baukasten
Awesome!
Stars: ✭ 50 (-10.71%)
Mutual labels:  wordpress
Wordpress Cloud Media Offloader Plugin
A simple plugin that allows you to serve your WordPress Media Library files from the Backblaze B2 cloud storage service.
Stars: ✭ 52 (-7.14%)
Mutual labels:  wordpress
Woosidebars
Replace registered sidebars in your WordPress themes using different conditions such as a specific page, a category or even an individual blog post.
Stars: ✭ 47 (-16.07%)
Mutual labels:  wordpress
Generator Dhboilerplate
Boilerplate made by David Hellmann
Stars: ✭ 54 (-3.57%)
Mutual labels:  wordpress
Shapely
Free multipurpose WordPress theme built using Bootstrap
Stars: ✭ 50 (-10.71%)
Mutual labels:  wordpress
Framework
Assely is a PHP framework which brings a little joy to the WordPress development. Develop structured, easily scalable and complex WordPress websites and web applications with true pleasure.
Stars: ✭ 53 (-5.36%)
Mutual labels:  wordpress
Bitcoin Wordpress Plugin
GoUrl Official Bitcoin Payment Gateway for Wordpress 3.5+ (or higher). Sell Products, Files, Digital Downloads, Membership on your website. Accept Bitcoin, Litecoin, Dogecoin, Darkcoin, Reddcoin, etc Payments Online. Use Pay-Per-Download, Pay-Per-Product, Pay-Per-Membership, Pay-Per-Page/Video-Access on your website. It is Easy!
Stars: ✭ 49 (-12.5%)
Mutual labels:  wordpress
Wordpress Lightning Publisher
⚡️ Lightning Publisher for WordPress
Stars: ✭ 50 (-10.71%)
Mutual labels:  wordpress
Keyring
Keyring is an authentication framework for WordPress. It comes with definitions for a variety of HTTP Basic, OAuth1 and OAuth2 web services. Use it as a common foundation for working with other web services from within WordPress code.
Stars: ✭ 52 (-7.14%)
Mutual labels:  wordpress
Popper
Popper is an accessible content-first WordPress theme built around beautiful fonts and lots of white space.
Stars: ✭ 49 (-12.5%)
Mutual labels:  wordpress
Gravityblocks
Gravity Forms blocks for Gutenberg, the new WordPress editor
Stars: ✭ 54 (-3.57%)
Mutual labels:  wordpress
Preferred Languages
Choose languages for displaying WordPress in, in order of preference.
Stars: ✭ 48 (-14.29%)
Mutual labels:  wordpress
Images Via Imgix
imgix WordPress plugin
Stars: ✭ 51 (-8.93%)
Mutual labels:  wordpress
Lightning
Lightning is powerful them for WordPress.
Stars: ✭ 55 (-1.79%)
Mutual labels:  wordpress
Wl Bootstrap
Integrating Laravel into WordPress
Stars: ✭ 54 (-3.57%)
Mutual labels:  wordpress
Phpwpinfo
Provides an equivalent to the `phpinfo()` but with more WordPress requirements details.
Stars: ✭ 52 (-7.14%)
Mutual labels:  wordpress
Smart Media
Enhanced media library features for WordPress.
A Human Made project. Maintained by @roborourke.

Smarter media features for WordPress.

Some features in this plugin will work on their own however some are designed to augment the existing tools we use such as Tachyon.

Features

Justified media library

The media library shows square thumbnails by default which can make it harder to find the right image. This feature makes the thumbnails keep their original aspect ratio, similar to the UI of Flickr.

To disable the feature add the following:

<?php
add_filter( 'hm.smart-media.justified-library', '__return_false' );

Image editor

This feature overrides the built in WordPress image editing experience and gives you control over the crops of individual thumbs. There are also some UX improvements meaning there are fewer clicks required to make edits.

To disable the feature add the following:

<?php
add_filter( 'hm.smart-media.cropper', '__return_false' );

The image cropping UI provides support for updating Gutenberg block attributes based on the current selection using the following filters:

  • smartmedia.cropper.updateBlockAttributesOnSelect.<block name>
  • smartmedia.cropper.selectSizeFromBlockAttributes.<block name>

In the above filters <block name> should be replaced a dot separated version of your block name, for example core/image becomes core.image. The core image block attributes are mapped by default.

Mapping the selected image to block attributes:

addFilter(
  'smartmedia.cropper.updateBlockAttributesOnSelect.core.image',
  'smartmedia/cropper/update-block-on-select/core/image',
  /**
   * @param {?Object} attributes  The filtered block attributes. Return null to bypass updating.
   * @param {Object} image  The image data has the following shape:
   *   {
   *     name: <string>,  The image size name
   *     url: <string>,  The URL for the sized image
   *     width: <int>,  The width in pixels
   *     height: <int>,  The height in pixels
   *     label: <string>,  The human readable name for the image size, only present for user selectable sizes
   *     cropData: <?object>,  Null or object containing x, y, width and height properties
   *   }
   */
  ( attributes, image ) => {
    // Only user selectable image sizes have a label so return early if this is missing.
    if ( ! image.label ) {
      return attributes;
    }

    return {
      sizeSlug: image.size,
      url: image.url,
    };
  }
);

Update the cropping UI selected size based on selected block attributes:

addFilter(
  'smartmedia.cropper.selectSizeFromBlockAttributes.core.image',
  'smartmedia/cropper/select-size-from-block-attributes/core/image',
  /**
   * @param {?String} size  The image size slug.
   * @param {Object} block  The currently selected block.
   */
  ( size, block ) => {
    return size || block.attributes.sizeSlug || 'full';
  }
);

The function takes 2 parameters:

  • block: The name of the block to map attributes for
  • callback: A function that accepts the image size name, an image object containing url, width, height, crop data and label for the image size, and lastly the full attachment data object.

The callback should return an object or null. Passing null will prevent updating the currently selected block.

Roadmap

Planned features include:

  • Duplicate image detection and consolidation
  • EXIF data editor

Contributing

First of all thanks for using this plugin and thanks for contributing!

To get started check out the contributing documentation.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].