Submit
Path:
~
/
home
/
caidadmin
/
dev.scribes.sca-caid.org
/
wp-content
/
plugins
/
caldera-forms
/
fields
/
html
/
File Content:
field.php
<?php $html_template = ''; // magics! $syncer = Caldera_Forms_Sync_Factory::get_object( $form, $field, Caldera_Forms_Field_Util::get_base_id( $field, null, $form ) ); $sync = $syncer->can_sync(); $forbidden_tags = array( 'form', 'iframe', 'script' ); if( $sync ){ $default = $syncer->get_default(); echo '<div id="'. esc_attr( $syncer->content_id() ) . '" data-field="' . esc_attr( $field_id ) . '" class="' . esc_attr( $field['config']['custom_class'] ) . '"></div>'; // create template block ob_start(); echo '<script type="text/html" id="'. esc_attr( $syncer->template_id() ) . '">'; echo do_shortcode( Caldera_Forms::do_magic_tags( wpautop( $syncer->get_default() ) ) ); echo '</script>'; $script_template = ob_get_clean(); Caldera_Forms_Render_Util::add_inline_data( $script_template, $form ); }else{ $html_template = $field[ 'config' ][ 'default' ]; $content = do_shortcode( Caldera_Forms::do_magic_tags( wpautop( $html_template ) ) ); echo '<div class="' . esc_attr( $field['config']['custom_class'] ) . '">' . $content . '</div>'; }
Submit
FILE
FOLDER
Name
Size
Permission
Action
.htaccess
127 bytes
0444
config_template.php
1242 bytes
0644
field.php
1062 bytes
0644
icon.png
1156 bytes
0644
preview.php
20 bytes
0644
N4ST4R_ID | Naxtarrr