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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch (TD)", | |
"type": "mono", | |
"request": "launch", | |
"program": "${workspaceRoot}/OpenRA.Game.exe", | |
"cwd": "${workspaceRoot}", | |
"args": ["Game.Mod=cnc"] |
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 | |
/** | |
* Generate an excerpt from any text. | |
* | |
* @author Ivaylo Draganov <[email protected]> | |
* @note A modified version of core WP function wp_trim_excerpt | |
* @param (string) $text - The text to trim. | |
* @param (int) $words - The number of words to trim. | |
* @return (string) The trimmed and filtered excerpt. | |
*/ |
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: The Loop | |
Plugin URI: https://gist.github.com/3180818 | |
Description: Query posts and display them. | |
Version: 0.2 | |
Author: Ivaylo Draganov | |
Author URI: http://druuf.com/ | |
*/ |
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 | |
/** | |
* Login logo link and title | |
*/ | |
add_filter( 'login_headerurl', 'custom_login_headerurl' ); | |
function custom_login_headerurl() { return get_home_url(); } | |
add_filter( 'login_headertitle', 'custom_login_headertitle' ); | |
function custom_login_headertitle() { return get_bloginfo( 'description' ); } |
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
/*! | |
* Labels to text field values | |
* =========================== | |
* | |
* Set the default value of text fields to the text in a corresponding <label> element | |
*/ | |
;(function($) { | |
$.fn.labelToValue = function() { |
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 | |
/** | |
* Add additional custom fields to profile page | |
*/ | |
add_action ( 'show_user_profile', 'wpq_show_extra_profile_fields' ); | |
add_action ( 'edit_user_profile', 'wpq_show_extra_profile_fields' ); | |
function wpq_show_extra_profile_fields ( $user ) { | |
?> |
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: Simple Password lockdown | |
* Plugin URI: https://gist.github.com/1687747 | |
* Description: Block site from non-logged in users | |
*/ | |
add_action('get_header', 'wpq_member_only_site'); | |
function wpq_member_only_site() { |