| 1 |
<?php |
| 2 |
|
| 3 |
function link_library_generate_css( $my_link_library_plugin ) { |
| 4 |
$options = ''; |
| 5 |
$genoptions = ''; |
| 6 |
|
| 7 |
$genoptions = get_option( 'LinkLibraryGeneral' ); |
| 8 |
$genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) ); |
| 9 |
|
| 10 |
header("Content-type: text/css"); |
| 11 |
|
| 12 |
if ( isset( $genoptions['fullstylesheet'] ) ) { |
| 13 |
echo stripslashes( $genoptions['fullstylesheet'] ); |
| 14 |
} |
| 15 |
|
| 16 |
for ( $i = 1; $i <= $genoptions['numberstylesets']; $i++ ) { |
| 17 |
$settingsid = intval( $i ); |
| 18 |
|
| 19 |
$settingsname = 'LinkLibraryPP' . $settingsid; |
| 20 |
$options = get_option( $settingsname ); |
| 21 |
$options = wp_parse_args( $options, ll_reset_options( 1, 'list', 'return' ) ); |
| 22 |
|
| 23 |
if ( !empty( $options['stylesheet'] ) ) { |
| 24 |
echo stripslashes( $options['stylesheet'] ) . "\n"; |
| 25 |
} |
| 26 |
} |
| 27 |
|
| 28 |
exit; |
| 29 |
} |
| 30 |
|