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


PHP ninja_forms_display_form函数代码示例

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


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

示例1: widget

 /**
  * Front-end display of widget.
  *
  * @see WP_Widget::widget()
  *
  * @param array $args     Widget arguments.
  * @param array $instance Saved values from database.
  */
 public function widget($args, $instance)
 {
     extract($args);
     $form_id = $instance['form_id'];
     $form_row = ninja_forms_get_form_by_id($form_id);
     $form_data = $form_row['data'];
     if (isset($form_data['form_title'])) {
         $title = $form_data['form_title'];
     } else {
         $title = '';
     }
     $title = apply_filters('widget_title', $title);
     $display_title = $instance['display_title'];
     echo $before_widget;
     if (!empty($title) and $display_title == 1) {
         echo $before_title . $title . $after_title;
     }
     ninja_forms_display_form($form_id);
     echo $after_widget;
 }
开发者ID:HeliWang,项目名称:EngSoc-Website,代码行数:28,代码来源:widget.php

示例2: _field

echo _field('company-city');
?>
</li>
					<li><?php 
echo _field('company-postcode');
?>
</li>
				</ul>
			</div>

			<div class="col-md-7 col-md-offset-1 contact-form">

				<?php 
if (function_exists('ninja_forms_display_form')) {
    ?>
 
					<?php 
    ninja_forms_display_form(5);
    ?>
				<?php 
}
?>

			</div>

		</div>

</div>

<?php 
get_footer();
开发者ID:sajadtorkamani,项目名称:bones-wp,代码行数:31,代码来源:contact-template.php

示例3: ninja_forms_display_form

		<div class="container">
			<article>
				<h2>Wow <i class="cn cn-people"></i> har du kollat ända hit är du garanterat nyfiken nog för att bli en av oss.</h2>
				<p>Vi söker alltid efter nyfikna talanger. <a href="#">Se hit vettja!</a></p>
			</article>
		</div>
	</section>

	<section class="contact-form air">
		<div class="container">
			<article>
				<span class="title2">&rdquo;We&rsquo;ll take you there&rdquo;</span>
				<h3>Ska vi träffas och guida dig fram?</h3>
				<?php 
if (function_exists('ninja_forms_display_form')) {
    ninja_forms_display_form(2);
}
?>
			</article>
		</div>
	</section>
	<section class="shade"></section>

	<section class="social-media air">
		<div class="container">
			<p>
				<a href="https://twitter.com/c9stockholm" class="cn cn-twitter"></a>
				<a href="https://www.facebook.com/cloudninestockholm" class="cn cn-facebook"></a>
				<!-- <a href="#" class="cn cn-google"></a> -->
				<a href="https://www.linkedin.com/company/cloud-nine" class="cn cn-linkedin"></a>
				<span>
开发者ID:wearecircuit,项目名称:cloudninese-new,代码行数:31,代码来源:footer.php

示例4: get_option_form

 public static function get_option_form($product_id, $wpc_metas)
 {
     if (function_exists('ninja_forms_display_form')) {
         global $woocommerce;
         $product = wc_get_product($product_id);
         if ($product->product_type == "variation") {
             $normal_product_id = $product->parent->id;
         } else {
             $normal_product_id = $product_id;
         }
         if ($wpc_metas['ninja-form-options']) {
             $form_id = $wpc_metas['ninja-form-options'];
         }
         if (!empty($form_id)) {
             global $woocommerce;
             $currency_symbol = get_woocommerce_currency_symbol();
             $product_regular_price = get_post_meta(get_the_ID(), '_regular_price', true);
             //Fill the form in cart item edition case
             add_filter('ninja_forms_field', 'WPD_Design::wpc_fill_option_form', 10, 2);
             echo '<div class = "wpd-design-opt" data-currency_symbol = "' . $currency_symbol . '" data-regular_price = "' . $product_regular_price . '" >';
             ninja_forms_display_form($form_id);
             echo '</div>';
         }
     }
 }
开发者ID:Zovio,项目名称:woocommerce-products-designer,代码行数:25,代码来源:class-wpd-design.php

示例5: ninja_forms_display_form

?>

<div id="content">
	<section id="contato-pag">
		<div class="container">
			<div class="row">
				<div class="col-md-12">
					<h1 class="small">Contato</h1>
					<h5>Entre em contato conosco, teremos o maior prazer em atendê-lo</h5>
				</div>
			</div><br>
			<div class="row">
				<div class="col-md-5 info-left text-left">
					<?php 
if (function_exists('ninja_forms_display_form')) {
    ninja_forms_display_form(7);
}
?>
				</div>
				<div class="col-md-6 col-md-offset-1 info-right text-left">
					<p>
						<strong>Telefone</strong>
						<br>11 4113-7611 <br/> 
							11 4113-7283
						<br><br><strong>Email</strong>
						<br>contato@spacecell.com.br
					</p>
				</div>
			</div>
		</div>
	</section> 
开发者ID:lehnihon,项目名称:Spacecell,代码行数:31,代码来源:page-contato.php

示例6: post_class

        ?>
" <?php 
        post_class();
        ?>
>
						<div class="page-content">
							<?php 
        the_content();
        ?>
						</div>
						<div class="guestbook-form">
						<?php 
        if (function_exists('ninja_forms_display_form')) {
            $gb_form = ld_option('guestbook_form');
            if (!empty($gb_form)) {
                ninja_forms_display_form($gb_form);
            }
        }
        ?>
						</div>
						
						<?php 
        $gb_form = ld_option('guestbook_form');
        $gb_name_id = ld_option('gb_name_id');
        $gb_message_id = ld_option('gb_message_id');
        $args = array('form_id' => $gb_form);
        $subs = Ninja_Forms()->subs()->get($args);
        if (!empty($subs)) {
            ?>
							<div class="list-guestbook-entries">
							<?php 
开发者ID:julianomoreira,项目名称:euescolhivoce,代码行数:31,代码来源:page-template-guestbook.php

示例7: event_modal_contact_form

function event_modal_contact_form($event_form_id)
{
    //if(!$event_form_id): return;
    if (is_numeric($event_form_id) && defined('NF_PLUGIN_VERSION') && shortcode_exists('ninja_forms')) {
        $data = '<div class="nf-form-container">';
        $data .= '<div id="participate" class="modal fade nf">';
        $data .= '<div class="button-wrap clearfix">';
        $data .= '	<a href="#" class="openlab-close-modal close-form-btn" data-dismiss="modal" aria-hidden="true">
										<span>' . get_svg_images_src('close-icon') . '</span>
									</a>';
        $data .= '</div>';
        $data .= '<div class="modal-form-container">';
        //bootstrap Modal
        if (function_exists('ninja_forms_display_form')) {
            ninja_forms_display_form($event_form_id);
        }
        $data .= '</div>';
        $data .= '</div>';
        $data .= '</div>';
    }
}
开发者ID:eellak,项目名称:OpenLab_Website,代码行数:21,代码来源:functions.php

示例8: ninja_forms_display_form

<?php

if (function_exists('ninja_forms_display_form')) {
    if ($form_id !== '0') {
        ninja_forms_display_form($form_id);
    }
}
开发者ID:sebjon-bytbil,项目名称:BB.CMS,代码行数:7,代码来源:form.tpl.php

示例9: count

<?php 
$items = Utils::getChildPages(get_the_ID(), 3);
$colSize = 'col-md-' + 12 / count($items);
foreach ($items as $item) {
    get_template_part('contact', 'item');
}
?>
		</div>
	</div>
	<div class="contact-form">
		<div class="row">
			<div class="col-xs-12 col-sm-6">
				<div class="form padd-right-sm">
				<?php 
if (function_exists('ninja_forms_display_form')) {
    ninja_forms_display_form(Config::$contactFormId);
}
?>
				</div>
			</div>
			<div class="col-xs-12 col-sm-6">
				<div class="gmap padd-left-sm">
					<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
					<div style="overflow: hidden; height: 305px; width: 100%;">
						<div id="gmap_canvas" style="height: 305px; width: 100%;"></div>
					</div>
					<script type="text/javascript"> function init_map(){var myOptions = {zoom:15,center:new google.maps.LatLng(53.4534347,14.542953200000056),mapTypeId: google.maps.MapTypeId.ROADMAP};map = new google.maps.Map(document.getElementById("gmap_canvas"), myOptions);marker = new google.maps.Marker({map: map,position: new google.maps.LatLng(53.4534347, 14.542953200000056)});infowindow = new google.maps.InfoWindow({content:"<b>Kancelaria&nbsp;Natalia&nbsp;Gorczyca</b><br/>&#321;ab&#281;dzia 38/1<br/>71-453 Szczecin" });google.maps.event.addListener(marker, "click", function(){infowindow.open(map,marker);});infowindow.open(map,marker);}google.maps.event.addDomListener(window, 'load', init_map);</script>
				</div>
			</div>
		</div>
	</div>
开发者ID:estelar,项目名称:biuro-podatki.pl,代码行数:31,代码来源:contact.php

示例10: ninja_forms_tab_view_subs


//.........这里部分代码省略.........
					<?php 
                    }
                    $x++;
                }
                ?>

				</tr>
				<?php 
            }
        } else {
            if ($edit_sub_form == 1) {
                $sub_row = ninja_forms_get_sub_by_id($sub_id);
                $data = $sub_row['data'];
                $date_updated = strtotime($sub_row['date_updated']);
                $date_updated = date($date_format, $date_updated);
                $sub_status = $sub_row['status'];
                ?>
				<input type="hidden" name="_sub_id" value="<?php 
                echo $sub_id;
                ?>
">
				<input type="hidden" name="_ninja_forms_edit_sub" value="1">
				<input type="hidden" name="_ninja_forms_sub_status" value="<?php 
                echo $sub_status;
                ?>
">
				<input type="hidden" name="_form_id" value="<?php 
                echo $form_id;
                ?>
">
				<?php 
                add_filter('ninja_forms_field', 'ninja_forms_edit_sub_default_value', 15, 2);
                add_filter('ninja_forms_field', 'ninja_forms_edit_sub_hide_fields', 99, 2);
                add_filter('ninja_forms_display_form_form_data', 'ninja_forms_edit_sub_remove_ajax');
                remove_action('ninja_forms_display_before_fields', 'ninja_forms_display_req_items');
                remove_action('ninja_forms_display_open_form_tag', 'ninja_forms_display_open_form_tag');
                remove_action('ninja_forms_display_close_form_tag', 'ninja_forms_display_close_form_tag');
                remove_action('ninja_forms_display_before_form', 'ninja_forms_display_response_message');
                remove_action('ninja_forms_display_after_open_form_tag', 'ninja_forms_display_hidden_fields');
                ninja_forms_display_form($form_id);
                ?>
				<tr id="">
					<td colspan="2"><input type="submit" name="submit" value="<?php 
                _e('Save Submission', 'ninja-forms');
                ?>
" class="button-primary"></td>
				</tr>
			<?php 
            } else {
                ?>
			<tr id="ninja_forms_subs_empty" style="">
				<td colspan="7">
					<?php 
                _e('No submissions found', 'ninja-forms');
                ?>
				</td>
			</tr>
			<?php 
            }
        }
        ?>

				</tbody>
				<?php 
        //Grab the first few fields attached to our form so that we can create column headers.
        //$field_results = ninja_forms_get_fields_by_form_id($form_id);
开发者ID:prosenjit-itobuz,项目名称:nutraperfect,代码行数:67,代码来源:view-subs.php

示例11: get_header

<?php

/*
Template Name: Contact Us Template
*/
get_header();
?>

	<!-- grade article start  -->
	<section class="container content clearfix">
		<div class="form_contact">
			<div>REQUEST A QUOTE</div>
			<?php 
if (function_exists('ninja_forms_display_form')) {
    ninja_forms_display_form(8);
}
?>
		</div>
		<div class="add">
			<div class="contitle">CONTACT</div>
			<p class="icon addIcon_b">Tempor Eiusmod inc, 9560 St Dlore Place</p>
			<p class="icon phoneIcon_b">+021 800 5555</p>
			<p class="icon emailIcon_b">jaswood@gmail.com</p>
		</div>
		<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3191.94839622192!2d174.77720509999997!3d-36.867653999999995!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x6d0d4876959d2e8d%3A0x72353becd12edd15!2s485+Khyber+Pass+Rd%2C+Newmarket%2C+Auckland+1023!5e0!3m2!1sen!2snz!4v1442267405511" width="990" height="400" frameborder="0" style="border:0" allowfullscreen></iframe>
	</section><!-- grade article end -->

	<footer>
		<div class="copy">Copyright &copy; 2015 Jas Wood Created by <a href="www.3a.co.nz">3A web solution</a></div>
	</footer>
</body>
开发者ID:Eason-Chen,项目名称:jaswood-wordpress,代码行数:31,代码来源:contact-template.php

示例12: tst_newsletter_modal

function tst_newsletter_modal()
{
    $id = get_theme_mod('newsletter_form_id');
    if (!$id) {
        return;
    }
    ?>
	<div class="nl-modal mdl-shadow--6dp" id="modal-newsletter">
	<?php 
    if (function_exists('ninja_forms_display_form')) {
        ninja_forms_display_form($id);
    }
    ?>
	</div>
<?php 
}
开发者ID:Teplitsa,项目名称:giger,代码行数:16,代码来源:template-tags.php

示例13: ninja_forms_display_form

      
          <h3 class="blue capital-header"><?php 
echo $contacttitel;
?>
</h3>
      
          <?php 
echo $contactcontent;
?>
          
          <?php 
if (get_field('contact-form')) {
    ?>
            <?php 
    if (function_exists('ninja_forms_display_form')) {
        ninja_forms_display_form(get_field('contact-form'));
    }
    ?>
          <?php 
}
?>
          
        </section>
      
      </div>
    </div>
  </div>
	<footer class="entry-footer">
		<?php 
edit_post_link(esc_html__('Edit', 'wp_incision'), '<span class="edit-link">', '</span>');
?>
开发者ID:BryanLiters,项目名称:wp_incision_accept,代码行数:30,代码来源:content-contact-page.php

示例14: __

		<div class="grid-1 form-btn-wrap clearfix">

			<div class="modal-form">
          <?php 
if (is_numeric($event_form_id) && $event_state == 'active' && defined('NF_PLUGIN_VERSION') && shortcode_exists('ninja_forms')) {
    echo '<div class="buttons">';
    echo '	<a data-toggle="modal" data-target="#participate" data-backdrop="static" data-keyboard="true" class="btn open-form open-form-btn" >' . __('Participate', 'openlab-txtd') . '</a>';
    echo '</div>';
    echo '<div class="nf-form-container">';
    echo '<div id="participate" class="modal fade nf">';
    echo '<div class="button-wrap">';
    echo '<button type="button" class="openlab-close-modal" data-dismiss="modal" aria-hidden="true">';
    echo '<span class="close-btn-inner"></span>';
    echo '</button>';
    echo '</div>';
    echo '<div class="modal-form-container">';
    //bootstrap Modal
    if (function_exists('ninja_forms_display_form')) {
        ninja_forms_display_form($event_form_id);
    }
    echo '</div>';
    echo '</div>';
    echo '</div>';
}
?>
      </div>

		</div>

</div>
开发者ID:eellak,项目名称:OpenLab_Website,代码行数:30,代码来源:content-event_meta.php

示例15: get_header

 *
 * @package _mbbasetheme
 */
get_header();
?>

    <div id="primary" class="content-area">
        <main id="main" class="site-main" role="main">
            <?php 
while (have_posts()) {
    the_post();
    ?>
                <div class="coming-soon-section">
                    <div class="coming-soon-content">
                        <h2>Our online shop <span class="bold">is coming soon!</span></h2>
                        <?php 
    if (function_exists('ninja_forms_display_form')) {
        ninja_forms_display_form(9);
    }
    ?>
                    </div>
                </div>
            <?php 
}
// end of the loop.
?>
        </main><!-- #main -->
    </div><!-- #primary -->

<?php 
get_footer();
开发者ID:sergeyeremeev,项目名称:smokeshop,代码行数:31,代码来源:coming-soon.php


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