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;
        }
    }
Exemple #2
0
    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;
    }
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>";
}
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;
}
$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();
}
?>
				<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='******' width='290' limit='3']");
?>
				</div>
			</div>  
		</div>

	</div>
				  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();
function setesm_postdisplaywpl($postid = 0, $ast = 0, $astc = 0, $useragent = '0')
{
    global $page;
    $noreg = get_post_meta($postid, 'No Registration', $single = true);
    if ($noreg != null) {
        $bypassreg = 1;
    }
    $gfform = get_post_meta($postid, 'usegravityform', $single = true);
    if (preg_match("/Googlebot|Yahoo|msnbot|bingbot/i", $useragent) > 0) {
        $bypassreg = 1;
    }
    if (isset($_COOKIE['esmpass'])) {
        $bypassreg = 1;
    }
    /* Check if the user is on page gt 1 and not logged in */
    global $page;
    if ($bypassreg == 1 or is_user_logged_in()) {
        $showpagecontent = 1;
    } else {
        if (in_category(array(139, 127)) and !$bypassreg == 1 or in_category(array(139, 127)) and !is_user_logged_in()) {
            $showpagecontent = 0;
        } else {
            if (in_category(array(163, 166, 167)) and $page > 1) {
                $showpagecontent = 0;
            } else {
                if ($astused > 1) {
                    $showpagecontent = 0;
                } else {
                    //let them in
                    $showpagecontent = 1;
                }
            }
        }
    }
    ?>

<div style="clear:both"></div>
					<div id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class('entry');
    ?>
>
						<div class="entry_title">


<div style="float:left; width:825px;"> 
	<h2><?php 
    if (in_category(array(19, 20, 21))) {
        echo 'Press Release: ';
    }
    the_title();
    ?>
</h2>
</div>

<div style="clear:both"></div>



							






						<?php 
    $SubTitle = get_post_meta($postid, 'Sub Title', $single = true);
    if ($SubTitle != null) {
        echo '<h3>' . $SubTitle . '</h3>';
    }
    if (function_exists('gkl_postavatar')) {
        echo '<style type="text/css">img.postavatar {height: 45px; width: auto;}</style>';
        gkl_postavatar(postavatar);
    }
    ?>

<?php 
    $PageByLine = get_post_meta($postid, 'Byline', $single = true);
    if ($PageByLine != null) {
        echo '<span class="byline">' . $PageByLine . '<br/>';
    } else {
        echo '<span class="byline">';
    }
    ?>

</span>

</div>




<!--start slider dependents-->
			<!--end slider dependents-->
	<?php 
    if ($showpagecontent == 1) {
        if (is_user_logged_in()) {
            // LOGGED IN USER
            $current_user = wp_get_current_user();
            $wpuid = $current_user->ID;
            $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'] = $current_user->user_firstname;
            $lenautofill['lname'] = $current_user->user_lastname;
            $lenautofill['email'] = $current_user->user_email;
            $lenautofill['wplogin'] = $current_user->user_login;
            $useshortform = 1;
        } else {
            // USER NOT LOGGED IN CHECK FOR ID ELSEWHERE
            $loggedin = 0;
            //CHECK AND VALIDATE COOKIE esmpass
            if (isset($_COOKIE['esmpass'])) {
                $esmpasscookvals = explode("-", $_COOKIE['esmpass']);
                $useshortform = 1;
                if (isset($esmpasscookvals[1]) && is_numeric($esmpasscookvals[1])) {
                    $wpuid = $esmpasscookvals[1];
                } else {
                    $useshortform = 0;
                }
                if (isset($esmpasscookvals[2]) && strlen($esmpasscookvals[2]) == 15 || isset($esmpasscookvals[2]) && strlen($esmpasscookvals[2]) == 18) {
                    $sfuid = $esmpasscookvals[2];
                } else {
                    $useshortform = 0;
                }
                if (isset($esmpasscookvals[3]) && strlen($esmpasscookvals[3]) == 15 || isset($esmpasscookvals[3]) && strlen($esmpasscookvals[3]) == 18) {
                    $PersonContactId = $esmpasscookvals[3];
                } 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;
                }
            } elseif (isset($_GET['ps'])) {
                $esmpassvals = explode("-", $_GET['ps']);
                if (isset($esmpassvals[0]) && is_numeric($esmpassvals[0])) {
                    $wpuid = $esmpassvals[0];
                    $useshortform = 1;
                } else {
                    $useshortform = 0;
                }
                if ($useshortform == 1 && isset($esmpassvals[1]) && strlen($esmpassvals[1]) == 15 || $pscheck == 1 && isset($esmpassvals[1]) && strlen($esmpassvals[1]) == 18) {
                    $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 
}
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);
}
Exemple #10
0
			</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"/>
    				<?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>
			  <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>
Exemple #13
0
				<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>
              <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">
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
        $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>';
        }
        if (empty($class)) {
            $output .= '<div id="cspv4-thankyoumsg">';
            if (!empty($thankyou_msg)) {
                if (isset($GLOBALS['wp_embed'])) {
                    $thankyou_msg = $GLOBALS['wp_embed']->autoembed($thankyou_msg);
                }
                $output .= do_shortcode(shortcode_unautop(wpautop(convert_chars(wptexturize($thankyou_msg)))));
            } else {
                $output .= '<p>' . esc_html($txt_success_msg) . '</p>';
            }
            $output .= '</div>';
            if (!empty($enable_reflink)) {
                $output .= '<div id="cspv4-ref-out" class="well">';
                $output .= seed_cspv4_ref_link();
                $output .= '</div>';
            }
        }
        $output .= '</div>';
    }
    $output = apply_filters('seed_cspv4_form', $output);
    if ($echo) {
        echo $output;
    } else {
        return $output;
    }
}
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><?php 
echo esc_html($form['title']);
?>
</title>
<style type="text/css">
body {
	padding: 0;
	font-family: sans-serif;
	font-size: 13px;
}
</style>
</head>
<body>
<?php 
GFFormDisplay::print_form_scripts($form_id, false);
// ajax = false
gravity_form($form_id, $display_title, $display_description);
wp_footer();
?>
</body>
</html>
Exemple #17
0
					</div>
					<aside class="col-md-4">
						<div class="item">
							<img src="http://ihh.dk/administrator/wp-content/uploads/2016/09/ivan-hojgaard-hansen.jpg" alt="Ivan Højgaard Hansen" class="img-responsive">
							<div class="item-content">
		                        <p class="text-info">Autoriseret psykolog & specialist i stress</p>
		                        <h2>Ivan Højgaard Hansen</h2>
		                        <p class="lead">Jeg er uddannet fra Københavns Universitet i 2008 og har haft fuldtidspraksis siden 2009.</p>
		                        <a href="#" title="#"><strong>Læs mere om Ivan Højgaard Hansen <i class="fa fa-angle-right"></i></strong></a>
		                    </div>
						</div>
						
						<div class="item item-contact">
						<h2>Tilmeld nyhedsbrev:</h2>
						<?php 
