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
.selector { | |
/* Positioning */ | |
position: absolute; | |
z-index: 10; | |
top: 0; | |
right: 0; | |
/* Display & Box Model */ | |
display: inline-block; | |
overflow: hidden; |
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 | |
add_filter( 'comment_text', 'dmm_follow_trusted_comment_links' ); | |
/** | |
* @param $comment_content | |
* | |
* Adds rel="nofollow target="_blank" to external and /go/ links in comment section. | |
* | |
* | |
* @return mixed|string |
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
$date = date( 'Y-m-d', $timestamp ); // 2017-01-01 | |
$time = date( 'H:i', $timestamp); // 01:00 / 13:00 | |
$date_time = date( 'Y-m-d H:i', $timestamp ); // 2017-01-01 01:00 |
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 | |
// Regular Expression to match [shortcodes]. | |
$regex = '(\[title(.*?)?\](.+?)?\[\/title\])'; | |
// Store them in an array | |
preg_match( $regex, $content, $action_matches ); | |
// Remove them. | |
preg_replace( $regex, '', $content ); |
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 | |
/** | |
* Do it this way instead | |
***********************************************/ | |
/* | |
* If no custom options for text are set, let's bail. | |
* get_header_textcolor() options: Any hex value, 'blank' to hide text. Default: add_theme_support( 'custom-header' ). | |
*/ | |
if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) { |
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
Hi there! | |
Thanks for creating a WordPress theme and submitting it to the WordPress.org directory! Since your theme also includes the accessibility-ready tag, I've also reviewed it according to those requirements, which you can find here: https://make.wordpress.org/themes/handbook/review/accessibility/ | |
Required | |
Anything in this section will need to be fixed before the theme can be approved. | |
Keyboard Navigation |
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
WP_Term Object ( | |
[term_id] => | |
[name] => | |
[slug] => | |
[term_group] => | |
[term_taxonomy_id] => | |
[taxonomy] => | |
[description] => | |
[parent] => | |
[count] => |
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 _gaLt(event) { | |
/* If GA is blocked or not loaded, or not main|middle|touch click then don't track */ | |
if (!ga.hasOwnProperty("loaded") || ga.loaded !== true || (event.which != 1 && event.which != 2)) { | |
return; | |
} | |
var el = event.srcElement || event.target; | |
/* Loop up the DOM tree through parent elements if clicked element is not a link (eg: an image inside a link) */ |
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
.g-recaptcha { | |
width: 300px; | |
margin: 0 auto 1em auto; | |
} |