src/js/core.js
function(newContent, type) {
		mfp.content = newContent;

		if(newContent) {
			if(mfp.st.showCloseBtn && mfp.st.closeBtnInside &&
				mfp.currTemplate[type] === true) {
				// if there is no markup, we just append close button element inside
				if(!mfp.content.find('.mfp-close').length) {
					mfp.content.append(_getCloseBtn());
				}
			} else {
				mfp.content = newContent;
			}
		} else {
			mfp.content = '';
		}

		_mfpTrigger(BEFORE_APPEND_EVENT);
		mfp.container.addClass('mfp-'+type+'-holder');

		mfp.contentContainer.append(mfp.content);
	}
function(newContent, type) {
		mfp.content = newContent;

		if(newContent) {
			if(mfp.st.showCloseBtn && mfp.st.closeBtnInside &&
				mfp.currTemplate[type] === true) {
				// if there is no markup, we just append close button element inside
				if(!mfp.content.find('.mfp-close').length) {
					mfp.content.append(_getCloseBtn());
				}
			} else {
				mfp.content = newContent;
			}
		} else {
			mfp.content = '';
		}

		_mfpTrigger(BEFORE_APPEND_EVENT);
		mfp.container.addClass('mfp-'+type+'-holder');

		mfp.contentContainer.append(mfp.content);
	}
function ( newContent , type ) { mfp . content = newContent ; if ( newContent ) { if ( mfp . st . showCloseBtn && mfp . st . closeBtnInside && mfp . currTemplate [ type ] === true ) { // if there is no markup, we just append close button element inside if ( ! mfp . content . find ( '.mfp-close' ) . length ) { mfp . content . append ( _getCloseBtn ( ) ) ; } } else { mfp . content = newContent ; } } else { mfp . content = '' ; } _mfpTrigger ( BEFORE_APPEND_EVENT ) ; mfp . container . addClass ( 'mfp-' + type + '-holder' ) ; mfp . contentContainer . append ( mfp . content ) ; }
Set HTML content of popup
Set HTML content of popup