{"id":51542,"date":"2016-10-15T05:45:04","date_gmt":"2016-10-15T05:45:04","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/scale-to-fit\/"},"modified":"2016-10-15T05:46:27","modified_gmt":"2016-10-15T05:46:27","slug":"scale-to-fit","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/scale-to-fit\/","author":15119659,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1","stable_tag":"trunk","tested":"4.6.30","requires":"4.6","requires_php":"","requires_plugins":"","header_name":"Scale to Fit","header_author":"Antti Lepp\u00e4 \/ Metatavu Oy","header_description":"","assets_banners_color":"","last_updated":"2016-10-15 05:46:27","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1731,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","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":["0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[4351],"plugin_category":[],"plugin_contributors":[125158],"plugin_business_model":[],"class_list":["post-51542","plugin","type-plugin","status-publish","hentry","plugin_tags-utilities","plugin_contributors-metatavu","plugin_committers-metatavu"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/scale-to-fit.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>wordpress-scale-to-fit plugin allows developers to force some elements to fit inside other. This can be useful when developers need to make \nsome non-responsive components (e.g. iframes) to scale with the rest of the page.<\/p>\n\n<p>Key Features:<\/p>\n\n<ul>\n<li>Allows developers to force elements to fit inside others<\/li>\n<\/ul>\n\n<h3>Configuration<\/h3>\n\n<p>Add css class \"scale-to-fit\" to element you wish to initialize scale-to-fit.<\/p>\n\n<p>You can use following data -attributes to control scaling:<\/p>\n\n<ul>\n<li>data-element-method: Method to find scaled element. Allowed values: \n\n<ul>\n<li>self - element it self (default)<\/li>\n<li>parent - reference element<\/li>\n<li>closest - closest ancestor of reference element matching data-element -attribute selector<\/li>\n<li>find - closest descendant of reference element matching data-element -attribute selector<\/li>\n<\/ul><\/li>\n<li>data-element: CSS Selector for closest and find methods <\/li>\n<li>data-container-method: Method to find container element. Allowed values: \n\n<ul>\n<li>self - reference element<\/li>\n<li>parent - parent of reference element (default)<\/li>\n<li>closest - closest ancestor of reference element matching data-element -attribute selector\n_ find - closest descendant of reference element matching data-element -attribute selector<\/li>\n<\/ul><\/li>\n<li>data-container: CSS Selector for closest and find methods<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ul>\n<li>Upload folder into \/wp-content\/plugins -directory\n\n<ul>\n<li>Activate the plugin in 'Plugins' menu<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<!--section=changelog-->\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial version<\/li>\n<\/ul>","raw_excerpt":"wordpress-scale-to-fit plugin allows developers to force some elements to fit inside other. This can be useful when developers need to make","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/51542","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=51542"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/metatavu"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=51542"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=51542"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=51542"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=51542"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=51542"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=51542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}