コード例 #1
0
 private function load_captchabestwebsoft()
 {
     if (function_exists('cptch_register_form')) {
         ob_start();
         if (function_exists('cptch_display_captcha_custom')) {
             echo "<input type='hidden' name='cntctfrm_contact_action' value='true' />";
             echo cptch_display_captcha_custom();
         }
         if (function_exists('cptchpr_display_captcha_custom')) {
             echo "<input type='hidden' name='cntctfrm_contact_action' value='true' />";
             echo cptchpr_display_captcha_custom();
         }
         $display = ob_get_clean();
         return $display;
     } else {
         return '';
     }
 }
コード例 #2
0
                            	<p class="captcha_login" style="text-align:center">
                            	<?php 
if (function_exists('cptch_check_custom_form') && cptch_check_custom_form() !== true || function_exists('cptchpr_check_custom_form') && cptchpr_check_custom_form() !== true) {
    echo "Please complete the CAPTCHA.";
}
?>
                            	</p>
                            	<p class="captcha_login" style="text-align:center">
								<?php 
if (function_exists('cptch_display_captcha_custom')) {
    echo "<input type='hidden' name='cntctfrm_contact_action' value='true' />";
    echo cptch_display_captcha_custom();
}
if (function_exists('cptchpr_display_captcha_custom')) {
    echo "<input type='hidden' name='cntctfrm_contact_action' value='true' />";
    echo cptchpr_display_captcha_custom();
}
?>
                            	</p>
                     </div>
							<div class="submit login_input">
									<input type="submit" class="btn_login" name="login" id="login" value="LOGIN" />
									<?php 
echo APP_Login::redirect_field();
?>
									<input type="hidden" name="testcookie" value="1" />
							</div>
                            <div class="clr or_icon"></div>
                                  
							</div>
							<div class="clr"></div>
コード例 #3
0
ファイル: subscriber.php プロジェクト: axovel/tattoo
        /**
         * Function to displaying widget in front end
         * @param  array()     $args      array with sidebar settings 
         * @param  array()     $instance  array with widget settings
         * @return void
         */
        public function widget($args, $instance)
        {
            global $cptchpr_options;
            $widget_title = isset($instance['widget_title']) ? $instance['widget_title'] : null;
            if (isset($instance['widget_apply_settings']) && '1' == $instance['widget_apply_settings']) {
                /* load plugin settings */
                global $sbscrbr_options;
                if (empty($sbscrbr_options)) {
                    $sbscrbr_options = is_multisite() ? get_site_option('sbscrbr_options') : get_option('sbscrbr_options');
                }
                $widget_form_label = $sbscrbr_options['form_label'];
                $widget_placeholder = $sbscrbr_options['form_placeholder'];
                $widget_checkbox_label = $sbscrbr_options['form_checkbox_label'];
                $widget_button_label = $sbscrbr_options['form_button_label'];
            } else {
                /* load widget settings */
                $widget_form_label = isset($instance['widget_form_label']) ? $instance['widget_form_label'] : null;
                $widget_placeholder = isset($instance['widget_placeholder']) ? $instance['widget_placeholder'] : __('E-mail', 'subscriber');
                $widget_checkbox_label = isset($instance['widget_checkbox_label']) ? $instance['widget_checkbox_label'] : __('unsubscribe', 'subscriber');
                $widget_button_label = isset($instance['widget_button_label']) ? $instance['widget_button_label'] : __('Subscribe', 'subscriber');
            }
            /* get report message */
            $report_message = sbscrbr_handle_form_data();
            echo $args['before_widget'] . $args['before_title'] . $widget_title . $args['after_title'];
            ?>
			<form method="post" action="<?php 
            echo $_SERVER["REQUEST_URI"];
            ?>
" id="subscrbr-form-<?php 
            echo $args['widget_id'];
            ?>
" class="subscrbr-sign-up-form" style="position: relative;">
				<?php 
            if (empty($report_message)) {
                echo !empty($widget_form_label) ? '<p>' . $widget_form_label . '</p>' : "";
            } else {
                echo $report_message;
            }
            ?>
				<p>
					<input type="text" name="sbscrbr_email" value="" placeholder="<?php 
            echo $widget_placeholder;
            ?>
"/>
				</p>
				<p>
					<label for="sbscrbr-<?php 
            echo $args['widget_id'];
            ?>
">
						<input id="sbscrbr-<?php 
            echo $args['widget_id'];
            ?>
" type="checkbox" name="sbscrbr_unsubscribe" value="yes" style="vertical-align: middle;"/> 
						<?php 
            echo $widget_checkbox_label;
            ?>
					</label>
				</p>
				<?php 
            if (isset($cptchpr_options['cptchpr_subscriber']) && 1 == $cptchpr_options['cptchpr_subscriber']) {
                if (function_exists('cptchpr_display_captcha_custom')) {
                    echo '<p class="cptchpr_block">';
                    if ("" != $cptchpr_options['cptchpr_label_form']) {
                        echo '<label>' . stripslashes($cptchpr_options['cptchpr_label_form']) . '<span class="required"> ' . $cptchpr_options['cptchpr_required_symbol'] . '</span></label><br />';
                    }
                    echo "<input type='hidden' name='cntctfrm_contact_action' value='true' />" . cptchpr_display_captcha_custom() . '</p>';
                }
            }
            ?>
				<p class="sbscrbr-submit-block" style="position: relative;">
					<input type="submit" value="<?php 
            echo $widget_button_label;
            ?>
" name="sbscrbr_submit_email" class="submit" />
				</p>
			</form>
			<?php 
            echo $args['after_widget'];
        }