code: function(type) {
  		if(type !== _currPopupType || !mfp.currTemplate.closeBtn) {
  			mfp.currTemplate.closeBtn = $( mfp.st.closeMarkup.replace('%title%', mfp.st.tClose ) );
  			_currPopupType = type;
  		}
  		return mfp.currTemplate.closeBtn;
  	}
docs: Private functions