Plugin Directory

Changeset 2536542


Ignore:
Timestamp:
05/24/2021 03:09:51 PM (5 years ago)
Author:
impacttechpartners
Message:

fix for css loading in wrong pages. version 1.0.3

Location:
impact-partnership-cloud
Files:
18 added
2 edited

Legend:

Unmodified
Added
Removed
  • impact-partnership-cloud/trunk/impact.php

    r2533870 r2536542  
    33 * Plugin Name:       Impact: Partnership Cloud
    44 * Description:       Partnership cloud app plugin for Woocomerce that tracks every conversion made trough one of Impact's referral links.
    5  * Version:           1.0.2
     5 * Version:           1.0.3
    66 * Requires at least: 5.0
    77 * Requires PHP:      7.0
     
    132132  public function add_impact_scripts()
    133133  {
    134     wp_register_style( 'impact-form-css', plugins_url('/css/css.css', __FILE__ ) );
    135     wp_enqueue_style( 'impact-form-css' );
    136     wp_register_style( 'impact-css', plugins_url('/css/impact.css', __FILE__ ) );
    137     wp_enqueue_style( 'impact-css' );
    138     wp_enqueue_script( 'impact-js', plugins_url( '/js/impact.js', __FILE__ ), array('jquery'), false, true );
     134    $pagename = (isset($_GET['page']) ? $_GET['page'] : null);
     135    if ($pagename === 'impact-settings') {
     136      wp_register_style( 'impact-form-css', plugins_url('/css/css.css', __FILE__ ) );
     137      wp_enqueue_style( 'impact-form-css' );
     138      wp_register_style( 'impact-css', plugins_url('/css/impact.css', __FILE__ ) );
     139      wp_enqueue_style( 'impact-css' );
     140      wp_enqueue_script( 'impact-js', plugins_url( '/js/impact.js', __FILE__ ), array('jquery'), false, true );
     141    }
    139142  }
    140143
  • impact-partnership-cloud/trunk/readme.txt

    r2533870 r2536542  
    44Tested up to: 5.7
    55Requires PHP: 7.0
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.3
    77License: GPLv2 or later License
    88URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.