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
public function create_account() { | |
// Check the session. Same as before. | |
if ($this->session->userdata('logged_in')) { | |
$session_data = $this->session->userdata('logged_in'); | |
} else { redirect('login', 'refresh'); } | |
// Set initial state of the form in the create_account view. | |
$data['message'] = "Create a New Admin Account"; | |
// Check if the form has submitted. |
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
// | |
// ZOOTabBarViewController.h | |
// ZooIBeaconApplication | |
// | |
// Created by Haidong Wang on 4/17/14. | |
// Copyright (c) 2014 Mizzou IT. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
#import "ESTBeacon.h" |
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 | |
error_reporting(E_ALL); | |
/* | |
Plugin Name: Messager Widget | |
Plugin URI: http://www.hazardouswasteexperts.com/ | |
Description: A example of how to make a WordPress widget | |
Author: Jason Jones | |
Author URI: http://www.hazardouswasteexperts.com/ | |
Version 1.0 | |
*/ |
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 useOfTime() | |
{ | |
setTimeout(function() | |
{ | |
confirm('Is this a good use of your time?') | |
}, 20000); | |
} |
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 | |
//might want a check here to make sure the values you need are available | |
require_once('wp-load.php'); | |
global $wpdb; | |
//this function is just taking the $_REQUEST values and returning $wpdb-get_results() | |
$volunteers = jb_get_volunteers(); | |
$header_line = array(); |
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 | |
// Remove the last link in breadcrumbs | |
// WHY? Because it an span tag that contains the title of the page | |
// But you're already on the page, so what's the point? | |
add_filter( 'wpseo_breadcrumb_links', 'jj_wpseo_breadcrumb_links' ); | |
function jj_wpseo_breadcrumb_links( $links ) { | |
//pk_print( sizeof($links) ); | |
if( sizeof($links) > 1 ){ | |
array_pop($links); |
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
/* | |
* Force URLs in srcset attributes into HTTPS scheme. | |
*/ | |
function ssl_srcset( $sources ) { | |
foreach ( $sources as &$src ) { | |
$src['url'] = set_url_scheme( $src['url'], 'https' ); | |
} | |
return $sources; | |
} |
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
.carousel-fade { | |
.carousel-inner { | |
.item { opacity:0; .transition-property(opacity); } | |
.active { opacity:1; } | |
.active.left, | |
.active.right { left:0; opacity:0; z-index:1; } | |
.next.left, | |
.prev.right { opacity:1; } | |
} | |
.carousel-control { z-index:2; text-shadow: none; } |
OlderNewer