Overview
  • Namespace
  • Class

Namespaces

  • MatthiasWeb
    • RealMediaLibrary
      • api
      • attachment
      • base
      • comp
        • complexquery
      • folder
      • general
      • metadata
      • order
      • rest
      • usersettings
  • None

Classes

  • Activator
  • Assets
  • Core
  • FolderShortcode
  • Lang
  • Migration
  • Options
  • QueryCount
  • Util
  • View

Exceptions

  • FolderAlreadyExistsException

Class Assets

Asset management for frontend scripts and styles.

MatthiasWeb\RealMediaLibrary\base\Base
Extended by MatthiasWeb\RealMediaLibrary\base\Assets
Extended by MatthiasWeb\RealMediaLibrary\general\Assets
Namespace: MatthiasWeb\RealMediaLibrary\general
Located at general/Assets.class.php

Methods summary

public
# enqueue_scripts_and_styles( string $type )

Enqueue scripts and styles depending on the type. This function is called from both admin_enqueue_scripts and wp_enqueue_scripts. You can check the type through the $type parameter. In this function you can include your external libraries from public/lib, too.

Enqueue scripts and styles depending on the type. This function is called from both admin_enqueue_scripts and wp_enqueue_scripts. You can check the type through the $type parameter. In this function you can include your external libraries from public/lib, too.

Parameters

$type
The type (see base\Assets constants)
public
# adminLocalizeScript( )

Localize the WordPress admin backend.

Localize the WordPress admin backend.

Returns

array
public
# admin_enqueue_scripts( )

Enqueue scripts and styles for admin pages.

Enqueue scripts and styles for admin pages.

public
# wp_enqueue_scripts( )

Enqueue scripts and styles for frontend pages.

Enqueue scripts and styles for frontend pages.

public
# isScreenBase( string $base, boolean $log = false )

Checks if a specific screen is active.

Checks if a specific screen is active.

Parameters

$base
The base
$log
If true the current screen gets logged

Returns

boolean
public
# plugin_row_meta( $links, $file )

Add an "Add-On" link to the plugin row links.

Add an "Add-On" link to the plugin row links.

public
# media_view_strings( $strings )

Modify the media view strings for a shortcut hint in the media grid view. This function is also used to return the single string for the note when $strings is false.

Modify the media view strings for a shortcut hint in the media grid view. This function is also used to return the single string for the note when $strings is false.

'warnDelete' 'warnBulkDelete'

public
# media_row_actions( $actions, $post )

Modify the media view strings for a shortcut hint in the media table view.

Modify the media view strings for a shortcut hint in the media table view.

Methods inherited from MatthiasWeb\RealMediaLibrary\base\Assets

enqueueLibraryScript(), enqueueLibraryStyle(), enqueueScript(), enqueueStyle(), getCachebusterVersion(), getPluginsUrl(), getPublicFolder(), isScriptDebug()

Methods inherited from MatthiasWeb\RealMediaLibrary\base\Base

debug(), getCore(), getTableName()

Constants summary

Constants inherited from MatthiasWeb\RealMediaLibrary\base\Assets

LIB_CACHEBUSTER_REGEX, TYPE_ADMIN, TYPE_FRONTEND

API documentation generated by ApiGen