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
<html lang="en"> | |
<head> | |
<title>Marxipsm: Placeholder text for the proletariat</title> | |
<script src="script.js"></script> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body> |
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
@mixin link-highlight($height) { | |
border-bottom: none; | |
text-decoration: none; | |
box-shadow: inset 0 -4px 0 rgba(0, 170, 220, 0.2); | |
transition: all 200ms ease-in-out; | |
&:hover { | |
box-shadow: inset 0 -$height 0 rgba(0, 170, 220, 0.2); | |
} | |
} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 | |
/* | |
Plugin Name: Disable Publicize Autoselect | |
Description: Prevent Publicize connections from being auto-selected. | |
Version: 1.0 | |
Author: Ryan Cowles | |
Author URI: http://ryanscowles.com/ | |
Plugin URI: http://jetpack.me/2013/10/15/ever-accidentally-publicize-a-post-that-you-didnt/ | |
*/ | |
add_filter( 'publicize_checkbox_default', '__return_false' ); |
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 jpme_custom_init() { | |
add_post_type_support( 'portfolio', 'publicize' ); | |
} | |
add_action('init', 'jpme_custom_init'); |
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
<!-- Map Support Scripts --><div id="ajax_map" class="inline-scripts"> | |
<?php | |
$settings = return_settings(); | |
$center_single_company = return_single_company(); | |
$item_adrs_sng_lat = return_item_adrs_sng_lat(); | |
$item_adrs_sng_lng = return_item_adrs_sng_lng(); | |
$item_first_cat = return_item_first_cat(); | |
// Get variables metrodir_Options | |
//Site options |
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 | |
// Let's unhook the original filter | |
function jetpackme_remove_rp() { | |
$jprp = Jetpack_RelatedPosts::init(); | |
$callback = array( $jprp, 'filter_add_target_to_dom' ); | |
remove_filter( 'the_content', $callback, 40 ); | |
} | |
add_filter( 'wp', 'jetpackme_remove_rp', 20 ); |
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('widget_text', 'do_shortcode'); |
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
.alt-font { | |
font-family: Arial, sans-serif; | |
font-style: italic; | |
} |
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 tweakjp_cust_shortlink() { | |
global $post; | |
if ( !$post ) | |
return; | |
return get_permalink($post->ID); | |
} | |
add_filter( 'get_shortlink', 'tweakjp_cust_shortlink' ); |
NewerOlder