π
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
# =============================================================== # | |
# My Personal .bash_profile | |
# Author: derek shirk | |
# Website: derekshirk.com | |
# Subscribe to my newsletter mergelinks.com | |
# =============================================================== # | |
# =============================================================== # | |
# Aliases |
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 | |
/* βββββββββββββββββββββββββ */ | |
/* ACF Inline SVGs | |
/* βββββββββββββββββββββββββ */ | |
$repeater = 'repeater_field_name' | |
if ( have_rows( $repeater ) ): ?> | |
<section class="content-main"> | |
<div class="container"> <?php |
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 /* | |
/* ------------------------------------------------- */ | |
/* Use Variables to Make Registering CPTs Easier | |
/* ------------------------------------------------- */ | |
function register_my_cpt_name() { | |
$name = 'My Custom Post Type' ; | |
$singular = 'The Custom Post Types' ; |
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
/** | |
* Remove the slug from published post permalinks. | |
* Only affect our CPT though. | |
*/ | |
function vipx_remove_cpt_slug( $post_link, $post, $leavename ) { | |
if ( ! in_array( $post->post_type, array( 'event' ) ) | |
|| 'publish' != $post->post_status ) | |
return $post_link; | |
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
import $ from 'jquery'; | |
const NAME = 'swapImage'; | |
const DATA_KEY = `decathlon.${NAME}`; | |
const EVENT_KEY = `.${DATA_KEY}`; | |
const ClassName = { | |
CURRENT: 'is-current', | |
LOADING: 'is-loading' | |
}; |
OlderNewer