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
(function($){ | |
$.fn.fullscreenr = function(options) { | |
if(options.height === undefined) alert('Please supply the background image height, default values will now be used. These may be very inaccurate.'); | |
if(options.width === undefined) alert('Please supply the background image width, default values will now be used. These may be very inaccurate.'); | |
if(options.bgID === undefined) alert('Please supply the background image ID, default #bgimg will now be used.'); | |
var defaults = { width: 1280, height: 1024, bgID: 'bgimg' }, | |
options = $.extend({}, defaults, options); | |
$(document).ready(function() { $(options.bgID).fullscreenrResizer(options); }); | |
$(window).bind("resize", function() { $(options.bgID).fullscreenrResizer(options); }); | |
return this; |
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 | |
// Define and creating constants | |
define('TEMPPATH', get_bloginfo('stylesheet_directory')); // Path to the theme directory | |
define('IMAGES', TEMPPATH. "/images"); // IMAGES uses TEMPPATH and appends the image folder | |
// Add theme support for custom menu | |
add_theme_support('nav-menus'); | |
if(function_exists('register_nav_menu')) { | |
// This theme uses wp_nav_menu() in one location. |