/** * * Get custom CSS * * @package PageLines DMS * @since 2.2 */ function draw_inline_custom_css() { // always output this, even if empty - container is needed for live compile $a = $this->get_compiled_custom(); return inline_css_markup('pagelines-custom', rtrim(pl_css_minify($a['custom']))); }
function pl_fix_login_image() { if (pl_is_wporg()) { return false; } $image_url = pl_setting('pl_login_image') ? pl_setting('pl_login_image') : PL_IMAGES . '/default-login-image.png'; $css = sprintf('body #login h1 a{background: url(%s) no-repeat top center;height: 80px; background-size:auto; width:auto;}', $image_url); inline_css_markup('pagelines-login-css', $css); }
/** * * @TODO document * */ function _feature_css($clone_id, $oset) { $height = ploption('feature_stage_height', $oset) ? ploption('feature_stage_height', $oset) . 'px' : '380px'; $selectors = $this->selectors($clone_id); $css = sprintf('%s{height:%s;}', $selectors, $height); inline_css_markup('feature-css', $css); }
/** * * Draw dynamic CSS inline. * * @package PageLines Framework * @since 2.2 */ function draw_inline_dynamic_css() { if (apply_filters('disable_dynamic_css', false)) { return; } $css = $this->get_dynamic_css(); inline_css_markup('dynamic-css', $css['dynamic']); }
/** * Fix The WordPress Favicon by Site Title */ function pl_fix_admin_favicon() { if (!($image_url = ploption('pagelines_favicon'))) { return; } $css = "\n\t\t#wphead #header-logo {\n\t\t\tbackground: url({$image_url}) no-repeat scroll center center;\n\t\t}"; inline_css_markup('pagelines-wphead-img', $css); }
/** * * @TODO document * */ function pl_fix_admin_favicon() { $image_url = ploption('pagelines_favicon') ? ploption('pagelines_favicon') : PL_ADMIN_IMAGES . '/favicon-pagelines.png'; $css = sprintf('#wphead #header-logo{background: url(%s) no-repeat scroll center center;}', $image_url); inline_css_markup('pagelines-wphead-img', $css); }
function render_css_container() { echo inline_css_markup('pagelines-draft-css', pl_setting('site_css')); }
/** * * Draw dynamic CSS inline. * * @package PageLines Framework * @since 2.2 */ function draw_inline_dynamic_css() { if (has_filter('disable_dynamic_css')) { return; } $css = $this->get_dynamic_css(); inline_css_markup('dynamic-css', $css['dynamic']); }