Skip to content

Commit

Permalink
#2766 add client for front-end render
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Pollock committed Oct 18, 2018
1 parent a7f60d4 commit 8f4043c
Show file tree
Hide file tree
Showing 19 changed files with 60,149 additions and 59,166 deletions.
11 changes: 11 additions & 0 deletions classes/fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,17 @@ public static function internal_types() {
),

),
'text2' => array(
"field" => __( 'text2', 'caldera-forms' ),
"description" => __( 'text2', 'caldera-forms' ),
"file" => CFCORE_PATH . "fields/text2/field.php",
"category" => __( 'Basic', 'caldera-forms' ),
"setup" => array(
"template" => CFCORE_PATH . "fields/text2/config.php",
"preview" => CFCORE_PATH . "fields/text2/preview.php"
),

),
'hidden' => array(
"field" => __( 'Hidden', 'caldera-forms' ),
"description" => __( 'Hidden', 'caldera-forms' ),
Expand Down
6 changes: 4 additions & 2 deletions classes/render/assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ public static function get_core_scripts(){
'blocks' => self::make_url( 'blocks'),
'editor' => self::make_url( 'editor' ),
'pro' => self::make_url( 'pro' ),
'privacy' => self::make_url( 'privacy' )
'privacy' => self::make_url( 'privacy' ),
'render' => self::make_url( 'render' )
);

$script_urls[ 'fields' ] = $script_urls[ 'privacy' ];
Expand Down Expand Up @@ -555,7 +556,7 @@ public static function make_url( $name, $script = true ){
* @return bool
*/
public static function is_client_entry_point( $slug ){
return in_array( $slug, array( 'blocks', 'pro', 'privacy' ) );
return in_array( $slug, array( 'blocks', 'pro', 'privacy','render' ) );
}

/**
Expand Down Expand Up @@ -589,6 +590,7 @@ public static function enqueue_form_assets(){
self::maybe_validator_i18n( false );
self::enqueue_script( 'validator' );
self::enqueue_script( 'init' );
self::enqueue_script( 'render' );

$should_minify = self::should_minify();
if( $should_minify ){
Expand Down
Loading

0 comments on commit 8f4043c

Please sign in to comment.