EOF;
IF (function_exists("themetoolkit")){
$theme_options["link-separator"] = "{$obt_script}".obt_translate("Links")." ## separator";
$theme_options["linkhue"] = obt_translate("Color")." ## ## ";
$theme_options["linksaturation"] = obt_translate("Intensity")." ## ## ";
$theme_options["header-separator"] = obt_translate("Header and footer")." ## separator";
$theme_options["headerhue"] = obt_translate("Color")." ## ## ";
$theme_options["headersaturation"] = obt_translate("Intensity")." ## ## ";
$theme_options["colors-separator"] = obt_translate("Colors")." ## separator";
$theme_options["headerlight"] = obt_translate("Header and footer")." ## radio|light|".obt_translate("Light")."|dark|".obt_translate("Dark")."";
$theme_options["background"] = obt_translate("Background")." ## radio|white|".obt_translate("White")."|lightgray|".obt_translate("Light gray")."";
$theme_options["general-separator"] = obt_translate("General options")." ## separator";
$theme_options["align"] = obt_translate("Body alignment")." ## radio|center|".obt_translate("Center")."|left|".obt_translate("Left");
$theme_options["width"] = obt_translate("Body width")." ## ## ".obt_translate("Fixed measure (i.e. 780px) or percentage (i.e. 90%)");
$theme_options["sidebaralign"] = obt_translate("Sidebar alignment")." ## radio|left|".obt_translate("Left")."|right|".obt_translate("Right")."";
$theme_options["sidebarwidth"] = obt_translate("Sidebar width")." ## ## ".obt_translate("Fixed measure (i.e. 300px) or percentage (i.e. 40%)");
$theme_options["leftsidebarwidth"] = obt_translate("Sidebar left column width")." ## ## ".obt_translate("Fixed measure (i.e. 140px) or percentage (i.e. 50%)");
$theme_options["menu"] = obt_translate("Pages menu")." ## radio|horizontal|".obt_translate("Horizontal menu on the header")."|regular|".obt_translate("Regular menu on the sidebar");
$theme_options["image"] = obt_translate("Header image")." ## ## ".obt_translate("Specify the full url of the image you want to be displayed in the header");
$theme_options["imagenomargins"] = " ## checkbox";
$theme_options["imagenomargins"] .= "|imagenomargins|1|".obt_translate("Display image without margins");
$theme_options["imagewidth"] = obt_translate("Image width")." ## ## ".obt_translate("Specify the width for the previous image, just a number (i.e. 200)");
$theme_options["imageheight"] = obt_translate("Image height")." ## ## ".obt_translate("Specify the height for the previous image, just a number (i.e. 50)");
$theme_options["posts-separator"] = obt_translate("Posts")." ## separator";
$theme_options["posts"] = obt_translate("Homepage")." ## radio|full|".obt_translate("Full text")."|excerpt|".obt_translate("First X words (or excerpt if available)")."|paragraphs|".obt_translate("First X paragraphs");
$theme_options["posts-words"] = " ## ## ".obt_translate("Number of words");
$theme_options["posts-paragraphs"] = " ## ## ".obt_translate("Number of paragraphs");
$theme_options["posts-archives"] = obt_translate("Archives (categories, dates, tags...)")." ## radio|full|".obt_translate("Full text")."|excerpt|".obt_translate("First X words (or excerpt if available)")."|paragraphs|".obt_translate("First X paragraphs");
$theme_options["posts-archives-words"] = " ## ## ".obt_translate("Number of words");
$theme_options["posts-archives-paragraphs"] = " ## ## ".obt_translate("Number of paragraphs");
$theme_options["comments-separator"] = obt_translate("Comments")." ## separator";
$theme_options["comments-order"] = obt_translate("Order")." ## radio|newer|".obt_translate("Newer first")."|older|".obt_translate("Older first");
$theme_options["comments-pagination"] = obt_translate("Comments per page")." ## ## ".obt_translate("Enter 0 to avoid comment pagination");
$theme_options["comments-post-full"] = obt_translate("Post page always full")." ## checkbox";
$theme_options["comments-post-full"] .= "|comments-post-full|1|".obt_translate("If order is set to \"newer first\", this will make post pages contain the maximum number of comments allowed, but comment permalinks could vary over time");
$theme_options["social-separator"] = obt_translate("Social buttons")." ## separator";
$theme_options["subscribe"] = obt_translate("Feed aggregators")." ## checkbox";
$theme_options["subscribe"] .= "|subscribe-bloglines|1|Bloglines";
$theme_options["subscribe"] .= "|subscribe-feedster|1|Feedster";
$theme_options["subscribe"] .= "|subscribe-google|1|Google Reader";
$theme_options["subscribe"] .= "|subscribe-live|1|Live";
$theme_options["subscribe"] .= "|subscribe-aol|1|MyAOL";
$theme_options["subscribe"] .= "|subscribe-yahoo|1|MyYahoo";
$theme_options["subscribe"] .= "|subscribe-netvibes|1|Netvibes";
$theme_options["subscribe"] .= "|subscribe-newsgator|1|Newsgator";
$theme_options["subscribe"] .= "|subscribe-rojo|1|Rojo";
$theme_options["share"] = obt_translate("Social bookmarkers")." ## checkbox";
$theme_options["share"] .= "|share-barrapunto|1|Barrapunto";
$theme_options["share"] .= "|share-blinklist|1|BlinkList";
$theme_options["share"] .= "|share-blogmemes|1|BlogMemes";
$theme_options["share"] .= "|share-corank|1|CoRank";
$theme_options["share"] .= "|share-corank-es|1|CoRank Español";
$theme_options["share"] .= "|share-delicious|1|Delicious";
$theme_options["share"] .= "|share-digg|1|Digg";
$theme_options["share"] .= "|share-enchilame|1|Enchílame";
$theme_options["share"] .= "|share-fark|1|Fark";
$theme_options["share"] .= "|share-fresqui-act|1|Fresqui Actualidad";
$theme_options["share"] .= "|share-fresqui-ocio|1|Fresqui Ocio";
$theme_options["share"] .= "|share-fresqui-tec|1|Fresqui Tecnología";
$theme_options["share"] .= "|share-furl|1|Furl";
$theme_options["share"] .= "|share-google|1|Google Bookmarks";
$theme_options["share"] .= "|share-live|1|Live Favorites";
$theme_options["share"] .= "|share-magnolia|1|Magnolia";
$theme_options["share"] .= "|share-meneame|1|Menéame";
$theme_options["share"] .= "|share-neodiario|1|Neodiario";
$theme_options["share"] .= "|share-netscape|1|Netscape";
$theme_options["share"] .= "|share-newsvine|1|Newsvine";
$theme_options["share"] .= "|share-reddit|1|Reddit";
$theme_options["share"] .= "|share-rojo|1|Rojo";
$theme_options["share"] .= "|share-slashdot|1|Slashdot";
$theme_options["share"] .= "|share-spurl|1|Spurl";
$theme_options["share"] .= "|share-stumbleupon|1|Stumbleupon";
$theme_options["share"] .= "|share-technorati|1|Technorati Favorites";
$theme_options["share"] .= "|share-yahoo|1|Yahoo MyWeb";
$theme_options["feed-separator"] = obt_translate("Feed options")." ## separator";
$theme_options["feed"] = obt_translate("Enable this feeds")." ## checkbox";
$theme_options["feed"] .= "|feed|1|".obt_translate("Posts")." (".obt_translate("you shouldn't disable this").")";
$theme_options["feed"] .= "|feed-comments|1|".obt_translate("Comments");
$theme_options["feed"] .= "|feed-single|1|".obt_translate("Comments for each post");
$theme_options["feed"] .= "|feed-categories|1|".obt_translate("Categories");
$theme_options["feed"] .= "|feed-tags|1|".obt_translate("Tags");;
$theme_options["feed"] .= "|feed-bloggers|1|".obt_translate("Bloggers");
$theme_options["alternate-feed"] = obt_translate("Alternate feed (posts)")." ## ## ".obt_translate("Specify the full url for the alternate feed (Feedburner, etc) for posts");
$theme_options["alternate-feed-comments"] = obt_translate("Alternate feed (comments)")." ## ## ".obt_translate("Specify the full url for the alternate feed (Feedburner, etc) for comments");
$theme_options["feed-type"] = obt_translate("Enable this feed types")." ## checkbox";
$theme_options["feed-type"] .= "|feed-rss2|1|RSS 2.0 (".obt_translate("you shouldn't disable this").")";
$theme_options["feed-type"] .= "|feed-rss|1|RSS";
$theme_options["feed-type"] .= "|feed-atom|1|Atom";
$theme_options["feed-type"] .= "|feed-rdf|1|RDF";
$theme_options["feed-content"] = obt_translate("Feed content")." ## checkbox";
$theme_options["feed-content"] .= "|feed-content-related-posts|1|".obt_translate("Add related posts to the feed content");
$theme_options["feed-content"] .= "|feed-content-categories|1|".obt_translate("Add categories to the feed content");
$theme_options["feed-content"] .= "|feed-content-tags|1|".obt_translate("Add tags to the feed content");
$theme_options["feed-content"] .= "|feed-content-share|1|".obt_translate("Add social bookmarkers to the feed content");
$theme_options["feed-content"] .= "|feed-content-attribution|1|".obt_translate("Add attribution links to the feed content");
$theme_options["subscribe-email-separator"] = obt_translate("Email subscription form")." ## separator";
$theme_options["subscribe-email-form"] = obt_translate("Email subscription form")." ## radio|none|".obt_translate("None")."|feedburner|FeedBurner|feedblitz|FeedBlitz";
$theme_options["subscribe-email-feedburner"] = obt_translate("FeedBurner ID")." ## ## ".obt_translate("Enable this option in FeedBurner and look for XXX in the code").": http://feeds.feedburner.com/~e?ffid=XXX";
$theme_options["subscribe-email-feedblitz"] = obt_translate("FeedBlitz ID")." ## ## ".obt_translate("Look for XXX in the FeedBlitz code").": <input name=\"FEEDID\" type=\"hidden\" value=\"XXX\">";
$theme_options["other-separator"] = obt_translate("Other options")." ## separator";
$theme_options["comment-notification"] = obt_translate("Comment email notification")." ## checkbox";
$theme_options["comment-notification"] .= "|comment-notification|1|".obt_translate("Enable comment email notification");
$theme_options["comment-notification"] .= "|comment-notification-default|1|".obt_translate("Check notification checkbox by default");
$theme_options["site-title"] = obt_translate("Site name in titles")." ## radio|beginning|".obt_translate("Display site name at the beginning of the titles")."|end|".obt_translate("Display site name at the end of the titles");
$theme_options["meta-noindex"] = obt_translate("Noindex meta tag in archives")." ## radio|none|".obt_translate("No meta tag")."|archives|".obt_translate("Add noindex meta tag to archives (categories, search, tags...) to avoid content duplication in search engines")."|paginated-archives|".obt_translate("Add noindex meta tag to archives except for the first page");
$theme_options["gravatars"] = "Gravatars ## checkbox";
$theme_options["gravatars"] .= "|gravatars|1|".obt_translate("Include %1 in comments","Gravatars (Globally Recognized Avatars)");
$theme_options["thumbnail-width"] = obt_translate("Thumbnails width")." ## ## ".obt_translate("Max width for thumbnails when uploading images");
themetoolkit("obt_theme",$theme_options,__FILE__);
};
IF ($obt_theme){
IF (!$obt_theme->is_installed()){
$theme_default_options["linkhue"] = "225";
$theme_default_options["linksaturation"] = "150";
$theme_default_options["headerhue"] = "225";
$theme_default_options["headersaturation"] = "150";
$theme_default_options["headerlight"] = "dark";
$theme_default_options["background"] = "lightgray";
$theme_default_options["align"] = "center";
$theme_default_options["width"] = "90%";
$theme_default_options["sidebaralign"] = "left";
$theme_default_options["sidebarwidth"] = "40%";
$theme_default_options["leftsidebarwidth"] = "50%";
$theme_default_options["menu"] = "horizontal";
$theme_default_options["image"] = "http://";
$theme_default_options["imagewidth"] = "200";
$theme_default_options["imageheight"] = "50";
$theme_default_options["posts"] = "full";
$theme_default_options["posts-words"] = "55";
$theme_default_options["posts-paragraphs"] = "1";
$theme_default_options["posts-archives"] = "paragraphs";
$theme_default_options["posts-archives-words"] = "55";
$theme_default_options["posts-archives-paragraphs"] = "1";
$theme_default_options["comments-order"] = "older";
$theme_default_options["comments-pagination"] = "0";
$theme_default_options["subscribe-bloglines"] = "1";
$theme_default_options["subscribe-google"] = "1";
$theme_default_options["subscribe-live"] = "1";
$theme_default_options["subscribe-yahoo"] = "1";
$theme_default_options["subscribe-netvibes"] = "1";
$theme_default_options["subscribe-newsgator"] = "1";
$theme_default_options["subscribe-rojo"] = "1";
$theme_default_options["share-delicious"] = "1";
$theme_default_options["share-digg"] = "1";
$theme_default_options["share-furl"] = "1";
$theme_default_options["share-magnolia"] = "1";
$theme_default_options["share-reddit"] = "1";
$theme_default_options["share-slashdot"] = "1";
$theme_default_options["share-stumbleupon"] = "1";
$theme_default_options["share-technorati"] = "1";
$theme_default_options["feed"] = "1";
$theme_default_options["feed-comments"] = "1";
$theme_default_options["feed-single"] = "1";
$theme_default_options["feed-categories"] = "1";
$theme_default_options["feed-tags"] = "1";
$theme_default_options["feed-bloggers"] = "1";
$theme_default_options["alternate-feed"] = "http://";
$theme_default_options["alternate-feed-comments"] = "http://";
$theme_default_options["feed-rss2"] = "1";
$theme_default_options["feed-rss"] = "1";
$theme_default_options["feed-atom"] = "1";
$theme_default_options["feed-rdf"] = "1";
$theme_default_options["subscribe-email-form"] = "none";
$theme_default_options["comment-notification"] = "1";
$theme_default_options["site-title"] = "end";
$theme_default_options["meta-noindex"] = "none";
$theme_default_options["thumbnail-width"] = "250";
$result = $obt_theme->store_options($theme_default_options);
};
};
FUNCTION obt_get_themeoption($name){
global $obt_theme;
RETURN trim($obt_theme->option[$name]);
};
FUNCTION obt_themeoption($name){
echo obt_get_themeoption($name);
};
?>