# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string
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 | |
| /** | |
| * Enqueue Tweet Script | |
| * | |
| */ | |
| function be_enqueue_tweet_script() { | |
| wp_enqueue_script( 'be-tweet', get_stylesheet_directory_uri() . '/tweet-quote.js', array( 'jquery' ), '1.0', true ); | |
| } | |
| add_action( 'wp_enqueue_scripts', 'be_enqueue_tweet_script' ); |
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 | |
| /** | |
| * echo_r function. | |
| * | |
| * Jon's favorite little debug function | |
| * | |
| * @access public | |
| * @param mixed $array | |
| * @return void | |
| */ |
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
| @media only screen and (min-width: 480px) { | |
| } | |
| @media only screen and (min-width: 600px) { | |
| } | |
| @media only screen and (min-width: 768px) { | |
| } | |
| @media only screen and (min-width: 992px) { | |
| } | |
| @media only screen and (min-width: 1382px) { | |
| } |
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 | |
| global $current_user; | |
| get_currentuserinfo(); | |
| $url = home_url() . '/members/' . $current_user->user_login . '/classifieds/my-classifieds'; | |
| wp_redirect( $url ); | |
| exit; |
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
| /* | |
| Theme Name: Revero | |
| Description: Revero sample theme created for the Genesis Framework. | |
| Author: Mahesh | |
| Author URI: http://www.sparxengine.net | |
| Version: 2 | |
| Tags: black, orange, white, one-column, two-columns, three-columns, fixed-width, custom-menu, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready | |
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
| textarea:focus, | |
| input[type="text"]:focus, | |
| input[type="password"]:focus, | |
| input[type="datetime"]:focus, | |
| input[type="datetime-local"]:focus, | |
| input[type="date"]:focus, | |
| input[type="month"]:focus, | |
| input[type="time"]:focus, | |
| input[type="week"]:focus, | |
| input[type="number"]:focus, |
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 | |
| function create_onetime_nonce( $action = -1 ) { | |
| $time = time(); | |
| $nonce = wp_create_nonce( $time . $action ); | |
| set_transient( '_nonce_' . $time, 1, 60*60 ); // adjust the lifetime of the transient | |
| return $nonce . '-' . $time; | |
| } | |
| function verify_onetime_nonce( $_nonce, $action = -1 ) { | |
| @list( $nonce, $time ) = explode( '-', $_nonce ); |
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
| class Mysite_Auth { | |
| function __construct() { | |
| add_filter( 'login_redirect', array( $this, 'login_redirect' ) ); | |
| } | |
| function login_redirect( $redirect_url ) { | |
| if ( is_user_logged_in() ) { | |
| wp_safe_redirect( '/custom-login' ); | |
| exit; | |
| } |