class-code-manager-public.php
49 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Code Manager public |
| 4 | * |
| 5 | * @package . |
| 6 | */ |
| 7 | |
| 8 | use Code_Manager\Code_Manager; |
| 9 | |
| 10 | /** |
| 11 | * Class Code_Manager_Public |
| 12 | * |
| 13 | * Defines public specific functionality for the Code Manager. |
| 14 | * |
| 15 | * @author Peter Schulz |
| 16 | * @since 1.0.0 |
| 17 | */ |
| 18 | class Code_Manager_Public { |
| 19 | |
| 20 | /** |
| 21 | * Add stylesheets to front-end |
| 22 | * |
| 23 | * @since 1.0.0 |
| 24 | */ |
| 25 | public function enqueue_styles() { |
| 26 | // Future CSS stylesheets can be added here. |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Add scripts to front-end |
| 31 | * |
| 32 | * @since 1.0.0 |
| 33 | */ |
| 34 | public function enqueue_scripts() { |
| 35 | // Future JavaScript code can be added here. |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Register Code Manager shortcode |
| 40 | * |
| 41 | * @since 1.0.0 |
| 42 | */ |
| 43 | public function register_shortcodes() { |
| 44 | $code_manager = new Code_Manager(); |
| 45 | add_shortcode( CODE_MANAGER_SHORT_CODE, array( $code_manager, 'add_shortcode' ) ); |
| 46 | } |
| 47 | |
| 48 | } |
| 49 |