Swat/SwatHtmlHeadEntrySetDisplayer.php
public function displayInline(
        SwatHtmlHeadEntrySet $set,
        $path,
        $type = null
    ) {
        $entries = $set->toArray();

        $uris = array_keys($entries);

        // check for conflicts in the displayed set
        $this->checkForConflicts($uris);

        // sort
        $entries = $this->getSortedEntries($entries);

        // display entries inline
        // TODO: Use Concentrate_Inliner to display CSS inline
        foreach ($entries as $entry) {
            if ($type === null || $entry->getType() === $type) {
                echo "\t", '<!-- ', $entry->getUri(), ' -->', "\n";
                $entry->displayInline($path);
                echo "\n\t";
            }
        }

        echo "\n";
    }
public function displayInline(
        SwatHtmlHeadEntrySet $set,
        $path,
        $type = null
    ) {
        $entries = $set->toArray();

        $uris = array_keys($entries);

        // check for conflicts in the displayed set
        $this->checkForConflicts($uris);

        // sort
        $entries = $this->getSortedEntries($entries);

        // display entries inline
        // TODO: Use Concentrate_Inliner to display CSS inline
        foreach ($entries as $entry) {
            if ($type === null || $entry->getType() === $type) {
                echo "\t", '<!-- ', $entry->getUri(), ' -->', "\n";
                $entry->displayInline($path);
                echo "\n\t";
            }
        }

        echo "\n";
    }
public function displayInline ( SwatHtmlHeadEntrySet $ set , $ path , $ type = null ) { $ entries = $ set -> toArray ( ) ; $ uris = array_keys ( $ entries ) ; // check for conflicts in the displayed set $ this -> checkForConflicts ( $ uris ) ; // sort $ entries = $ this -> getSortedEntries ( $ entries ) ; // display entries inline // TODO: Use Concentrate_Inliner to display CSS inline foreach ( $ entries as $ entry ) { if ( $ type === null || $ entry -> getType ( ) === $ type ) { echo "\t" , '<!-- ' , $ entry -> getUri ( ) , ' -->' , "\n" ; $ entry -> displayInline ( $ path ) ; echo "\n\t" ; } } echo "\n" ; }
Displays the contents of the set of HTML head entries inline
Displays the contents of the set of HTML head entries inline