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
public function onTabs($tabs) { // configures tabs | |
global $_LW; | |
if (@$_SESSION['livewhale']['manage']['grouptitle']!='Public'){ | |
$tabs['mytab']=array('MyTab','https://link-to-your-application.edu',0,0,0); // add tab | |
} | |
return $tabs; | |
} |
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 | |
$_LW->REGISTERED_APPS['custom_events']=array( | |
'title'=>'Custom Events', | |
'handlers'=>array('onOutput') | |
); | |
class LiveWhaleApplicationCustomEvents{ | |
public function onOutput($buffer){ |
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
<style type="text/css"> | |
/* Use the height attribute on the targetting class or id, | |
to determine where to shorten the content */ | |
.events_summary{height: 100px;} | |
</style> |
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
<script type="text/javascript" language="javascript"> | |
$(document).ready(function() { | |
//indicate the class or id to apply the dotdotdot function | |
$(".events_summary").dotdotdot({ | |
//configuration goes here | |
ellipsis: '... ', | |
wrap: 'word' | |
}); | |
}); | |
</script> |
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 | |
/* | |
This is a sample application designed to demonstrate how to add an additional custom field to a backend editor. | |
The example provided adds a "Dress Code" field to the existing event editor in LiveWhale. To add a custom field to the news editor, for example, follow the same example but change all references from events to news below. | |
*/ |
NewerOlder