This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mix = require('laravel-mix'); | |
mix.js('src/app.js', 'dist') | |
.sass('src/app.scss', 'dist') | |
.setPublicPath('dist'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function theme_register_nav_menus() { | |
} | |
add_action( 'after_setup_theme', 'theme_register_nav_menus' ); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "mix-tutorial", | |
"version": "1.0.0", | |
"description": "laravel mix tutorial", | |
"main": "index.js", | |
"keywords": [], | |
"author": { | |
"name": "Vanaf1979", | |
"email": "email@example.com", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: My Sidebar | |
* Plugin URI: https://example.com/ | |
* Description: A Example Gutenberg sidebar plugin. | |
* Version: 1.0 | |
* Author: Your name | |
* Author URI: https://example.com/ | |
* Text Domain: my-sidebar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public static function instance() { | |
if ( ! isset( self::$instance ) && ! ( self::$instance instanceof MySIdebar ) ) { | |
self::$instance = new MySidebar; | |
} |