{"id":26561,"date":"2013-12-06T03:27:42","date_gmt":"2013-12-06T03:27:42","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/simple-settings\/"},"modified":"2013-12-09T17:31:05","modified_gmt":"2013-12-09T17:31:05","slug":"simple-settings","status":"publish","type":"plugin","link":"https:\/\/tw.wordpress.org\/plugins\/simple-settings\/","author":12922466,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2","stable_tag":"trunk","tested":"3.7.41","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Simple Settings","header_author":"Jimmy K. <jimmy@ilikemustard.com>","header_description":"","assets_banners_color":"ededed","last_updated":"2013-12-09 17:31:05","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.ilikemustard.com","header_plugin_uri":"http:\/\/www.ilikemustard.com","header_author_uri":"http:\/\/www.ilikemustard.com","rating":5,"author_block_rating":0,"active_installs":20,"downloads":2075,"num_ratings":2,"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":"2"},"assets_icons":[],"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"816365","resolution":"772x250","location":"assets","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1","1.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"815729","resolution":"1","location":"assets","width":1280,"height":592},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"815729","resolution":"2","location":"assets","width":1280,"height":592},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"815729","resolution":"3","location":"assets","width":1280,"height":592},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"816352","resolution":"4","location":"assets","width":1280,"height":592}},"screenshots":{"1":"The admin interface showing all the settings that have been created.","2":"The admin interface showing sample search results.","3":"The admin interface showing a setting being edited.","4":"The admin interface showing an example of token replacement via the WYSIWYG."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1253],"plugin_category":[],"plugin_contributors":[79223],"plugin_business_model":[],"class_list":["post-26561","plugin","type-plugin","status-publish","hentry","plugin_tags-settings","plugin_contributors-jklatt86","plugin_committers-jklatt86"],"banners":{"banner":"https:\/\/ps.w.org\/simple-settings\/assets\/banner-772x250.jpg?rev=816365","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/simple-settings_ededed.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/simple-settings\/assets\/screenshot-1.png?rev=815729","caption":"The admin interface showing all the settings that have been created."},{"src":"https:\/\/ps.w.org\/simple-settings\/assets\/screenshot-2.png?rev=815729","caption":"The admin interface showing sample search results."},{"src":"https:\/\/ps.w.org\/simple-settings\/assets\/screenshot-3.png?rev=815729","caption":"The admin interface showing a setting being edited."},{"src":"https:\/\/ps.w.org\/simple-settings\/assets\/screenshot-4.png?rev=816352","caption":"The admin interface showing an example of token replacement via the WYSIWYG."}],"raw_content":"<!--section=description-->\n<p>A plugin to create, modify, and retrieve basic settings for use in templates,\nposts, and pages. This plugin also supports token replacement in template files\nas well as via the WYSIWYG.<\/p>\n\n<p>This plugin is especially useful if you would like to store basic settings for\nyour site but don't want or don't know how to write the code to do it yourself.\nSimply create settings for anything you would like to display on your site, add\nthe appropriate function calls (see <a href=\"http:\/\/wordpress.org\/plugins\/simple-settings\/faq\/\">FAQ<\/a>)\nin your template (or use token replacement via the WYSIWYG), and you'll have\nyour settings working with your site in no time!<\/p>\n\n<h4>Common uses for this plugin:<\/h4>\n\n<ul>\n<li>Displaying contact information (Phone, Fax, Address, etc),<\/li>\n<li>Displaying a temporary message or daily special,<\/li>\n<li>Turning features on and off on the fly,<\/li>\n<li>Displaying your social network links,<\/li>\n<li>Displaying your current favorite color,<\/li>\n<li>... or any other content that may change over time.<\/li>\n<li>Meow.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>ilm-simple-settings<\/code> plugin directory to the <code>\/wp-content\/plugins\/<\/code>\ndirectory on your server.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I make a new setting?<\/dt>\n<dd><p>To make a new setting, click <code>Simple Settings<\/code> in the WordPress admin menu,\nthen click <code>Add New<\/code>. Give your setting a name, type, and content, then click <code>Publish<\/code>.<\/p><\/dd>\n<dt>How do I delete a setting?<\/dt>\n<dd><p>To delete a setting, click on the setting name to edit it, then click <code>Move to\nTrash<\/code> on the next screen.<\/p><\/dd>\n<dt>What types of settings can I make?<\/dt>\n<dd><p>Currently, this plugin supports the ability to create <code>text<\/code> and <code>boolean<\/code>\nsettings. Text settings will return a string and boolean settings will return\ntrue or false.<\/p><\/dd>\n<dt>Can my setting include HTML and JavaScript?<\/dt>\n<dd><p>Yes it can! It's also handy for adding third-party JavaScript widgets to posts\nor pages.<\/p><\/dd>\n<dt>What is a \"slug\"?<\/dt>\n<dd><p>A slug is a unique computer-readable name for each setting that is created.\nSlugs are used by the <code>get_setting()<\/code> function and by token replacement.<\/p><\/dd>\n<dt>How do I use a setting in my template?<\/dt>\n<dd><p>To use a setting in your template, first create the setting (i.e. \"My Setting\"),\nthen paste the code below into your template. <em>Remember to change the example\nslug to the one for your setting!<\/em><\/p>\n\n<pre><code>&lt;?php echo get_setting('my_setting'); ?&gt;\n<\/code><\/pre>\n\n<p>Alternatively, you can also use the value of a setting to affect the output of\na page. For example:<\/p>\n\n<pre><code>&lt;?php\n\n    if (get_setting('do_something') == true) {\n        echo 'Doing something!';\n    } else {\n        echo 'Not doing something.';\n    }\n\n?&gt;\n<\/code><\/pre><\/dd>\n<dt>How do I use token replacement via the WYSIWYG?<\/dt>\n<dd><p>To use token replacement via the WYSIWYG, first create the setting (i.e. \"My\nSetting\"), edit the page you would like your setting to be displayed on, paste\nthe text below into the WYSIWYG, and save. The plugin will automatically\nreplace the token with the corresponding setting value when viewing the page.\nIt's as easy as that!  <em>Remember to change the example slug to the one for\nyour setting!<\/em><\/p>\n\n<pre><code>{my_setting}\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<p>The initial release of this plugin.<\/p>\n\n<h4>1.1<\/h4>\n\n<p>Added appropriate documentation. Updated the readme.<\/p>\n\n<h4>1.2<\/h4>\n\n<p>Fixed getSetting() not returning correct boolean value.<\/p>","raw_excerpt":"A WordPress plugin to create, modify, and retrieve basic settings for use in templates, posts, and pages.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/26561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=26561"}],"author":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jklatt86"}],"wp:attachment":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=26561"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=26561"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=26561"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=26561"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=26561"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=26561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}