# unique-headers/1.2/index.php

Unique Headers, version 1.2. 80 lines.

- Page: https://pluginprobe.com/plugins/unique-headers/1.2/code/index.php
- Raw: https://pluginprobe.com/plugins/unique-headers/1.2/raw/index.php
- Modified: 2014-04-19T18:06:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/unique-headers/1.2/code/index.php#L10-L20`.

```php
<?php
/*
Plugin Name: Unique Headers
Plugin URI: http://geek.ryanhellyer.net/
Description: Unique Headers
Version: 1.2
Author: Ryan Hellyer / Metronet
Author URI: http://geek.ryanhellyer.net/

------------------------------------------------------------------------
Copyright Ryan Hellyer

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

*/



/**
 * Do not continue processing since file was called directly
 * 
 * @since 1.0
 * @author Ryan Hellyer <ryanhellyer@gmail.com>
 */
if ( !defined( 'ABSPATH' ) )
	die( 'Eh! What you doin in here?' );

/**
 * Load classes
 * 
 * @since 1.0
 * @author Ryan Hellyer <ryanhellyer@gmail.com>
 */
require( 'inc/class-uh-taxonomy-header-images.php' );
require( 'inc/class-uh-post-header-images.php' );
require( 'inc/class-kd-multiple-featured-images.php' );

/**
 * Define constants
 * 
 * @since 1.0
 * @author Ryan Hellyer <ryanhellyer@gmail.com>
 */
define( 'UNIQUEHEADERS_DIR',     dirname( __FILE__ ) . '/' ); // Plugin folder DIR
define( 'UNIQUEHEADERS_URL',     WP_PLUGIN_URL . '/' . basename( UNIQUEHEADERS_DIR )  . '' ); // Plugin folder URL

/**
 * Instantiate classes
 * 
 * @since 1.0
 * @author Ryan Hellyer <ryanhellyer@gmail.com>
 */
new UH_Taxonomy_Header_Images();
new UH_Post_Header_Images();
$args = array(
	'id' => 'custom-header',
	'post_type' => 'post',      // Set this to post or page
	'labels' => array(
		'name'      => __( 'Custom header', 'unique_headers' ),
		'set'       => __( 'Set custom header', 'unique_headers' ),
		'remove'    => __( 'Remove custom header', 'unique_headers' ),
		'use'       => __( 'Use custom header', 'unique_headers' ),
	)
);
new kdMultipleFeaturedImages( $args );
$args['post_type'] = 'page';
new kdMultipleFeaturedImages( $args );

```
