Plugin Directory

Changeset 725556


Ignore:
Timestamp:
06/12/2013 06:00:27 AM (13 years ago)
Author:
bholtsclaw
Message:

refactor starting

Location:
gplus-comments/trunk
Files:
37 added
5 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • gplus-comments/trunk/gplus-comments.php

    r718087 r725556  
    11<?php
    22/*
    3 Plugin Name: Google+ Comments
     3Plugin Name: Comments Evolved
    44Plugin URI: http://www.cloudhero.net/gplus-comments
    5 Description: Google+ Comments for WordPress plugin adds Google Plus comments along side your native WordPress comment system in a responsive tab interface.
     5Description: The Comments Evolved for WordPress plugin adds the ability to enable native WordPress, Google+, Facebook, Disqus, Livefyre, Twitter comment systems  easily through the Admin webinterface.
    66Author: Brandon Holtsclaw <me@brandonholtsclaw.com>
    77Author URI: http://www.brandonholtsclaw.com/
     
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1010Donate link: http://www.wepay.com/donations/brandonholtsclaw
    11 Version: 1.4.13
     11Version: 1.4.16
    1212*/
    1313
    14 /**
    15  *       DEVELOPERS AND THEMERS : DONT EDIT THIS FILE DIRECTLY
    16  *       THERE ARE INSTRUCTIONS ON THE PLUGINS WEBPAGE TO CUSTOMIZE IT
    17  *       SO THAT IT WONT BE LOST ON PLUGIN UPATES.
    18  */
    19 
    20 // No direct access
    2114defined('ABSPATH') or exit;
    2215
     
    4841defined('GPLUS_COMMENTS_DIR') or define('GPLUS_COMMENTS_DIR', __DIR__);
    4942defined('GPLUS_COMMENTS_URL') or define('GPLUS_COMMENTS_URL', rtrim(plugin_dir_url(__FILE__),"/"));
    50 defined('GPLUS_COMMENTS_LIB') or define('GPLUS_COMMENTS_LIB', GPLUS_COMMENTS_DIR . "/lib");
    51 defined('GPLUS_COMMENTS_TEMPLATES') or define('GPLUS_COMMENTS_TEMPLATES', GPLUS_COMMENTS_DIR . "/templates");
     43defined('GPLUS_COMMENTS_LIB') or define('GPLUS_COMMENTS_LIB', GPLUS_COMMENTS_DIR . "/includes/lib");
     44defined('GPLUS_COMMENTS_TEMPLATES') or define('GPLUS_COMMENTS_TEMPLATES', GPLUS_COMMENTS_DIR . "/includes/templates");
    5245defined('GPLUS_COMMENTS_DEFAULT_TAB_ORDER') or define('GPLUS_COMMENTS_DEFAULT_TAB_ORDER', 'gplus,facebook,wordpress');
    5346
    5447require GPLUS_COMMENTS_LIB . '/hooks.php';
    55 function gplus_comments_render_admin_page() { require GPLUS_COMMENTS_LIB . '/admin.php'; }
     48
     49if ( is_admin() && ( !defined( 'DOING_AJAX' ) || !DOING_AJAX ) )
     50{
     51  function gplus_comments_admin() { require GPLUS_COMMENTS_LIB . '/admin.php'; }
     52}
     53else
     54{
     55  //require 'class-frontend.php';
     56}
    5657
    5758/*
Note: See TracChangeset for help on using the changeset viewer.