/** * 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; }
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();
<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">”We’ll take you there”</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>
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>'; } } }
?> <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>
?> " <?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
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>'; } }
<?php if (function_exists('ninja_forms_display_form')) { if ($form_id !== '0') { ninja_forms_display_form($form_id); } }
<?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 Natalia Gorczyca</b><br/>Łabę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>
function ninja_forms_tab_view_subs() { global $ninja_forms_fields; $plugin_settings = get_option('ninja_forms_settings'); if (isset($plugin_settings['date_format']) and $plugin_settings['date_format'] != '') { $date_format = $plugin_settings['date_format']; } else { $date_format = 'm/d/Y'; } $all_forms = ninja_forms_get_all_forms(); if (is_array($all_forms) and isset($all_forms[0])) { $first_form_id = $all_forms[0]['id']; } else { $first_form_id = ''; } if (isset($_REQUEST['form_id']) and $_REQUEST['form_id'] == '') { unset($_SESSION['ninja_forms_form_id']); $form_id = $first_form_id; } else { if (isset($_REQUEST['form_id']) and $_REQUEST['form_id'] != '') { $_SESSION['ninja_forms_form_id'] = absint($_REQUEST['form_id']); $form_id = absint($_REQUEST['form_id']); } else { if (isset($_SESSION['ninja_forms_form_id']) and $_SESSION['ninja_forms_form_id'] != 'all') { $form_id = $_SESSION['ninja_forms_form_id']; } else { $form_id = $first_form_id; } } } if (isset($_REQUEST['sub_id']) and !empty($_REQUEST['sub_id'])) { $sub_id = absint($_REQUEST['sub_id']); } else { $sub_id = ''; } if (isset($_REQUEST['begin_date']) and !empty($_REQUEST['begin_date'])) { $begin_date = esc_html($_REQUEST['begin_date']); } else { if (isset($_SESSION['ninja_forms_begin_date']) and !empty($_SESSION['ninja_forms_begin_date'])) { if (isset($_POST['submit']) and !empty($_REQUEST['begin_date']) or !isset($_POST['submit'])) { $begin_date = $_SESSION['ninja_forms_begin_date']; } else { $begin_date = ''; } } else { $begin_date = ''; } } if (isset($_REQUEST['end_date']) and !empty($_REQUEST['end_date'])) { $end_date = esc_html($_REQUEST['end_date']); } else { if (isset($_SESSION['ninja_forms_end_date']) and !empty($_SESSION['ninja_forms_end_date'])) { if (isset($_POST['submit']) and !empty($_REQUEST['end_date']) or !isset($_POST['submit'])) { $end_date = $_SESSION['ninja_forms_end_date']; } else { $end_date = ''; } } else { $end_date = ''; } } if (isset($_REQUEST['edit_sub_form'])) { $edit_sub_form = absint($_REQUEST['edit_sub_form']); } else { $edit_sub_form = ''; } if ($form_id == '') { ?> <h2><?php _e('View Form Submissions', 'ninja-forms'); ?> </h2> <p class="description description-wide"> </p> <?php } else { if (isset($_REQUEST['limit'])) { $saved_limit = absint($_REQUEST['limit']); $limit = absint($_REQUEST['limit']); } else { $saved_limit = 20; $limit = 20; } if (isset($_REQUEST['paged']) and !empty($_REQUEST['paged'])) { $current_page = absint($_REQUEST['paged']); } else { $current_page = 1; } if ($current_page > 1) { $start = ($current_page - 1) * $limit; if ($sub_count < $limit) { $end = $sub_count; } else { $end = $current_page * $limit; //$end = $end - 1; } if ($end > $sub_count) { $end = $sub_count; } } else { $start = 0; $end = $limit; } $args = array('form_id' => $form_id, 'begin_date' => $begin_date, 'end_date' => $end_date, 'limit' => $start . ',' . $limit); $sub_results = ninja_forms_get_subs($args); $sub_results = apply_filters('ninja_forms_view_subs_results', $sub_results); $sub_count = count($sub_results); if (isset($_REQUEST['limit'])) { $saved_limit = absint($_REQUEST['limit']); $limit = absint($_REQUEST['limit']); } else { $saved_limit = 20; $limit = 20; } if ($sub_count < $limit) { $limit = $sub_count; } if (isset($_REQUEST['paged']) and !empty($_REQUEST['paged'])) { $current_page = absint($_REQUEST['paged']); } else { $current_page = 1; } if ($sub_count > $limit) { $page_count = ceil($sub_count / $limit); } else { $page_count = 1; } if ($current_page > 1) { $start = ($current_page - 1) * $limit; if ($sub_count < $limit) { $end = $sub_count; } else { $end = $current_page * $limit; //$end = $end - 1; } if ($end > $sub_count) { $end = $sub_count; } } else { $start = 0; $end = $limit; } $form_row = ninja_forms_get_form_by_id($form_id); $form_title = ''; if (is_array($form_row) and !empty($form_row)) { if (isset($form_row['data']['form_title'])) { $form_title = $form_row['data']['form_title']; } } if ($edit_sub_form != 1) { ?> <div id="" class="tablenav top"> <div class="alignleft actions"> <select id="" class="" name="bulk_action"> <option value=""><?php _e('Bulk Actions', 'ninja-forms'); ?> </option> <option value="delete"><?php _e('Delete', 'ninja-forms'); ?> </option> <option value="export"><?php _e('Export', 'ninja-forms'); ?> </option> </select> <input type="submit" name="submit" value="<?php _e('Apply', 'ninja-forms'); ?> " class="button-secondary"> </div> <div class="alignleft actions"> <select id="" name="limit"> <option value="20" <?php selected($saved_limit, 20); ?> >20</option> <option value="50" <?php selected($saved_limit, 50); ?> >50</option> <option value="100" <?php selected($saved_limit, 100); ?> >100</option> <option value="300" <?php selected($saved_limit, 300); ?> >300</option> <option value="500" <?php selected($saved_limit, 500); ?> >500</option> </select> <?php _e('Submissions Per Page', 'ninja-forms'); ?> <input type="submit" name="submit" value="<?php _e('Go', 'ninja-forms'); ?> " class="button-secondary"> </div> <div class="alignleft actions"> <input type="submit" name="submit" class="ninja-forms-download-all-subs button-secondary" value="<?php _e('Download All Submissions', 'ninja-forms'); ?> "> </div> <div id="" class="alignright navtable-pages"> <?php if ($sub_count != 0 and $current_page <= $page_count) { ?> <span class="displaying-num"><?php if ($start == 0) { echo 1; } else { echo $start + 1; } ?> - <?php echo $end; ?> of <?php echo $sub_count; ?> <?php if ($sub_count == 1) { _e('Submission', 'ninja-forms'); } else { _e('Submissions', 'ninja-forms'); } ?> </span> <?php } if ($page_count > 1) { $first_page = add_query_arg(array('paged' => 1)); $last_page = add_query_arg(array('paged' => $page_count)); if ($current_page > 1) { $prev_page = $current_page - 1; $prev_page = add_query_arg(array('paged' => $prev_page)); } else { $prev_page = $first_page; } if ($current_page != $page_count) { $next_page = $current_page + 1; $next_page = add_query_arg(array('paged' => $next_page)); } else { $next_page = $last_page; } ?> <span class="pagination-links"> <a class="first-page disabled" title="<?php _e('Go to the first page', 'ninja-forms'); ?> " href="<?php echo $first_page; ?> ">«</a> <a class="prev-page disabled" title="<?php _e('Go to the previous page', 'ninja-forms'); ?> " href="<?php echo $prev_page; ?> ">‹</a> <span class="paging-input"><input class="current-page" title="<?php _e('Current page', 'ninja-forms'); ?> " type="text" name="paged" value="<?php echo $current_page; ?> " size="2"> of <span class="total-pages"><?php echo $page_count; ?> </span></span> <a class="next-page" title="<?php _e('Go to the next page', 'ninja-forms'); ?> " href="<?php echo $next_page; ?> ">›</a> <a class="last-page" title="<?php _e('Go to the last page', 'ninja-forms'); ?> " href="<?php echo $last_page; ?> ">»</a> </span> <?php } ?> </div> </div> <?php } else { $back_link = remove_query_arg(array('edit_sub_form')); ?> <div id="" class=""> <a href="<?php echo $back_link; ?> " class="button-secondary"><?php _e('Back To Submissions', 'ninja-forms'); ?> </a> </div> <?php } ?> </div> <table border="1px" class="wp-list-table widefat fixed posts"> <?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); $col_count = 0; if (is_array($field_results) and !empty($field_results) and $edit_sub_form != 1) { foreach ($field_results as $key => $field) { $field_type = $field['type']; if (isset($ninja_forms_fields[$field_type])) { $reg_field = $ninja_forms_fields[$field_type]; if (!$reg_field['process_field'] or !$reg_field['save_sub']) { unset($field_results[$key]); } else { if ($col_count < 2) { $col_count++; } } } } $field_results = array_values($field_results); $field_results = apply_filters('ninja_forms_view_subs_table_header', $field_results, $form_id); ?> <thead> <tr> <th class="check-column"><input type="checkbox" id="" class="ninja-forms-select-all" title="ninja-forms-subs-bulk-action"></th> <th><?php _e('Date', 'ninja-forms'); ?> </th> <?php do_action('ninja_forms_view_sub_table_header', $form_id); $x = 0; while ($x <= $col_count) { if (isset($field_results[$x]['data']['label'])) { ?> <th><?php echo $field_results[$x]['data']['label']; ?> </th> <?php } $x++; } ?> </tr> </thead> <?php } ?> <tbody id="ninja_forms_subs_tbody"> <?php if (is_array($sub_results) and !empty($sub_results) and $edit_sub_form != 1 and $current_page <= $page_count) { for ($i = $start; $i < $end; $i++) { $sub = $sub_results[$i]; $data = apply_filters('ninja_forms_view_sub_data', $sub['data'], $sub['id']); ?> <tr id="ninja_forms_sub_<?php echo $sub['id']; ?> _tr"> <th scope="row" class="check-column"> <input type="checkbox" id="" name="ninja_forms_sub[]" value="<?php echo $sub['id']; ?> " class="ninja-forms-subs-bulk-action"> </th> <td> <?php $date = $sub['date_updated']; $date = strtotime($date); $date = date($date_format, $date); echo $date; ?> <div class="row-actions"> <?php /** * ninja_forms_sub_table_row_actions hook * hook in here to allow extra row actions * * @hooked ninja_forms_sub_table_row_actions_edit - 10 * @hooked ninja_forms_sub_table_row_actions_delete - 20 * @hooked ninja_forms_sub_table_row_actions_export - 30 */ $row_actions = apply_filters('ninja_forms_sub_table_row_actions', array(), $data, $sub['id'], $form_id); echo implode(" | ", $row_actions); ?> </div> </td> <?php do_action('ninja_forms_view_sub_table_row', $form_id, $sub['id']); $x = 0; while ($x <= $col_count) { if (isset($field_results[$x]['id'])) { $field_id = $field_results[$x]['id']; ?> <td id="ninja_forms_sub_<?php echo $sub['id']; ?> _field_<?php echo $field_id; ?> "> <?php foreach ($data as $d) { if ($field_id == $d['field_id']) { $user_value = $d['user_value']; $user_value = ninja_forms_stripslashes_deep($user_value); $user_value = ninja_forms_strip_tags_deep($user_value); $user_value = apply_filters('ninja_forms_view_sub_td', $user_value, $d['field_id'], $sub['id']); if (is_array($user_value) and !empty($user_value)) { $y = 1; foreach ($user_value as $val) { echo ninja_forms_stripslashes_deep($val); if ($y != count($user_value)) { echo ", "; } $y++; } } else { echo stripslashes($user_value); } } } ?> </td> <?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); //$col_count = 0; if (is_array($field_results) and !empty($field_results) and $edit_sub_form != 1) { /* foreach($field_results as $key => $field){ $field_type = $field['type']; $reg_field = $ninja_forms_fields[$field_type]; if(!$reg_field['process_field'] OR !$reg_field['save_sub']){ unset($field_results[$key]); }else{ if($col_count < 2){ $col_count++; } } } */ ?> <tfoot> <tr> <th class="check-column"><input type="checkbox" id="" class="ninja-forms-select-all" title="ninja-forms-subs-bulk-action"></th> <th><?php _e('Date', 'ninja-forms'); ?> </th> <?php do_action('ninja_forms_view_sub_table_header', $form_id); $x = 0; while ($x <= $col_count) { if (isset($field_results[$x]['data']['label'])) { ?> <th><?php echo $field_results[$x]['data']['label']; ?> </th> <?php } $x++; } ?> </tr> </tfoot> <?php } ?> </table> <div id="ninja_forms_sub_info_wrap" class="form-section" style="display:none;"> <a href="#" id="" class="ninja-forms-back-sub"><?php _e('Back', 'ninja-forms'); ?> </a> <br /> <br /> <div id="ninja_forms_sub_info"> </div> <input type="button" id="ninja_forms_edit_sub" value="<?php _e('Save', 'ninja-forms'); ?> " class="button-primary"> <span id="ninja_forms_edit_sub_loading" style="display:none;"><img src="<?php echo NINJA_FORMS_URL . "/images/loading.gif"; ?> " alt="loading"></span> </div> <?php } }
<?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 © 2015 Jas Wood Created by <a href="www.3a.co.nz">3A web solution</a></div> </footer> </body>
} ?> <!-- SECTION TITLE --> <div class="colored-mask"></div> <div class="container"> <div class="col-md-6 focus-join-us-content"> <?php $openlab_ourfocus_title = get_theme_mod('openlab_ourfocus_title', __('Participate in Open Lab', 'openlab-txtd')); if (!empty($openlab_ourfocus_title)) { echo '<h2 class="light-text">' . $openlab_ourfocus_title . '</h2>'; } $openlab_ourfocus_subtitle = get_theme_mod('openlab_ourfocus_subtitle', __('Get in touch, using the participation form.', 'openlab-txtd')); if (!empty($openlab_ourfocus_subtitle)) { echo '<div class="section-legend"><span class="light-text">' . $openlab_ourfocus_subtitle . '</span></div>'; } ?> </div> <div class="col-md-6 focus-join-us-button"> <?php $openlab_ourfocus_button_label = get_theme_mod('openlab_ourfocus_button_label', __('Join Us Now!', 'openlab-txtd')); $openlab_ourfocus_button_form = get_theme_mod('openlab_ourfocus_button_nf_form'); if (!empty($openlab_ourfocus_button_label) && !empty($openlab_ourfocus_button_form) && $openlab_ourfocus_button_form !== 0) { echo '<div class="buttons">'; echo '<a href="#" data-toggle="modal" data-target="#home_contact_nf" data-backdrop="static" data-keyboard="true" class="btn join-us-btn open-form-btn">' . strip_tags($openlab_ourfocus_button_label) . '</a>'; echo '</div>'; } ?> </div> <?php //modal form
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 }
<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>'); ?>
<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>
* * @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();
</div> </div> </div> </div> </footer> <div class="modal fade" id="agencyform"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title">CONTACT US</h4> </div> <div class="modal-body"> <?php if (function_exists('ninja_forms_display_form')) { ninja_forms_display_form(6); } ?> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div><!-- /.modal-content --> </div><!-- /.modal-dialog --> </div><!-- /.modal --> <?php wp_footer(); ?> </body>
<?php /* Template Name: Contact Template */ get_header(); ?> <!-- contact start --> <section class="container mar contact"> <?php if (have_posts()) { while (have_posts()) { the_post(); the_content(); } } else { echo '<p>No content found</p>'; } ?> <?php if (function_exists('ninja_forms_display_form')) { ninja_forms_display_form(1); } ?> </section> <!-- contact end --> <?php get_footer();
/** * 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) { echo $args['before_widget']; $background_image = $instance['bg_image']; $background_repeat = $instance['bg_repeat']; $background_position = $instance['bg_position']; $background_attachment = $instance['bg_attachment']; $background_size = $instance['bg_size']; $parallax = $instance['parallax']; $color_scheme = isset($instance['color_scheme']) ? $instance['color_scheme'] : 'light'; if ($parallax) { wp_enqueue_script('jquery-parallax'); } $style = implode(" ", array(!empty($background_image) ? "background-image: url({$background_image});" : "", !empty($background_position) ? "background-position: {$background_position};" : "", !empty($background_repeat) ? "background-repeat: {$background_repeat};" : "", !empty($background_size) ? "background-size: {$background_size};" : "", !empty($background_attachment) ? "background-attachment: {$background_attachment};" : "")); ?> <div class="section <?php echo $color_scheme; ?> -scheme"> <?php if (!empty($background_image)) { ?> <div class="section-background <?php echo $parallax ? 'parallax-background' : ''; ?> <?php if ($instance['overlay'] != 'none') { echo $instance['overlay']; } ?> " style="<?php echo $style; ?> "></div> <?php } ?> <div class="container"> <div class="row"> <?php if ($instance['form_position'] == 'center') { ?> <div class="col-md-6 col-md-offset-3"> <?php } else { ?> <div class="col-md-5 <?php if ($instance['form_position'] == 'right') { echo 'col-md-offset-7'; } ?> "> <?php } ?> <div class="rsvp-form"> <div class="title"><?php echo $instance['title']; ?> </div> <?php if (function_exists('ninja_forms_display_form')) { ninja_forms_display_form($instance['rsvp_form']); } ?> </div> </div> </div> </div> </div> <?php echo $args['after_widget']; }