{"id":6137,"date":"2009-07-30T08:07:54","date_gmt":"2009-07-30T08:07:54","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/fitr-theme-options\/"},"modified":"2009-11-15T18:03:05","modified_gmt":"2009-11-15T18:03:05","slug":"fitr-theme-options","status":"closed","type":"plugin","link":"https:\/\/kn.wordpress.org\/plugins\/fitr-theme-options\/","author":172889,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"2.9.2","requires":"2.7","requires_php":"","requires_plugins":"","header_name":"Fitr Theme Options","header_author":"Hassan Jahangiry","header_description":"","assets_banners_color":"","last_updated":"2009-11-15 18:03:05","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/wordpresswave.com\/plugins\/cms-members\/","header_plugin_uri":"http:\/\/wpwave.com\/plugins\/fitr-theme-options\/","header_author_uri":"http:\/\/wpwave.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":9642,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1539237","resolution":"2","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539237","resolution":"1","location":"plugin"}},"screenshots":{"1":"Fitr Theme Option.","2":"Fitr Theme Option admin page."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3244,1431,1141,10192,2255],"plugin_category":[43,50,51],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-6137","plugin","type-plugin","status-closed","hentry","plugin_tags-custom-header","plugin_tags-header","plugin_tags-theme","plugin_tags-theme-options","plugin_tags-wpmu","plugin_category-customization","plugin_category-media","plugin_category-multisite","plugin_committers-hassan1"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/fitr-theme-options.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/fitr-theme-options\/trunk\/screenshot-1.png?rev=1539237","caption":"Fitr Theme Option."},{"src":"https:\/\/ps.w.org\/fitr-theme-options\/trunk\/screenshot-2.png?rev=1539237","caption":"Fitr Theme Option admin page."}],"raw_content":"<!--section=description-->\n<p>Fitr Theme Options helps theme designers to make a diverse and rich option page for their themes easily.\nIt provides variety of default options and helps blog owners to design their own themes.<\/p>\n\n<ul>\n<li>The plugin automatically sets up custom header image for the theme.<\/li>\n<li>Users can easily change backgrounds, fonts, sizes, text colors, borders, etc....<\/li>\n<li>The plugin can automatically make theme Right to Left. <\/li>\n<li>Theme author can define unlimited different styles for the theme easily.<\/li>\n<li>Theme author can add custom fields to option page. FTO currently supports text, checkbox, dropdown menu, category menu, page list, radio buttons and text area.<\/li>\n<li>It's plugginable. So imagine a set of new plugins that extends your theme abilities (e.g. random header, style rotator, etc...).<\/li>\n<li>Built-in support for WordPress Default Theme (Kubrick).<\/li>\n<\/ul>\n\n<p>Note: To test the plugin please use WordPress default theme.<\/p>\n\n<h4>Are you a theme author?<\/h4>\n\n<p>Add all of these features to your theme withine minute! Visit <a href=\"http:\/\/wpwave.com\/plugins\/fitr-theme-options\/\">plugin URL<\/a> to learn more.<\/p>\n\n<!--section=installation-->\n<p>While doing the installation procedure, it is recommended to go through all the steps first before viewing the output. If you don't, you'll get nasty error messages.<\/p>\n\n<ol>\n<li>Upload <code>folder content<\/code> to the <code>\/wp-content\/plugins<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress backend<\/li>\n<li>Go to 'Appearance' menu, then to 'Fitr Theme Options'.<\/li>\n<li>Save your changes.<\/li>\n<\/ol>\n\n<h4>Upgrading<\/h4>\n\n<ul>\n<li>Disable the Fitr Theme Options plugin<\/li>\n<li>Delete folder from your server<\/li>\n<li>Download and unzip the new files into the plugins dir<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>I'm a Theme designer how can I add your plugin support to my theme?<\/dt>\n<dd><p>Simply! Just copy and paste this code in your functions.php. Replace Kubrick CSS elements with your theme elements.<\/p>\n\n<p>if ( function_exists('register_fitr_theme_options') ) {\n      register_fitr_theme_options(array(\n         'blogtitle'=&gt;'#headerimg h1',\n         'blogdescription'=&gt;'#headerimg .description',\n         'header_background'=&gt;'#headerimg', \/\/Maybe for background color, background image or logo. It's require to enter width and height for image and logo.\n         'headerimg_path'=&gt;'images\/kubrickheader.jpg', \/\/Default header image e.g. 'images\/header.jpg'\n         'headerimg_width'=&gt;'760', \/\/pixel\n         'headerimg_height'=&gt;'200',\n         'container'=&gt;'#page',   \/\/Main blog div e.g. .wrap .maincol or #page\n         'feedicon'=&gt;'',\n         'menubar'=&gt;'',          \/\/Menu container e.g. #menu or #nav\n         'menuli_bg'=&gt;'',        \/\/e.g. #nav ul li span\n         'menuli_bghover'=&gt;'',   \/\/Separate with comma(,) e.g. #nav li:hover, .current_page\n         'menuli_a'=&gt;'', \/\/Add a\n         'postbox'=&gt;'.post',     \/\/Post container includes title, content, etc\n         'posttitle'=&gt;'.post h2,.post h3',\n         'postcontent'=&gt;'.entry',\n         'postmeta'=&gt;'.narrowcolumn .postmetadata',\n         'date'=&gt;'.post small',\n         'author'=&gt;'',\n         'trackback'=&gt;'',\n         'allowed_html'=&gt;'',\n         'widgettitle'=&gt;'#sidebar ul li h2',\n         'sidebarbody'=&gt;'#sidebar',\n         'widgetbox'=&gt;'#sidebar ul li',\n         'widgetli_a'=&gt;'#sidebar ul li ul li a', \/\/Add a\n         'footer'=&gt;'#footer'\n         )\n      );\n}<\/p>\n\n<p>If you want that users without Fitr Theme Options can use your option page you should copy FTO directory to your theme directory and add this line to functions.php<\/p>\n\n<p>include('fitr-theme-options\/fitr-theme-options.php');<\/p>\n\n<p>All done!<\/p>\n\n<p>Continue reading to add more features to your theme.<\/p><\/dd>\n<dt>How can I define different styles for my theme?<\/dt>\n<dd><p>You can define different styles with register_fitr_theme_style( $name, $path, $screenshot ). For example:<\/p>\n\n<p>if (function_exists(register_fitr_theme_style)) {\n       register_fitr_theme_style('Red','red.css','red-screenshot.png');\n       register_fitr_theme_style('Green','styles\/green.css','green-screenshot.jpg');\n}<\/p>\n\n<p>The chosen style will be saved in fto_settings option (fto_impot_style key). For example:<\/p>\n\n<p>$settings=get_option('fto_settings');\nif ('styles\/green.css' == $settings['fto_import_style'])\n     echo \"You love green!\";<\/p><\/dd>\n<dt>How can I add more option field to FTO page?<\/dt>\n<dd><p>There is another great feature in Fitr Theme Option. You can add custom fields to option page using fto_add_custom_field( $name, $type, $desc, $options='' ). $type can be: text, checkbox, number, color, textarea, dropdown, cat or page. $options is necessary for 'dropdown' and 'radio' types. Separate options with '|'.\nAs above the value will be saved in fto_setteings option. For example:<\/p>\n\n<p>fto_add_custom_field('welcome_text', 'text', 'Type some thing as welcome message');\nfto_add_custom_field('layout','dropdown','Choose your blog layout','One Column|Two Columns');<\/p>\n\n<p>You can get selected style with fto_settings option.<\/p>\n\n<p>$settings=get_option('fto_settings');\nif ('Two Columns' == $settings['layout'])  \/\/layout is field name\n     include('sidebar.php');<\/p><\/dd>\n<dt>What more?<\/dt>\n<dd><p>After adding codes you should test your theme. If your theme does not appear correctly for a certain item (for example blog title align) You can easily fix the problem via CSS and PHP (Use fto_settings option).<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.8<\/h4>\n\n<ul>\n<li>Bugs fixed.<\/li>\n<li>New:  Different styles.<\/li>\n<li>NEW:  Custom fields.<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li>First Version.<\/li>\n<\/ul>","raw_excerpt":"It makes template customizing easy and bring more fun to WordPress!","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/6137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=6137"}],"author":[{"embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/hassan1"}],"wp:attachment":[{"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=6137"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=6137"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=6137"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=6137"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=6137"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=6137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}