{"id":29097,"date":"2014-07-26T20:32:28","date_gmt":"2014-07-26T20:32:28","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/whale-kit\/"},"modified":"2022-01-15T08:33:14","modified_gmt":"2022-01-15T08:33:14","slug":"whale-kit","status":"publish","type":"plugin","link":"https:\/\/mk.wordpress.org\/plugins\/whale-kit\/","author":740133,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.0","stable_tag":"trunk","tested":"5.8.13","requires":"","requires_php":"5.4","requires_plugins":"","header_name":"Whale-Kit","header_author":"Yuriy Stepanov (stur)","header_description":"","assets_banners_color":"547386","last_updated":"2022-01-15 08:33:14","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/bugacms.com\/wpEn\/whale-kit","header_plugin_uri":"http:\/\/bugacms.com\/wpEn\/whale-kit","header_author_uri":"http:\/\/bugacms.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1679,"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":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":1137809,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2658062,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2658062,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2658062,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2658062,"resolution":"4","location":"assets","locale":""}},"screenshots":{"1":"<p>Add default widget-shortcode<\/p>","2":"<p>Categories tree<\/p>","3":"<p>Pages tree<\/p>","4":"<p>Use as a shortcod<\/p>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[610,243,166,357,940],"plugin_category":[43,57],"plugin_contributors":[86488],"plugin_business_model":[],"class_list":["post-29097","plugin","type-plugin","status-publish","hentry","plugin_tags-categories","plugin_tags-pages","plugin_tags-posts","plugin_tags-shortcodes","plugin_tags-taxonomies","plugin_category-customization","plugin_category-taxonomy","plugin_contributors-stur","plugin_committers-stur"],"banners":{"banner":"https:\/\/ps.w.org\/whale-kit\/assets\/banner-772x250.png?rev=1137809","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/whale-kit_547386.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/whale-kit\/assets\/screenshot-1.png?rev=2658062","caption":"<p>Add default widget-shortcode<\/p>"},{"src":"https:\/\/ps.w.org\/whale-kit\/assets\/screenshot-2.png?rev=2658062","caption":"<p>Categories tree<\/p>"},{"src":"https:\/\/ps.w.org\/whale-kit\/assets\/screenshot-3.png?rev=2658062","caption":"<p>Pages tree<\/p>"},{"src":"https:\/\/ps.w.org\/whale-kit\/assets\/screenshot-4.png?rev=2658062","caption":"<p>Use as a shortcod<\/p>"}],"raw_content":"<!--section=description-->\n<p>The plugin adds 3 shortcodes:\n[wk_terms \/] for displaying categories, tags, any other taxonomies, works through the WP_Term_Query class.\n[wk_posts \/] for displaying posts, pages and any other post types, WK_posts receives data through the WP_Query class\n[wk_pages \/] output of hierarchical structures of pages, posts and other types of posts, the data is obtained using the get_pages() function<\/p>\n\n<p>Shortcodes pass all call parameters to the corresponding functions and receive the initial data set from them.\nExplore the basic parameters of calling source functions by following the links.<\/p>\n\n<p><a href=\"http:\/\/bugacms.com\/wpEn\/whale-kit\">Whale Kit<\/a>\n<a href=\"http:\/\/bugacms.com\/wpEn\/whale-kit-examples\/\">Whale Kit - examples<\/a>\n<a href=\"http:\/\/bugacms.com\/wpRu\/whale-kit\">Whale Kit - \u043f\u043e \u0440\u0443\u0441\u0441\u043a\u0438<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Unzip and upload folder <code>whale-kit<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>You can use short tags [wk_posts ...] or [wk_terms ...] or [wk_pages ...] in the text post or page.<\/li>\n<li><p>You may need to format the SSC, give an example to collapse lists:<\/p>\n\n<p>.widget_wk_post_widget  ul,\n.widget_wk_pages_widget ul{ border-left: dotted 1px  #DEDEDE; }\n.widget_wk_post_widget  ul.childs,\n.widget_wk_pages_widget ul.childs{ border-left: dotted 1px  #DEDEDE; margin-left: 0.5em;}\nli.page_item&gt;a:before{ content:'-' }\nli.page_has_children&gt;a:before { content:'+ ' }\nli.current_page_ancestor &gt; a:before { content:'- ' }\nli.current_page &gt; a:after { content:' &lt;' }\nli.current_page&gt;a {text-decoration: underline}<\/p>\n\n<p>.widget_wk_terms_widget ul{ border-left: dotted 1px  #DEDEDE; padding-left: .2em }\n.widget_wk_terms_widget  ul.childs {     margin-left: 0.5em; }\nli.cat_item&gt;a:before{ content:' ' }\nli.cat_has_children&gt;a:before { content:'+' }\nli.current_cat &gt; a:before { content:'-' }\nli.current_cat &gt; a {text-decoration: underline}\nli.current_cat_ancestor  &gt; a:before { content:'-' }\n.widget_wk_terms_widget li sup { font-size: 9px; margin: -5px 0 0 5px; vertical-align:top !important; }\n.widget_wk_terms_widget li a{ vertical-align:bottom !important; margin-top: 5px;}<\/p><\/li>\n<\/ol>\n\n<p>add this code to a file style of the current theme or to include other way<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='show%20child%20categories%20from%20the%20category%20my_category%20id%3A34'><h3>Show child categories from the category My_Category id:34<\/h3><\/dt>\n<dd><p>[wk_terms child_of=34]<\/p><\/dd>\n<dt id='show%20all%20categories%20and%20empty%20too'><h3>Show all categories and empty too<\/h3><\/dt>\n<dd><p>[wk_terms hide_empty=0]<\/p><\/dd>\n<dt id='exclude%20a%20category%2032%20and%20all%20childs'><h3>Exclude a category 32 and all childs<\/h3><\/dt>\n<dd><p>[wk_terms exclude_tree=array(32)]<\/p><\/dd>\n<dt id='sort%20categories%20by%20number%20of%20posts%20without%20hierarchy'><h3>Sort categories by number of posts without hierarchy<\/h3><\/dt>\n<dd><p>[wk_terms orderby=count order=ASC show_count=1  hierarchical=0 \/]<\/p><\/dd>\n<dt id='collapse%20categories'><h3>Collapse categories<\/h3><\/dt>\n<dd><p>[wk_terms collapse=1 hierarchical=1]\nThe collapse of the inactive branches of the tree of categories.<\/p><\/dd>\n<dt id='display%20tags%20and%20specify%20the%20number%20of%20records'><h3>Display tags and specify the number of records<\/h3><\/dt>\n<dd><p>[wk_terms taxonomy=post_tag show_count=1]<\/p><\/dd>\n<dt id='show%20category%20and%20set%20the%20font%20size%20depending%20on%20the%20number%20of%20entries%20in%20the%20category'><h3>Show category and set the font size depending on the number of entries in the category<\/h3><\/dt>\n<dd><p>[wk_terms show_count=1 size_of_count=1 smallest=8 largest=22 unit=px]<\/p><\/dd>\n<dt id='show%205%20records%20out%20of%20category%20id%3A56%2C%20exclude%20category%20id%3A23'><h3>Show 5 records out of category id:56, exclude category id:23<\/h3><\/dt>\n<dd><p>[wk_posts cat=56,-23 posts_per_page=5]<\/p><\/dd>\n<dt id='show%20entries%20with%20thumbnail'><h3>Show entries with thumbnail<\/h3><\/dt>\n<dd><p>[wk_posts meta_key=_thumbnail_id show_thumbnail=60?60 \/]<\/p><\/dd>\n<dt id='multiple%20custom%20field%20handling'><h3>Multiple Custom Field Handling<\/h3><\/dt>\n<dd><p>[wk_posts\n    tax_query='array(\n        \"relation\"=&gt;\"AND\",\n         array(\n           \"taxonomy\" =&gt; \"category\",\n           \"field\" =&gt; \"id\",\n           \"terms\" =&gt; array(16)\n         ),\n         array(\n            \"taxonomy\" =&gt; \"post_tag\",\n            \"field\" =&gt; \"slug\",\n            \"terms\" =&gt; array(\"test_wk\")\n         )\n    )'\n    \/]<\/p><\/dd>\n<dt id='show%20child%20pages%20to%20567%20pages'><h3>Show child pages to 567 pages<\/h3><\/dt>\n<dd><p>[wk_pages child_of=567]<\/p><\/dd>\n<dt id='collapse%20and%20sorting%20pages'><h3>Collapse and sorting pages<\/h3><\/dt>\n<dd><p>[wk_pages collapse=1 sort_column=menu_order sort_order=ASC]<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Start Projects<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fixed bug <code>division by zero<\/code>  in the calculation of the font size.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<p>WK_Pages added to work with hierarchical structures. Added ability to display thumbnails of records.<\/p>\n\n<h4>2.0.0<\/h4>\n\n<p>Widgets removed, use default widget shortcode.<\/p>","raw_excerpt":"Three alternative to standard widget Categories, Recent Posts and Pages.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/29097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=29097"}],"author":[{"embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/stur"}],"wp:attachment":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=29097"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=29097"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=29097"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=29097"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=29097"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=29097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}