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
/** | |
* Timely Network Inc. | |
* Author: Lukas Pawlik | |
* | |
* Put below code into WordPress theme functions.php file. | |
* You can find this file in wp-content/themes/[your-theme-directory]/functions.php | |
* | |
*/ | |
add_filter( 'the_title', '_remove_microformats', PHP_INT_MAX ); | |
function _remove_microformats( $title ) { |
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
/* | |
Author: Lukas Pawlik <[email protected]> | |
Please put this code in your theme functions.php file. | |
*/ | |
add_filter( 'the_excerpt', '__ai1ec_vcomposer_fix', 0, 1); | |
function __ai1ec_vcomposer_fix( $content ) { | |
if ( ! empty( $content ) ) { | |
return $content; | |
} |
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
/* | |
Please paste it to your WordPress theme functions.php | |
DON'T FORGET TO SAVE PERMALINKS SETTINGS. | |
*/ | |
function __ai1ec_custom_slug_name( $translations, $text, $domain ) { | |
if ( | |
AI1EC_PLUGIN_NAME !== $domain || | |
'event' !== $text |
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
Below are properties available to obtain by $event->get() | |
'post' | |
'post_id' | |
'instance_id' | |
'timezone_name' | |
'start' | |
'end' | |
'start_truncated' | |
'end_truncated' |
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
function ai1ec2_display_events_func( $atts ) { | |
global $ai1ec_registry; | |
$content = '<div id="content2"><img src="/wp-content/themes/scio/images/events-header.png" alt="" />'; | |
$time = $ai1ec_registry->get( 'date.system' ); | |
// Get localized time | |
$timestamp = $time->current_time(); | |
// Set $limit to the specified categories/tags | |
$limit = array( | |
// | |
// this is demo data - please use your own filters |