index.php
36 lines
| 1 | <?php |
| 2 | |
| 3 | function kubio_get_shapes_css() { |
| 4 | $shapes = array( |
| 5 | 'circles', |
| 6 | '10degree-stripes', |
| 7 | 'rounded-squares-blue', |
| 8 | 'many-rounded-squares-blue', |
| 9 | 'two-circles', |
| 10 | 'circles-2', |
| 11 | 'circles-3', |
| 12 | 'circles-gradient', |
| 13 | 'circles-white-gradient', |
| 14 | 'waves', |
| 15 | 'waves-inverted', |
| 16 | 'dots', |
| 17 | 'left-tilted-lines', |
| 18 | 'right-tilted-lines', |
| 19 | 'right-tilted-strips', |
| 20 | 'doodle', |
| 21 | 'falling-stars', |
| 22 | 'grain', |
| 23 | 'poly1', |
| 24 | 'poly2', |
| 25 | 'wavy-lines', |
| 26 | ); |
| 27 | $css = ''; |
| 28 | $url = plugin_dir_url( __FILE__ ); |
| 29 | |
| 30 | foreach ( $shapes as $shape ) { |
| 31 | $css .= ".kubio-shape-{$shape}{background-image:url('{$url}header-shapes/{$shape}.png')}"; |
| 32 | } |
| 33 | |
| 34 | return $css; |
| 35 | } |
| 36 |