Skip to content

Commit

Permalink
consistent naming
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheu committed Jul 7, 2015
1 parent b35969d commit c044010
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions inc/class-resource-space-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function admin_menu() {
}

function render_page() {
include( RESOURCE_SPACE_PLUGIN_DIR . '/templates/admin-page.php' );
include( PJ_RESOURCE_SPACE_PLUGIN_DIR . '/templates/admin-page.php' );
}

function admin_enqueue_scripts() {
Expand All @@ -63,7 +63,7 @@ function admin_enqueue_scripts() {
wp_enqueue_script( 'media' );

$deps = array( 'jquery', 'backbone', 'media' );
wp_enqueue_script( 'resource-space-admin', RESOURCE_SPACE_PLUGIN_URL . '/js/admin.js', $deps, RESOURCESPACE_PLUGIN_VERSION, true );
wp_enqueue_script( 'resource-space-admin', PJ_RESOURCE_SPACE_PLUGIN_URL . '/js/admin.js', $deps, PJ_RESOURCESPACE_PLUGIN_VERSION, true );

// wp_localize_script( 'resource-space-admin', 'resourceSpace', array(
// 'queryVars' => (object) array(
Expand Down
2 changes: 1 addition & 1 deletion inc/class-resource-space-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static function get_instance() {
}

public function __construct() {
add_action( 'wp_ajax_' . RESOURCE_SPACE_AJAX_ACTION, array( $this, 'ajax_get_image' ) );
add_action( 'wp_ajax_' . PJ_RESOURCE_SPACE_AJAX_ACTION, array( $this, 'ajax_get_image' ) );
}

/**
Expand Down
9 changes: 5 additions & 4 deletions resourcespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
Domain Path: /languages
*/

define( 'RESOURCESPACE_PLUGIN_VERSION', '0.1' );
define( 'RESOURCE_SPACE_AJAX_ACTION', 'pj_rs_get_resource' );
define( 'RESOURCE_SPACE_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
define( 'RESOURCE_SPACE_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
define( 'PJ_RESOURCESPACE_PLUGIN_VERSION', '0.1' );
define( 'PJ_RESOURCE_SPACE_AJAX_ACTION', 'pj_rs_get_resource' );
define( 'PJ_RESOURCE_SPACE_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
define( 'PJ_RESOURCE_SPACE_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );

defined( 'PJ_RESOURCE_SPACE_RESULTS_PER_PAGE' ) or define( 'PJ_RESOURCE_SPACE_RESULTS_PER_PAGE', 20 );

if ( ! class_exists( 'MEXP_Service' ) ) {
Expand Down

0 comments on commit c044010

Please sign in to comment.