display instructions if any

This commit is contained in:
Almira Krdzic
2018-12-03 16:02:53 +01:00
parent 8476529bb4
commit 103fc53c1d
2 changed files with 14 additions and 1 deletions

View File

@@ -82,4 +82,9 @@
width: 84px;
text-align: center;
padding-right: 10px;
}
.wiaas-delivery-process-step-instructions {
padding: 10px 50px;
border-bottom: 1px solid #eee;
}

View File

@@ -25,7 +25,15 @@ if ($is_current_step) {
</h3>
<?php
//Gravity_Flow_Entry_Detail::maybe_show_instructions(true, true, $step->get_form(), $form, $step->get_entry());
if ($step->instructionsEnable) {
$instructions = $step->instructionsValue;
$instructions = GFCommon::replace_variables( $instructions, $step->get_form(), $step->get_entry(), false, false, true );
$instructions = do_shortcode( $instructions );
echo '<div class="wiaas-delivery-process-step-instructions">' . $instructions . '</div>';
}
$action_form = GFAPI::get_form( $step->target_form_id );