<?php wp_head(); ?> </head> <body <?php body_class(); ?> > <?php pls_do_atomic('open_body'); ?> <?php pls_do_atomic('before_header'); ?> <div class="wrapper"> <header id="lvl1"> <div id="container"> <section class="lrpad10"> <section class="company-logo"> <?php if ($logo) { ?> <div id="logo"> <a href="<?php echo esc_url(home_url('/'));
/** * Primary Menu Template * * Displays the Primary Menu if it has active menu items. * * @package PlacesterBlueprint * @subpackage Template */ pls_do_atomic('before_menu_primary'); ?> <nav class="main-nav grid_12 alpha" role="navigation"> <?php pls_do_atomic('open_menu_primary'); ?> <?php wp_nav_menu(array('theme_location' => 'primary', 'container' => '', 'menu_class' => 'primary', 'link_after' => '<span></span>')); ?> <?php pls_do_atomic('close_menu_primary'); ?> </nav><!-- #menu-primary .menu-container --> <?php pls_do_atomic('after_menu_primary'); ?>
<?php } else { ?> <?php pls_do_atomic('before_sidebar_primary'); ?> <aside id="sidebar-primary" class="grid_4 omega sidebar"> <?php pls_do_atomic('open_sidebar_primary'); ?> <?php PLS_Route::handle_default_sidebar(); ?> <?php pls_do_atomic('close_sidebar_primary'); ?> </aside><!-- #sidebar-primary .aside --> <?php pls_do_atomic('after_sidebar_primary'); ?> <?php }
</div> <div style="clear:both"></div> </div><!-- .comments-nav --> <?php } ?> <ol class="comment-list"> <?php wp_list_comments(array('style' => 'ol', 'type' => 'all', 'avatar_size' => 80)); ?> </ol><!-- .comment-list --> <?php pls_do_atomic('before_comment_list'); ?> <?php } ?> <?php if (pings_open() && !comments_open()) { ?> <p class="comments-closed pings-open"> <?php printf('Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', get_trackback_url()); ?> </p><!-- .comments-closed .pings-open -->
} ?> <?php pls_do_atomic('close_footer'); ?> </footer> <?php pls_do_atomic('after_footer'); ?> </div> <!-- #container --> <?php pls_do_atomic('close_container'); ?> <?php wp_footer(); ?> <?php pls_do_atomic('close_body'); ?> </body> </html>
private function build_signup_form($args) { if (!is_user_logged_in()) { ob_start(); ?> <div style="display:none;"> <form method="post" action="#<?php echo $role; ?> " id="pl_lead_register_form" name="pl_lead_register_form" class="pl_login_reg_form" autocomplete="off"> <div style="display:none" class="success">You have been successfully signed up. This page will refresh momentarily.</div> <div id="pl_lead_register_form_inner_wrapper"> <?php pls_do_atomic('register_form_before_title'); ?> <h2>Sign Up</h2> <?php pls_do_atomic('register_form_before_email'); ?> <p class="reg_form_email"> <label for="user_email">Email</label> <input type="text" tabindex="25" size="20" required="required" class="input" id="reg_user_email" name="user_email" data-message="A valid email is needed." placeholder="Email"> </p> <?php pls_do_atomic('register_form_before_password'); ?> <p class="reg_form_pass"> <label for="user_password">Password</label> <input type="password" tabindex="26" size="20" required="required" class="input" id="reg_user_password" name="user_password" data-message="Please enter a password." placeholder="Password"> </p> <?php pls_do_atomic('register_form_before_confirm_password'); ?> <p class="reg_form_confirm_pass"> <label for="user_confirm">Confirm Password</label> <input type="password" tabindex="27" size="20" required="required" class="input" id="reg_user_confirm" name="user_confirm" data-message="Please confirm your password." placeholder="Confirm Password"> </p> <?php pls_do_atomic('register_form_before_submit'); ?> <p class="reg_form_submit"> <input type="submit" tabindex="28" class="submit button" value="Register" id="pl_register" name="pl_register"> </p> <?php echo wp_nonce_field('placester_true_registration', 'register_nonce_field'); ?> <input type="hidden" tabindex="29" id="register_form_submit_button" name="_wp_http_referer" value="/listings/"> <?php pls_do_atomic('register_form_after_submit'); ?> </div> </form> </div> <?php $result = ob_get_clean(); } else { ob_start(); ?> <div style="display:none"> <div class="pl_error error" id="pl_lead_register_form"> You cannot register a user if you are logged in. You shouldn't even see a "Register" link. </div> </div> <?php $result = ob_get_clean(); } return $result; }
| <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments' . '»', '1 Comment' . '»', '% Comments' . '»'); ?> </footer> <?php pls_do_atomic('close_entry'); ?> </article> <?php pls_do_atomic('after_entry'); ?> <?php } ?> <nav class="posts"> <div class="prev"><?php next_posts_link('« Older Entries'); ?> </div> <div class="next"><?php previous_posts_link('Newer Entries »'); ?> </div>
public function widget($args, $instance) { global $post; if (!empty($post) && isset($post->post_type) && $post->post_type == 'property') { $data = PLS_Plugin_API::get_listing_in_loop(); } else { $data = array(); } // Labels and Values $title = apply_filters('widget_title', empty($instance['title']) ? ' ' : $instance['title']); $success_message = apply_filters('success_message', empty($instance['success_message']) ? 'Thank you for the email, we\'ll get back to you shortly' : $instance['success_message']); $submit_value = apply_filters('button', empty($instance['button']) ? 'Send' : $instance['button']); $email_label = apply_filters('email_label', !isset($instance['email_label']) ? 'Email Address (required)' : $instance['email_label']); $email_value = apply_filters('email_value', !isset($instance['email_value']) ? 'Email Address' : $instance['email_value']); $phone_label = apply_filters('phone_label', !isset($instance['phone_label']) ? 'Phone Number (required)' : $instance['phone_label']); $phone_value = apply_filters('phone_value', !isset($instance['phone_value']) ? 'Phone Number' : $instance['phone_value']); $subject_label = apply_filters('subject_label', !isset($instance['subject_label']) ? 'Subject' : $instance['subject_label']); $subject_value = apply_filters('subject_value', !isset($instance['subject_value']) ? 'Subject' : $instance['subject_value']); $departments_label = apply_filters('departments_label', !isset($instance['departments_label']) ? 'Department' : $instance['departments_label']); $departments_value = apply_filters('departments_value', !isset($instance['departments_value']) ? 'Department' : $instance['departments_value']); $include_name = isset($instance['include_name']) && $instance['include_name'] == "false" ? false : true; $name_label = apply_filters('name_label', !isset($instance['name_label']) ? 'Name (required)' : $instance['name_label']); $name_value = apply_filters('name_value', !isset($instance['name_value']) ? 'Name' : $instance['name_value']); $question_label = apply_filters('question_label', !isset($instance['question_label']) ? 'Questions/Comments' : $instance['question_label']); $question_value = apply_filters('question_value', !isset($instance['question_value']) ? 'Any questions for us?' : $instance['question_value']); $custom_link = apply_filters('custom_link', !isset($instance['custom_link']) ? '' : $instance['custom_link']); $custom_link_target = apply_filters('custom_link_target', !isset($instance['custom_link_target']) ? '_blank' : $instance['custom_link_target']); $form_title = apply_filters('form_title', !isset($instance['form_title']) ? '' : $instance['form_title']); // Reguired Attribute $name_required = isset($instance['name_required']) && $instance['name_required'] == "false" ? false : true; $email_required = isset($instance['email_required']) && $instance['email_required'] == "false" ? true : true; $phone_required = isset($instance['phone_required']) && $instance['phone_required'] == "true" ? true : false; $subject_required = isset($instance['subject_required']) && $instance['subject_required'] == "true" ? true : false; $question_required = isset($instance['question_required']) && $instance['question_required'] == "false" ? false : true; // Error Messages $name_error = isset($instance['name_error']) && $instance['name_error'] != "" ? $instance['name_error'] : "Your name is required."; $email_error = isset($instance['email_error']) && $instance['email_error'] != "" ? $instance['email_error'] : "A valid email is required."; $phone_error = isset($instance['phone_error']) && $instance['phone_error'] != "" ? $instance['phone_error'] : "A valid phone is required."; $question_error = isset($instance['question_error']) && $instance['question_error'] != "" ? $instance['question_error'] : "Don't forget to leave a question or comment."; $subject_error = isset($instance['subject_error']) && $instance['subject_error'] != "" ? $instance['subject_error'] : "What subject would you like to speak about?"; // Classes $container_class = apply_filters('container_class', empty($instance['container_class']) ? '' : $instance['container_class']); $inner_class = apply_filters('inner_class', empty($instance['inner_class']) ? '' : $instance['inner_class']); $inner_containers = apply_filters('inner_containers', empty($instance['inner_containers']) ? '' : $instance['inner_containers']); $textarea_container = apply_filters('textarea_container', !isset($instance['textarea_container']) ? $inner_containers : $instance['textarea_container']); $button_class = apply_filters('button_class', !isset($instance['button_class']) ? 'button-primary' : $instance['button_class']); // Send To Options $email_confirmation = apply_filters('email_confirmation', empty($instance['email_confirmation']) ? false : $instance['email_confirmation']); $send_to_email = apply_filters('send_to_email', !isset($instance['send_to_email']) ? '' : $instance['send_to_email']); $cc_value = apply_filters('cc_value', !isset($instance['cc_value']) ? '' : $instance['cc_value']); $bcc_value = apply_filters('bcc_value', !isset($instance['bcc_value']) ? '' : $instance['bcc_value']); // Lead Capture Cookie $lead_capture_cookie = apply_filters('lead_capture_cookie', !isset($instance['lead_capture_cookie']) ? '' : $instance['lead_capture_cookie']); // Form Options // Get lead capture's force-back theme option from admin $back_on_lc_cancel_option = pls_get_option('pd-lc-force-back'); if (!empty($instance['back_on_lc_cancel'])) { // if option has been set in the contact form call $back_on_lc_cancel = apply_filters('back_on_lc_cancel', !isset($instance['back_on_lc_cancel']) ? '' : $instance['back_on_lc_cancel']); } elseif (isset($back_on_lc_cancel_option)) { // Elseif the theme option is set, let the theme option set the force-back for canceling the lead capture form $back_on_lc_cancel = $back_on_lc_cancel_option; } else { // else, don't force users back $back_on_lc_cancel = 0; } $show_property = isset($instance['show_property']) && !empty($instance['show_property']) ? 1 : 0; $template_url = get_template_directory_uri(); /** Define the default argument array. */ $defaults = array('before_widget' => '<section class="side-ctnr placester_contact ' . $container_class . ' widget">', 'after_widget' => '</section>', 'title' => '', 'before_title' => '<h3>', 'after_title' => '</h3>'); /** Merge the arguments with the defaults. */ $args = wp_parse_args($args, $defaults); extract($args, EXTR_SKIP); ?> <?php pls_do_atomic('contact_form_before_widget'); ?> <?php echo $before_widget; ?> <?php pls_do_atomic('contact_form_before_title'); ?> <?php echo $before_title . $title . $after_title; ?> <?php pls_do_atomic('contact_form_after_title'); ?> <section class="<?php echo $inner_class; ?> common-side-cont placester_contact_form clearfix"> <div class="success"><?php echo $success_message; ?> </div> <form name="widget_contact" action="" method="post"> <?php //this must be included to get additional user data; ?> <input type="hidden" name="ip" value="<?php print $ip = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; ?> "/> <input type="hidden" name="user_agent" value="<?php print $_SERVER['HTTP_USER_AGENT']; ?> "/> <input type="hidden" name="url" value="<?php print 'https://' . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; ?> "/> <?php if (isset($lead_capture_cookie) && $lead_capture_cookie == true) { ?> <input type="hidden" name="lead_capture_cookie" value="true"> <?php } ?> <input type="hidden" name="id" value="<?php if (isset($data['id'])) { echo $data['id']; } ?> "> <input type="hidden" name="fullAddress" value="<?php echo @self::_get_full_address($data); ?> "> <input type="hidden" name="email_confirmation" value="<?php echo $email_confirmation; ?> "> <input type="hidden" name="send_to_email" value="<?php echo $send_to_email; ?> "> <input type="hidden" name="cc_value" value="<?php echo @$cc_value; ?> "> <input type="hidden" name="bcc_value" value="<?php echo @$bcc_value; ?> "> <input type="hidden" name="back_on_lc_cancel" value="<?php echo @$back_on_lc_cancel; ?> "> <input type="hidden" name="form_submitted" value="0"> <input type="hidden" name="custom_link" value="<?php echo @$custom_link; ?> "> <input type="hidden" name="custom_link_target" value="<?php echo @$custom_link_target; ?> "> <input type="hidden" name="form_title" value="<?php echo @$form_title; ?> "> <?php if (!empty($include_name)) { ?> <?php echo empty($instance['inner_containers']) ? '' : '<div class="' . $instance['inner_containers'] . '">'; ?> <label class="required" for="name"><?php echo $name_label; ?> </label> <input class="required" id="name" placeholder="<?php echo $name_value; ?> " type="text" name="name" <?php echo $name_required == true ? 'required="required"' : ''; ?> <?php echo !empty($name_error) ? 'data-message="' . $name_error . '"' : ''; ?> /> <?php echo empty($instance['inner_containers']) ? '' : '</div>'; ?> <?php } ?> <?php echo empty($instance['inner_containers']) ? '' : '<div class="' . $instance['inner_containers'] . '">'; ?> <label class="required" for="email"><?php echo $email_label; ?> </label><input class="required" id="email" placeholder="<?php echo $email_value; ?> " type="email" name="email" <?php echo $email_required == true ? 'required="required"' : ''; ?> <?php echo !empty($email_error) ? 'data-message="' . $email_error . '"' : ''; ?> /> <?php echo empty($instance['inner_containers']) ? '' : '</div>'; ?> <?php if (!empty($instance['phone_number'])) { ?> <?php echo empty($instance['inner_containers']) ? '' : '<div class="' . $instance['inner_containers'] . '">'; ?> <label class="required" for="phone"><?php echo $phone_label; ?> </label><input class="required" id="phone" placeholder="<?php echo $phone_value; ?> " type="text" name="phone" <?php echo $phone_required == true ? 'required="required"' : ''; ?> <?php echo !empty($phone_error) ? 'data-message="' . $phone_error . '"' : ''; ?> /> <?php echo empty($instance['inner_containers']) ? '' : '</div>'; ?> <?php } ?> <?php if (!empty($instance['subject'])) { ?> <?php echo empty($instance['inner_containers']) ? '' : '<div class="' . $instance['inner_containers'] . '">'; ?> <label class="required" for="subject"><?php echo $subject_label; ?> </label><input class="required" id="subject" placeholder="<?php echo $subject_value; ?> " type="text" name="subject" <?php echo $subject_required == true ? 'required="required"' : ''; ?> <?php echo !empty($subject_error) ? 'data-message="' . $subject_error . '"' : ''; ?> /> <?php echo empty($instance['inner_containers']) ? '' : '</div>'; ?> <?php } ?> <?php if (!empty($instance['departments'])) { ?> <?php echo empty($instance['inner_containers']) ? '' : '<div class="' . $instance['inner_containers'] . '">'; ?> <label class="required" for="department"><?php echo $departments_label; ?> </label> <?php $departments = explode(',', $instance['departments']); ?> <select id="department" placeholder="<?php echo $departments_value; ?> " name="department"> <?php foreach ($departments as $department) { ?> <option value="<?php echo $department; ?> "><?php echo $department; ?> </option> <?php } ?> </select> <?php echo empty($instance['inner_containers']) ? '' : '</div>'; ?> <?php } ?> <?php if ($show_property == 1) { ?> <?php $full_address = @self::_get_full_address($data); if (!empty($full_address)) { ?> <?php echo empty($instance['inner_containers']) ? '' : '<div class="' . $instance['inner_containers'] . '">'; ?> <label>Property</label><span class="info"><?php echo str_replace("\n", " ", $full_address); ?> </span> <?php echo empty($instance['inner_containers']) ? '' : '</div>'; ?> <?php } ?> <?php } ?> <?php echo empty($instance['textarea_container']) ? '' : '<div class="' . $instance['textarea_container'] . '">'; ?> <label for="question"><?php echo $question_label; ?> </label> <textarea rows="5" id="question" name="question" placeholder="<?php echo $question_value; ?> " <?php echo $question_required == true ? 'required="required"' : ''; ?> <?php echo !empty($question_error) ? 'data-message="' . $question_error . '"' : ''; ?> ></textarea> <?php echo empty($instance['textarea_container']) ? '' : '</div>'; ?> <input type="submit" value="<?php echo $submit_value; ?> " class="<?php echo $button_class; ?> " /> <div class="pls-contact-form-loading" style='display:none;'> <div id="medium-spinner"><div class="bar1"></div><div class="bar2"></div><div class="bar3"></div><div class="bar4"></div><div class="bar5"></div><div class="bar6"></div><div class="bar7"></div><div class="bar8"></div></div> </div> </form> </section> <div class="separator"></div> <?php echo $after_widget; ?> <?php pls_do_atomic('contact_form_after_widget'); ?> <?php }
?> </hgroup> <?php pls_do_atomic('header'); ?> <div class="header-membership"><?php echo PLS_Plugin_API::placester_lead_control_panel(array('separator' => '|')); ?> </div> </div> <?php pls_do_atomic('before_nav'); ?> <?php PLS_Route::get_template_part('menu', 'primary'); // Loads the menu-primary.php template. ?> <?php pls_do_atomic('close_header'); ?> </header> <?php pls_do_atomic('after_header');
?> <?php pls_do_atomic('before_menu_subsidiary'); ?> <section class="footer-nav" role="navigation"> <?php pls_do_atomic('open_menu_subsidiary'); ?> <?php wp_nav_menu(array('container' => '', 'theme_location' => 'subsidiary', 'menu_class' => '', 'link_after' => '<span></span>')); ?> <?php pls_do_atomic('close_menu_subsidiary'); ?> </section><!-- #menu-subsidiary .menu-container --> <?php pls_do_atomic('after_menu_subsidiary'); ?> <?php } ?>