{"id":41011,"date":"2015-12-31T11:46:03","date_gmt":"2015-12-31T11:46:03","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/tea-page-content\/"},"modified":"2017-11-17T20:48:16","modified_gmt":"2017-11-17T20:48:16","slug":"tea-page-content","status":"publish","type":"plugin","link":"https:\/\/tr.wordpress.org\/plugins\/tea-page-content\/","author":14064047,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3.1","stable_tag":"1.3.1","tested":"4.9.29","requires":"","requires_php":"","requires_plugins":"","header_name":"Tea Page Content","header_author":"Raymond Costner","header_description":"","assets_banners_color":"4bc473","last_updated":"2017-11-17 20:48:16","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/tsjuder.github.io\/tea-page-content","header_author_uri":"https:\/\/github.com\/Tsjuder","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1945,"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":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"1319214","resolution":"128x128","location":"assets"},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":"1319214","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"1319214","resolution":"1544x500","location":"assets"},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1319214","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.2.0","1.2.1","1.2.2","1.2.3","1.3.0","1.3.1"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1485965","resolution":"1","location":"assets"},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1485965","resolution":"2","location":"assets"},"screenshot-3.jpg":{"filename":"screenshot-3.jpg","revision":"1485965","resolution":"3","location":"assets"}},"screenshots":{"1":"Widget UI. Click by gear for open page level variables modal","2":"Page level variables window (opens after clicking by gear)","3":"Insert shortcode modal window"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[243,86,166,80,162],"plugin_category":[43],"plugin_contributors":[97200],"plugin_business_model":[],"class_list":["post-41011","plugin","type-plugin","status-publish","hentry","plugin_tags-pages","plugin_tags-post","plugin_tags-posts","plugin_tags-shortcode","plugin_tags-widget","plugin_category-customization","plugin_contributors-tsjuder","plugin_committers-tsjuder"],"banners":{"banner":"https:\/\/ps.w.org\/tea-page-content\/assets\/banner-772x250.jpg?rev=1319214","banner_2x":"https:\/\/ps.w.org\/tea-page-content\/assets\/banner-1544x500.jpg?rev=1319214","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/tea-page-content\/assets\/icon-128x128.jpg?rev=1319214","icon_2x":"https:\/\/ps.w.org\/tea-page-content\/assets\/icon-256x256.jpg?rev=1319214","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/tea-page-content\/assets\/screenshot-1.jpg?rev=1485965","caption":"Widget UI. Click by gear for open page level variables modal"},{"src":"https:\/\/ps.w.org\/tea-page-content\/assets\/screenshot-2.jpg?rev=1485965","caption":"Page level variables window (opens after clicking by gear)"},{"src":"https:\/\/ps.w.org\/tea-page-content\/assets\/screenshot-3.jpg?rev=1485965","caption":"Insert shortcode modal window"}],"raw_content":"<!--section=description-->\n<p>Tea Page Content is a powerful plugin that allows create widget or shortcode with content of any page, post, etc, and customize look of blocks via template system. You can select one or more entries, choose template (or create your own) and display it by widget or shortcode. Templates presents very flexible system for appearance control.<\/p>\n\n<h4>Key features<\/h4>\n\n<ul>\n<li>Very flexible template system<\/li>\n<li>Native support of all post types<\/li>\n<li>Possibility to create your own templates<\/li>\n<li>Developer and user friendly<\/li>\n<li>Easy to use and beautiful UI<\/li>\n<\/ul>\n\n<p>If you found a bug or have a suggestion, please create topic on forum or send me email (raymondcostner at gmail.com).<\/p>\n\n<h4>Documentation<\/h4>\n\n<p>You can find primary description at <a href=\"https:\/\/wordpress.org\/plugins\/tea-page-content\/other_notes\/\">Other Notes<\/a> tab, and details at <a href=\"http:\/\/tsjuder.github.io\/tea-page-content\/\">Github Page<\/a>.<\/p>\n\n<h3>Documentation<\/h3>\n\n<h4>Shortcodes<\/h4>\n\n<p>There is just one shortcode <code>tea_page_content<\/code>. Below there is an example with basic parameters.\n    [tea_page_content template=\"default\" order=\"asc\" posts=\"12,45,23\"]\nYou also can used template variables (see Templates section at documentation) and options.<\/p>\n\n<h4>Parameters<\/h4>\n\n<p>There is some built-in options. Let's take a closer look:<\/p>\n\n<ul>\n<li><strong>order<\/strong> allows you set entries order. All posts and pages will be sorted by date, and you can choose a direction - by ascending or by descending. Sorting by descending is a default behaviour.<\/li>\n<li><strong>template<\/strong> allows you choose layout which will look as you want. In shortcode just type full name of your template without extension, for example <code>default<\/code> or <code>your-template-name<\/code>.<\/li>\n<li><strong>show_page_thumbnail<\/strong> allows you enable or disable displaying thumbnail of entry. If you don't want see page thumbnail, type <code>show_page_thumbnail=\"false\"<\/code>. Default - <em>true<\/em>.<\/li>\n<li><strong>show_page_content<\/strong> allows you enable or disable displaying content of entry. Default - <em>true<\/em>.<\/li>\n<li><strong>show_page_title<\/strong> allows you enable or disable displaying title of entry. Default - <em>true<\/em>.<\/li>\n<li><strong>linked_page_title<\/strong> allows you enable or disable linking title of entry. In other words, title will be link to full article. Default - <em>false<\/em>.<\/li>\n<li><strong>linked_page_thumbnail<\/strong> allows you enable or disable linking thumbnail of entry. In other words, thumbnail will be link to full article. Default - <em>false<\/em>.<\/li>\n<\/ul>\n\n<h4>Creating simplest custom template<\/h4>\n\n<p>By default plugin will be search custom templates in a folder named <code>templates<\/code> in your theme. For create the one just add into this directory a new file with name like <code>tpc-{template-name}.php<\/code>. Every template <strong>should<\/strong> be named by that mask! Then put in created file your code. For example:<\/p>\n\n<pre><code>&lt;?php foreach ($entries as $entry) : ?&gt;\n    &lt;div class=\"entry\"&gt;\n        &lt;h3&gt;\n            &lt;?php echo $entry['title'] ?&gt;\n        &lt;\/h3&gt;\n\n        &lt;div class=\"post-content\"&gt;\n            &lt;?php echo $entry['content'] ?&gt;\n        &lt;\/div&gt;\n    &lt;\/div&gt;\n&lt;?php endforeach; ?&gt;\n<\/code><\/pre>\n\n<p>For using your templates in shortcode, you need just choose it in widget or pass full filename (but without extension) in shortcode. For example:\n    template=\"tpc-my-template\"<\/p>\n\n<h4>Parameters in template<\/h4>\n\n<p>Above you can see very simple example of custom template with <code>title<\/code> and <code>content<\/code> parameters. But this is not all - there is a full list of allowed parameters which you can use.<\/p>\n\n<ul>\n<li><strong>$count<\/strong> - Count of all passed entries<\/li>\n<li><strong>$instance<\/strong> - Array with user defined and default parameters. There is all list of options from self-titled section above.<\/li>\n<li><strong>$template_variables<\/strong> - Array with template-level variables.<\/li>\n<li><strong>$caller<\/strong> - Special flag that determine a module that called template: from widget or from shortcode. Can be <code>widget<\/code> or <code>shortcode<\/code>.<\/li>\n<li><strong>$entries<\/strong> - List of posts, pages, etc.\n\n<ul>\n<li><strong>title<\/strong> - Title of current entry<\/li>\n<li><strong>content<\/strong> - Content of current entry. When page have more tag, will be used <code>the_content<\/code> function, in other cases will be used <code>the_excerpt<\/code><\/li>\n<li><strong>thumbnail<\/strong> - Thumbnail of entry (if exists)<\/li>\n<li><strong>link<\/strong> - Link of entry<\/li>\n<li><strong>id<\/strong> - Entry ID<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h4>Details &amp; Filters<\/h4>\n\n<p>Because full manual is too long, you can see it at <a href=\"http:\/\/tsjuder.github.io\/tea-page-content\/\">Github Page<\/a>. Get details and updating information about new features includes filters, template-level variables and more.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin archive to the <code>\/wp-content\/plugins<\/code> directory and unpack it, or install the plugin through the WordPress plugins screen directly<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Upload the plugin archive to the <code>\/wp-content\/plugins<\/code> directory and unpack it, or install the plugin through the WordPress plugins screen directly<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<\/ol><\/dd>\n<dt>Is it just another page content plugin?<\/dt>\n<dd><p>Yes, and no. This plugin lies between two edges - small plugins for little specific tasks and big frameworks.<\/p><\/dd>\n<dt>Is this plugin compatible with custom post types?<\/dt>\n<dd><p>Yes, it is.<\/p><\/dd>\n<dt>Is this plugin compatible with my theme?<\/dt>\n<dd><p>Yes. But every theme have unique css, and appearance of widget \\ shortcode will be depend on theme styles.<\/p><\/dd>\n<dt>I don't have link to full post. How I can add it?<\/dt>\n<dd><p>Links to full entry appears automatically - this feature depends of theme settings and Wordpress core. If you have more-tag in post content, or if content length long enough, \"read more\" link will be available. We don't override this behavior. Use native wordpress hooks for change it.<\/p><\/dd>\n<dt>I found a bug or have a suggestion. What I can do?<\/dt>\n<dd><p>You can create new topic in forum at wordpress.org, or send me email. I will answer you as soon as possible.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>&#033; <strong>Bump minimal required PHP version to PHP 5.6<\/strong><\/li>\n<li>&#043; Now you can select <code>sortby<\/code> natively<\/li>\n<li>&#043; Added native validation of entries count. No more checks in templates!<\/li>\n<li>&#043; In Bootstrap templates added possibility to choose base breakpoint<\/li>\n<li>&#045; Removed support of all deprecated features (<code>default-padded<\/code> template, <code>id<\/code> shortcode param, <code>thumbnail<\/code> param)<\/li>\n<li>&#042; Full compatibility with PHP7<\/li>\n<li>&#042; Improved performance<\/li>\n<li>&#042; Fix bug with \"dead\" filter <code>tpc_config_array<\/code><\/li>\n<li>&#042; Fix bug with incorrect handling names of template-level variables in some cases<\/li>\n<li>&#042; Global code refactoring. Clean and shiny!<\/li>\n<\/ul>\n\n<h4>1.2.3<\/h4>\n\n<ul>\n<li>&#043; New template \"Waterfall\" added<\/li>\n<li>&#043; New template \"Bootstrap 4\" added<\/li>\n<li>&#042; Checked for Wordpress 4.7 support<\/li>\n<\/ul>\n\n<h4>1.2.2<\/h4>\n\n<ul>\n<li>&#043; Added child themes support<\/li>\n<li>&#043; Added possibility to change thumbnail size via filter tpc_thumbnail_size<\/li>\n<li>&#043; Added settings page<\/li>\n<li>&#042; Added popup notices for long titles in UI<\/li>\n<li>&#042; Private, protected or draft entries not showing anymore in lists of entries<\/li>\n<li>&#042; Fix bug with incorrect shortcode generate<\/li>\n<li>&#042; Fix bug with incorrect page-level variables handling<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>&#042; Fix bug with non-opening modal window of page level variables<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>&#043; New feature - page-level variables<\/li>\n<li>&#043; Added button for inserting shortcode in editor<\/li>\n<li>&#043; New availaibe property in templates - <code>caller<\/code>. Value of caller maybe <code>widget<\/code> or <code>shortcode<\/code> if template in this moment using in shortcode or widget resp.<\/li>\n<li>&#043; Enclosed shortcodes availaible<\/li>\n<li>&#042; User Interface was improved for more usability<\/li>\n<li>&#042; Checked for Wordpress 4.6 support<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>&#043; Added new template-variable type \"caption\" that allows you describe your template<\/li>\n<li>&#042; Checked for Wordpress 4.5 support<\/li>\n<li>&#042; Improved Bootstrap template<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>&#043; Native support for all existed post types (and custom too)<\/li>\n<li>&#043; Count of entries now passed in template<\/li>\n<li>&#043; New feature - template-level variables<\/li>\n<li>&#043; New template: Bootstrap 3.x<\/li>\n<li>&#043; Added possibility hide title, content and link it. This feature depends of used template (all built-in templates except deprecated supports it)<\/li>\n<li>&#045; Default-Padded template, <code>thumbnail<\/code> widget and shortcode parameter, <code>id<\/code> shortcode parameter is <strong>deprecated<\/strong><\/li>\n<li>&#042; CSS for frontend part changed, improved paddings, added some hover effects<\/li>\n<li>&#042; Global code refactoring. We are friendly for developers!<\/li>\n<li>&#042; Bug fixes<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First release with basic functionality<\/li>\n<\/ul>","raw_excerpt":"Plugin that allows create widget or shortcode with content of any post, and customize look of blocks via templates.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/41011","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=41011"}],"author":[{"embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/tsjuder"}],"wp:attachment":[{"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=41011"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=41011"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=41011"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=41011"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=41011"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=41011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}