diff --git a/modules/staticModule.php b/modules/staticModule.php index 7861946e8edfc4bbcdad5e98d165d529c2e89b26..3d7b05341dec1b5559a4e4a0261ac958e6362fa5 100644 --- a/modules/staticModule.php +++ b/modules/staticModule.php @@ -24,6 +24,7 @@ class StaticModule extends abstractModule{ global $acceptContentType; global $endpoints; global $base; + header("Content-type: "); echo file_get_contents($conf['static']['directory'].$file); } diff --git a/css/basic.css b/static/css/basic.css similarity index 100% rename from css/basic.css rename to static/css/basic.css diff --git a/css/person.css b/static/css/person.css similarity index 100% rename from css/person.css rename to static/css/person.css diff --git a/static/index.html b/static/index.html index 6a3920ee269d09f04adf97cc9ffbaabebf5b00ab..83751e8b401333baf5365a2c6a9a205d9ad1eaa0 100644 --- a/static/index.html +++ b/static/index.html @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml" xmlns:local="http://localhost/lodspeakr/" + <html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.0" xml:lang="en"> <head> <title>Main</title> - <link href="http://localhost/lodspeakr//lodspeakr/css/basic.css" rel="stylesheet" type="text/css" media="screen" /> + <link href="css/basic.css" rel="stylesheet" type="text/css" media="screen" /> </head> <body> <h1>Services available</h1> diff --git a/views/class.rdfs:Resource/html.template b/views/class.rdfs:Resource/html.template index 8567fdd6b371584da901614261bc6c6891a01c13..1bff5b2966b0574cc549945c8487ea9c297ba819 100644 --- a/views/class.rdfs:Resource/html.template +++ b/views/class.rdfs:Resource/html.template @@ -5,7 +5,7 @@ {%endfor%}version="XHTML+RDFa 1.0" xml:lang="en"> <head> <title>Page about {{base.this.value}}</title> - <link href="{{base.baseUrl}}/lodspeakr/css/basic.css" rel="stylesheet" type="text/css" media="screen" /> + <link href="{{base.baseUrl}}css/basic.css" rel="stylesheet" type="text/css" media="screen" /> <link rel="alternate" type="application/rdf+xml" title="RDF/XML Version" href="{{base.this.value}}.rdf" /> <link rel="alternate" type="text/turtle" title="Turtle Version" href="{{base.this.value}}.ttl" /> <link rel="alternate" type="text/plain" title="N-Triples Version" href="{{base.this.value}}.nt" /> diff --git a/views/service.classes/html.template b/views/service.classes/html.template index 779c41b69c0d9f5ae394f5f874d1899a3e4d7d4d..e65319da7e4915e3e7e10febb30bc5a72b39de28 100644 --- a/views/service.classes/html.template +++ b/views/service.classes/html.template @@ -5,7 +5,7 @@ {%endfor%}version="XHTML+RDFa 1.0" xml:lang="en"> <head> <title>My new Service</title> - <link href="{{base.baseUrl}}/lodspeakr/css/basic.css" rel="stylesheet" type="text/css" media="screen" /> + <link href="css/basic.css" rel="stylesheet" type="text/css" media="screen" /> </head> <body> <h1>Classes available</h1> diff --git a/views/service.instances/html.template b/views/service.instances/html.template index 74bebad2fd73d190069a0f54602f1694e09d46b3..b1345c9eb4514b5c4c61c033d3e717b346c9c303 100644 --- a/views/service.instances/html.template +++ b/views/service.instances/html.template @@ -5,7 +5,7 @@ {%endfor%}version="XHTML+RDFa 1.0" xml:lang="en"> <head> <title>Instances of {{base.args.arg0}}</title> - <link href="{{base.baseUrl}}/lodspeakr/css/basic.css" rel="stylesheet" type="text/css" media="screen" /> + <link href="css/basic.css" rel="stylesheet" type="text/css" media="screen" /> </head> <body> <h1>Instances of class {{base.args.arg0}}</h1> diff --git a/views/service.namedGraphs/html.template b/views/service.namedGraphs/html.template index ee2c29999c5d9a94305db2a44597fc2513df1542..1df5c5d4124b3a8a4fb86774acf38a31e52755d7 100644 --- a/views/service.namedGraphs/html.template +++ b/views/service.namedGraphs/html.template @@ -5,7 +5,7 @@ {%endfor%}version="XHTML+RDFa 1.0" xml:lang="en"> <head> <title>Named Graphs</title> - <link href="{{base.baseUrl}}/lodspeakr/css/basic.css" rel="stylesheet" type="text/css" media="screen" /> + <link href="css/basic.css" rel="stylesheet" type="text/css" media="screen" /> </head> <body> <h1>Named graphs available</h1>