heres the first 200 lines of the code:
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<div class="widgets">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>',
));
?>
<?php
if(function_exists('register_nav_menu')) {
add_action( 'init', 'register_my_menu' );
function register_my_menu() {
register_nav_menu( 'primary-menu', __( 'Primary Menu' ) );
}
}
?>
<?php
function widget_mytheme_search() {
?>
<div class="widgets"><h2>Search</h2>
<form id="searchform" method="get" action="<?php bloginfo('home'); ?>/"> <input type="text" value="type, hit enter" onfocus="if (this.value == 'type, hit enter') {this.value = '';}" onblur="if (this.value == '') {this.value = 'type, hit enter';}" size="18" maxlength="50" name="s" id="s" /> </form> </div>
<?php
}
if ( function_exists('register_sidebar_widget') )
register_sidebar_widget(__('Search'), 'widget_mytheme_search');
?>
<?php
function mytheme_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
<div id="comment-<?php comment_ID(); ?>">
<div class="gravreply">
<?php echo get_avatar($comment,$size='38',$default='<path_to_url>' ); ?>
<?php comment_reply_link(array_merge( $args, array('reply_text' => 'Reply', 'add_below' =>
$add_below, 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?>
</div><!-- end gravreply -->
<div class="comment-author vcard">
<?php printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) ?>
</div>
<?php if ($comment->comment_approved == '0') : ?>
<em><?php _e('Your comment is awaiting moderation.') ?></em>
<br />
<?php endif; ?>
<div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(), get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),' ','') ?></div>
<?php comment_text() ?>
</div>
<?php
}
?>
<?php
function get_custom_field($key, $echo = FALSE) {
global $post;
$custom_field = get_post_meta($post->ID, $key, true);
if ($echo == FALSE) return $custom_field;
echo $custom_field;
}
?>
<?php
function footer_wp_link() {
return 'Powered by <a href="http://WordPress.org/" title="WordPress">WordPress</a>';
}
add_shortcode('wp-link', 'footer_wp_link');
function footer_credit_link() {
return 'Designed by <a href="http://empirethemes.com/" title="Empire Themes">Empire Themes</a>';
}
add_shortcode('credit-link', 'footer_credit_link');
function footer_copy_text() {
return '© ' . date('Y') .' '. get_bloginfo('name') .'';
}
add_shortcode('copyright-text', 'footer_copy_text');
function footer_all_rights() {
return 'All Rights Reserved';
}
add_shortcode('all-rights', 'footer_all_rights');
function footer_built_on() {
return 'Built on <a href="http://empirethemes.com/et-starter/">ET-Starter</a>';
}
add_shortcode('built-on', 'footer_built_on');
?>
<?php
$themename = "Cumulus";
$shortname = "et";
$options = array (
array( "type" => "open"),
array( "name" => "Text in Footer:",
"desc" => "You can use the following shortcodes in your footer: [copyright-text] [all-rights-reserved] [wp-link] [credit-link] [built-on]",
"id" => $shortname."_footer_info",
"std" => "[copyright-text]. [wp-link]. [credit-link].",
"type" => "textarea"),
array( "type" => "close"),
array( "type" => "open"),
array( "name" => "Google Analytics Code:",
"desc" => "Paste your Google Analytics code here",
"id" => $shortname."_google",
"type" => "textarea"),
array( "type" => "close"),
array( "type" => "open"),
array( "name" => "Footer Tagline",
"desc" => "Enter in your footer tagline",
"id" => $shortname."_footer_tagline",
"type" => "input"),
array( "type" => "close"),
array( "type" => "open"),
array( "name" => "'Read More About Me' button",
"desc" => "Enter in Full URL for this button. Example: http://example.com/page-name/",
"id" => $shortname."_aboutmelink",
"type" => "input",
"std" => ""),
array( "type" => "close"),
array( "type" => "open"),
array( "name" => "'View My Work' button",
"desc" => "Enter in Full URL for this button. Example: http://example.com/page-name/",
"id" => $shortname."_worklink",
"type" => "input",
"std" => ""),
array( "type" => "close"),
array( "type" => "open"),
array( "name" => "Show Empire Themes Image Credit?",
"desc" => "No, if checked.",
"id" => $shortname."_img",
"type" => "checkbox",
"std" => "false"),
array( "type" => "close"),
);
function mytheme_add_admin() {
global $themename, $shortname, $options;
if ( $_GET['page'] == basename(__FILE__) ) {
if ( 'save' == $_REQUEST['action'] ) {
foreach ($options as $value) {
update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }
foreach ($options as $value) {
if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } }
header("Location: themes.php?page=functions.php&saved=true");
die;
} else if( 'reset' == $_REQUEST['action'] ) {
foreach ($options as $value) {
delete_option( $value['id'] ); }
header("Location: themes.php?page=functions.php&reset=true");
die;
}
}
add_theme_page(Theme." Options", "".Theme." Options", 'edit_themes', basename(__FILE__), 'mytheme_admin');
}
function mytheme_admin() {
global $themename, $shortname, $options;
if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings saved.</strong></p></div>';
if ( $_REQUEST['reset'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings reset.</strong></p></div>';
?>
<div class="wrap">
<h2 style="font-style:normal;">Theme Options</h2>
Thanks! 🙂