gravity_form(3, false, false, false, '', false);
?>
					</div>
						
						<div 	class="fb-page" 
							data-href="https://www.facebook.com/www.ihh.dk/"
							data-width="500"
							data-small-header="false"
							data-adapt-container-width="true"
							data-hide-cover="false"
							data-show-facepile="true">
							<div class="fb-xfbml-parse-ignore">
								<blockquote cite="https://www.facebook.com/www.ihh.dk/">
									<a href="https://www.facebook.com/www.ihh.dk/">
										Ivan Højgaard Hansen
									</a>
function saved_orders_shortcode()
{
    global $wpdb;
    $view = rgget("type");
    if ($view == "edit") {
        $output = 'test-edit';
        $lead_id = rgget("q");
        $data = RGFormsModel::get_lead($lead_id);
        //echo "<script type='text/javascript'>alert('".$data['form_id']."');</script>";
        if (!empty($data)) {
            $saveState = new GFStatefulForms();
            add_filter('gform_pre_render', array($saveState, 'try_restore_saved_state'));
            gravity_form($data["form_id"], false, false, false, '', false);
        } else {
            $leads = $wpdb->get_results($wpdb->prepare("SELECT wp_rg_form_meta.display_meta, wp_rg_lead.orderStatus, wp_rg_lead.date_created, wp_rg_lead.id, wp_rg_lead.form_id, wp_rg_form.title FROM wp_rg_lead LEFT JOIN wp_rg_form ON wp_rg_lead.form_id = wp_rg_form.id LEFT JOIN wp_rg_form_meta ON wp_rg_lead.form_id = wp_rg_form_meta.form_id WHERE wp_rg_lead.created_by = %d AND wp_rg_lead.orderStatus = 'incomplete' ORDER BY wp_rg_lead.id DESC", wp_get_current_user()->ID));
            foreach ($leads as $lead) {
                $output .= '<tr><td>' . $lead->id . '</td><td>' . get_reference($lead->form_id, $lead->id, $wpdb) . '</td><td>' . $lead->title . '</td><td>' . date("d/m/Y", strtotime($lead->date_created)) . '</td><td>' . $lead->orderStatus . '</td><td><a class="btn default btn-xs purple" href="https://app.thesmsfacademy.com.au/saved/documents/?q=' . $lead->id . '&type=edit"><i class="fa fa-trash-o"></i> Resume</a> <a class="btn default btn-xs black" href="https://app.thesmsfacademy.com.au/wp-content/themes/TPO10/includes/dOrder.php?lid=' . $lead->id . '"><i class="fa fa-trash-o"></i> Delete</a></tr></form>';
            }
            $output = '<table class="table table-striped table-bordered table-advance table-hover" width="100%"><thead><tr><th>Order ID</th><th>Reference</th><th>Type</th><th>Date</th><th>Status</th><th>Actions</th></tr></thead>' . $output . '</table>';
            return $output;
        }
    } else {
        $leads = $wpdb->get_results($wpdb->prepare("SELECT wp_rg_form_meta.display_meta, wp_rg_lead.orderStatus, wp_rg_lead.date_created, wp_rg_lead.id, wp_rg_lead.form_id, wp_rg_form.title FROM wp_rg_lead LEFT JOIN wp_rg_form ON wp_rg_lead.form_id = wp_rg_form.id LEFT JOIN wp_rg_form_meta ON wp_rg_lead.form_id = wp_rg_form_meta.form_id WHERE wp_rg_lead.created_by = %d AND wp_rg_lead.orderStatus = 'incomplete' ORDER BY wp_rg_lead.id DESC", wp_get_current_user()->ID));
        //$output = wp_get_current_user()->ID;
        foreach ($leads as $lead) {
            $output .= '<tr><td>' . $lead->id . '</td><td>' . get_reference($lead->form_id, $lead->id, $wpdb) . '</td><td>' . $lead->title . '</td><td>' . date("d/m/Y", strtotime($lead->date_created)) . '</td><td>' . $lead->orderStatus . '</td><td><button class="btn default btn-xs purple" onClick="SetHiddenFormSettings(' . $lead->id . ', \'update\')"><i class="fa fa-edit"></i>" . __( " Resume", \'spgfle\' ) . "</button>";<a class="btn default btn-xs purple" href="https://app.thesmsfacademy.com.au/saved/documents/?q=' . $lead->id . '&type=edit"><i class="fa fa-trash-o"></i> Resume</a> <a class="btn default btn-xs black" href="https://app.thesmsfacademy.com.au/wp-content/themes/TPO10/includes/dOrder.php?lid=' . $lead->id . '"><i class="fa fa-trash-o"></i> Delete</a></tr></form>';
        }
        $output = '<table class="table table-striped table-bordered table-advance table-hover" width="100%"><thead><tr><th>Order ID</th><th>Reference</th><th>Type</th><th>Date</th><th>Status</th><th>Actions</th></tr></thead>' . $output . '</table>';
        return $output;
    }
}
Exemple #19
0
								<p><a href="#"><?php 
