Skip to content

Commit

Permalink
Widgets: resolve merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Iloro committed Jun 6, 2018
1 parent c3dbb66 commit b3478f5
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions modules/widgets/simple-payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,16 @@ function __construct() {
)
);

<<<<<<< HEAD
if ( is_active_widget( false, false, $this->id_base ) || is_customize_preview() ) {
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_style' ) );
}
}

function enqueue_style() {
wp_enqueue_style( 'jetpack-simple-payments-widget-style', plugins_url( 'simple-payments/style.css', __FILE__ ), array(), '20180518' );
=======
if ( is_customize_preview() ) {
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_styles_and_scripts' ) );

add_filter( 'customize_refresh_nonces', array( $this, 'filter_nonces' ) );
add_action( 'wp_ajax_customize-jetpack-simple-payments-button-add-new', array( $this, 'ajax_add_new_payment_button' ) );
}
>>>>>>> Widgets: allows users to create a new SP button from the customizer

if ( is_active_widget( false, false, $this->id_base ) || is_customize_preview() ) {
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_style' ) );
}
}

/**
Expand Down Expand Up @@ -107,6 +101,10 @@ function filter_nonces( $nonces ) {
return $nonces;
}

function enqueue_style() {
wp_enqueue_style( 'jetpack-simple-payments-widget-style', plugins_url( 'simple-payments/style.css', __FILE__ ), array(), '20180518' );
}

function admin_enqueue_styles_and_scripts(){
wp_enqueue_style( 'jetpack-simple-payments-widget-customizer', plugins_url( 'simple-payments/customizer.css', __FILE__ ) );

Expand Down

0 comments on commit b3478f5

Please sign in to comment.