Plugin Directory

Changeset 1727838


Ignore:
Timestamp:
09/11/2017 04:14:52 AM (9 years ago)
Author:
JohnPBloch
Message:

Add 2.0 beta

Location:
child-themify
Files:
18 added
5 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • child-themify/trunk/child-themify.php

    r1514375 r1727838  
    22/*
    33 * Plugin Name: Child Themify
    4  * Description: Create child themes at the click of a button.
    5  * Version: 1.2.0
     4 * Description: Create child themes at the click of a button
     5 * Version: 2.0.0-beta1
    66 * Plugin URI: https://github.com/johnpbloch/child-themify
    77 * Author: John P. Bloch
    88 * License: GPL-2.0+
    99 * Text Domain: child-themify
    10  * Domain Path: /languages
     10 * Network: true
    1111 */
    1212
    13 define( 'CTF_PATH', WP_PLUGIN_DIR . '/' . basename( dirname( __FILE__ ) ) . '/' . basename( __FILE__ ) );
    14 define( 'CTF_URL', WP_PLUGIN_URL . '/' . basename( dirname( __FILE__ ) ) . '/' . basename( __FILE__ ) );
    15 define( 'CTF_VERSION', '1.2.0' );
    16 
     13define( 'CTF_PATH', __FILE__ );
     14define( 'CTF_URL', plugin_dir_url( CTF_PATH ) );
     15define( 'CTF_VERSION', '2.0.0-beta1' );
    1716
    1817function ctf_plugins_loaded() {
    19     if ( version_compare( $GLOBALS['wp_version'], '3.8', '>=' ) ) {
    20         global $child_themify;
    21         require_once dirname( CTF_PATH ) . '/includes/plugin.php';
    22         $child_themify = new Child_Themify();
    23         add_action( 'init', array( $child_themify, 'init' ) );
    24     } else {
    25         require_once dirname( CTF_PATH ) . '/includes/legacy.php';
    26         add_action( 'init', array( 'CTF_Babymaker', 'init' ) );
     18    $inc = plugin_dir_path( CTF_PATH ) . '/includes/';
     19    require_once $inc . 'util.php';
     20    require_once $inc . 'api.php';
     21    child_themify_api_init();
     22    if ( is_admin() ) {
     23        require_once $inc . 'admin.php';
     24        child_themify_admin_init();
    2725    }
    2826}
Note: See TracChangeset for help on using the changeset viewer.