_e('Hours &amp; Directions', 'jointswp');
?>
</a></p>
								<p><a href="#"><?php 
_e('Privacy Policy', 'jointswp');
?>
</a></p>
		    				</div>
		    				<div class="small-9 medium-4 large-4 large-offset-1 columns" id="eNewsletter">
		    					<h5><span>e-</span><?php 
_e('Newsletter Subscription', 'jointswp');
?>
</h5>
								<?php 
gravity_form(1, true, true, false, '', false);
?>

								<!-- <form action="">
									<input type="text" placeholder="First Name">
									<input type="text" placeholder="Last Name">
									<input type="text" placeholder="Email">
									<button type="submit">Submit</button>
								</form> -->
		    				</div>
		    				<div class="small-9 medium-4 large-3 large-offset-1 columns" id="connect">
								<h5><?php 
_e('Connect With Us', 'jointswp');
?>
</h5>
								<a href="#"><img src="<?php 
                        </div>
                        <div class="col-lg-9 col-sm-9"></div>
                        <div class="col-lg-2 col-sm-2"><div class="back-button"><a href="?#section-contact">BACK</a></div>
                    </div>
                <?php 
} else {
    ?>

                <div class="col-lg-11 col-lg-offset-1">
                    <h2 class="contact-header">
                        <span class="orange">LET'S</span> TALK
                    </h2>
                </div>
                <div class="col-lg-11 col-lg-offset-1">
                    <?php 
    gravity_form(1, false, false, false, '', false);
    ?>
                </div>
                <div class="col-lg-11 col-lg-offset-1 logo-contact-form">
                    <img src="<?php 
    bloginfo('stylesheet_directory');
    ?>
/image/hia.png" alt="logo"/>
                </div>
                <?php 
}
?>
<!--                <div class="col-lg-4 col-lg-offset-1">-->
<!--                    <input type="text" placeholder="Name"/>-->
<!--                    <input type="text" placeholder="Email"/>-->
<!--                    <input type="text" placeholder="Contact Number"/>-->
<?php

