Plugin Directory

Changeset 1552777


Ignore:
Timestamp:
12/12/2016 02:45:32 PM (9 years ago)
Author:
TrendMD
Message:

widget loads only on posts

Location:
trendmd/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trendmd/trunk/admin/class-trendmd-admin.php

    r1456960 r1552777  
    138138    public static function show_widget()
    139139    {
    140         return (self::is_set_journal_id() && is_singular() && !is_preview() && self::category_is_indexed());
     140        return (self::is_set_journal_id() && is_single() && !is_preview() && self::category_is_indexed());
    141141    }
    142142
  • trendmd/trunk/includes/class-trendmd.php

    r1456960 r1552777  
    7373
    7474        $this->plugin_name = 'trendmd';
    75         $this->version = '2.3';
     75        $this->version = '2.4';
    7676
    7777        $this->load_dependencies();
  • trendmd/trunk/public/class-trendmd-public.php

    r1456960 r1552777  
    6565
    6666  public static function trendmd_add_html($content) {
    67     $content .= '<!--TrendMD v2.3-->';
     67    $content .= '<!--TrendMD v2.4-->';
    6868    if (Trendmd_Admin::show_widget() && !Trendmd_Admin::custom_widget_location()) {
    6969      $content .= "<div id='trendmd-suggestions'></div>";
  • trendmd/trunk/readme.txt

    r1541824 r1552777  
    143143== Changelog ==
    144144
     145= 2.4 =
     146
     147* Wdidget will load only on posts
     148
    145149= 2.3 =
    146150
  • trendmd/trunk/trendmd.php

    r1456960 r1552777  
    1111 * Plugin URI:        http://www.trendmd.com
    1212 * Description:       This plugin will add the TrendMD recommendations widget to your WordPress website. The TrendMD recommendations widget is used by scholarly publishers to increase their readership and revenue.
    13  * Version:           2.3
     13 * Version:           2.4
    1414 * Author:            TrendMD Team
    1515 * Author URI:        http://www.trendmd.com
Note: See TracChangeset for help on using the changeset viewer.