EasyBlogStylesheet
extends EasyBlog
in package
Table of Contents
Constants
- FILE_STATUS_MISSING = 2
- FILE_STATUS_MODIFIED = 1
- FILE_STATUS_NEW = -1
- FILE_STATUS_REMOVED = 3
- FILE_STATUS_UNCHANGED = 0
- FILE_STATUS_UNKNOWN = 4
Properties
- $app : mixed
- $attached : mixed
- $baseurl : mixed
- $config : mixed
- $db : mixed
- $doc : mixed
- $environment : mixed
- $filetypes : mixed
- $input : mixed
- $isModule : mixed
- $isOverride : mixed
- $jconfig : mixed
- $lang : mixed
- $location : mixed
- $my : mixed
- $name : mixed
- $ns : mixed
- $overrideStylesheet : mixed
- $string : mixed
- $themeName : mixed
- $workspace : mixed
- $class : mixed
Methods
- __construct() : mixed
- attach() : mixed
- Attaches stylesheet on the site.
- attachFontawesome() : mixed
- Attaches font awesome css library
- build() : mixed
- Compiles css files
- builder() : mixed
- Retrieves the builder instance
- compile() : mixed
- Allows caller to compile the less files and combine them into a single style.css file
- compiler() : mixed
- Creates a new compiler instance
- file() : mixed
- Retrieves the path of the folder to a specific file
- folder() : mixed
- Retrieves the path of a given folder type
- getDefaultWorkspace() : mixed
- getError() : mixed
- getErrors() : mixed
- getManifestMap() : mixed
- Retrieves the manifest mapping
- hasError() : mixed
- hasErrors() : mixed
- hasOverride() : mixed
- Determines if a css file has an override
- isMobile() : mixed
- Determines if this is a mobile layout
- isTablet() : mixed
- Determines if this is a tablet layout
- loadDefaultTheme() : mixed
- Force system to load the configured theme
- loadLanguage() : mixed
- Helper method to load language
- manifest() : mixed
- Get a list of manifest contents
- minifier() : mixed
- minify() : mixed
- Minifies the css file
- path() : mixed
- process() : mixed
- Attaches the stylesheet
- relative() : mixed
- sections() : mixed
- setError() : mixed
- shouldAttachCss() : mixed
- Determines if the css should be added to the site
- strip_root() : mixed
- type() : mixed
- uri() : mixed
- getCategoryCustomThemeStyle() : mixed
- Determines if there is category custom css file
Constants
FILE_STATUS_MISSING
public
mixed
FILE_STATUS_MISSING
= 2
FILE_STATUS_MODIFIED
public
mixed
FILE_STATUS_MODIFIED
= 1
FILE_STATUS_NEW
public
mixed
FILE_STATUS_NEW
= -1
FILE_STATUS_REMOVED
public
mixed
FILE_STATUS_REMOVED
= 3
FILE_STATUS_UNCHANGED
public
mixed
FILE_STATUS_UNCHANGED
= 0
FILE_STATUS_UNKNOWN
public
mixed
FILE_STATUS_UNKNOWN
= 4
Properties
$app
public
mixed
$app
= \null
$attached
public
static mixed
$attached
= array()
$baseurl
public
mixed
$baseurl
= \null
$config
public
mixed
$config
= \null
$db
public
mixed
$db
= \null
$doc
public
mixed
$doc
= \null
$environment
public
mixed
$environment
= 'production'
$filetypes
public
static mixed
$filetypes
= array('ats' => array('css', 'minified'), 'less' => array('less', 'css', 'minified'), 'css' => array('css', 'minified'), 'section' => array('less', 'css', 'minified'))
$input
public
mixed
$input
= \null
$isModule
public
mixed
$isModule
= \false
$isOverride
public
mixed
$isOverride
= \false
$jconfig
public
mixed
$jconfig
= \null
$lang
public
mixed
$lang
= \null
$location
public
mixed
$location
$my
public
mixed
$my
= \null
$name
public
mixed
$name
$ns
public
mixed
$ns
= 'EASYBLOG'
$overrideStylesheet
public
mixed
$overrideStylesheet
$string
public
mixed
$string
= \null
$themeName
public
mixed
$themeName
= ''
$workspace
public
mixed
$workspace
= array('site' => \null, 'site_base' => \null, 'admin' => \null, 'admin_base' => \null, 'override' => \null)
$class
private
mixed
$class
= __CLASS__
Methods
__construct()
public
__construct(mixed $location, mixed $theme, mixed $useOverride) : mixed
Parameters
- $location : mixed
- $theme : mixed
- $useOverride : mixed
attach()
Attaches stylesheet on the site.
public
attach([mixed $minified = true ][, mixed $allowOverride = true ][, mixed $customCategoryTemplate = null ]) : mixed
Parameters
- $minified : mixed = true
- $allowOverride : mixed = true
- $customCategoryTemplate : mixed = null
Tags
attachFontawesome()
Attaches font awesome css library
public
attachFontawesome() : mixed
Tags
build()
Compiles css files
public
build([mixed $preset = 'cache' ][, mixed $options = array() ]) : mixed
Parameters
- $preset : mixed = 'cache'
- $options : mixed = array()
Tags
builder()
Retrieves the builder instance
public
builder() : mixed
Tags
compile()
Allows caller to compile the less files and combine them into a single style.css file
public
compile(mixed $section[, mixed $options = array() ]) : mixed
Parameters
- $section : mixed
- $options : mixed = array()
Tags
compiler()
Creates a new compiler instance
public
compiler() : mixed
Tags
file()
Retrieves the path of the folder to a specific file
public
file(mixed $filename[, mixed $type = null ]) : mixed
Parameters
- $filename : mixed
- $type : mixed = null
Tags
folder()
Retrieves the path of a given folder type
public
folder([mixed $name = 'current' ][, mixed $force = false ]) : mixed
Parameters
- $name : mixed = 'current'
- $force : mixed = false
Tags
getDefaultWorkspace()
public
getDefaultWorkspace() : mixed
getError()
public
getError() : mixed
getErrors()
public
getErrors() : mixed
getManifestMap()
Retrieves the manifest mapping
public
getManifestMap() : mixed
Tags
hasError()
public
hasError() : mixed
hasErrors()
public
hasErrors() : mixed
hasOverride()
Determines if a css file has an override
public
hasOverride() : mixed
Tags
isMobile()
Determines if this is a mobile layout
public
isMobile() : mixed
Tags
isTablet()
Determines if this is a tablet layout
public
isTablet() : mixed
Tags
loadDefaultTheme()
Force system to load the configured theme
public
loadDefaultTheme() : mixed
Tags
loadLanguage()
Helper method to load language
public
loadLanguage([mixed $admin = false ]) : mixed
Parameters
- $admin : mixed = false
Tags
manifest()
Get a list of manifest contents
public
manifest() : mixed
Tags
minifier()
public
minifier() : mixed
minify()
Minifies the css file
public
minify(mixed $section[, mixed $options = array() ]) : mixed
Parameters
- $section : mixed
- $options : mixed = array()
Tags
path()
public
path(mixed $filename[, mixed $type = null ]) : mixed
Parameters
- $filename : mixed
- $type : mixed = null
process()
Attaches the stylesheet
public
process([mixed $minified = true ][, mixed $allowOverride = true ]) : mixed
Parameters
- $minified : mixed = true
- $allowOverride : mixed = true
Tags
relative()
public
relative(mixed $dest[, mixed $root = '' ][, mixed $dir_sep = '/' ]) : mixed
Parameters
- $dest : mixed
- $root : mixed = ''
- $dir_sep : mixed = '/'
sections()
public
sections() : mixed
setError()
public
setError(mixed $msg) : mixed
Parameters
- $msg : mixed
shouldAttachCss()
Determines if the css should be added to the site
public
shouldAttachCss(mixed $location) : mixed
Parameters
- $location : mixed
Tags
strip_root()
public
strip_root([mixed $path = '' ]) : mixed
Parameters
- $path : mixed = ''
type()
public
type() : mixed
uri()
public
uri(mixed $filename[, mixed $type = null ]) : mixed
Parameters
- $filename : mixed
- $type : mixed = null
getCategoryCustomThemeStyle()
Determines if there is category custom css file
private
getCategoryCustomThemeStyle(mixed $customTheme[, mixed $file = 'style' ][, mixed $minified = true ]) : mixed
Parameters
- $customTheme : mixed
- $file : mixed = 'style'
- $minified : mixed = true