use Proud\Theme\Wrapper;
$id = get_the_ID();
$form_id = get_post_meta($id, 'form', true);
if (!empty($form_id)) {
    // Docs: https://www.gravityhelp.com/documentation/article/embedding-a-form/#usage-examples
    // gravity_form( $id_or_title, $display_title = true, $display_description = true, $display_inactive = false, $field_values = null, $ajax = false, $tabindex, $echo = true );
    $form = gravity_form($form_id, false, true, false, null, false, 0, false);
} else {
    $link = $filename = get_post_meta($id, 'link', true);
}
?>
<div class="page-header">
  <h2><a href="/payments" onclick="jQuery('.navbar-btn.payments-button').trigger('click');return false;">Payments</a></h2>
</div>

<h1 class="entry-title">
  <?php 
the_title();
?>
</h1>


<div class="row">
  <div class="col-md-7">
    <h4>Online payments</h4>
    <?php 
if ($form) {
    ?>
      <?php 
 public static function form($form_id)
 {
     gravity_form_enqueue_scripts($form_id);
     gravity_form($form_id);
 }
                                return $form;
                            }
                            gravity_form($opt_form2, false, false, false);
                        }
                    }
                } else {
                    gravity_form(166, false, false, false, $esnautofill);
                }
            } else {
                if (isset($_GET["ocs"]) && isset($_GET["country"]) && isset($_GET["orgtype"])) {
                    gravity_form(166, false, false, false, $esnautofill);
                    ?>
        
<?php 
                } else {
                    gravity_form(166, false, false, false, $esnautofill);
                }
            }
        }
        ?>
                                

		<?php 
    }
} else {
}
?>
		
		<?php 
// no sidebar
?>
    ?>
			<div class="entry-content">
				<?php 
    if ($connected_form) {
        ?>
					<div class="row collapse">
						<div class="form-wrapper form-wrapper--job columns medium-10 small-12">
							<div class="form__inner">
								<div class="form__header">
									<h3>Job Application - </h3><h4> <?php 
        the_title();
        ?>
</h4>
								</div>
								<?php 
        gravity_form($connected_form, false, false, false, null, false);
        ?>
							</div>
						</div>
					</div>
				<?php 
    } else {
        ?>
				<?php 
    }
    ?>
			</div>
			<footer>
				<?php 
    wp_link_pages(array('before' => '<nav id="page-nav"><p>' . __('Pages:', 'foundationpress'), 'after' => '</p></nav>'));
    ?>
										<a href="tel:+3292331530">03 284 04 04</a><br/>
										<a href="mailto:info@urbis.be?subject=Reactie via lesbelles.be" target="_blank">info@urbis.be</a><br/>
										<a href="http://www.urbis.be" target="_blank">www.urbis.be</a>
									</p>
									<p style="margin-top: 1em">
										<span style="text-transform:uppercase">Urbis Waasland</span><br/>
										Plezantstraat 24/1<br>
										9100 Sint-Niklaas<br/>
										van ma-vr, van 9u-12u of op afspraak
									</p>
									<img src="<?php 
