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
$meta_boxes[] = array( | |
'title' => __('Flacker Front Page Meta', 'fotos'), | |
'pages' => 'page', | |
'show_on' => array( 'page-template' => 'front-page.php' ), | |
'fields' => array( | |
array( | |
'id' => 'flacker_info_module', | |
'name' => __('Info Module', 'flacker'), | |
'type' => 'group', | |
'repeatable' => true, |
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 | |
class sampleClass { | |
function __construct() { | |
add_filter( 'edd_settings_tabs', array($this,'test_tab' )); | |
add_action('admin_init', array($this,'edd_register_settings_test')); | |
} |
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
.article-wrap { | |
position: relative; | |
} | |
.scroll-nav { | |
} | |
.scroll-nav{ | |
@size: 12px; | |
@bg: @baseContrastSlight; |
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 | |
/* | |
Author: Nick Haskins | |
Author URI: http://nickhaskins.co | |
Plugin Name: Long Form Helper | |
Plugin URI: http://nickhaskins.co | |
Version: 1.0 | |
Description: A helper plugin for long posts by introducing a "scroll to" floating panel. | |
*/ |
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_shortcode('last_updated','53fh26_lastupdated'); | |
function 53fh26_lastupdated($atts,$content = null){ | |
$updated = get_the_modified_date('F j, Y'); | |
$out = sprintf('<p class="last-updated">Last Updated: %s</p>',$updated); | |
return $out; | |
} | |
// Usage |
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: [changelog id=""] | |
Atts: "id" is the id of the download in EDD | |
*/ | |
add_shortcode('changelog','edd_changelog_sc')); | |
function edd_changelog_sc($atts,$content = null) { | |
$defaults = array( |
NewerOlder