wordpress/wp-content/themes/basic/themify/tinymce/class-themify-tinymce.php
/**
	 * Print template files that will generate the shortcode code
	 *
	 * @since 2.7.6
	 */
Print template files that will generate the shortcode code
@since 2.7.6
Print template files that will generate the shortcode code @since 2 . 7 . 6
function print_media_templates( $shortcodes = null ) {
		if( $shortcodes == null ) {
			$shortcodes = $this->get_shortcodes();
		}
		foreach( $shortcodes as $key => $shortcode ) {
			if( isset( $shortcode['menu'] ) ) {
				$this->print_media_templates( $shortcode['menu'] );
			} else {
				echo '<script type="text/html" id="tmpl-themify-shortcode-' . $key . '">';
				if( isset( $shortcode['template'] ) ) {
					echo $shortcode['template'];
				} else {
					echo '[' . $key;
					if( isset( $shortcode['fields'] ) ) {
						foreach( $shortcode['fields'] as $field ) {
							if( isset( $field['ignore'] ) ) {
								continue;
							} else {
								echo '<# if ( data.' . $field['name'] . ' ) { #> ' . $field['name'] . '="{{data.' . $field['name'] . '}}"<# } #>';
							}
						}
					}
					echo ']';
					if( !empty( $shortcode['closing_tag'] )) {
						echo isset( $shortcode['wrap_with'] ) ? $shortcode['wrap_with'] : '{{{data.selectedContent}}}';
						echo '[/' . $key . ']';
					}
				}
				echo '</script>';
			}
		}
	}
function print_media_templates ( $ shortcodes = null ) { if ( $ shortcodes == null ) { $ shortcodes = $ this -> get_shortcodes ( ) ; } foreach ( $ shortcodes as $ key => $ shortcode ) { if ( isset ( $ shortcode [ 'menu' ] ) ) { $ this -> print_media_templates ( $ shortcode [ 'menu' ] ) ; } else { echo '<script type="text/html" id="tmpl-themify-shortcode-' . $ key . '">' ; if ( isset ( $ shortcode [ 'template' ] ) ) { echo $ shortcode [ 'template' ] ; } else { echo '[' . $ key ; if ( isset ( $ shortcode [ 'fields' ] ) ) { foreach ( $ shortcode [ 'fields' ] as $ field ) { if ( isset ( $ field [ 'ignore' ] ) ) { continue ; } else { echo '<# if ( data.' . $ field [ 'name' ] . ' ) { #> ' . $ field [ 'name' ] . '="{{data.' . $ field [ 'name' ] . '}}"<# } #>' ; } } } echo ']' ; if ( ! empty ( $ shortcode [ 'closing_tag' ] ) ) { echo isset ( $ shortcode [ 'wrap_with' ] ) ? $ shortcode [ 'wrap_with' ] : '{{{data.selectedContent}}}' ; echo '[/' . $ key . ']' ; } } echo '</script>' ; } } }
Print template files that will generate the shortcode code
 @since 2.7.6
Print template files that will generate the shortcode code @since 2 . 7 . 6
// generate the shortcode template based on parameters