<commit_before><?php

require_once 'Swat/SwatHtmlHeadEntry.php';

/**
 * Stores and outputs an HTML head entry for a stylesheet include
 *
 * @package   Swat
 * @copyright 2006 silverorange
 * @license   http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
 */
class SwatStyleSheetHtmlHeadEntry extends SwatHtmlHeadEntry
{
	// {{{ public function display()

	public function display($uri_prefix = '')
	{
		printf('<style type="text/css" media="all">@import "%s%s";</style>',
			$uri_prefix,
			$this->uri);
	}

	// }}}
	// {{{ public function displayInline()

	public function displayInline($path)
	{
		echo '<style type="text/css" media="all">';
		readfile($path.$this->getUri());
		echo '</style>';
	}

	// }}}
}

?><commit_msg>Switching SwatStyleSheetHtmlHeadEntry to use single quotes rather than double in the "import" includes of CSS files. This is allowed in the CSS spec, works in every browser, and excludes IE5/Mac, which chokes on most of our modern CSS.<commit_after><?php

require_once 'Swat/SwatHtmlHeadEntry.php';

/**
 * Stores and outputs an HTML head entry for a stylesheet include
 *
 * @package   Swat
 * @copyright 2006 silverorange
 * @license   http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
 */
class SwatStyleSheetHtmlHeadEntry extends SwatHtmlHeadEntry
{
	// {{{ public function display()

	public function display($uri_prefix = '')
	{
		printf('<style type="text/css" media="all">@import \'%s%s\';</style>',
			$uri_prefix,
			$this->uri);
	}

	// }}}
	// {{{ public function displayInline()

	public function displayInline($path)
	{
		echo '<style type="text/css" media="all">';
		readfile($path.$this->getUri());
		echo '</style>';
	}

	// }}}
}

?>
{'fraction_non_alphanumeric': 0.1595744680851064, 'fraction_numerical': 0.0076832151300236405, 'mean_word_length': 4.114803625377643, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '803765', 'n_tokens_mistral': 585, 'n_tokens_neox': 549, 'n_words': 143}