Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
756bc76
commit 45aa955
Showing
6 changed files
with
127 additions
and
3 deletions.
There are no files selected for viewing
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
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
Submodule Thesisannouncements
added at
68a75b
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?php | ||
/** | ||
* This file is part of the {@link http://ontowiki.net OntoWiki} project. | ||
* | ||
* @copyright Copyright (c) 2015, {@link http://aksw.org AKSW} | ||
* @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) | ||
*/ | ||
|
||
/** | ||
* aksw.org supervison template | ||
* | ||
* this template renders a resources thesis supervisons | ||
*/ | ||
|
||
$baseUrl = 'http://aksw.org/Thesisannouncements'; | ||
|
||
$supervisorTag = $this->literal(array( | ||
'property' => 'aksw:supervisorTag', | ||
'plain' => true | ||
)); | ||
$templateOptions = $this->literal(array( | ||
'property' => 'site:templateOption', | ||
'array' => 'true' | ||
)); | ||
if ( | ||
(isset($supervisorTag) && !empty($supervisorTag)) || | ||
(isset($this->options['enabled']) && $this->options['enabled']) | ||
) : | ||
?> | ||
|
||
<?php if (in_array('noheading', $templateOptions) === false) : ?> | ||
<h1>Thesis and Essay Proposals</h1> | ||
<?php endif; ?> | ||
|
||
<div id="thesisproposal_filter"></div> | ||
|
||
<div id="thesisproposal_reply"></div> | ||
|
||
<script src="<?= $baseUrl ?>/formhandler.js"></script> | ||
<script type="text/javascript"> | ||
|
||
var endpoint = '<?= $baseUrl ?>/requestHandler.php'; | ||
var id = 'thesisproposal_filter'; | ||
var replyId = 'thesisproposal_reply'; | ||
|
||
var labels = { | ||
"Sorry, no topic matched your criteria." : "Sorry, no topic matched your criteria.", | ||
"status":"Status", | ||
"type": "Type", | ||
"bachelorThesis": "Bachelor Thesis", | ||
"masterThesis": "Master Thesis", | ||
"project": "Project", | ||
"dissertation": "Dissertation" | ||
}; | ||
|
||
var selector; | ||
<?php if (isset($supervisorTag) && !empty($supervisorTag)): ?> | ||
//if ($this->property("rdf:type") == "foaf:Person") | ||
selector = {"supervisor" :"<?= $supervisorTag ?>"}; | ||
<?php endif; ?> | ||
|
||
$(document).ready(function(){ | ||
showform(endpoint,id,replyId,labels,selector); | ||
}); | ||
</script> | ||
<?php endif; ?> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
/** | ||
* This file is part of the {@link http://ontowiki.net OntoWiki} project. | ||
* | ||
* @copyright Copyright (c) 2011, {@link http://aksw.org AKSW} | ||
* @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) | ||
*/ | ||
|
||
/** | ||
* aksw.org project template | ||
* | ||
* arranges the content for the project class | ||
*/ | ||
|
||
// prepare hookline and abstract (both optional) | ||
// yes, hookline also for documents please :-) | ||
$hookline = $this->literal(array( | ||
'property' => 'aksw:hookline', | ||
'class' => 'hookline', | ||
'prefix' => '<span class="hideme">:</span> ' | ||
)); | ||
$abstract = $this->literal(array( | ||
'property' => 'dcterms:abstract', | ||
'tag' => 'p', | ||
'class' => 'abstract' | ||
)); | ||
|
||
// create optional side navigation | ||
$sideNavigation = $this->navigationList( | ||
array( | ||
'navProperty' => 'http://aksw.org/schema/sideNavigation', | ||
'navClass' => 'nav-sidelinks', | ||
'suffix' => '<!-- /#nav-sidelinks -->', | ||
'activeUrl' => $this->resourceUri | ||
) | ||
); | ||
echo $sideNavigation; | ||
?> | ||
<header class="intro"> | ||
<h1><?php echo $this->title . $hookline ?></h1> | ||
<?php echo $abstract ?> | ||
</header> <!-- /.intro --> | ||
<?php | ||
echo $this->literal(array('tag' => 'div', 'class' => 'content')); // uses default content properties | ||
echo $this->renderx(array( | ||
'template' => 'local/items/thesisannouncements.phtml', | ||
'enabled' => true | ||
)); | ||
echo $this->renderx(array( | ||
'template' => 'local/items/publications.phtml' | ||
)); |