Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aurovrata committed Feb 24, 2017
1 parent abffc23 commit f07e33d
Show file tree
Hide file tree
Showing 13 changed files with 20,111 additions and 55 deletions.
10 changes: 6 additions & 4 deletions admin/class-cf7-grid-layout-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ public function __construct( $plugin_name, $version ) {
* @since 1.0.0
*/
public function enqueue_styles() {

$screen = get_current_screen();
if ('wpcf7_contact_form' != $screen->post_type){
return;
}
wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/cf7-grid-layout-admin.css', array(), $this->version, 'all' );
do_action('smart_grid_register_styles');
}

/**
Expand All @@ -87,11 +89,11 @@ public function enqueue_scripts($page) {
//for the future
break;
case 'edit':
wp_enqueue_script( $this->plugin_name.'-quick-edit', plugin_dir_url( __FILE__ ) . 'js/cf7-grid-layout-quick-edit.js', false, $this->version, true );
//wp_enqueue_script( $this->plugin_name.'-quick-edit', plugin_dir_url( __FILE__ ) . 'js/cf7-grid-layout-quick-edit.js', false, $this->version, true );
break;
}
}

/**
* Add to the wpcf7 tag generator.
* This function registers a callback function with cf7 to display
Expand Down
Loading

0 comments on commit f07e33d

Please sign in to comment.