echo get_template_directory_uri();
?>
/img/logo-urbis-group.jpg">
								</li>
							</ul>
						</div>
					</div>
					<div class="form">
						<?php 
gravity_form(1, $display_title = false, $display_description = false, $display_inactive = false, $field_values = null, $ajax = true);
?>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<?php 
get_footer();
        echo $user->ID;
        ?>
"
								   data-reveal-id="gf-ping-form">
									Contact Host
								</a>
							</div>
						</li>
					<?php 
    }
    ?>
				</ul>
			<?php 
}
?>
		</main>
		<!-- #main -->
		<div id="gf-ping-form" class="reveal-modal" data-reveal aria-labelledby="modalTitle" aria-hidden="true"
		     role="dialog">
			<h2 id="modalTitle">Contact this host</h2>
			<?php 
if (function_exists('gravity_form')) {
    gravity_form(3);
}
?>
			<a class="close-reveal-modal" aria-label="Close">&#215;</a>
		</div>
	</div><!-- #primary -->

<?php 
get_footer();
Exemple #27
0
 function cap_person_bio($style, $person = null)
 {
     /**
      * Note from Seth:
      * I'm not happy with the css trickery and markup I've produced here. Eventually cleanup. This
      * was a quick and dirty implentation that would work across sites.
      */
     if (empty($person)) {
         global $wp_query;
         $person = $wp_query->get_queried_object();
     }
     $person_photo = get_field('person_photo', 'person_' . $person->term_id);
     $person_photo_hi_res = get_field('person_photo_hi_res', 'person_' . $person->term_id);
     // This field is only being used by ThinkProgress post ACF migration.
     // The field itself is registered only in the TP theme in fields.php
     $person_photo_legacy = get_field('person_photo_legacy', 'person_' . $person->term_id);
     $person_title = get_field('person_title', 'person_' . $person->term_id);
     $person_email = get_field('person_email', 'person_' . $person->term_id);
     $person_twitter_handle = get_field('person_twitter_handle', 'person_' . $person->term_id);
     if (!empty($person_photo)) {
         $person_photo_output = wp_get_attachment_image($person_photo, 'medium');
         $person_photo_hi_res_output = wp_get_attachment_image_src($person_photo_hi_res, 'full');
     }
     $markup = '<div class="person ' . $style . '">';
     // if the "full" style is being displayed then add the person name and title atop the bio
     if ('full' == $style) {
         $markup .= '<div class="person-title"><h1>' . $person->name . '<br><small>' . $person_title . '</small></h1></div>';
     }
     // begin the actual bio area
     $markup .= '<div class="person-bio">';
     if (!empty($person_photo)) {
         $markup .= '<div class="bio-pic">' . $person_photo_output;
         // optional hi res photo
         if (!empty($person_photo_hi_res_output)) {
             $markup .= '<div class="bio-pic-hi-res"><a href="' . $person_photo_hi_res_output[0] . '">' . __('Download hi-res', 'cap-byline') . '</a></div>';
         }
         $markup .= '</div>';
     } elseif (!empty($person_photo_legacy)) {
         $markup .= '<div class="bio-pic"><img src="' . $person_photo_legacy . '"></div>';
     }
     // get the bio and add it to $markup
     $markup .= '<div class="bio">';
     if (empty($style)) {
         $markup .= '<strong>' . $person->name . '</strong> ';
     }
     $markup .= $person->description;
     // if either an email addy or twitter handle are present lets add a hard line break for spacing
     if (!empty($person_email) || !empty($person_twitter_handle)) {
         $markup .= '<div id="contact-button-seperator"></div>';
     }
     // if the bio has an email associated add a contact modal form to $markup also check the form ID is present
     if (!empty($person_email)) {
         $markup .= '<a id="contact-modal-link" class="cap-contact-modal-link" href="javascript:void(0);"><img src="' . plugin_dir_url('cap-byline.php') . '/cap-byline/mail.png" width="18px"> ' . __('Contact', 'cap-byline') . ' ' . $person->name . '</a>';
         $markup .= '
         <script>
         jQuery(document).ready(function(){
             jQuery("#contact-modal-link").click(function(){
                     jQuery("#contact-modal").addClass("active");
             });
             jQuery("#contact-modal .close-modal").click(function(){
                     jQuery("#contact-modal").removeClass("active");
             });
         });
         </script>
         ';
         $markup .= '<div id="contact-modal" class="modal"><div class="modal-wrapper"><div class="close-modal"><img src="' . plugin_dir_url('cap-byline.php') . '/cap-byline/close_circle.png"></div><div class="modal-window">';
         $markup .= gravity_form(get_field('author_contact_form_id', 'options'), false, false, false, array('author_contact_email' => '' . $person->term_id . ''), true, 25, false);
         gravity_form_enqueue_scripts(get_field('author_contact_form_id', 'options'), true);
         $markup .= '</div></div></div>';
         $markup .= '
         <style>
         div.modal {
             display: none;
             position: fixed;
             top: 0;
             left: 0;
             height: 100%;
             width: 100%;
             background-color: rgba(0,0,0,0.6);
             z-index: 999;
         }
         div.modal.active {
             display: table;
         }
         div.modal-wrapper {
             display: table-cell;
             vertical-align: middle;
             z-index: 9999;
             text-align: center;
         }
         div.modal-window {
             text-align: left;
             display: inline-block;
             min-width: 50%;
             background-color: #fff;
             padding: 2em;
         }
         div.close-modal {
             position: relative;
             bottom: -20px;
             text-align: right;
             width: 52%;
             margin: 0 auto;
         }
         #contact-modal-link {
             color: #000;
             font-weight: bold;
             position: relative;
             top: -4px;
         }
         #contact-modal-link img {
             position: relative;
             top: 3px;
         }
         span#twitter-follow {
             margin-left: 5px;
         }
         #contact-button-seperator {
             height: 15px;
         }
         </style>
         ';
     }
     // if the bio has a twitter handle associated add the follow button to $markup
     if (!empty($person_twitter_handle)) {
         $markup .= '<span id="twitter-follow"><a href="https://twitter.com/' . $person_twitter_handle . '" class="twitter-follow-button" data-show-count="false" data-lang="en">' . __('Follow', 'cap-byline') . ' @' . $person_twitter_handle . '</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></span>';
     }
     $markup .= '</div>';
     // close out .bio
     $markup .= '</div>';
     // close out .person-bio
     $markup .= '</div>';
     // close out .person .$style
     echo $markup;
 }
    /**
     * The callback function to be called to output the content for ez_sales_reps page.
     */
    public function page_html()
    {
        if (!current_user_can('manage_options')) {
            wp_die(__('You do not have sufficient permissions to access this page.'));
        }
        ?>
        <div class="wrap">
            <h2><?php 
        _e('E-Z Sales Representatives');
        ?>
</h2>
            <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
                <div class="panel">
                    <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
                        <div class="panel-heading" role="tab" id="headingOne">
                            <h3 class="panel-title">
                                <?php 
        _e('E-Z Sales Rep Registration');
        ?>
                            </h3>
                        </div>
                    </a>
                    <div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
                        <div class="panel-body">
                            <?php 
        gravity_form(3);
        ?>
                        </div>
                    </div>
                </div>
                <div class="panel">
                    <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="true" aria-controls="collapseOne">
                        <div class="panel-heading" role="tab" id="headingOne">
                            <h3 class="panel-title">
                                <?php 
        _e('E-Z Sales Rep Territory');
        ?>
                            </h3>
                        </div>
                    </a>
                    <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
                        <div class="panel-body">
                            <label for="rep_select_terr">E-Z Sales Rep:</label>
                            <select class="form-control" id="rep_select_terr" style="display: inline; width: 150px;">
                                <option>--Select--</option>
                                <?php 
        echo $this->rep_rows;
        ?>
                            </select>
                            <section id="update_terr">

                            </section>
                        </div>
                    </div>
                </div>
                <div class="panel panel-default">
                    <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="true" aria-controls="collapseTwo">
                        <div class="panel-heading" role="tab" id="headingTwo">
                            <h3 class="panel-title">
                                <?php 
        _e('Reporting');
        ?>
                            </h3>
                        </div>
                    </a>
                    <div id="collapseTwo" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingTwo">
                        <label for="rep_select_reporting" style="margin: 20px">E-Z Sales Rep:</label>
                        <select class="form-control" id="rep_select_reporting" style="display: inline; width: 150px;">
                            <option>--All--</option>
                            <?php 
        echo $this->rep_rows;
        ?>
                        </select>
                        <div class="panel-body">
                            <button class="btn btn-primary btn-sm exp2csv" id="biz2csv" type="button" style="float:right">Export as CSV</button>
                            <h4>Registered Businesses by Sales Rep</h4>
                            <table class="table table-striped table-bordered table-hover table-condensed" id="businesses">
                                <thead>
                                <tr>
                                    <th>Business Name</th>
                                    <th>Contact</th>
                                    <th>Address</th>
                                    <th>City</th>
                                    <th>State</th>
                                    <th>ZIP</th>
                                    <th>Status</th>
                                    <th>MRC</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php 
        echo $this->biz_rows;
        ?>
                                </tbody>
                            </table>
                            <button class="btn btn-primary btn-sm exp2csv" id="trx2csv" type="button" style="float:right; margin-bottom: 8px;">Export as CSV</button>
                            <h4 style="display: inline;">Transactions by Sales Rep</h4>
                            <fieldset style="display: inline; margin-left: 50px;">
                                <label for="trx_from">From:</label><input id="trx_from" class="trx_datepicker" type="text">
                                <label for="trx_to">To:</label><input id="trx_to" class="trx_datepicker" type="text">
                            </fieldset>
                            <table class="table table-striped table-bordered table-hover table-condensed" id="trx">
                                <thead>
                                <tr>
                                    <th>User / Email / Order ID</th>
                                    <th>Price Package</th>
                                    <th>Amount</th>
                                    <th>Payment Method</th>
                                    <th>Paid On</th>
                                    <th>Status</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php 
        echo $this->trx_rows;
        ?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <?php 
    }
	.woocommerce .cart-collaterals .cart_totals{
		width: 100%;
	}
	.cart_totals{
		display: none;
	}
	td.actions{
		display: none !important; 
	}
