Forum Replies Created
-
AuthorPosts
-
It’s a gravity forms short-code provided by gravitywiz. that shows the remaining number of entries available on a given form. In this example form 227.
[gravityforms action=”entries_left” id=”227″]
I’ve added the following to functions.php
add_filter(‘widget_text’, ‘do_shortcode’);
add_filter(‘the_excerpt’, ‘do_shortcode’);and I’ve added the snippet they gave me. Is there anything I can do to get this to work in the portfolio items excerpt?
/**
* Entries Left Shortcode
* http://gravitywiz.com/2012/09/19/shortcode-display-number-of-entries-left/
*/
add_filter(‘gform_shortcode_entries_left’, ‘gwiz_entries_left_shortcode’, 10, 2 );
function gwiz_entries_left_shortcode( $output, $atts ) {extract( shortcode_atts( array(
‘id’ => false,
‘format’ => false // should be ‘comma’, ‘decimal’
), $atts ) );if( ! $id )
return ”;$form = RGFormsModel::get_form_meta( $id );
if( ! rgar( $form, ‘limitEntries’ ) || ! rgar( $form, ‘limitEntriesCount’ ) )
return ”;$entry_count = RGFormsModel::get_lead_count( $form[‘id’], ”, null, null, null, null, ‘active’ );
$entries_left = rgar( $form, ‘limitEntriesCount’ ) – $entry_count;
$output = $entries_left;if( $format ) {
$format = $format == ‘decimal’ ? ‘.’ : ‘,’;
$output = number_format( $entries_left, 0, false, $format );
}return $entries_left > 0 ? $output : 0;
}January 4, 2018 at 8:18 am in reply to: Avia Layout Builder broken in new update – Please Help! Thanks. #893153Hey John,
Thanks for helping with this. I just checked the credentials again and they worked. theres an “are you human” math problem they always ask thats easy to miss…
Let me know if you have issues with it again.
Thanks John,
Chris
Thanks for the reply,
The problem is getting the video to “swap out” in the same player. I want to create kind of a “playlist” of different video that can be played “onclick”. Check out the sample below and let me know what you think. is it possible in enfold?
http://freshlifechurch.com/teachings/teaching_page.php?id=1747
another example
http://elevationchurch.org/sermons/greateranother example
http://freshlifechurch.com/teachings/teaching_page.php?id=1747Thanks
-
AuthorPosts