function display_publish_engine() { echo "<p><b>" . PROPERTIES_LIBRARY_PUBLISH_ENGINE . "</b><br>"; echo PROPERTIES_LIBRARY_DEFAULT_ENGINE . "</p>"; if (get_default_engine($_POST['template_id']) == 'flash') { echo "<p><img id=\"html5\" src=\"website_code/images/TickBoxOff.gif\" onclick=\"javascript:publish_engine_toggle('html5', 'javascript', 'flash')\" /> " . PROPERTIES_LIBRARY_DEFAULT_HTML5 . "<br>"; echo "<img id=\"flash\" src=\"website_code/images/TickBoxOn.gif\" onclick=\"javascript:publish_engine_toggle('flash', 'flash', 'javascript')\"/> " . PROPERTIES_LIBRARY_DEFAULT_FLASH . "</p>"; } else { echo "<p><img id=\"html5\" src=\"website_code/images/TickBoxOn.gif\" onclick=\"javascript:publish_engine_toggle('html5', 'javascript', 'flash')\" /> " . PROPERTIES_LIBRARY_DEFAULT_HTML5 . "<br>"; echo "<img id=\"flash\" src=\"website_code/images/TickBoxOff.gif\" onclick=\"javascript:publish_engine_toggle('flash', 'flash', 'javascript')\" /> " . PROPERTIES_LIBRARY_DEFAULT_FLASH . "</p>"; } }
* additional information regarding copyright ownership. * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ _load_language_file("/modules/xerte/export_page.inc"); echo "<p>" . XERTE_EXPORT_DESCRIPTION . "</p>"; if (get_default_engine($_POST['template_id']) == 'javascript') { echo "<p><img id=\"html5\" src=\"website_code/images/TickBoxOn.gif\" onclick=\"javascript:export_engine_toggle('html5')\" /> " . XERTE_EXPORT_HTML5 . "</p>"; echo "<p><img id=\"flash\" src=\"website_code/images/TickBoxOff.gif\" onclick=\"javascript:export_engine_toggle('flash')\" /> " . XERTE_EXPORT_FLASH . "</p>"; } else { echo "<p><img id=\"html5\" src=\"website_code/images/TickBoxOff.gif\" onclick=\"javascript:export_engine_toggle('html5')\" /> " . XERTE_EXPORT_HTML5 . "</p>"; echo "<p><img id=\"flash\" src=\"website_code/images/TickBoxOn.gif\" onclick=\"javascript:export_engine_toggle('flash')\" /> " . XERTE_EXPORT_FLASH . "</p>"; } echo "<ol type='1'>"; echo "<li>" . XERTE_EXPORT_ZIP . "<ul><li><button type=\"button\" class=\"xerte_button\" onclick=\"property_tab_download('download_frame', 'html5', 'flash', '" . $xerte_toolkits_site->site_url . url_return("export", $_POST['template_id']) . "')\"><i class=\"fa fa-download\"></i> " . XERTE_EXPORT_ZIP_LINK . "</button></li></ul></li><br />"; echo "<li>" . XERTE_EXPORT_SCORM; echo "<ol type='a'>"; echo "<li><button type=\"button\" class=\"xerte_button\" onclick=\"property_tab_download('download_frame', 'html5', 'flash', '" . $xerte_toolkits_site->site_url . url_return("scorm_rich", $_POST['template_id']) . "')\"><i class=\"fa fa-download\"></i> " . XERTE_EXPORT_SCORM_12_LINK . "</button></li><br/>"; echo "<li><button type=\"button\" class=\"xerte_button\" onclick=\"property_tab_download('download_frame', 'html5', 'flash', '" . $xerte_toolkits_site->site_url . url_return("scorm2004", $_POST['template_id']) . "')\"><i class=\"fa fa-download\"></i> " . XERTE_EXPORT_SCORM_2004_LINK . "</button></li><br /></ol></li>"; echo "<li>" . XERTE_EXPORT_ZIP_ARCHIVE . "<ul><li><button type=\"button\" class=\"xerte_button\" onclick=\"property_tab_download('download_frame', 'html5', 'flash', '" . $xerte_toolkits_site->site_url . url_return("export_full", $_POST['template_id']) . "')\"><i class=\"fa fa-download\"></i> " . XERTE_EXPORT_ZIP_ARCHIVE_LINK . "</button></li></ul><br /></li>"; echo "<li>" . XERTE_EXPORT_ZIP_OFFLINE . "<ul><li><button type=\"button\" class=\"xerte_button\" onclick=\"property_tab_download('download_frame', 'html5', 'flash', '" . $xerte_toolkits_site->site_url . url_return("export_offline", $_POST['template_id']) . "')\"><i class=\"fa fa-download\"></i> " . XERTE_EXPORT_ZIP_OFFLINE_LINK . "</button></li></ul><br /></li>"; echo "</ol>";
function project_info($template_id) { global $xerte_toolkits_site; $prefix = $xerte_toolkits_site->database_table_prefix; $query_for_names = "select {$prefix}templatedetails.template_name, template_framework, date_created, date_modified, extra_flags from " . "{$prefix}templatedetails, {$prefix}originaltemplatesdetails where template_id= ? and {$prefix}originaltemplatesdetails.template_type_id = {$prefix}templatedetails.template_type_id "; $params = array($template_id); $row = db_query_one($query_for_names, $params); $query_for_template_name = "select template_name from {$prefix}templatedetails where template_id= ?"; $params = array($template_id); $row_template_name = db_query_one($query_for_template_name, $params); $info = PROJECT_INFO_NAME . ": " . str_replace('_', ' ', $row_template_name['template_name']) . "<br/>"; $info .= PROJECT_INFO_CREATED . ": " . $row['date_created'] . "<br/>"; $info .= PROJECT_INFO_MODIFIED . ": " . $row['date_modified'] . "<br/>"; include "../../../modules/" . $row['template_framework'] . "/module_functions.php"; $info .= PROJECT_INFO_RUNTIME . ": "; if (get_default_engine($template_id) == 'flash') { $info .= PROPERTIES_LIBRARY_DEFAULT_FLASH . "<br/"; } else { $info .= PROPERTIES_LIBRARY_DEFAULT_HTML5 . "<br/>"; } if (template_access_settings($template_id) != 'Private') { $info .= '<br/>' . PROJECT_INFO_URL . ": "; $info .= "<a target=\"new\" href='" . $xerte_toolkits_site->site_url . url_return("play", $_POST['template_id']) . "'>" . $xerte_toolkits_site->site_url . url_return("play", $_POST['template_id']) . "</a><br/>"; $template = explode("_", get_template_type($_POST['template_id'])); if (file_exists($xerte_toolkits_site->root_file_path . "/modules/" . $template[0] . "/play_links.php")) { require_once $xerte_toolkits_site->root_file_path . "/modules/" . $template[0] . "/play_links.php"; //show_play_links($template[1]); } // Get the template screen size $query_for_template_name = "select {$prefix}originaltemplatesdetails.template_name, " . "{$prefix}originaltemplatesdetails.template_framework from " . "{$prefix}originaltemplatesdetails, {$prefix}templatedetails where" . " {$prefix}templatedetails.template_type_id = {$prefix}originaltemplatesdetails.template_type_id AND template_id = ?"; $params = array($template_id); $row_name = db_query_one($query_for_template_name, $params); if (isset($xerte_toolkits_site->learning_objects->{$row_name['template_framework'] . "_" . $row_name['template_name']}->preview_size)) { if ($xerte_toolkits_site->learning_objects->{$row_name['template_framework'] . "_" . $row_name['template_name']}->preview_size != "*") { $temp_string = $xerte_toolkits_site->learning_objects->{$row_name['template_framework'] . "_" . $row_name['template_name']}->preview_size; } else { $temp_string = "100%,100%"; } } else { $temp_string = "100%,100%"; } $temp_array = explode(",", $temp_string); $info .= '<br/>' . PROJECT_INFO_EMBEDCODE . "<br/><form><textarea rows='3' cols='30' onfocus='this.select()'><iframe src=\"" . $xerte_toolkits_site->site_url . url_return("play", $_POST['template_id']) . "\" width=\"" . $temp_array[0] . "\" height=\"" . $temp_array[1] . "\" frameborder=\"0\" style=\"float:left; position:relative; top:0px; left:0px; z-index:0;\"></iframe></textarea></form><br/>"; } return $info; }