mvn org.apache.maven.plugins:maven-dependency-plugin:2.4:get -DartifactId=[artifactId] -DgroupId=[groupId] -Dversion=[version]
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 NOT include the opening php tag | |
add_filter( 'wp_nav_menu_items', 'theme_menu_extras', 10, 2 ); | |
/** | |
* Filter menu items, appending either a search form or today's date. | |
* | |
* @param string $menu HTML string of list items. | |
* @param stdClass $args Menu arguments. | |
* |
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
genesis_register_sidebar( array( | |
'id' => 'nav-social-menu', | |
'name' => __( 'Nav Social Menu', 'your-theme-slug' ), | |
'description' => __( 'This is the nav social menu section.', 'your-theme-slug' ), | |
) ); | |
add_filter( 'genesis_nav_items', 'sws_social_icons', 10, 2 ); | |
add_filter( 'wp_nav_menu_items', 'sws_social_icons', 10, 2 ); | |
function sws_social_icons($menu, $args) { |
layout | title |
---|---|
default |
A Great Vim Cheat Sheet |
#A Great Vim Cheat Sheet
Note: If you’re decent at vim and want your mind blown, check out Advanced Vim.
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
//Enqueue script for sticky primary menu | |
add_action( 'wp_enqueue_scripts', 'enqueue_jquery_pin' ); | |
/** | |
* Enqueue script for Sticky Primary Menu/Widgets | |
*/ | |
function enqueue_jquery_pin() { | |
wp_enqueue_script( 'jquery-pin', get_stylesheet_directory_uri() . '/js/jquery.pin.js', array( 'jquery' ), '1.0.0', true ); | |
wp_enqueue_script( 'jquery-pin-init', get_stylesheet_directory_uri() . '/js/jquery.pin.init.js', array( 'jquery-pin' ), '1.0.0', true ); | |
} |
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
//* Register a custom image size for Featured images above entries on list pages | |
add_image_size( 'archive-featured-image', 800, 300, true ); | |
add_action( 'genesis_before_entry', 'sk_featured_image_above_posts' ); | |
/** | |
* Display Featured Image above Post Titles regardless of Content Archives settings | |
* | |
* Context: Posts page, all archives and search results pages. | |
* | |
* @author Sridhar Katakam |
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( 'genesis_after_header', 'sk_mini_fixed_header' ); | |
/** | |
* Mini header with a logo image at left and menu at right. | |
* | |
* @author Sridhar Katakam | |
* @link http://sridharkatakam.com/ | |
*/ | |
function sk_mini_fixed_header() { ?> | |
<div class="mini-header"> | |
<div class="wrap"> |
Shortcut | Function |
---|---|
Escape | Gets out of the current mode into the “command mode”. All keys are bound of commands. |
i | “Insert mode” for inserting text. Keys behave as expected. |
: | “Last-line mode” where Vim expects you to enter a command such asto save the document. |
NewerOlder