This file contains hidden or 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
| /** | |
| * DESCRIPTION: | |
| * | |
| * A Route component that extends the default react-router-dom Route. | |
| * By default a Route component uses the MainLayout component as defined below. | |
| * | |
| * EXAMPLE USAGE: | |
| * | |
| * <Switch> | |
| * <Route path="/" exact component={Home} /> |
This file contains hidden or 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
| function autoload_classes( $class ) { | |
| $class_name = ltrim(strtolower(preg_replace('/[A-Z]/', '_$0', $class)), '_'); | |
| $filename = dirname(__DIR__)."/includes/classes/" . $class_name . ".php"; | |
| if ( file_exists($filename) ) { | |
| require_once $filename; | |
| } | |
| } | |
| function autoload_custom_post_types( $class ) { |
This file contains hidden or 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
| class @geoLocation | |
| constructor: -> | |
| getLocation() | |
| getLocation = -> | |
| if navigator.geolocation | |
| navigator.geolocation.getCurrentPosition showLocation | |
| else | |
| console.warn 'Geolocation is not supported by this browser.' |