</style>
<section class="content">
	<div class="row">
		<ul class="tabs" data-tabs id="enroll-tabs">
		    <li class="tabs-title is-active"><a href="#male" aria-selected="true">Male</a></li>
		    <li class="tabs-title"><a href="#female">Female</a></li>
		</ul>
		<div class="tabs-content" data-tabs-content="enroll-tabs">
			<div class="tabs-panel is-active" id="male">
			<?php 
gravity_form(8, $display_title = false, $display_description = false, $display_inactive = false, $field_values = null, $ajax = true, $tabindex, $echo = true);
?>
			</div>
			<div class="tabs-panel" id="female">
			<?php 
gravity_form(9, $display_title = false, $display_description = false, $display_inactive = false, $field_values = null, $ajax = true, $tabindex, $echo = true);
?>
			</div>
		</div>
	</div>
</section>
Exemple #30
0
    */
    ?>



</section>
<?php 
}
?>




<section class="section home newsletter">
	<div class="wrapper">
		
	<header class="page-header">
		<h1>Email newsletter</h1>
		<h2>Never miss out on new tutorials, products or reviews. No spam, I promise.</h2>
	</header>
		<?php 
if (function_exists('gravity_form')) {
    gravity_form('Email Newsletter', false, false, false, '', true);
}
?>
		<!-- <p>Subscribe to my weekly newsletter above and </p> -->
	</div>
</section>

<?php 
get_footer();