Plugin Directory

Changeset 1392502


Ignore:
Timestamp:
04/11/2016 10:52:58 PM (10 years ago)
Author:
Tsjuder
Message:

Released version 1.1.1 (in trunk)

Location:
tea-page-content/trunk
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • tea-page-content/trunk/README.md

    r1384553 r1392502  
    9898## Migration Guide
    9999### From 1.0.x to 1.1.x
    100 Since 1.1.x, nothing was deleted. But some options was marked as deprecated. We strongly recommend do these steps:
     100Since 1.1.x, nothing was deleted. But some options was marked as deprecated. We recommend do these steps:
    1011011. If you're using **default padded** template, change it on **default** with layout what you prefer.
    1021022. If you're using shortcodes, replace parameter `id` to `posts`.
  • tea-page-content/trunk/classes/config.class.php

    r1384553 r1392502  
    22/**
    33 * @package Tea Page Content
    4  * @version 1.1.0
     4 * @version 1.1.1
    55 */
    66
  • tea-page-content/trunk/classes/helper.class.php

    r1384553 r1392502  
    22/**
    33 * @package Tea Page Content
    4  * @version 1.1.0
     4 * @version 1.1.1
    55 */
    66
     
    197197       
    198198        $variables = array();
    199         $regexp = '/(?![@param*])([\S\-\|]+)/i';
     199        $regexp = '/(?![@param*])((?:"[^"]+")|(?:[\S]+))/i';
    200200
    201201        // Try to read template file
  • tea-page-content/trunk/config.php

    r1384553 r1392502  
    22/**
    33 * @package Tea Page Content
    4  * @version 1.1.0
     4 * @version 1.1.1
    55 */
    66
  • tea-page-content/trunk/languages/tea-page-content-ru_RU.po

    r1384553 r1392502  
    66"Project-Id-Version: tea-page-content\n"
    77"Report-Msgid-Bugs-To: Translator Name <[email protected]>\n"
    8 "POT-Creation-Date: 2016-04-01 14:34+0400\n"
     8"POT-Creation-Date: 2016-04-12 01:46+0400\n"
    99"PO-Revision-Date: \n"
    1010"Last-Translator: \n"
     
    2020"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;"
    2121"esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;"
    22 "_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,"
    23 "_nc:4c,1,2\n"
     22"_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
    2423"X-Poedit-Basepath: ..\n"
    2524"X-Generator: Poedit 1.8.5\n"
     
    3635#: tea-page-content.class.php:170
    3736msgid ""
    38 "Warning! Since Tea Page Content 1.1 some parameters is <b>deprecated</b>, "
    39 "and will be <b>deleted</b> in the next release. We strongly recommend you "
    40 "check out the <a href=\"https://wordpress.org/plugins/tea-page-content/"
    41 "changelog/\">changelog</a>. <b>This notice appears only once!</b>"
     37"Please note, that since Tea Page Content 1.1 some parameters is "
     38"<b>deprecated</b>. We recommend you check out the <a href=\"https://"
     39"wordpress.org/plugins/tea-page-content/changelog/\">changelog</a>. <b>This "
     40"notice appears only once!</b>"
    4241msgstr ""
    43 "Внимание! Начиная с версии Tea Page Content 1.1, некоторые параметры "
    44 "<b>устарели</b>, и будут <b>удалены</b> в одном из следующих релизов. Мы "
     42"C версии Tea Page Content 1.1 некоторые параметры <b>устарели</b>. Мы "
    4543"рекомендуем ознакомиться с <a href=\"https://wordpress.org/plugins/tea-page-"
    4644"content/changelog/\">логом изменений</a>. <b>Это уведомление появляется "
    47 "только один раз!</b>"
     45"только однажды!</b>"
    4846
    4947#: templates/default-widget-admin-variables-area.php:5
     
    9694
    9795#~ msgid ""
     96#~ "Warning! Since Tea Page Content 1.1 some parameters is <b>deprecated</b>, "
     97#~ "and will be <b>deleted</b> in the next release. We strongly recommend you "
     98#~ "check out the <a href=\"https://wordpress.org/plugins/tea-page-content/"
     99#~ "changelog/\">changelog</a>. <b>This notice appears only once!</b>"
     100#~ msgstr ""
     101#~ "Внимание! Начиная с версии Tea Page Content 1.1, некоторые параметры "
     102#~ "<b>устарели</b>, и будут <b>удалены</b> в одном из следующих релизов. Мы "
     103#~ "рекомендуем ознакомиться с <a href=\"https://wordpress.org/plugins/tea-"
     104#~ "page-content/changelog/\">логом изменений</a>. <b>Это уведомление "
     105#~ "появляется только один раз!</b>"
     106
     107#~ msgid ""
    98108#~ "Warning! Starts from Tea Page Content 1.1 some parameters is "
    99109#~ "<b>deprecated</b>, and will be <b>deleted</b> in the next release. We "
  • tea-page-content/trunk/modules/shortcode.php

    r1384553 r1392502  
    22/**
    33 * @package Tea Page Content
    4  * @version 1.1.0
     4 * @version 1.1.1
    55 */
    66
     
    3232        $attrs['template_variables'] = array();
    3333        foreach ($variables as $variable => $value) {
     34            if($value['type'] === 'caption') continue;
     35           
    3436            if(isset($userAttrs[$variable])) {
    3537                $attrs['template_variables'][$variable] = $userAttrs[$variable];
  • tea-page-content/trunk/modules/widget.php

    r1384553 r1392502  
    22/**
    33 * @package Tea Page Content
    4  * @version 1.1.0
     4 * @version 1.1.1
    55 */
    66
     
    9898        $instance['template_variables'] = array();
    9999        foreach ($variables as $variable => $value) {
     100            if($value['type'] === 'caption') continue;
     101           
    100102            if(!isset($newInstance[$variable])) {
    101103                switch ($value['type']) {
  • tea-page-content/trunk/readme.txt

    r1384604 r1392502  
    11=== Tea Page Widget & Content ===
    22Contributors: Tsjuder
    3 Tags: plugin, widget, shortcode, posts, post, pages, page, content
    4 Requires at least: 4.0
    5 Tested up to: 4.4.2
    6 Stable tag: 1.1.0
     3Tags: plugin, widget, shortcode, posts, post, pages, page, content, template, templates
     4Requires at least: 4.0, PHP 5.3
     5Tested up to: 4.5
     6Stable tag: 1.1.1
    77Author URI: https://github.com/Tsjuder
    88Plugin URI: http://tsjuder.github.io/tea-page-content/
     
    1414== Description ==
    1515
    16 Tea Page Content is a powerful plugin that allows create blocks 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 of created blocks. At this moment there is a two built-in templates: default and bootstrap 3.x. Supported languages: English and Russian.
     16Tea Page Content is a powerful plugin that allows create blocks 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 of created blocks. At this moment there is a two built-in templates: default and bootstrap 3.x.
    1717
    1818= Key features =
     
    2121* Possibility to create your own templates
    2222* Developer and user friendly
    23 * Easy to use
     23* Easy to use and beautiful UI
    2424
    2525= Migration Guides =
    26 Stay tuned with new versions. For make updates safe and fast, check migration guide at <a href="https://wordpress.org/plugins/tea-page-content/other_notes/">Other Notes</a> tab.
     26Stay tuned with new versions. For make updates safe and fast, check changelog at <a href="https://wordpress.org/plugins/tea-page-content/changelog/">Changelog</a> tab.
    2727
    2828= Documentation =
     
    5757
    5858= I found a bug or have a suggestion. What I can do? =
    59 You can create new topic in forum at wordpress.org, or send me email (in my profile). I will answer you as soon as possible.
     59You can create new topic in forum at wordpress.org, or send me email. I will answer you as soon as possible.
    6060
    6161== Changelog ==
     62
     63= 1.1.1 =
     64* \+ Added new template-variable type "caption" that allows you describe your template
     65* \* Checked for Wordpress 4.5 support
     66* \* Improved Bootstrap template
    6267
    6368= 1.1.0 =
     
    6772* \+ New template: Bootstrap 3.x
    6873* \+ Added possibility hide title, content and link it. This feature depends of used template (all built-in templates except deprecated supports it)
    69 * \- Default-Padded template, `thumbnail` widget and shortcode parameter, `id` shortcode parameter is **deprecated**. These features will be **deleted** in version 1.2. See docs for migration guide
     74* \- Default-Padded template, `thumbnail` widget and shortcode parameter, `id` shortcode parameter is **deprecated**. See docs for migration guide
    7075* \* CSS for frontend part changed, improved paddings, adds hover effects
    7176* \* Global code refactoring. We are friendly for developers!
     
    7681
    7782== Documentation ==
    78 
    79 = Migration Guide =
    80 **From 1.0.x to 1.1.x**
    81 Since 1.1.x, nothing was deleted. But some options was marked as deprecated. We strongly recommend do these steps:
    82 * If you're using **default padded** template, change it on **default** with layout what you prefer.
    83 * If you're using shortcodes, replace parameter `id` to `posts`.
    84 * If you're using widgets with **turned off** thumbnail option, re-save each of it.
    8583
    8684= Shortcodes =
     
    118116`template="tpc-my-template"`
    119117
    120 = Variables in template =
    121 Above you can see very simple example of custom template with `title` and `content` variables. But this is not all - there is a full list of allowed variables which you can use.
    122 
    123 = Details =
    124 Because full manual is too long, you can see it at <a href="http://tsjuder.github.io/tea-page-content/">Github Page</a>. Get detail and updating information about new features includes filters, template-level variables and more.
     118= Parameters in template =
     119Above you can see very simple example of custom template with `title` and `content` parameters. But this is not all - there is a full list of allowed parameters which you can use.
    125120
    126121* **$count** - Count of all passed entries
     
    132127    * **link** - Link of entry
    133128    * **id** - Entry ID
     129
     130= Details =
     131Because 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.
     132
     133= Migration Guide =
     134**From 1.0.x to 1.1.x**
     135Since 1.1.x, nothing was deleted. But some options was marked as deprecated. We recommend do these steps:
     136* If you're using **default padded** template, change it on **default** with layout what you prefer.
     137* If you're using shortcodes, replace parameter `id` to `posts`.
     138* If you're using widgets with **turned off** thumbnail option, re-save each of it.
  • tea-page-content/trunk/tea-page-content.class.php

    r1384553 r1392502  
    22/**
    33 * @package Tea Page Content
    4  * @version 1.1.0
     4 * @version 1.1.1
    55 */
    66
     
    168168     */
    169169    public function displayDeprecatedNotice() {
    170         $message = __('Warning! Since Tea Page Content 1.1 some parameters is <b>deprecated</b>, and will be <b>deleted</b> in the next release. We strongly recommend you check out the <a href="https://wordpress.org/plugins/tea-page-content/changelog/">changelog</a>. <b>This notice appears only once!</b>');
     170        $message = __('Please note, that since Tea Page Content 1.1 some parameters is <b>deprecated</b>. We recommend you check out the <a href="https://wordpress.org/plugins/tea-page-content/changelog/">changelog</a>. <b>This notice appears only once!</b>');
    171171        $content = '<div id="tpc-deprecated-notice" class="error notice tpc-deprecated-notice is-dismissible"><p>' . $message . '</p></div>';
    172172
  • tea-page-content/trunk/templates/bootstrap-3.php

    r1384553 r1392502  
    11<?php
    22/**
     3 * @param caption caption "This is a Bootstrap 3.x template. Feel free to read <a href='http://tsjuder.github.io/tea-page-content/' target='_blank'>docs</a> with explain of every variable. Enjoy!"
     4 *
    35 * @param container-type select container-fluid|container
    46 * @param ordering-type select horizontal|transposed
     7 *
     8 * @param use-rows checkbox 1
    59 *
    610 * @param column-count-large select 1|2|3|4|6|12
     
    7983            <?php
    8084            $counter++;
    81             if($counter % $itemsPerRow === 0) :
     85            if($counter % $itemsPerRow === 0 && $template_variables['use-rows']) :
    8286                $counter = 0;
    8387                // here optionally clear row
     88
     89                echo '</div><div class="row">';
     90
    8491            endif; ?>
    8592        <?php endforeach; ?>
     
    146153            endfor;
    147154
     155            if($counter < $itemsCount && $template_variables['use-rows']) {
     156                echo '</div><div class="row">';
     157            }
     158
    148159        endfor;
    149160        ?>
  • tea-page-content/trunk/templates/default-padded.php

    r1384553 r1392502  
     1<?php
     2/**
     3 * @param caption caption "This template is deprecated. Use 'default' instead."
     4 */
     5
     6?>
     7
    18<?php if(isset($entries) && count($entries)) : ?>
    29
  • tea-page-content/trunk/templates/default-widget-admin-variables-area.php

    r1384553 r1392502  
    1818        } else {
    1919            $variableValue = reset($variable['defaults']);
    20         } ?>
     20        }?>
    2121       
    2222        <p>
    23             <label for="<?php echo $variableID ?>">
    24                 <?php echo ucwords(str_replace(array('-','_'), ' ', $variable['name'])) ?>:
    25             </label>
     23            <?php if($variable['type'] !== 'caption') : ?>
     24                <label for="<?php echo $variableID ?>">
     25                    <?php echo ucwords(str_replace(array('-','_'), ' ', $variable['name'])) ?>:
     26                </label>
     27            <?php endif; ?>
    2628           
    2729            <?php switch ($variable['type']) : default: break; ?>
     30                <?php case 'caption': ?>
     31                    <span class="tpc-template-caption">
     32                        <?php echo trim($variableValue, '"') ?>
     33                    </span>
     34                <?php break; ?>
    2835
    2936                <?php case 'text': ?>
     
    3239
    3340                <?php case 'textarea': ?>
    34                     <textarea class="widefat" id="<?php echo $variableID ?>" name="<?php echo $variableName ?>"><?php echo $variableValue ?></textarea>
     41                    <textarea class="widefat" id="<?php echo $variableID ?>" name="<?php echo $variableName ?>">
     42                        <?php echo $variableValue ?>
     43                    </textarea>
    3544                <?php break; ?>
    3645
    3746                <?php case 'checkbox': ?>
    38                     <?php
    39                     $checked = '';
     47                    <?php $checked = '';
    4048                    if(!empty($instance['params'][$variable['name']]) || $variableValue) {
    4149                        $checked = 'checked';
    42                     }
    43                     ?>
     50                    } ?>
     51
    4452                    <input type="checkbox" class="widefat" id="<?php echo $variableID ?>" name="<?php echo $variableName ?>" value="<?php echo $variable['name'] ?>" <?php echo $checked ?> />
    4553                <?php break; ?>
  • tea-page-content/trunk/uninstall.php

    r1384553 r1392502  
    22/**
    33 * @package Tea Page Content
    4  * @version 1.1.0
     4 * @version 1.1.1
    55 */
    66
Note: See TracChangeset for help on using the changeset viewer.