_print_styles [ WordPress Function ]
_print_styles ( No parameters )
| Defined at: |
|
Benzer Fonksiyonlar: wp_print_styles, print_late_styles, print_admin_styles, _print_scripts, wp_print_scripts
No description yet.
Source
<?php
function _print_styles() {
global $wp_styles, $compress_css;
$zip = $compress_css ? 1 : 0;
if ( $zip && defined('ENFORCE_GZIP') && ENFORCE_GZIP )
$zip = 'gzip';
if ( !empty($wp_styles->concat) ) {
$dir = $wp_styles->text_direction;
$ver = $wp_styles->default_version;
$href = $wp_styles->base_url . "/wp-admin/load-styles.php?c={$zip}&dir={$dir}&load=" . trim($wp_styles->concat, ', ') . '&ver=' . $ver;
echo "<link rel='stylesheet' href='" . esc_attr($href) . "' type='text/css' media='all' />\n";
if ( !empty($wp_styles->print_code) ) {
echo "<style type='text/css'>\n";
echo $wp_styles->print_code;
echo "\n</style>\n";
}
}
if ( !empty($wp_styles->print_html) )
echo $wp_styles->print_html;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- A List Apart: Articles: CSS Design: Going to Print
May 10, 2002 ... (For more information on the basic principles involved in creating media-specific stylesheets in general and print styles in particular, see “Print ...
www.alistapart.com - Print Styles - Outlook - Office.com
Article In any folder, you can print individual items or a view of all items in the folder. For example, in Calendar you can print the contents of one appointment.
office.microsoft.com - How To Set Up A Print Style Sheet | Smashing Coding
Nov 24, 2011 ... However, print styles are often forgotten in the age of responsive Web design. ... Building print styles separately from screen styles is better.
coding.smashingmagazine.com - When Visitors Print - About That Print Stylesheet - DesignFestival ...
Aug 16, 2011 ... I find that the best approach to creating a print stylesheet is starting with a clean slate by dividing all screen styles from print styles like so: ...
designfestival.com