Lines Matching defs:mediatype

73     foreach ($mediatypes as $mediatype) {
77 $files[DOKU_INC . 'lib/styles/' . $mediatype . '.css'] = DOKU_BASE . 'lib/styles/';
80 if ($mediatype == 'screen') {
85 $files = array_merge($files, css_pluginstyles($mediatype));
87 if (isset($styleini['stylesheets'][$mediatype])) {
88 $files = array_merge($files, $styleini['stylesheets'][$mediatype]);
91 if (isset($config_cascade['userstyle'][$mediatype]) && is_array($config_cascade['userstyle'][$mediatype])) {
92 foreach ($config_cascade['userstyle'][$mediatype] as $userstyle) {
98 $media_files[$mediatype] = css_filewrapper($mediatype, $files);
99 $CSSEvt = new Event('CSS_STYLES_INCLUDED', $media_files[$mediatype]);
103 $cache_files = array_merge($cache_files, array_keys($media_files[$mediatype]['files']));
105 // unset if prevented. Nothing will be printed for this mediatype.
106 unset($media_files[$mediatype]);
141 foreach ($mediatypes as $mediatype) {
143 if (!isset($media_files[$mediatype])) {
147 $cssData = $media_files[$mediatype];
154 echo '/* START ' . $cssData['mediatype'] . ' styles */' . NL;
169 echo ' END ' . $cssData['mediatype'] . ' styles */' . NL;
296 * Wrapper for the files, content and mediatype for the event CSS_STYLES_INCLUDED
298 * @param string $mediatype type ofthe current media files/content set
299 * @param array $files set of files that define the current mediatype
304 function css_filewrapper($mediatype, $files = [])
308 'mediatype' => $mediatype,
309 'encapsulate' => $mediatype != 'all',
310 'encapsulationPrefix' => '@media ' . $mediatype
318 * The event can be distinguished by the mediatype which is:
539 * @param string $mediatype
544 function css_pluginstyles($mediatype = 'screen')
549 $list[DOKU_PLUGIN . "$p/$mediatype.css"] = DOKU_BASE . "lib/plugins/$p/";
550 $list[DOKU_PLUGIN . "$p/$mediatype.less"] = DOKU_BASE . "lib/plugins/$p/";
552 if ($mediatype == 'screen') {