Plugin Directory

Changeset 804261


Ignore:
Timestamp:
11/14/2013 09:43:30 AM (12 years ago)
Author:
tipiirai
Message:

Display Wordpress commenting when Moot commenting is disabled

Location:
moot/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • moot/trunk/class-moot.php

    r760588 r804261  
    1212class Moot {
    1313
    14    protected $version = '2.0.3';
     14   protected $version = '2.0.4';
    1515
    1616   protected $plugin_slug = 'moot';
     
    2222
    2323   private function __construct() {
     24      add_filter('the_content', array($this, 'default_comments'));
     25
    2426      add_action('wp_enqueue_scripts', array($this, 'moot_includes'));
    2527      add_action('wp_head', array($this, 'moot_head'));
    26       add_filter('the_content', array($this, 'default_comments'));
    2728      add_action('admin_menu', array($this, 'moot_admin_menu'));
    2829      add_action('admin_init', array($this, 'moot_settings'));
     30
    2931      add_shortcode('moot', array($this, 'moot_shortcode'));
    3032      add_shortcode('no-moot', array($this, 'moot_disable'));
  • moot/trunk/moot.php

    r760588 r804261  
    55 * Author URI:    https://moot.it
    66 * Description:   Realtime forums and commenting for WordPress
    7  * Version:       2.0.3
     7 * Version:       2.0.4
    88 * Author:        Moot Inc
    99 * Text Domain:   moot
  • moot/trunk/public.php

    r760588 r804261  
    11
     2<!-- Use Moot instead of Wordpress for comments | https://moot.it */ -->
    23<style>
    3 /* Hide default comments in place for Moot: https://moot.it */
    4 .comments-link, #comment-wrap, #comments, #recent-comments-2, a[href*=comments-rss], a[href*='comments/feed'] {
    5    display: none !important;
    6 }
    7 .moot { max-width: 100%; margin-bottom: 2em; }
    8 .moot p { margin-bottom: 0; }
    9 .moot .m-title { line-height: 1.1; margin: 0; }
    10 .moot .m-pagetitle { margin: 0 0 .6em; }
     4   .has-moot .comments-link,
     5   .has-moot #comment-wrap,
     6   .has-moot #comments,
     7   .has-moot #recent-comments-2,
     8   .has-moot a[href*=comments-rss],
     9   .has-moot a[href*='comments/feed'],
     10   .home-page #moot {
     11      display: none !important;
     12   }
     13   .moot { max-width: 100%; margin-bottom: 2em; }
     14   .moot p { margin-bottom: 0; }
     15   .moot .m-title { line-height: 1.1; margin: 0; }
     16   .moot .m-pagetitle { margin: 0 0 .6em; }
    1117</style>
     18
    1219
    1320<?php
     
    5461   $(function() {
    5562
     63      <?php if (get_option('moot_generate') == "true") { ?>
     64         $("body").addClass("has-moot");
     65      <?php } ?>
     66
    5667      if (typeof moot != "function") return $("#moot").remove();
    5768
     
    8394      if ($("#no-moot")[0]) return default_moot.remove();
    8495
     96      $("body").addClass("has-moot");
     97
    8598      if (user_moot[0]) {
    8699         user_moot.moot(moot_conf);
  • moot/trunk/readme.txt

    r760588 r804261  
    44Requires at least: 3.0.0
    55Tested up to: 3.6
    6 Stable tag: 2.0.3
     6Stable tag: 2.0.4
    77License: MIT
    88License URI: https://github.com/moot/wordpress/blob/master/LICENSE.txt
Note: See TracChangeset for help on using the changeset viewer.