Plugin Directory

Changeset 1369811


Ignore:
Timestamp:
03/12/2016 01:52:08 PM (10 years ago)
Author:
oriolo
Message:

version 1.0.0 adding comments

Location:
goods-catalog/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • goods-catalog/trunk/goods-cat.php

    r1233870 r1369811  
    55  Plugin URI: http://oriolo.wordpress.com/2014/03/25/goods-catalog-wordpress-plugin-that-creates-catalog-of-products/
    66  Description: Plugin that creates simple catalog of goods.
    7   Version: 0.10.0
     7  Version: 1.0.0
    88  Author: Irina Sokolovskaya
    99  Author URI: http://oriolo.ru/
  • goods-catalog/trunk/inc/class.goods-post-type.php

    r1152132 r1369811  
    3636            'public' => true,
    3737            'menu_position' => 30,
    38             'supports' => array('title', 'editor', 'thumbnail'),
     38            'supports' => array('title', 'editor', 'thumbnail', 'comments'),
    3939            'taxonomies' => array('goods_category'),
    4040            'has_archive' => true,
  • goods-catalog/trunk/inc/functions.php

    r1233870 r1369811  
    3232/**
    3333 * Goods query settings
     34 * renamed from goods_pagesize();
    3435 *
    3536 * @link https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
    3637 * @param $query array
     38 * @since 0.10.0
    3739 */
    3840
     
    5456}
    5557
    56 add_action('pre_get_posts', 'goods_query', 1); // Set items per page
     58add_action('pre_get_posts', 'goods_query', 1);
    5759
    5860/**
     
    258260    return $before . $output . $after;
    259261}
    260 
  • goods-catalog/trunk/languages/gcat-ru_RU.po

    r1233870 r1369811  
    44"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/goods-catalog\n"
    55"POT-Creation-Date: 2015-08-29 23:48+0300\n"
    6 "PO-Revision-Date: 2015-08-29 23:50+0300\n"
     6"PO-Revision-Date: 2015-08-30 18:11+0300\n"
    77"Last-Translator: Irina Sokolovskaja <sokolovskaja.irina@gmail.com>\n"
    88"Language-Team: \n"
     
    525525#: ../inc/class.goods-post-type.php:30
    526526msgid "View"
    527 msgstr "Вид"
     527msgstr "Просмотреть"
    528528
    529529#: ../inc/class.goods-post-type.php:31
    530530msgid "View of items"
    531 msgstr "Вид товаров"
     531msgstr "Просмотреть товар"
    532532
    533533#: ../inc/class.goods-post-type.php:32
  • goods-catalog/trunk/readme.txt

    r1268012 r1369811  
    44Stable tag: trunk
    55Requires at least: 3.3.0
    6 Tested up to: 4.3
     6Tested up to: 4.2.1
    77License: GNU General Public License v2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    80803. Singe product page
    81814. Admin page
    82 5. Settings page
    8382
    8483== Frequently Asked Questions ==
     
    104103Another option is to change the plugin files see the discussion [here](https://wordpress.org/support/topic/how-to-modify-the-catalog-title-page). It is not recommended: you will lose the changes after the plugin update.
    105104
     105= How can I enable or disable the comments for catalog entries? =
     106Since the version 1.0.0 comments comments are enabled by default. You can disable them globally in WordPress Admin settings (at Discussion tab), or you can use third-part plugins to make comments available only for some post types, for example [Disable Comments Plugin](https://wordpress.org/plugins/disable-comments/).
     107
     108= How can I separate comments to products and posts in the Admin Panel? =
     109You can use my plugin [Comments by Post Type](https://wordpress.org/plugins/comments-by-post-type/) for that.
     110
    106111== Changelog ==
     112
     113= 1.0.0 =
     114
     115* New feature: Comments
    107116
    108117= 0.10.0 =
     
    279288== Upgrade Notice ==
    280289
     290= 1.0.0 =
     291
     292New feature: Comments
     293
    281294= 0.10.0 =
    282295
  • goods-catalog/trunk/templates/single-goods.php

    r1154409 r1369811  
    5959    }
    6060    ?>
    61     <div class="navigation"><?php posts_nav_link(); ?></div>
     61    <div class="navigation">
     62    <?php previous_post_link( '%link', __('Previous product', 'gcat'), TRUE, ' ', 'goods_category' ); ?>
     63    <?php next_post_link( '%link', __('Next product', 'gcat'), TRUE, ' ', 'goods_category' ); ?>
     64    </div>
     65    <div class="comments">
     66        <?php comments_template( '', true ); ?>
     67    </div>
    6268    <?php
    6369} else {
Note: See TracChangeset for help on using the changeset viewer.