Back to PhocaDownloadRenderFront class

Method bootstrapModalHtml

public static
bootstrapModalHtml
(mixed $item = 'phModal', mixed $title = '')

Method bootstrapModalHtml - Source code

/* Launch
	<a type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#phModalDetail" data-href="..." data-height="500px">..</a>
	*/
public static function bootstrapModalHtml($item = 'phModal', $title = '')
{
    $close = Text::_('COM_PHOCADOWNLAD_CLOSE');
    $o = '<div id="' . $item . '" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="' . $item . 'Label">
		  <div class="modal-dialog" role="document" id="' . $item . 'Dialog">
			<div class="modal-content">
			  <div class="modal-header">
				<h3 class="modal-title" id="' . $item . 'Label">' . $title . '</h3>
				<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="' . $close . '"></button>
			  </div>
			  <div class="modal-body" id="' . $item . 'Body" ></div>
			  <div class="modal-footer"></div>
			</div>
		  </div>
		</div>';
    return $o;
}