| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package Frontend |
| 4 |
* @sub-package Custom Css |
| 5 |
*/ |
| 6 |
|
| 7 |
/** |
| 8 |
* Get the custom css setting and format output |
| 9 |
* @return [string] [custom css information] |
| 10 |
*/ |
| 11 |
function catchwebtools_custom_css_display(){ |
| 12 |
$customcss = get_catchwebtools_options( 'catchwebtools_custom_css' ); |
| 13 |
|
| 14 |
$output = ''; |
| 15 |
if( !empty ( $customcss ) ){ |
| 16 |
$output .= '<style type="text/css">'. PHP_EOL ; |
| 17 |
$output .= $customcss . PHP_EOL ; |
| 18 |
$output .= '</style>' . PHP_EOL ; |
| 19 |
} |
| 20 |
return $output; |
| 21 |
} |