"open"),
array( "name" => "Skin Color",
"desc" => "Choose the overall color style of your site",
"id" => $shortname."_skin_color",
"default" => "blue",
"type" => "skin_color"),
array( "name" => "Header Logo",
"desc" => "Would you like a logo in your header?",
"id" => $shortname."_logo_header",
"default" => "no",
"type" => "logo"),
array( "name" => "Logo or Blog Name Location",
"desc" => "Where do you want your Logo or Blog Name located?",
"id" => $shortname."_logo_location",
"default" => "left",
"type" => "logo-location"),
array( "name" => "Font Size",
"desc" => "Selct the font size used for your site",
"id" => $shortname."_font_size",
"default" => "12px",
"type" => "font_size"),
array( "name" => "Search Bar",
"desc" => "Would you like a Search Bar in your header? It allows a user to search within your site",
"id" => $shortname."_search_header",
"default" => "yes",
"type" => "search"),
array( "name" => "User Login / Admin Bar",
"desc" => "Would you like to display a navigation bar for login/admin pages at the top?",
"id" => $shortname."_user_login",
"default" => "no",
"type" => "login"),
array( "name" => "Socialize Icons",
"desc" => "Enter Links to Your Twitter, Facebook, and RSS feeds.
If you want to remove the icon, clear the field and save this page",
"type" => "socialize_icons"),
array( "id" => $shortname."_icon_twitter",
"default" => ""),
array( "id" => $shortname."_icon_facebook",
"default" => ""),
array( "id" => $shortname."_icon_youtube",
"default" => ""),
array( "id" => $shortname."_icon_rss",
"default" => ''),
array( "name" => "Copyright Year",
"id" => $shortname."_copy_year",
"desc" => "Enter the starting year for your copyright. (Used in your footer like \"Copyright © 2009-".date('Y',time())."\")",
"default" => "",
"type" => "copyright"),
array( "id" => $shortname."_exclude_pages",
"default" => ""),
array( "id" => $shortname."_nav_hide_home",
"default" => "no"),
array( "name" => "Number of Posts",
"desc" => "To limit the number of posts to show on your home, go to Settings: > Reading > edit the 'Blog pages show at most' option",
"id" => $shortname."_number_posts",
"default" => "",
"type" => "posts"),
array( "id" => $shortname."_custom_html_0",
"default" => ""),
array( "id" => $shortname."_custom_html_1",
"default" => ""),
array( "id" => $shortname."_custom_html_2",
"default" => ""),
array( "id" => $shortname."_custom_html_3",
"default" => ""),
array( "id" => $shortname."_custom_html_4",
"default" => ""),
array( "id" => $shortname."_custom_html_5",
"default" => ""),
array( "id" => $shortname."_custom_html_6",
"default" => ""),
array( "id" => $shortname."_custom_html_7",
"default" => ""),
array( "id" => $shortname."_custom_html_8",
"default" => ""),
array( "id" => $shortname."_custom_html_9",
"default" => ""),
array( "id" => $shortname."_custom_html_10",
"default" => ""),
array( "id" => $shortname."_header_image_file",
"default" => ""),
array( "id" => $shortname."_footer_image_file",
"default" => ""),
array( "id" => $shortname."_background_image_file",
"default" => ""),
array( "id" => $shortname."_background_color",
"default" => ""),
array( "id" => $shortname."_background_repeat",
"default" => ""),
array( "name" => "Email Optin / Newsletter Sign Up",
"desc" => "Would you like to collect email address? Show an optin form?",
"type" => "optin-form"),
array( "id" => $shortname."_optin_form",
"default" => "yes"),
array( "id" => $shortname."_optin_image_file",
"default" => ""),
array( "id" => $shortname."_optin_img_alignment",
"default" => "left"),
array( "id" => $shortname."_optin_img",
"default" => "yes"),
array( "id" => $shortname."_optin_text",
"default" => ""),
array( "id" => $shortname."_optin_hide_msg",
"default" => "no"),
array( "id" => $shortname."_optin_html",
"default" => ""),
array( "name" => "Landing Page Header",
"desc" => "Select \"Hidden\" to hide the header & logo from your landing page",
"id" => $shortname."_landing_header",
"default" => "displayed",
"type" => "landing_header"),
array( "name" => "Landing Page Footer",
"desc" => "Select \"Hidden\" to hide the footer from your landing page",
"id" => $shortname."_landing_footer",
"default" => "displayed",
"type" => "landing_footer"),
array( "type" => "close")
);
add_action('admin_head', 'wp_admin_js');
function wp_admin_js() {
if(isset($_GET['page'])) {
if(stristr($_GET['page'],'tbf-design.php')) {
echo ''."\n";
}
if(stristr($_GET['page'],'tbf-optin.php')) {
echo ''."\n";
}
}
}
function tbf1_head() {
global $shortname, $post;
if ( is_page_template('template-landing.php') ) {
$addheight = 0;
} else {
$addheight = 46;
}
echo"\n";
}
add_action('wp_head', 'tbf1_head');
function mytheme_media_buttons_init() {
?>
'.$themename.' settings saved.
'.$excerpt.'
'; $more = 0; } function metaDesc() { $content = strip_tags(get_the_content()); if (strlen($content) < 155) { echo $content; } else { $desc = substr($content,0,155); echo $desc."..."; } } function getImage($num) { global $more; $more = 1; $link = get_permalink(); $content = get_the_content(); $count = substr_count($content, '