Skip to content

Commit 0903b6f

Browse files
committed
merge with master
2 parents 3f2f715 + 9498e46 commit 0903b6f

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

plugins/cc-global-network/includes/gravityforms-interaction.php

+16-2
Original file line numberDiff line numberDiff line change
@@ -2190,8 +2190,12 @@ function set_field_limits($field_limits)
21902190
'max' => 3
21912191
)
21922192
));
2193-
2194-
2193+
new GFLimitCheckboxes(53, array(
2194+
1 => array(
2195+
'min' => 3,
2196+
'max' => 3
2197+
)
2198+
));
21952199
add_filter('gform_entries_field_value', 'ccgn_gf_display_name_instead_login', 10, 4);
21962200
function ccgn_gf_display_name_instead_login($value, $form_id, $field_id, $entry)
21972201
{
@@ -2200,5 +2204,15 @@ function ccgn_gf_display_name_instead_login($value, $form_id, $field_id, $entry)
22002204
$user = get_user_by('email', $email);
22012205
$value = $user->display_name;
22022206
}
2207+
return $value;
2208+
}
2209+
add_filter( 'gform_export_field_value', 'export_user_display_name', 10, 4 );
2210+
function export_user_display_name( $value, $form_id, $field_id, $entry ) {
2211+
if ( $field_id == 'created_by' ) {
2212+
$user = get_user_by( 'id', $value );
2213+
2214+
return is_object( $user ) ? $user->display_name : $value;
2215+
}
2216+
22032217
return $value;
22042218
}

themes/cc-commoners/hub-page.php

+8-6
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,22 @@
55
get_header(); ?>
66

77

8-
<?php
9-
//while ( have_posts() ) : the_post();
8+
<?php
9+
//while ( have_posts() ) : the_post();
1010

11-
//get_template_part( 'template-parts/loop/frontpage-loop' );
11+
//get_template_part( 'template-parts/loop/frontpage-loop' );
1212

13-
/*
13+
/*
1414
if ( comments_open() || get_comments_number() ) :
1515
//comments_template();
1616
endif;
1717
*/
1818

19-
//endwhile; // End of the loop.
20-
?>
19+
//endwhile; // End of the loop.
20+
?>
2121

2222

23+
<<<<<<< HEAD
2324
<div class="grid-container space-top">
2425
<div class="grid-x">
2526
<div class="cell large-12">
@@ -97,4 +98,5 @@
9798
</div>
9899
</div>
99100
</div>
101+
100102
<?php get_footer();

0 commit comments

Comments
 (0)