PluginProbe
Unique Headers / 1.2
Unique Headers v1.2
2.1.3 2.1 2.1.1 2.0.1 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.1 1.2 1.2.1 1.3.10 1.3.11 1.3.12 1.3.13 1.3.7 1.3.8 1.3.9 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 All 54 releases
unique-headers / index.php

index.php in Unique Headers 1.2, at index.php

80 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: Unique Headers
4 Plugin URI: http://geek.ryanhellyer.net/
5 Description: Unique Headers
6 Version: 1.2
7 Author: Ryan Hellyer / Metronet
8 Author URI: http://geek.ryanhellyer.net/
9
10 ------------------------------------------------------------------------
11 Copyright Ryan Hellyer
12
13 This program is free software; you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation; either version 2 of the License, or
16 (at your option) any later version.
17
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
27 */
28
29
30
31 /**
32 * Do not continue processing since file was called directly
33 *
34 * @since 1.0
35 * @author Ryan Hellyer <ryanhellyer@gmail.com>
36 */
37 if ( !defined( 'ABSPATH' ) )
38 die( 'Eh! What you doin in here?' );
39
40 /**
41 * Load classes
42 *
43 * @since 1.0
44 * @author Ryan Hellyer <ryanhellyer@gmail.com>
45 */
46 require( 'inc/class-uh-taxonomy-header-images.php' );
47 require( 'inc/class-uh-post-header-images.php' );
48 require( 'inc/class-kd-multiple-featured-images.php' );
49
50 /**
51 * Define constants
52 *
53 * @since 1.0
54 * @author Ryan Hellyer <ryanhellyer@gmail.com>
55 */
56 define( 'UNIQUEHEADERS_DIR', dirname( __FILE__ ) . '/' ); // Plugin folder DIR
57 define( 'UNIQUEHEADERS_URL', WP_PLUGIN_URL . '/' . basename( UNIQUEHEADERS_DIR ) . '' ); // Plugin folder URL
58
59 /**
60 * Instantiate classes
61 *
62 * @since 1.0
63 * @author Ryan Hellyer <ryanhellyer@gmail.com>
64 */
65 new UH_Taxonomy_Header_Images();
66 new UH_Post_Header_Images();
67 $args = array(
68 'id' => 'custom-header',
69 'post_type' => 'post', // Set this to post or page
70 'labels' => array(
71 'name' => __( 'Custom header', 'unique_headers' ),
72 'set' => __( 'Set custom header', 'unique_headers' ),
73 'remove' => __( 'Remove custom header', 'unique_headers' ),
74 'use' => __( 'Use custom header', 'unique_headers' ),
75 )
76 );
77 new kdMultipleFeaturedImages( $args );
78 $args['post_type'] = 'page';
79 new kdMultipleFeaturedImages( $args );
80