This file contains hidden or 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
<widget type="blurbs"> | |
<arg id="type">...</arg> | |
<arg id="group">...</arg> | |
<arg id="format"><div class="lw_blurbs_title">{title}</div><div class="lw_blurbs_body">{body}</div></arg> | |
<arg id="class">tabbed</arg> | |
</widget> |
This file contains hidden or 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
<div class="youtube_widget"> | |
<widget type="feeds"> | |
<arg id="url">https://www.youtube.com/feeds/videos.xml?channel_id=UCouAv6HRsF5l6z-Opqy_Zgg</arg> | |
<arg id="format">{title}</arg> | |
<!-- You can set the max arg to whatever you want --> | |
<arg id="max">4</arg> | |
</widget> | |
</div> |
This file contains hidden or 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
// Your profile type editor should include custom fields similar to this | |
Monday Office Hours -> text (one line) | |
ID: profiles_4 | |
Tuesday Office Hours -> text (one line) | |
ID: profiles_5 | |
Wednesday Office Hours -> text (one line) | |
ID: profiles_6 |
This file contains hidden or 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
<!-- Example widget with class added to change tag selector to radio-button-behavior --> | |
<widget type="profiles"> | |
<arg id="type">Faculty and Staff</arg> | |
<arg id="show_tags">true</arg> | |
<arg id="class">radio-selector</arg> | |
</widget> | |
<!-- Example widget with class added to change the tag selector label to "Departments" --> | |
<widget type="profiles"> | |
<arg id="type">Faculty and Staff</arg> |
This file contains hidden or 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
$('.lw_related_url:contains("YouTube Video")').each(function(){ // Get any related content links that contain the text "YouTube Video" | |
var link = $(this).find('a').attr('href'); // Get the href of the YouTube Link | |
var ID = RegExp('[?&]v=([^&]*)').exec(link)[1]; // Use a regular expression to get the video ID from the 'v' parameter | |
var $iframe = $('<iframe width="700" height="394" src="https://www.youtube.com/embed/'+ID+'" frameborder="0" allowfullscreen></iframe>'); // construct an iframe using the video ID | |
$('.news_image').addClass('video').prepend($iframe).fitVids(); // Add a class of 'video' to the .news_image div, prepend the iframe, and run fitvids on it | |
if($('.lw_related_url').length == 1) { // if that was the only link in the related content section | |
$('.related_content').remove(); // remove the whole section | |
} else { |
This file contains hidden or 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['profile_templates']=array( | |
'title'=>'Profile Templates', | |
'handlers'=>array('onSaveSuccess', 'onAfterEdit', 'onOutput', 'onEditor') | |
); | |
class LiveWhaleApplicationProfileTemplates { // overrides backend interfaces | |
/* The onAfterEdit() handler allows you to load additional custom data from the database after the default editor data is loaded in. */ |