Home / Classes / Emogrifier

Methods

31 to 60 of 92

  • Emogrifier::fillStyleAttributesWithMergedStyles() – Merges styles from styles attributes and style nodes and applies them to the attribute nodes
  • Emogrifier::generateStyleStringFromDeclarationsArrays() – This method merges old or existing name/value array with new name/value array and then generates a string of the combined style suitable for placing inline.
  • Emogrifier::generateStyleStringFromSingleDeclarationsArray() – Generates a CSS style string suitable to be used inline from the $styleDeclarations property => value array.
  • Emogrifier::getAllNodesWithStyleAttribute() – Returns a list with all DOM nodes that have a style attribute.
  • Emogrifier::getBodyElement() – Returns the BODY element.
  • Emogrifier::getCssFromAllStyleNodes() – Returns CSS content.
  • Emogrifier::getCssRuleMatches() – Parses a string of CSS into the media query, selectors and declarations for each ruleset in order.
  • Emogrifier::getCssSelectorPrecedence() –
  • Emogrifier::getDomDocument() – Provides access to the internal DOMDocument representation of the HTML in its current state.
  • Emogrifier::getHeadElement() – Returns the HEAD element.
  • Emogrifier::getNodesToExclude() – Find the nodes that are not to be emogrified.
  • Emogrifier::getOrCreateHeadElement() – Returns the existing or creates a new head element in $document.
  • Emogrifier::getUnifiedHtml() – Returns the HTML with the unprocessable HTML tags removed and with added document type and Content-Type meta tag if needed.
  • Emogrifier::handleXpathError() – Handles invalid xPath expression warnings, generated by process() method, during querying DOMDocument and trigger InvalidArgumentException with invalid selector.
  • Emogrifier::handleXpathQueryWarnings() – Handles invalid xPath expression warnings, generated during the process() method, during querying DOMDocument and trigger an InvalidArgumentException with an invalid selector or RuntimeException, depending on the source of the warning.
  • Emogrifier::isTableOrImageNode() – Checks whether $node is a table or img element.
  • Emogrifier::mapAllInlineStylesToHtmlAttributes() – Searches for all nodes with a style attribute, transforms the CSS found to HTML attributes and adds those attributes to each node.
  • Emogrifier::mapBackgroundProperty() – Maps the "background" CSS property to visual HTML attributes.
  • Emogrifier::mapBorderProperty() – Maps the "border" CSS property to visual HTML attributes.
  • Emogrifier::mapComplexCssProperty() – Maps CSS properties that need special transformation to an HTML attribute.
  • Emogrifier::mapCssToHtmlAttribute() – Tries to apply the CSS style to $node as an attribute.
  • Emogrifier::mapCssToHtmlAttributes() – Applies $styles to $node.
  • Emogrifier::mapMarginProperty() – Maps the "margin" CSS property to visual HTML attributes.
  • Emogrifier::mapSimpleCssProperty() – Looks up the CSS property in the mapping table and maps it if it matches the conditions.
  • Emogrifier::mapWidthOrHeightProperty() – Maps the "width" or "height" CSS properties to visual HTML attributes.
  • Emogrifier::matchClassAttributes() –
  • Emogrifier::matchClassAttributesInline() –
  • Emogrifier::matchIdAttributes() –
  • Emogrifier::normalizeStyleAttributes_callback() –
  • Emogrifier::normalizeStyleAttributes() – Normalizes the value of the "style" attribute and saves it.

« Previous [1] [2] [3] [4] Next »

Extended by

Class name: Emogrifier
Plugin ref: WooCommerce
Version: 3.6.0-dev
Sourcefile: includes/libraries/class-emogrifier.php
File ref: includes/libraries/class-emogrifier.php
API Letters: E

Published: 14th March 2017 | Last updated: 8th February 2019

Information

Class name: Emogrifier
Plugin ref: WooCommerce
Version: 3.6.0-dev
Sourcefile: includes/libraries/class-emogrifier.php
File ref: includes/libraries/class-emogrifier.php
API Letters: E

  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Files
  • Hooks
  • Classes
  • Sites
  • Sitemap
  • Blog
WooCommerce a2z WooCommerce a2z
WooCommerce

Site:  woocommerce.wp-a2z.org
© Copyright WooCommerce a2z 2014-2019. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins