当前位置: 首页>>代码示例>>PHP>>正文


PHP gravity_form函数代码示例

本文整理汇总了PHP中gravity_form函数的典型用法代码示例。如果您正苦于以下问题:PHP gravity_form函数的具体用法?PHP gravity_form怎么用?PHP gravity_form使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了gravity_form函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ecs_newpatient_module_content_filter

    function ecs_newpatient_module_content_filter($content)
    {
        $page = get_field('option_newpatient_page', 'option');
        if (is_page($page->ID)) {
            ob_start();
            if (get_field('option_vacation_notice', 'option')) {
                ?>
					
				<div class="info">
					
					<?php 
                the_field('option_vacation_notice_text', 'option');
                ?>

				</div>

				<?php 
            }
            gravity_form_enqueue_scripts(3, true);
            gravity_form(3, false, false, false, '', true, 1);
            return ob_get_clean();
        } else {
            return $content;
        }
    }
开发者ID:Johnystardust,项目名称:ecs-247-bereikbaar,代码行数:25,代码来源:newpatient.php

示例2: widget

    function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('widget_title', $instance['title']);
        $formid = $instance['formid'];
        echo $before_widget;
        if (!$title) {
            $title = __("Is something wrong with this page?", 'govintranet');
        }
        ?>

		<div id="accordion">
		      <h3>
		        <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
					<?php 
        echo $title;
        ?>
		        </a>
		      </h3>
		    </div>
		    <div id="collapseOne" class="xpanel-collapse collapse out">
		      <div class="xpanel-body">
				<?php 
        gravity_form($formid, false, true, false, '', true);
        ?>
			</div>
		</div>
		
		<?php 
        echo $after_widget;
    }
开发者ID:meowrika,项目名称:govintranet,代码行数:31,代码来源:ht_feedback.php

示例3: gravityforms_admin_page

function gravityforms_admin_page()
{
    echo "<div style='width: 60%'>";
    echo "<h2><span style='font-size: 20px;' class='dashicons dashicons-info'></span> How can we Assist you?</h2>";
    gravity_form_enqueue_scripts(1, true);
    //Enqueue form scripts (only for form with ID of 1)
    gravity_form(1, false, true, false, null, false);
    //Output a form with an ID of 1
    echo "</div>";
}
开发者ID:NikV,项目名称:gravity-forms-in-admin-pages,代码行数:10,代码来源:gforms-in-admin-forms.php

示例4: acfmod_modules_gravity_form

function acfmod_modules_gravity_form()
{
    $output = '';
    if (!function_exists('gravity_form')) {
        return $output;
    }
    $form = get_sub_field('form');
    $title = get_sub_field('title');
    $description = get_sub_field('description');
    $ajax = get_sub_field('ajax');
    $tabindex = get_sub_field('tabindex');
    if (!$tabindex) {
        $tabindex = 20;
    }
    if ($form) {
        $output = gravity_form($form->id, $title, $description, false, array(), $ajax, $tabindex, false);
    }
    return $output;
}
开发者ID:mmjaeger,项目名称:acf-modules,代码行数:19,代码来源:gravity-form.php

示例5: get_field

$eventImage = get_field('event_image');
?>
                        <img src="<?php 
echo $eventImage['sizes']['sidebar-image'];
?>
" alt="<?php 
echo $eventImage['alt'];
?>
" />
                    </div>

                    <?php 
get_sidebar('modules');
?>
                </aside>

            </div>
            <section id="vip-registration" class="clearfix">
                <div class="container-inner clearfix">
                    <?php 
gravity_form(2, true, false, false, '', false);
?>
                </div>
            </section>
        </div>
    </div><!--main-content-->

    
<?php 
get_sidebar('full-modules');
get_footer();
开发者ID:jackrabbit-design,项目名称:jrd-southport,代码行数:31,代码来源:single-event.php

示例6: get_the_title

}
?>
				<br>
				<div class="loc_form">
					<?php 
$title = get_the_title();
if ($title != '') {
    echo "<h2>Join " . $title . "'s Email List!</h2>";
} else {
    echo "<h2>Join Gino's Email List!</h2>";
}
?>

					<?php 
$g_id = get_field('gravity_id');
gravity_form($g_id, false);
?>
				</div>
				<br>
				<!-- Twitter -->
				<div class="minitweets">
					<?php 
$t_id = get_field('widget_id');
$t_name = get_field('username');
echo do_shortcode("[minitwitter id='" . $t_id . "' username='" . $t_name . "' width='290' limit='3']");
?>
				</div>
			</div>  
		</div>

	</div>
开发者ID:arieldiamond,项目名称:bravo_locations_page,代码行数:31,代码来源:locations_sidebar.php

示例7: edit_post_link

				  var js, fjs = d.getElementsByTagName(s)[0];
				  if (d.getElementById(id)) return;
				  js = d.createElement(s); js.id = id;
				  js.src = "//connect.facebook.net/nl_NL/sdk.js#xfbml=1&appId=631131386918182&version=v2.0";
				  fjs.parentNode.insertBefore(js, fjs);
				}(document, 'script', 'facebook-jssdk'));</script>
				<div class="fb-like" data-href="https://www.facebook.com/pages/Puur-mooi/110537122402885" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>
				<?php 
edit_post_link('Edit this entry', '<div class="post-edit">', '</div>');
?>
			</div>
			<div class="col2">
				<div class="col2-b1">
					<h3>Nieuwsbrief</h3>
					<?php 
gravity_form(7, $display_title = false, $display_description = true, $display_inactive = false, $field_values = null, $ajax = true, $tabindex = 99);
?>
				</div>
				<?php 
get_template_part('templates-parts/part-1', '');
?>
				<!-- Start - Maak een afspraak -->
				<?php 
get_template_part('templates-parts/part-2', '');
?>
			</div>
		</div>
	</div>
</div>
<?php 
get_footer();
开发者ID:WebBirdWebIntegrators,项目名称:puur-mooi-wp-theme,代码行数:31,代码来源:page-price-list.php

示例8: setesm_postdisplaywpl


//.........这里部分代码省略.........
                    $sfuid = $esmpassvals[1];
                } else {
                    $useshortform = 0;
                }
                if ($useshortform == 1 && isset($esmpassvals[2]) && strlen($esmpassvals[2]) == 15 || $pscheck == 1 && isset($esmpassvals[2]) && strlen($esmpassvals[2]) == 18) {
                    $PersonContactId = $esmpassvals[2];
                } else {
                    $useshortform = 0;
                }
                if ($useshortform == 1) {
                    $user_info = get_userdata($wpuid);
                    $lenautofill['sfuid'] = get_user_meta($wpuid, 'sfid', true);
                    $lenautofill['PersonContactId'] = get_user_meta($wpuid, 'PersonContactId', true);
                    $lenautofill['publisher'] = "eSchool Media";
                    $lenautofill['asset'] = $post->ID;
                    $lenautofill['fname'] = get_user_meta($wpuid, 'first_name', true);
                    $lenautofill['lname'] = get_user_meta($wpuid, 'last_name', true);
                    $lenautofill['email'] = get_user_meta($wpuid, 'email', true);
                    $lenautofill['wplogin'] = $user_info->user_login;
                }
            }
        }
        // end login check
        // Theme innerpage slider
        if (get_option('of_an_inslider') == 'Site Wide') {
            require_once GABFIRE_INC_PATH . '/theme-gallery.php';
        } elseif (get_option('of_an_inslider') == 'Tag-based' && has_tag(get_option('of_an_inslider_tag')) or term_exists(get_option('of_an_inslider_tag', 'gallery-tag', ''))) {
            require_once GABFIRE_INC_PATH . '/theme-gallery.php';
        } elseif (get_option('of_an_inslider') == 'Disable') {
            // do nothing
        }
        // If there is a video, display it
        gab_media(array('name' => 'gab-fea', 'enable_video' => 'true', 'video_id' => 'archive', 'catch_image' => 'false', 'enable_thumb' => 'false', 'media_width' => '483', 'media_height' => '300', 'thumb_align' => 'aligncenter', 'enable_default' => 'false'));
        // Display content
        the_content();
        gravity_form($gfform, false, false, false, $lenautofill);
        // make sure any advanceded content gets cleared
        echo '<div class="clear"></div>';
        // Post Widget
        gab_dynamic_sidebar('PostWidget');
        ?>

						<?php 
    } else {
        ?>
						
<p><?php 
        print string_limit_words(get_the_excerpt(), 35);
        ?>
...</p>

<div style="border:#CCCCCC solid 1px; padding:10px;">
<form action="<?php 
        echo get_option('home');
        ?>
/wp-login.php" method="post">
<table style="width:100%;">
<tr><td colspan="2"><p><strong>Free registration required to continue reading this article.</strong></p></td></tr>
<tr><td style="width:45%; padding-right:10px; border-right:1px solid #666">

Register today and receive free access to all our news and resources and the ability to customize your news by topic with My eSchool News.<br /><br />
<a href="<?php 
        echo get_option('home');
        ?>
/wp-login.php?action=register&redirect_to=?redirect_to=<?php 
        echo urlencode(get_permalink());
        ?>
" style="text-decoration:underline;"><strong>Register now.</strong></a>
</td>
<td style="width:55%; padding-left:10px">
Already a member? Log in 

<div>Username: <input type="text" name="log" id="log" value="" /></div>
<div>Password:&nbsp <input name="pwd" id="pwd" type="password" value="" /></div>
<input type="submit" name="submit" value="Login" class="button">
<input name="rememberme" id="rememberme" type="hidden" checked="checked" value="forever">
<input type="hidden" name="redirect_to" value="<?php 
        echo $_SERVER['REQUEST_URI'];
        ?>
">
<br />
<a href="<?php 
        echo get_option('home');
        ?>
/wp-login.php?action=lostpassword" target="_blank">Lost Password?</a>
	

</td></tr></table>
</form>	
</div>		
<?php 
    }
    //end showpagecontent check
    ?>
</div><!-- .entry -->

				

<?php 
}
开发者ID:esm-erika,项目名称:eschoolnews,代码行数:101,代码来源:esm-function.php

示例9: displayGravityForm

function displayGravityForm($form_object)
{
    //displays the form selected in Page and created in Forms
    gravity_form_enqueue_scripts($form_object['id'], true);
    gravity_form($form_object['id'], true, true, false, '', true, 1);
}
开发者ID:BisongT,项目名称:Myevent_website,代码行数:6,代码来源:function-display-gravity-form.php

示例10: gravity_form

			</div><!-- mobile_models7_wrapper -->
		
		</div><!-- large_monitor_images_inner -->
		
	</div><!-- large_monitor_wrap -->
	
	<div class="large_monitor_wrap">
		
		<div class="large_monitor_content_inner right">
		
		
			<div id="get_started" class="white_content_box page_three_box_two">
		
				<h1>Let’s Get&nbsp;Started</h1>
				<p><?php 
gravity_form(1, false, false, false, '', true, 12);
?>
</p>		 
			
			</div><!-- white_content_box -->
		
		</div><!-- large_monitor_content_inner -->
		
		<div class="large_monitor_images_inner left wow fadeIn">
	
	
			<div class="mobile_models8_wrapper image_fadein">
				<img class="mobile_models8" src="<?php 
bloginfo('template_directory');
?>
/images/mobile-model8.jpg"/>
开发者ID:Garth619,项目名称:Femi9,代码行数:31,代码来源:page-nextsteps.php

示例11: the_content

    				<?php 
    if ("" != $post->post_content) {
        ?>
    					<?php 
        the_content();
        ?>
    				<?php 
    }
    ?>
                </div>
                <iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d9713.951573407414!2d-2.145787!3d52.506509!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xe7a15cf6e84c2c8d!2sArmorduct+Systems+Ltd!5e0!3m2!1sen!2sin!4v1457686639658" width="95%" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>
            </div>
            <div class="form-wrapper columns medium-6">
                <div class="form__inner">
                    <?php 
    gravity_form('Contact', false, false, false, null, false);
    ?>
                </div>
            </div>
		</div>
    </article>
<?php 
}
?>

<?php 
do_action('foundationpress_after_content');
?>

</div>
开发者ID:nickwoodland,项目名称:armorduct,代码行数:30,代码来源:page-contact.php

示例12: the_sub_field

			  <div class="container">
			    <div class="row no-gutter">
			    	<div class="col-md-12">
			    		<div class="row">
					      <div class="col-md-7">
					    	<div class="content">
						        <h2 class="h1"><?php 
            the_sub_field('signup_title');
            ?>
</h2>
						        <p class="lead smMargin" font-weight: bold;><?php 
            the_sub_field('signup_description');
            ?>
</p>
						        <?php 
            gravity_form($formid, false, false, false, '', true, 12);
            ?>
							</div>
					      </div>
					      <div class="col-md-5">
					      	<div class="content">
					        	<?php 
            the_sub_field('signup-content');
            ?>
					          </div>
					      </div>
					  </div>
				    </div>      
			    </div>
			  </div>        
			</section>
开发者ID:mikkeltschentscher,项目名称:bigum.co,代码行数:31,代码来源:template-course-single-long.php

示例13: gravity_form

				<div id="sidebar-project" class="sidebar col-lg-2 clearfix" role="complementary">
					<div class="project-contact">
						<h2 class="fancy-header red">דברו איתנו על הפרוייקט
								<span><i class="fa fa-angle-down"></i></span>
							</h2>
							<?php 
gravity_form(2, false, false, false, '', true);
?>
					</div>
					<?php 
if (is_active_sidebar('sidebar_project')) {
    ?>

						<?php 
    dynamic_sidebar('sidebar_project');
    ?>

					<?php 
}
?>

				</div>
开发者ID:ronenrer,项目名称:horowitz,代码行数:22,代码来源:sidebar-project.php

示例14: the_field

              <div class="fs-cell fs-lg-5 fs-lg-push-1 fs-md-full fs-sm-3">
                <h4 class="section-title"><span>Open Positions</span></h4>
                <?php 
the_field('open_positions');
?>
              </div>
            </div>
          </div>

          <div class="fs-cell fs-lg-10 fs-md-6 fs-sm-3 fs-centered">
            <div class="fs-row">
              <div class="fs-cell fs-lg-half fs-md-full fs-sm-3">
                <?php 
$form_object = get_field('contact_form');
gravity_form_enqueue_scripts($form_object['id'], true);
gravity_form($form_object['id'], false, false, false, '', true, 1);
?>
              </div>
              <div class="fs-cell fs-lg-5 fs-lg-push-1 fs-md-full fs-sm-3">
                <div class="fs-row">
                  <?php 
include locate_template('parts/jobs.php');
?>
                </div>
              </div>
            </div>
          </div>

          

          <hr class="invisible fs-cell fs-lg-full fs-md-full fs-sm-full">
开发者ID:wearegiants,项目名称:City-Constructors,代码行数:31,代码来源:page-workwithus.php

示例15: seed_cspv4_form

function seed_cspv4_form($echo = true)
{
    global $seed_cspv4, $seed_cspv4_post_result;
    $seed_cspv4 = get_option('seed_cspv4');
    extract($seed_cspv4);
    $is_post = false;
    if (!empty($seed_cspv4_post_result['status']) && $seed_cspv4_post_result['status'] == '200') {
        $is_post = true;
    }
    $output = '';
    // Get the refrral url
    $ref = '';
    if (isset($_GET['ref'])) {
        $ref = $_GET['ref'];
    }
    // Form
    if ($is_post === false) {
        $output = apply_filters('seed_cspv4_show_form_' . $emaillist, $output);
        if ($emaillist == 'feedburner') {
            $output .= '<form action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open(\'http://feedburner.google.com/fb/a/mailverify?uri=' . esc_attr($feedburner_address) . '\', \'popupwindow\', \'scrollbars=yes,width=550,height=520\');return true">';
            $output .= '<input type="hidden" value="' . esc_attr($feedburner_addr) . '" name="uri"/>';
            $output .= '<input type="hidden" name="loc" value="' . esc_attr($feedburner_loc) . '"/>';
            // Output form fields
            $output .= '<div id="cspv4-field-wrapper">';
            $output .= '<div class="row">';
            if ($btn_style) {
                $output .= '<div class="col-md-12"><div class="input-group"><input id="cspv4-email" name="email" class="form-control input-lg" type="text" placeholder="' . esc_attr($txt_email_field) . '"/>';
                $output .= '<span class="input-group-btn"><button id="cspv4-subscribe-btn" type="submit" class="btn btn-lg btn-primary">' . esc_html($txt_subscribe_button) . '</button></span></div></div>';
            } else {
                $output .= '<div class="col-md-12 seperate"><div class="input-group"><input id="cspv4-email" name="email" class="form-control input-lg" type="text" placeholder="' . esc_attr($txt_email_field) . '"/>';
                $output .= '<span class="input-group-btn"><button id="cspv4-subscribe-btn" type="submit" class="btn btn-lg btn-primary">' . esc_html($txt_subscribe_button) . '</button></span></div></div>';
            }
            $output .= '</div>';
            $output .= '</div>';
            $output .= '</form>';
        } elseif ($emaillist == 'gravityforms') {
            if (class_exists('RGFormsModel')) {
                ob_start();
                gravity_form($gravityforms_form_id, false, false, false, '', apply_filters('seed_cspv4_gf_ajax', false));
                $dump = ob_get_contents();
                ob_end_clean();
                if ($gravityforms_enable_thankyou_page) {
                    $output .= '<div id="cspv4-alert" class="alert"></div>';
                }
                $output .= $dump;
            }
        } elseif ($emaillist == 'htmlwebform') {
            if (!empty($html_integration)) {
                $output .= $html_integration;
            }
        } elseif ($emaillist != 'none' && !empty($emaillist) && empty($output)) {
            if (!empty($_SERVER['QUERY_STRING'])) {
                $querystring = str_replace('&a=thankyou', '', $_SERVER['REQUEST_URI']);
                $post = $querystring . '&a=thankyou';
            } else {
                $post = $_SERVER['REQUEST_URI'] . '?a=thankyou';
            }
            $output .= '<form id="cspv4-form" method="post">';
            $output .= '<input id="cspv4-ref" name="ref" type="hidden" value="' . $ref . '" />';
            $output .= '<input id="cspv4-comment" name="comment" type="hidden" value="" />';
            // Check for an alert message
            $alert = '';
            if (!empty($seed_cspv4_post_result['msg'])) {
                $alert = $seed_cspv4_post_result['msg'];
            }
            $class = '';
            if (!empty($seed_cspv4_post_result['msg_class'])) {
                $class = $seed_cspv4_post_result['msg_class'];
            }
            if (!empty($alert)) {
                $output .= '<div id="cspv4-alert" class="alert ' . $class . '">' . $alert . '</div>';
            }
            // Output form fields
            $output .= '<div id="cspv4-field-wrapper">';
            $output .= '<div class="row">';
            if (!empty($name_field)) {
                $output .= '<div class="col-md-12"><input id="cspv4-name" name="name" class="form-control input-lg" type="text" placeholder="' . esc_attr($txt_name_field) . '"/></div>';
            }
            if ($btn_style) {
                $output .= '<div class="col-md-12"><div class="input-group"><input id="cspv4-email" name="email" class="form-control input-lg" type="text" placeholder="' . esc_attr($txt_email_field) . '"/>';
                $output .= '<span class="input-group-btn"><button id="cspv4-subscribe-btn" type="submit" class="btn btn-lg btn-primary">' . esc_html($txt_subscribe_button) . '</button></span></div></div>';
            } else {
                $output .= '<div class="col-md-12 seperate"><div class="input-group"><input id="cspv4-email" name="email" class="form-control input-lg" type="text" placeholder="' . esc_attr($txt_email_field) . '"/>';
                $output .= '<span class="input-group-btn"><button id="cspv4-subscribe-btn" type="submit" class="btn btn-lg btn-primary">' . esc_html($txt_subscribe_button) . '</button></span></div></div>';
            }
            $output .= '</div>';
            $output .= '</div>';
            $output .= '</form>';
            if (!empty($privacy_policy_link_text)) {
                $output .= '<span id="cspv4-privacy-policy-txt">' . $privacy_policy_link_text . '</span>';
            }
            if (!empty($privacy_policy)) {
                $output .= '<span id="cspv4-privacy-policy">' . $privacy_policy . '</span>';
            }
        }
    }
    // After Form is Submitted
    if ($is_post === true) {
        $output .= '<div id="cspv4-afterform">';
        // Check for an alert message
//.........这里部分代码省略.........
开发者ID:nayabbukhari,项目名称:circulocristiano,代码行数:101,代码来源:template-tags.php


注:本文中的gravity_form函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。