1 | <?php |
||
6 | class StyleCSS |
||
7 | { |
||
8 | /** |
||
9 | * Sets the style.css from the template.style.css. |
||
10 | */ |
||
11 | public static function set() |
||
31 | |||
32 | /** |
||
33 | * Renders the template from the configuration. |
||
34 | * |
||
35 | * @param string $themePath The path to the theme. |
||
36 | * |
||
37 | * @return string The rendered template on success and empty string on failure. |
||
38 | */ |
||
39 | protected static function renderTemplate($themePath) |
||
53 | |||
54 | /** |
||
55 | * Gets the template. |
||
56 | * |
||
57 | * @param string $themePath The path to the theme. |
||
58 | */ |
||
59 | protected static function getTemplate($themePath) |
||
68 | |||
69 | /** |
||
70 | * Deletes the template. |
||
71 | * |
||
72 | * @param string $themePath The path to the theme. |
||
73 | */ |
||
74 | protected static function deleteTemplate($themePath) |
||
81 | |||
82 | /** |
||
83 | * Writes the template to style.css. |
||
84 | * |
||
85 | * @param string $template Template content to write. |
||
86 | * @param string $themePath The path to the theme. |
||
87 | */ |
||
88 | protected static function write($template, $themePath) |
||
97 | } |
||
98 |