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 | |
add_filter( 'login_errors', 'szbl_login_errors' ); | |
function szbl_login_errors( $error ) | |
{ | |
return 'The information you entered was incorrect.'; | |
} |
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
# | |
# Require a password | |
# | |
AuthName "Admin Login" | |
AuthUserFile /home/user/path/to/.htpasswd | |
AuthType basic | |
require valid-user | |
# | |
# Allow admin-ajax.php to work |
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
<Files *.php> | |
deny from all | |
</Files> |
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
<!doctype html> | |
<html> | |
<head> | |
<!-- meta and such --> | |
<title>Most important keywords/title content.</title> | |
</head> | |
<body> | |
<nav id="top"> | |
<ul> |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Source Ordering with jQuery</title> | |
<style type="text/css"> | |
body { font: 14px HelveticaNeue,Helvetica,Arial,Sans-serif; color: #666; text-align: center; } | |
.wrap { margin: 0 auto; width: 980px; text-align: left; } | |
#sidebar { float: right; width: 300px;} | |
#content { width: 650px; } |
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 | |
class Sizeable_Person | |
{ | |
const POST_TYPE_SLUG = 'szbl-person'; | |
public static $instance; | |
public static function init() | |
{ | |
if ( is_null( self::$instance ) ) |
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 | |
/* | |
Plugin Name: Extend Sizeable Person | |
Description: Adds post thumbnails, excerpts and page attributes to People post type. Also, sets URL slug to /people/ instead of /szbl-person/ | |
Author: theandystratton | |
Version: 1.0 | |
License: GPL2+ | |
*/ | |
add_filter( 'szbl_people-post_type_args', 'szbl_people_filter_post_type_args' ); | |
function szbl_people_filter_post_type_args( $args ) |
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 | |
// include all PHP files in ./lib/ directory: | |
foreach ( glob( dirname( __FILE__ ) . '/lib/*.php' ) as $file ) | |
include $file; | |
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 | |
if ( class_exists( 'Sizeable_Person' ) ) : | |
add_action( 'add_meta_boxes', 'szbl_mvc_example_add_meta_boxes' ); | |
function szbl_mvc_example_add_meta_boxes() | |
{ | |
add_meta_box( 'szbl-mvc-person-meta', 'Additional Information', 'szbl_mvc_example_meta_output', Sizeable_Person::POST_TYPE_SLUG, 'normal', 'high' ); | |
} | |