themename = "Vigilance";
$this->themeurl = "http://themes.jestro.com/vigilance/";
$this->shortname = "V";
$directory = get_bloginfo('stylesheet_directory');
/*
OPTION TYPES:
- checkbox: name, id, desc, std, type
- radio: name, id, desc, std, type, options
- text: name, id, desc, std, type
- colorpicker: name, id, desc, std, type
- select: name, id, desc, std, type, options
- textarea: name, id, desc, std, type, options
*/
$this->options = array(
array( "name" => __('Custom Logo Image insert your custom logo image in the header', 'vigilance'),
"notice" => __('This option is for PRO members only. To enable this option and use your custom logo please sign-up for a PRO membership and download the Vigilance PRO child theme.', 'vigilance'),
"type" => "subhead"),
array( "name" => __('Enable custom logo image', 'vigilance'),
"id" => $this->shortname."_logo",
"desc" => __('Check to use a custom logo in the header.', 'vigilance'),
"std" => "false",
"type" => "checkbox"),
array( "name" => __('Logo image file name', 'vigilance'),
"id" => $this->shortname."_logo_img",
"desc" => __('Upload your logo image here: ', 'vigilance') .'' . $directory . '/images/',
"std" => "",
"type" => "text"),
array( "name" => __('Logo image <alt> tag', 'vigilance'),
"id" => $this->shortname."_logo_img_alt",
"desc" => __('Specify the <alt> tag for your logo image.', 'vigilance'),
"std" => "",
"type" => "text"),
array( "name" => __('Display tagline', 'vigilance'),
"id" => $this->shortname."_tagline",
"desc" => __('Check to show your tagline below your logo.', 'vigilance'),
"std" => "",
"type" => "checkbox"),
array( "name" => __('Navigation control your top navigation menu', 'vigilance'),
"type" => "subhead"),
array( "name" => __('Hide all pages', 'vigilance'),
"id" => $this->shortname."_hide_pages",
"desc" => __('Check this box to hide all pages', 'vigilance'),
"std" => "",
"type" => "checkbox"),
array( "name" => __('Exclude specific pages', 'vigilance'),
"id" => $this->shortname."_pages_to_exclude",
"desc" => __('The page ID of pages you do not want displayed in your navigation menu. Use a comma-delimited list, eg. 1,2,3', 'vigilance'),
"std" => "",
"type" => "text"),
array( "name" => __('Hide all categories', 'vigilance'),
"id" => $this->shortname."_hide_cats",
"desc" => __('Check this box to hide all categories.', 'vigilance'),
"std" => "",
"type" => "checkbox"),
array( "name" => __('Exclude specific categories', 'vigilance'),
"id" => $this->shortname."_categories_to_exclude",
"desc" => __('The category ID of pages you do not want displayed in your navigation menu.. Use a comma-delimited list, eg. 1,2,3', 'vigilance'),
"std" => "",
"type" => "text"),
array( "name" => __('Hide home navigation menu item', 'vigilance'),
"id" => $this->shortname."_hide_home",
"desc" => __('Check this box if you are using a static page as your homepage instead of your blog (the default). The extra Home menu item will be removed.', 'vigilance'),
"std" => "",
"type" => "checkbox"),
array( "name" => __('Color Scheme customize your color scheme', 'vigilance'),
"type" => "subhead"),
array( "name" => __('Customize colors', 'vigilance'),
"id" => $this->shortname."_background_css",
"desc" => __('If enabled your theme will use the layouts and colors you choose below.', 'vigilance'),
"std" => "disabled",
"type" => "select",
"options" => array( "disabled" => __('Disabled', 'vigilance'),
"enabled" => __('Enabled', 'vigilance'))),
array( "name" => __('Background color', 'vigilance'),
"id" => $this->shortname."_background_color",
"desc" => __('Use hex values and be sure to include the leading #.', 'vigilance'),
"std" => "#a39c8a",
"type" => "colorpicker"),
array( "name" => __('Border color', 'vigilance'),
"id" => $this->shortname."_border_color",
"desc" => __('Use hex values and be sure to include the leading #.', 'vigilance'),
"std" => "#9a927f",
"type" => "colorpicker"),
array( "name" => __('Link color', 'vigilance'),
"id" => $this->shortname."_link_color",
"desc" => __('Use hex values and be sure to include the leading #.', 'vigilance'),
"std" => "#772124",
"type" => "colorpicker"),
array( "name" => __('Link hover color', 'vigilance'),
"id" => $this->shortname."_hover_color",
"desc" => __('Use hex values and be sure to include the leading #.', 'vigilance'),
"std" => "#58181b",
"type" => "colorpicker"),
array( "name" => __('Disable hover background images', 'vigilance'),
"id" => $this->shortname."_image_hover",
"desc" => __('Check this box if you use custom link colors and do not want the default red showing when a user hovers over the comments bubble or the sidebar menu items.', 'vigilance'),
"std" => "false",
"type" => "checkbox"),
array( "name" => __('Top Banner Image control your top banner image state', 'vigilance'),
"type" => "subhead"),
array( "name" => __('Banner state', 'vigilance'),
"id" => $this->shortname."_banner_state",
"desc" => __('Add your images to the top banner rotation by uploading them here: ', 'vigilance') .'' . $directory . '/images/top-banner/' . '' . __('PRO Tutorial: Use page and post specific images', 'vigilance') . ' →',
"std" => "rotate",
"type" => "select",
"options" => array( "rotate" => __('Rotating images', 'vigilance'),
"static" => __('Static image', 'vigilance'),
"specific" => __('Page or post specific', 'vigilance'),
"custom" => __('Custom code', 'vigilance'),
"hide" => __('Do not show an image', 'vigilance'))),
array( "name" => __('Banner height', 'vigilance'),
"id" => $this->shortname."_banner_height",
"desc" => __('The height of your image. The width is fixed at 596px.', 'vigilance'),
"std" => "",
"type" => "text"),
array( "name" => __('Banner <alt> tag', 'vigilance'),
"id" => $this->shortname."_banner_alt",
"desc" => __('Specify the <alt> tag for your banner image(s). Will default to your blog title if left blank.', 'vigilance'),
"std" => "",
"type" => "text"),
array( "name" => __('Static image name', 'vigilance'),
"id" => $this->shortname."_banner_url",
"desc" => __('Set the Banner State to "Static Image" and upload your image here: ', 'vigilance') .'' . $directory . '/images/top-banner/',
"std" => "",
"type" => "text"),
array( "name" => __('Home image name', 'vigilance'),
"id" => $this->shortname."_banner_home",
"desc" => __('To replace your home top banner with a specific image upload it here: ', 'vigilance') .'' . $directory . '/images/top-banner/',
"std" => "",
"type" => "text"),
array( "name" => __('Custom code', 'vigilance'),
"id" => $this->shortname."_banner_custom",
"desc" => __('Replace your top banner with custom code. The Banner State must be set to "Custom code" for this to work.', 'vigilance'),
"std" => "",
"type" => "textarea",
"options" => array( "rows" => "5",
"cols" => "40")),
array( "name" => __('Alert Box toggle your custom alert box', 'vigilance'),
"type" => "subhead"),
array( "name" => __('Alert Box on/off switch', 'vigilance'),
"id" => $this->shortname."_alertbox_state",
"desc" => __('Toggle the alert box on or off.', 'vigilance'),
"std" => "off",
"type" => "select",
"options" => array( "off" => __('Off', 'vigilance'),
"on" => __('On', 'vigilance'))),
array( "name" => __('Alert Title', 'vigilance'),
"id" => $this->shortname."_alertbox_title",
"desc" => __('The heading for your alert.', 'vigilance'),
"std" => "Your Alert Header",
"type" => "text"),
array( "name" => __('Alert Message', 'vigilance'),
"id" => $this->shortname."_alertbox_content",
"desc" => __('A special alert message that is shown on the homepage of your blog', 'vigilance'),
"std" => "Your alert message goes here.",
"type" => "textarea",
"options" => array( "rows" => "8",
"cols" => "70")),
array( "name" => __('Sidebar Image control your sidebar image state', 'vigilance'),
"type" => "subhead"),
array( "name" => __('Image state', 'vigilance'),
"desc" => __('Add your images to the sidebar rotation by uploading them here: ', 'vigilance') .'' . $directory . '/images/sidebar/' . '' . __('PRO Tutorial: Use page and post specific images', 'vigilance') . ' →',
"id" => $this->shortname."_sideimg_state",
"std" => "rotate",
"type" => "select",
"options" => array( "rotate" => __('Rotating images', 'vigilance'),
"static" => __('Static image', 'vigilance'),
"custom" => __('Custom code', 'vigilance'),
"specific" => __('Page or post specific', 'vigilance'),
"hide" => __('Do not show an image', 'vigilance'))),
array( "name" => __('Image height', 'vigilance'),
"id" => $this->shortname."_sideimg_height",
"desc" => __('The height of your image. The width is fixed at 300px.', 'vigilance'),
"std" => "",
"type" => "text"),
array( "name" => __('Image <alt> tag', 'vigilance'),
"id" => $this->shortname."_sideimg_alt",
"desc" => __('The <alt> tag for your sidebar image(s). Will default to your blog title if left blank.', 'vigilance'),
"std" => "",
"type" => "text"),
array( "name" => __('Static image', 'vigilance'),
"id" => $this->shortname."_sideimg_url",
"desc" => __('Set the Image State to "Static Image" and upload your image here: ', 'vigilance') .'' . $directory . '/images/sidebar/',
"std" => "",
"type" => "text"),
array( "name" => __('Image link', 'vigilance'),
"id" => $this->shortname."_sideimg_link",
"desc" => __('Define a hyperlink for your sidebar image. If left empty the anchor tags will not be included.', 'vigilance'),
"std" => "",
"type" => "text"),
array( "name" => __('Custom code', 'vigilance'),
"id" => $this->shortname."_sideimg_custom",
"desc" => __('Replace your sidebar image with custom code. The Image State must be set to "Custom code" for this to work.', 'vigilance'),
"std" => "",
"type" => "textarea",
"options" => array( "rows" => "5",
"cols" => "40")),
array( "name" => __('Sidebar Feed Box share feeds and updates with your readers', 'vigilance'),
"type" => "subhead"),
array( "name" => __('Feed box state', 'vigilance'),
"desc" => __('Enable or disable the feed box in the sidebar.', 'vigilance'),
"id" => $this->shortname."_feed_state",
"std" => "enabled",
"type" => "select",
"options" => array( "disabled" => __('Disabled', 'vigilance'),
"enabled" => __('Enabled', 'vigilance'))),
array( "name" => __('Feed box title text', 'vigilance'),
"id" => $this->shortname."_feed_title",
"desc" => __('Header for your feed box.', 'vigilance'),
"std" => __('Get Free Updates', 'vigilance'),
"type" => "text"),
array( "name" => __('Feed box intro text', 'vigilance'),
"id" => $this->shortname."_feed_intro",
"desc" => __('Enter your feed intro text here.', 'vigilance'),
"std" => __('Get the latest and the greatest news delivered for free to your reader or your inbox:', 'vigilance'),
"type" => "textarea",
"options" => array( "rows" => "5",
"cols" => "40")),
array( "name" => __('Feedburner email updates link', 'vigilance'),
"id" => $this->shortname."_feed_email",
"desc" => __('Enter your feed email link here. Do not paste the provided link code, extract and paste the URL only.', 'vigilance') . '' . __('PRO Tutorial: Find your Feedburner email updates link', 'vigilance') . ' →',
"std" => "http://feedburner.google.com/fb/a/mailverify?uri=YOURFEEDID&loc=en_US",
"type" => "textarea",
"options" => array( "rows" => "2",
"cols" => "80") ),
array( "name" => __('Enable Twitter', 'vigilance'),
"id" => $this->shortname."_twitter_toggle",
"desc" => __('Hip to Twitter? Check this box.', 'vigilance'),
"std" => "",
"type" => "checkbox"),
array( "name" => __('Twitter updates link', 'vigilance'),
"id" => $this->shortname."_twitter",
"desc" => __('Enter your twitter link here.', 'vigilance'),
"type" => "text"),
array( "name" => __('Footer add a copyright notice and tracking codes', 'vigilance'),
"type" => "subhead"),
array( "name" => __('Copyright notice', 'vigilance'),
"id" => $this->shortname."_copyright_name",
"desc" => __('Your name or the name of your business.', 'vigilance'),
"std" => "",
"type" => "text"),
array( "name" => __('Stats code', 'vigilance'),
"id" => $this->shortname."_stats_code",
"desc" => __('If you would like to use Google Analytics or any other tracking script in your footer just paste it here. The script will be inserted before the closing </body> tag.', 'vigilance'),
"std" => "",
"type" => "textarea",
"options" => array( "rows" => "5",
"cols" => "40")),
);
parent::JestroCore();
}
/*
ALL OF THE FUNCTIONS BELOW
ARE BASED ON THE OPTIONS ABOVE
EVERY OPTION SHOULD HAVE A FUNCTION
THESE FUNCTIONS CURRENTLY JUST
RETURN THE OPTION, BUT COULD BE
REWRITTEN TO RETURN DIFFERENT DATA
*/
/* LOGO FUNCTIONS */
function logoState () {
return get_option($this->shortname.'_logo');
}
function logoName () {
return get_option($this->shortname.'_logo_img');
}
function logoAlt () {
return get_option($this->shortname.'_logo_img_alt');
}
function logoTagline () {
return get_option($this->shortname.'_tagline');
}
/* NAVIGATION FUNCTIONS */
function excludedPages () {
return get_option($this->shortname.'_pages_to_exclude');
}
function excludedCategories () {
return get_option($this->shortname.'_categories_to_exclude');
}
function hidePages () {
return get_option($this->shortname.'_hide_pages');
}
function hideCategories () {
return get_option($this->shortname.'_hide_cats');
}
function hideHome () {
return get_option($this->shortname.'_hide_home');
}
/* FOOTER FUNCTIONS */
function copyrightName() {
return wp_filter_post_kses(get_option($this->shortname.'_copyright_name'));
}
function statsCode() {
return stripslashes(get_option($this->shortname.'_stats_code'));
}
/* ALERTBOX FUNCTIONS */
function alertboxState() {
return get_option($this->shortname.'_alertbox_state');
}
function alertboxTitle() {
return stripslashes(wp_filter_post_kses(get_option($this->shortname.'_alertbox_title')));
}
function alertboxContent() {
return stripslashes(wp_filter_post_kses(wpautop(get_option($this->shortname.'_alertbox_content'))));
}
/* BANNER FUNCTIONS */
function bannerState() {
return get_option($this->shortname.'_banner_state');
}
function BannerHeight() {
return wp_filter_post_kses(get_option($this->shortname.'_banner_height'));
}
function bannerAlt() {
return get_option($this->shortname.'_banner_alt');
}
function bannerUrl() {
return wp_filter_post_kses(get_option($this->shortname.'_banner_url'));
}
function bannerHome() {
return stripslashes(wp_filter_post_kses(get_option($this->shortname.'_banner_home')));
}
function bannerCustom() {
return stripslashes(wp_filter_post_kses(get_option($this->shortname.'_banner_custom')));
}
/* FEED FUNCTIONS */
function feedState() {
return get_option($this->shortname.'_feed_state');
}
function feedTitle() {
return stripslashes(wp_filter_post_kses(get_option($this->shortname.'_feed_title')));
}
function feedIntro() {
return stripslashes(wp_filter_post_kses(get_option($this->shortname.'_feed_intro')));
}
function feedEmail() {
return htmlspecialchars(wp_filter_post_kses(get_option($this->shortname.'_feed_email', UTF-8)));
}
/* TWITTER FUNCTIONS */
function twitter() {
return htmlspecialchars(wp_filter_post_kses(get_option($this->shortname.'_twitter', UTF-8)));
}
function twitterToggle() {
return get_option($this->shortname.'_twitter_toggle');
}
/* SIDE IMAGE FUNCTIONS */
function sideimgState() {
return get_option($this->shortname.'_sideimg_state');
}
function sideimgHeight() {
return wp_filter_post_kses(get_option($this->shortname.'_sideimg_height'));
}
function sideimgAlt() {
return stripslashes(wp_filter_post_kses(get_option($this->shortname.'_sideimg_alt')));
}
function sideimgUrl() {
return wp_filter_post_kses(get_option($this->shortname.'_sideimg_url'));
}
function sideimgLink() {
return wp_filter_post_kses(get_option($this->shortname.'_sideimg_link'));
}
function sideimgCustom() {
return stripslashes(wp_filter_post_kses(get_option($this->shortname.'_sideimg_custom')));
}
/* CSS FUNCTIONS */
function backgroundCss() {
return get_option($this->shortname.'_background_css');
}
function backgroundColor() {
return get_option($this->shortname.'_background_color');
}
function borderColor() {
return get_option($this->shortname.'_border_color');
}
function linkColor() {
return get_option($this->shortname.'_link_color');
}
function hoverColor() {
return get_option($this->shortname.'_hover_color');
}
function imageHover() {
return get_option($this->shortname.'_image_hover');
}
}
}
/* SETTING EVERYTHING IN MOTION */
if (class_exists('Vigilance')) {
$vigilance = new Vigilance();
}
?>