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
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 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 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 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 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 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 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 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 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 variation_radio_buttons($html, $args) | |
{ | |
$args = wp_parse_args(apply_filters('woocommerce_dropdown_variation_attribute_options_args', $args), array( | |
'options' => false, | |
'attribute' => false, | |
'product' => false, | |
'selected' => false, | |
'name' => '', | |
'id' => '', | |
'class' => '', |
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
add_filter( 'woocommerce_loop_add_to_cart_args', 'remove_rel', 10, 2 ); | |
function remove_rel( $args, $product ) { | |
unset( $args['attributes']['rel'] ); | |
return $args; | |
} |
NewerOlder