Skip to content

Commit

Permalink
enqueue the CSS for new admin client #2789 #2445
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Pollock committed Oct 24, 2018
1 parent f1adb08 commit 9bf3657
Show file tree
Hide file tree
Showing 22 changed files with 20,335 additions and 20,973 deletions.
2 changes: 1 addition & 1 deletion assets/build/css/caldera-forms-front.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/caldera-forms-front.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/caldera-forms-front.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! GENERATED SOURCE FILE caldera-forms - v1.8.0-a.1 - 2018-10-17 *//**
/*! GENERATED SOURCE FILE caldera-forms - v1.8.0-a.1 - 2018-10-24 *//**
* Simple event bindings for form state
*
* In general, access through CFState.events() not directly.
Expand Down
2 changes: 1 addition & 1 deletion assets/js/entry-viewer-2.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! GENERATED SOURCE FILE caldera-forms - v1.8.0-a.1 - 2018-10-17 *//**
/*! GENERATED SOURCE FILE caldera-forms - v1.8.0-a.1 - 2018-10-24 *//**
* API Client for Caldera Forms API for a single form
*
* @since 1.5.0
Expand Down
2 changes: 1 addition & 1 deletion assets/js/parsley.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! GENERATED SOURCE FILE caldera-forms - v1.8.0-a.1 - 2018-10-17 *//*!
/*! GENERATED SOURCE FILE caldera-forms - v1.8.0-a.1 - 2018-10-24 *//*!
* Parsley.js
* Version 2.8.1 - built Sat, Feb 3rd 2018, 2:27 pm
* http://parsleyjs.org
Expand Down
2 changes: 1 addition & 1 deletion assets/js/vue.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! GENERATED SOURCE FILE caldera-forms - v1.8.0-a.1 - 2018-10-17 *//*!
/*! GENERATED SOURCE FILE caldera-forms - v1.8.0-a.1 - 2018-10-24 *//*!
* Vue.js v2.1.6
* (c) 2014-2016 Evan You
* Released under the MIT License.
Expand Down
6 changes: 3 additions & 3 deletions caldera-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@ function caldera_forms_freemius_icon_path()

add_action('caldera_forms_admin_assets_styles_registered', function(){
if( Caldera_Forms_Admin::is_main_page() ){
$x= Caldera_Forms_Admin_Assets::main_admin_asset_slug();
Caldera_Forms_Admin_Assets::set_cf_admin( Caldera_Forms_Admin_Assets::main_admin_asset_slug() );
wp_enqueue_style( 'caldera-forms-admin-scripts',
plugins_url('/assets/build/css/admin.min.css', __FILE__ )

wp_enqueue_style( Caldera_Forms_Admin_Assets::main_admin_asset_slug(),
plugins_url('/clients/admin/build/style.min.css', __FILE__ )
);
}
});
Expand Down
7 changes: 4 additions & 3 deletions classes/render/assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -557,20 +557,20 @@ public static function make_url( $name, $script = true ){
*/
public static function is_client_entry_point( $slug ){

$clients= [
$clients = [
'blocks',
'pro',
'privacy',

];

/**
* Determine if we should use the new CF2 admin page client or not.
*
* @since 1.8.0
*
* @param boolean $use_cf2 If new cf2 admin client should be used or not
*/
if( ( apply_filters( 'caldera_forms_use_cf2_admin', Caldera_Forms_Admin::is_main_page() ) ) ){
if( apply_filters( 'caldera_forms_use_cf2_admin', Caldera_Forms_Admin::is_main_page() ) ){
$clients = array_merge( $clients, [
'admin',
Caldera_Forms_Admin_Assets::main_admin_asset_slug()
Expand All @@ -579,6 +579,7 @@ public static function is_client_entry_point( $slug ){
return in_array( $slug, $clients );
}


/**
* Should we mbe minifying script/styles?
*
Expand Down
Loading

0 comments on commit 9bf3657

Please sign in to comment.