コード例 #1
0
ファイル: calc.php プロジェクト: Qclanton/Tonelp
				markEmptyFields(check_result.error_fields);
				
				// Handler for unmark fields
				$j('.consistency-check-failed').on('change', function() {
					$j(this).removeClass('consistency-check-failed');
				});
				
				return false;
			}
			// End of check
			
									
			
			var data = $j('#phone-system-builder-form').serialize();
			var url = '<?php 
echo get_site_subfolder();
?>
/wp-admin/admin-ajax.php';

			$j('.buttons').html('');
			$j('.sending').html('<span>Sending email...</span>');
			$j.post(url, data, function(response) {
				if (response == 10 || response == 1) {
					$j('#phone-system-builder--step-1').hide();
					$j('#phone-system-builder--step-2').hide();
					$j('#phone-system-builder--step-3').hide();
					$j('#phone-system-builder--step-4').show();
					
					$j('#return-section')[0].click();
				}
			});
コード例 #2
0
ファイル: functions.php プロジェクト: Qclanton/Tonelp
function is_home_ru()
{
    $request_uri = str_replace(get_site_subfolder(), '', $_SERVER['REQUEST_URI']);
    return in_array($request_uri, array('/index.php/', '/')) ? true : false;
}
コード例 #3
0
ファイル: functions.php プロジェクト: Qclanton/ystroi
function is_home_ru()
{
    $request_uri = str_replace(get_site_subfolder(), "", $_SERVER['REQUEST_URI']);
    return in_array($request_uri, ["/index.php/", "/"]);
}