{"id":43124,"date":"2016-04-11T20:14:33","date_gmt":"2016-04-11T20:14:33","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/simple-subtitles\/"},"modified":"2016-05-10T21:38:21","modified_gmt":"2016-05-10T21:38:21","slug":"simple-subtitles","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/simple-subtitles\/","author":4552240,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.1.1","stable_tag":"2.1.1","tested":"4.5.33","requires":"3.5","requires_php":"","requires_plugins":"","header_name":"Simple Subtitles","header_author":"Linchpin","header_description":"","assets_banners_color":"","last_updated":"2016-05-10 21:38:21","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/simple-subtitles","header_author_uri":"http:\/\/linchpin.agency\/?utm_source=simple-subtitles&utm_medium=plugin-admin-page&utm_campaign=wp-plugin","rating":5,"author_block_rating":0,"active_installs":30,"downloads":7937,"num_ratings":1,"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":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.0","2.1","2.1.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1392387","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1392387","resolution":"2","location":"assets"}},"screenshots":{"1":"Simple Subtitles on the edit screen.","2":"Default Simple Subtitle display on the front end."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1982],"plugin_category":[],"plugin_contributors":[79491,79490,79489],"plugin_business_model":[],"class_list":["post-43124","plugin","type-plugin","status-publish","hentry","plugin_tags-subtitles","plugin_contributors-aware","plugin_contributors-desrosj","plugin_contributors-linchpin_agency","plugin_committers-aware","plugin_committers-desrosj"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/simple-subtitles.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/simple-subtitles\/assets\/screenshot-1.png?rev=1392387","caption":"Simple Subtitles on the edit screen."},{"src":"https:\/\/ps.w.org\/simple-subtitles\/assets\/screenshot-2.png?rev=1392387","caption":"Default Simple Subtitle display on the front end."}],"raw_content":"<!--section=description-->\n<p>Simple subtitles adds a field on posts, pages, or custom post types for adding a subtitle. Post types can be enabled\/disabled in the writing settings section.<\/p>\n\n<p>There are several functions in the plugin that allow you to easily get subtitles for different contexts. These functions mirror the functions in core for titles.<\/p>\n\n<h4>If you want to display the subtitle in your theme on your own, use the following filter:<\/h4>\n\n<pre><code>&lt;?php\n    function mytheme_disable_subtitle_display( $show ) {\n        return false;\n    }\n    add_filter( 'simple_subtitle_auto', 'mytheme_disable_subtitle_display' );\n?&gt;\n<\/code><\/pre>\n\n<h4>By default, only  tags are allowed in subtitles (with only class and style attributes). There is a filter this.<\/h4>\n\n<pre><code>&lt;?php\n    function mytheme_simple_subtitle_allowed_html( $allowed ) {\n        $allowed['strong'] = array();\n        $allowed['div'] = array(\n            'class' =&gt; true,\n        );\n\n        return $allowed;\n    }\n    add_filter( 'simple_subtitle_allowed_html', 'mytheme_simple_subtitle_allowed_html' );\n\n?&gt;\n<\/code><\/pre>\n\n<p>For more info on this, read into <a href=\"https:\/\/codex.wordpress.org\/Function_Reference\/wp_kses\" title=\"the wp_kses functions\">the wp_kses functions<\/a>.<\/p>\n\n<h4>Get the subtitle.<\/h4>\n\n<pre><code>&lt;?php $subtitle = get_the_simple_subtitle( $post_id ); ?&gt;\n<\/code><\/pre>\n\n<h4>Display the current post's subtitle. Should be used within the loop.<\/h4>\n\n<pre><code>&lt;?php $subtitle = the_simple_subtitle( $before = '', $after = '', $echo = true ); ?&gt;\n<\/code><\/pre>\n\n<h4>Get the subtitle for use in an HTML attribute.<\/h4>\n\n<pre><code>&lt;?php\n    $args = array(\n        'before' =&gt; '',\n        'after' =&gt;  '',\n        'echo' =&gt; true\n    );\n    $subtitle = the_simple_subtitle_attribute( $args );\n?&gt;&lt;h3&gt;Roadmap&lt;\/h3&gt;\n<\/code><\/pre>\n\n<p>* Add a column in the admin showing subtitles.\n* Add a setting for selecting the subtitle HTML tag.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/simple-subtitles<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>Use the Settings-&gt;Writing screen to configure enable subtitles for post types. Pages will be enabled by default.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Why is this empty?<\/dt>\n<dd><p>No one has asked us any questions yet! Use the support link to tell us what is on your mind.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.1.1<\/h4>\n\n<ul>\n<li>Fix bug where the automatic display of simple subtitles could not be turned off via filter.<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>Added upgrade class for processing any upgrades that happen.<\/li>\n<li>Upgrade all meta keys on sites using an old install of the plugin.<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Hello world! Subtitles for all.<\/li>\n<\/ul>","raw_excerpt":"Define a subtitle on any post, page, or custom post type.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/43124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=43124"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/desrosj"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=43124"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=43124"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=43124"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=43124"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=43124"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=43124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}