Pless vars

[edit] Please Note

These docs are now deprecated, we have a new Support area located here

Revision as of 19:02, 26 March 2012 by Cais (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Filter

pless_vars is used to over-ride the PageLines LESS default constants.

Usage


NB: my_pless_vars is only meant as an example, a more appropriately named function should be used in actual code.

PageLines LESS

The default variables:

  • @pl-base => $this->base_color
  • @pl-text => pl_hashify( pl_text_color() )
  • @pl-link => pl_hashify( pl_link_color() )
  • @pl-header => pl_hashify( pl_header_color() )
  • @pl-footer => pl_hashify( pl_footer_color() )
  • @invert-dark => $this->invert()
  • @invert-light => $this->invert('light')
  • @font-size => $fontsize . 'px'
  • @line-height => page_line_height($fontsize, $content_width) . 'px'

Examples

Source File

pless_vars is defined in the __construct() located in includes/less.functions.php