Created
January 12, 2018 02:09
-
-
Save Idealien/51526f7f0d3de1646616fdb432e6672a to your computer and use it in GitHub Desktop.
Gravity Flow Timeline Manipulation
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 | |
$API = new Gravity_Flow_API( '1' ); | |
$form = GFAPI::get_form( '1' ); | |
require_once( gravity_flow()->get_base_path() . '/includes/pages/class-entry-detail.php' ); | |
$notes = Gravity_Flow_Entry_Detail::get_timeline_notes( $entry ); | |
$output = "<H3>Timeline</h3><ul>"; | |
foreach( $notes as $note): | |
if( $note->user_name !== 'notification' && $note->value !== 'Step expired' ): | |
$output .= "<li><strong>" . $note->date_created . ":" . $note->user_name . "</strong><br/>" . $note->value . "<br/><br/></li>"; | |
endif; | |
endforeach; | |
$output .= <ul>"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment