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
class getWebinars { | |
function get_featured_webinars(){ | |
// Ensure the global $post variable is in scope | |
global $post; | |
$featuredwebinars = tribe_get_events( | |
array( | |
'eventDisplay' => 'upcoming', | |
'posts_per_page' => 2, | |
'tax_query' => array( |
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
// change webinar permalinks from http://www.site.com/events/event-name | |
// to http://www.site.com/webinars/event-name | |
add_filter( 'post_type_link', 'change_webinar_links', 10, 2 ); | |
function change_webinar_links( $link, $post) { | |
if ( $post->post_type == 'tribe_events' && tribe_event_in_category('webinar') ) { | |
$link = trailingslashit( home_url('/webinars/' . $post->post_name ) ); | |
} | |
return $link; | |
} | |
// rewrite rule for webinars |
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
<script> | |
var PrefFieldsArray = ['Pref_ThoughtLeadership_HPInsight', 'Pref_Solutions_BusinessIntelligence', 'Pref_Solutions_CloudComputing', 'Pref_Solutions_Virtualization', 'Pref_Solutions_DataCenter', 'Pref_Solutions_ConvgdInfra', 'Pref_Solutions_UnifiedComms', 'Pref_Solutions_AppTransfrmtn', 'Pref_Solutions_EntPrintMoblty', 'Pref_Solutions_EntSecurity', | |
'Pref_Solutions_InfoMgmt', 'Pref_Solutions_Sustainblty', 'Pref_Solutions_GraphicArts', 'Pref_Solutions_Telecmmting', 'Pref_Solutions_WirelessLANNetwrkg', 'Pref_Solutions_SDN', 'Pref_Services_ITOutsourcing', 'Pref_Services_BusProcOutsrcing', 'Pref_Services_AppSvcs', 'Pref_Services_SpprtNewIT_FndtnCare', 'Pref_Services_SpprtNewIT_ProactvCare', | |
'Pref_Services_SpprtNewIT_DatactrCare', 'Pref_Services_ConsltSvcs_ConvgdInfra', 'Pref_Services_ConsltSvcs_Cloud', 'Pref_Services_ConsltSvcs_BigData', 'Pref_Services_ConsltSvcs_Mobility', 'Pref_Services_ConsltSvcs_Network', 'Pref_Services_ConsltSvcs_Storage', 'Pref_Services_ConsltSvcs_Server', 'Pref_Services_MngdPr |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<title>title</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="description" content="" /> | |
<meta name="keywords" content="" /> | |
</head> | |
<body> | |
<!-- start of container table --> |
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
$('.customCheckboxesRow').each(function(){ | |
var checkboxVal = ''; | |
var checkboxel = $(this).find('.checkbox'); | |
// checks if checkbox was selected, if so, adds rel attribute value of each checkbox to checkboxVal variable | |
checkboxel.each(function(){ | |
if ($(this).hasClass('checkActive')){ | |
var selectedRel = $(this).attr("rel"); | |
checkboxVal += selectedRel + ', '; | |
} | |
}); |
NewerOlder