/** * @file * Provides overridable theme functions for all of Edit's client-side HTML. */ (function($, Drupal) { "use strict"; /** * Theme function for the overlay of the Edit module. * * @param settings * An object with the following keys: * - None. * @return * The corresponding HTML. */ Drupal.theme.editOverlay = function(settings) { var html = ''; html += '
'; return html; }; /** * Theme function for a "backstage" for the Edit module. * * @param settings * An object with the following keys: * - id: the id to apply to the backstage. * @return * The corresponding HTML. */ Drupal.theme.editBackstage = function(settings) { var html = ''; html += '
'; return html; }; /** * Theme function for a modal of the Edit module. * * @param settings * An object with the following keys: * - None. * @return * The corresponding HTML. */ Drupal.theme.editModal = function(settings) { var classes = 'edit-animate-slow edit-animate-invisible edit-animate-delay-veryfast'; var html = ''; html += ''; return html; }; /** * Theme function for a toolbar container of the Edit module. * * @param settings * An object with the following keys: * - id: the id to apply to the toolbar container. * @return * The corresponding HTML. */ Drupal.theme.editToolbarContainer = function(settings) { var html = ''; html += '
'; html += '
'; html += '
'; html += '
'; html += '
'; return html; }; /** * Theme function for a toolbar toolgroup of the Edit module. * * @param settings * An object with the following keys: * - id: (optional) the id of the toolgroup * - classes: the class of the toolgroup. * - buttons: @see Drupal.theme.prototype.editButtons(). * @return * The corresponding HTML. */ Drupal.theme.editToolgroup = function(settings) { var classes = 'edit-toolgroup edit-animate-slow edit-animate-invisible edit-animate-delay-veryfast'; var html = ''; html += '
'; html += '
'; html += '
'; html += settings.loadingMsg; html += '
'; html += '
'; html += '
'; return html; }; })(jQuery, Drupal);