File: index.php

package info (click to toggle)
php-tijsverkoyen-css-to-inline-styles 2.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 340 kB
  • sloc: php: 1,105; makefile: 9
file content (17 lines) | stat: -rw-r--r-- 383 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

require_once '/usr/share/php/TijsVerkoyen/CssToInlineStyles/autoload.php';

use TijsVerkoyen\CssToInlineStyles\CssToInlineStyles;

// create instance
$cssToInlineStyles = new CssToInlineStyles();

$html = file_get_contents(__DIR__ . '/sumo/index.htm');
$css = file_get_contents(__DIR__ . '/sumo/style.css');

// output
echo $cssToInlineStyles->convert(
    $html,
    $css
);