{"id":14811,"date":"2011-09-08T22:24:57","date_gmt":"2011-09-08T22:24:57","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/cop-css-custom-post-type-lite\/"},"modified":"2011-09-14T19:00:53","modified_gmt":"2011-09-14T19:00:53","slug":"cop-css-custom-post-type-lite","status":"publish","type":"plugin","link":"https:\/\/mya.wordpress.org\/plugins\/cop-css-custom-post-type-lite\/","author":4365491,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.2.0","stable_tag":"trunk","tested":"3.2.1","requires":"3.2.1","requires_php":"","requires_plugins":"","header_name":"COP CSS Custom Post Type Lite","header_author":"Trevor Green","header_description":"","assets_banners_color":"","last_updated":"2011-09-14 19:00:53","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.azuregreencreative.com","header_plugin_uri":"http:\/\/azuregreencreative.com\/cop_css\/","header_author_uri":"http:\/\/www.azuregreencreative.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1816,"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":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[356,1794],"plugin_category":[],"plugin_contributors":[86309],"plugin_business_model":[],"class_list":["post-14811","plugin","type-plugin","status-publish","hentry","plugin_tags-css","plugin_tags-custom-post-type","plugin_contributors-trevogre","plugin_committers-trevogre"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/cop-css-custom-post-type-lite.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Adds a custom post type of css that will compile all entries into a single minified css file that will automatically be enqueued to your site.<\/p>\n\n<p>Minified CSS is stored in a transient for caching.<\/p>\n\n<p>User now needs 'edit_themes' permission to see the css editor. By default this is only the administrator.<\/p>\n\n<h4>Shortcodes<\/h4>\n\n<p>Shortcodes are now processed during compilation of your css.<\/p>\n\n<p>An new shortcode has been added called:<\/p>\n\n<p>[meta key=\"(name of arbitrary custom field)\" post_id=\"(optional)\"]<\/p>\n\n<p>This allows you to define a whatever custom fields you like on an individual css post and use them in your css.<\/p>\n\n<p>Ex. a { color: [meta key=\"my_color\"]; }<\/p>\n\n<p>So you can define common elements and use them throughout your css.<\/p>\n\n<p>If you like you can use the option post_id to put those values from another post. So you can have one master css post with your primary colors and such and referance it in other posts.<\/p>\n\n<h4>Credits<\/h4>\n\n<p>Minification code from <a href=\"http:\/\/www.lateralcode.com\/css-minifier\/\">http:\/\/www.lateralcode.com\/css-minifier\/<\/a><\/p>\n\n<h4>Notes on Function<\/h4>\n\n<p>All css is compiled on save unless the transient has expired. If which case a query is run to compile the css durning rendering.\nI may add option to use either a wp_option or a transient based upon user preferance.<\/p>\n\n<p>Css is compiled by menu_order. I would like to add more options for better sorting.<\/p>\n\n<p>There is an options page that outputs the css into a textarea so that you can review the final css in the dashboard.<\/p>\n\n<p>Email me to request customizations <a href=\"mailto:trevor@mailagc.com\">trevor@mailagc.com<\/a><\/p>\n\n<p>Future options may also include the ability to write your css to your theme directory. This plugin currently must be active to keep the css available.<\/p>\n\n<p>I'm trying to follow the path of Mark Jaquith. Read more here.\n<a href=\"http:\/\/markjaquith.wordpress.com\/2011\/06\/07\/how-to-write-a-plugin-that-ill-use\/\">How to Write a Plugin I'll use<\/a><\/p>\n\n<p><a href=\"http:\/\/www.azuregreencreative.com\"><\/a><\/p>\n\n<!--section=installation-->\n<p>Extract the zip file and just drop the contents in the wp-content\/plugins\/ directory of your WordPress installation and then activate the Plugin from Plugins page.<\/p>\n\n<!--section=faq-->\n<p>Questions Please.<\/p>\n\n<!--section=changelog-->\n<p>0.2.0<\/p>\n\n<p>Bug Fixes to hook registration<\/p>\n\n<p>0.1.9<\/p>\n\n<p>Began adding shortcodes to css.\nAdded [meta key=\"(arbitrary custom field)\"]<\/p>\n\n<p>0.1.8<\/p>\n\n<p>Fixed preview using option instead of transient.\nAdded check for permission to 'edit_themes' before loading interface.<\/p>\n\n<p>0.1.7<\/p>\n\n<p>Initial Public Version<\/p>","raw_excerpt":"Adds a custom post type for implementing theme independent css.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/14811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=14811"}],"author":[{"embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/trevogre"}],"wp:attachment":[{"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=14811"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=14811"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=14811"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=14811"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=14811"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=14811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}