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 custom_css_class_on_menu_item( $items, $args ) { | |
| // loop | |
| foreach( $items as &$item ) { | |
| // vars | |
| $class = get_field('css_class', $item); | |
| // append class | |
| if( $class ) { | |
| $item->classes[] = $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
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\Collection; | |
| use Illuminate\Pagination\LengthAwarePaginator; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| public function boot() |
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
| // | |
| // Bootstrap variables (overrides) | |
| // -------------------------------------------------- | |
| // | |
| // Color system | |
| // | |
| $white: #fff !default; |
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
| $grid-columns: 12; | |
| $grid-gutter-width: 24px; | |
| $grid-breakpoints: ( | |
| xs: 0, | |
| sm: 576px, | |
| md: 768px, | |
| lg: 992px, | |
| xl: 1200px, | |
| xxl: 1400px |
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 | |
| namespace App\Traits; | |
| use Carbon\Carbon; | |
| use Illuminate\Database\Eloquent\Builder; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\SoftDeletingScope; | |
| class FutureSoftDeletesScope extends SoftDeletingScope { | |
| public function apply(Builder $builder, Model $model) |
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
| @if(session('success')) | |
| <div class="alert alert-success" role="alert">{{ session('success') }}</div> | |
| @endif | |
| @if(session('error')) | |
| <div class="alert alert-danger" role="alert">{{ session('error') }}</div> | |
| @endif | |
| @if(session('warning')) | |
| <div class="alert alert-warning" role="alert">{{ session('warning') }}</div> | |
| @endif | |
| @if(session('info')) |
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
| { | |
| "deploy.reloaded": { | |
| "packages": [ | |
| { | |
| "name": "name", | |
| "targets": ["serverName"], | |
| "files": [ | |
| "**/*", | |
| ], | |
| "exclude": [ |
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
| [type="radio"] { | |
| + { | |
| span { | |
| position: relative; | |
| cursor: pointer; | |
| background-color: #F7FBFF; | |
| border: 2px solid #F7FBFF; | |
| padding: 15px 30px; | |
| border-radius: 100px; | |
| display: inline-block; |
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 | |
| $field_name = 'field'; | |
| $field_label = 'Field'; | |
| ?> | |
| //INPUT FIELD | |
| <div class="form-group <?php echo $_ERROR[$field_name] ? ' has-error' : ''; ?>"> | |
| <label for="<?php echo $field_name; ?>" class="control-label"><?php echo $field_label; ?></label> | |
| <input name="<?php echo $field_name; ?>" type="text" class="form-control" value="<?php echo isset($_POST[$field_name]) ? $_POST[$field_name] : ''; ?>" placeholder="<?php echo $field_label; ?>"> |
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
| //This is for bootstrap 4 - given the media queries. Can easily be changed for Bootstrap 3 | |
| $xl-down: "max-width: 9999px"; | |
| $lg-down: "max-width: 1199px"; | |
| $md-down: "max-width: 991px"; | |
| $sm-down: "max-width: 767px"; | |
| $xs-down: "max-width: 575px"; | |
| $xl-up: "min-width: 1200px"; | |
| $lg-up: "min-width: 992px"; |
NewerOlder