Copyright (C) 2010 - 2020 All Rights Reserved. Contributor(s): Mark J Crane */ class modal { /** * Creates a modal window. * * @param array $array Array containing the modal's properties. * The following keys are supported: * - id: ID of the modal (optional). * - type: Type of the modal (optional, one of 'copy', 'toggle', * 'delete' or 'unassign'). If not specified, a general * modal will be created. Defaults to 'general'. * - title: Title of the modal (optional). If not specified, * a default title will be used based on the type. * - message: Message of the modal (optional). * - actions: Actions of the modal (optional). * - onclose: Function to call when the modal is closed * (optional). * * @return string HTML string representing the modal window. */ static function create($array) { //define as global global $settings; //add multi-lingual support $language = new text; $text = $language->get(); $modal = ""; return $modal; } }