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
| import { NgModule } from '@angular/core'; | |
| import { RouterModule, Routes } from '@angular/router'; | |
| import { AppComponent } from './app.component'; | |
| import { Angular2TokenService } from 'angular2-token'; | |
| import { ZeroGuardService as ZeroGuard } from './shared/guards/can-activate-zero-guard.service'; | |
| const routes: Routes = [ | |
| { path: 'contact', loadChildren:'./contact/contact.module#ContactModule', canActivate: [ Angular2TokenService ] }, |
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
| <?php // Min HTML | |
| function sanitize_output($buffer) { | |
| $search = array( | |
| '/\>[^\S ]+/s', // strip whitespaces after tags, except space | |
| '/[^\S ]+\</s', // strip whitespaces before tags, except space | |
| '/(\s)+/s', // shorten multiple whitespace sequences | |
| '/<!--(.|\s)*?-->/' // Remove HTML comments | |
| ); | |
| $replace = array('>', '<', '\\1', ''); | |
| $buffer = preg_replace($search, $replace, $buffer); |
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
| <script defer src=”//ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js”> </script> | |
| <script defer src=”/app/bundle.js?v=0.0.1”></script> | |
| <script defer src=”/app/home.js?v=0.0.1”></script> |
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
| <snippet> | |
| <content><![CDATA[ | |
| <!-- --------------/ Checkbox /------------ --> | |
| <?php echo \$formHTML['before']; ?> | |
| <label>${1:Active?}</label> | |
| <?php echo \$formHTML['between']; ?> | |
| <input type="checkbox" name="${2:active}" value="1" <?php if (\$mq['${2:active}'] || \$addNew) { echo "checked"; } ?> /><label>This will show up on the site</label> | |
| <?php echo \$formHTML['after']; ?> |