Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
canvas-header-widget/config.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
20 lines (17 sloc)
617 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Content-Type: application/javascript'); | |
// Define mappings for topic and param2 | |
$topicValues = array( | |
'1install' => '1. Installing COmanage Using Docker Images', | |
'2people' => '2. Modeling People in COmanage', | |
// Add more mappings as needed for topic | |
); | |
$param2Values = array( | |
'someOtherValueToReplace' => 'newValueA', | |
'yetAnotherValueToReplace' => 'newValueB', | |
// Add more mappings as needed for param2 | |
); | |
// Convert PHP arrays to JavaScript objects | |
echo 'var topicConfig = ' . json_encode($topicValues) . ';'; | |
echo 'var param2Config = ' . json_encode($param2Values) . ';'; | |
?> |