This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SEARCH FORM HEADER | |
function search_form_header( $form ) { | |
$form = '<form method="get" id="header-searchform" action="' . home_url( '/' ) . '" > | |
<div> | |
<div class="searchform-left"></div> | |
<input class="searchform-mid clearit" type="text" name="search" id="search-header" value="Search" /> | |
<div class="searchform-right"></div> | |
</div> | |
</form>'; | |
return $form; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('WP_USE_THEMES', false); | |
require ('/home/sites/mysite.co.uk/www/wp/wp-load.php'); | |
$ajaxCounty = $_GET['varCounty']; | |
$ajaxTown = $_GET['varTown']; | |
$dealerResults = new WP_Query(array( | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- THE SCRIPT --> | |
<?php echo do_shortcode('[gravityform id="3" name="Competition Entry" ajax="true"]'); ?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function($) { | |
var countryClass = '.dealer-country', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('WP_USE_THEMES', false); | |
require('/home/sites/mission-rossi.com/www/wp/wp-load.php'); | |
?> | |
<!DOCTYPE html> | |
<html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function dealer_search_fn(){ | |
check_ajax_referer( 'dealer_search', 'nonce' ); | |
$ajaxCounty = $_POST['varCounty']; | |
$ajaxTown = $_POST['varTown']; | |
$dealerResults = new WP_Query(array( | |
'post_type' => 'dealer', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h3>Network Access Privileges</h3> | |
<table class="form-table"> | |
<tbody> | |
<tr> | |
<th scope="row">My Site Title</th> | |
<td> | |
<label for="comment_shortcuts"> | |
<input type="checkbox" name="" id="" value="true"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="submitdiv" class="postbox "> | |
<div class="handlediv" title="Click to toggle"><br></div> | |
<h3 class="hndle"><span>Remove Dupicate Images</span></h3> | |
<div class="inside"> | |
<div class="submitbox" id="submitpost"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* showing duplicated box */ | |
function print_duplicated_image_box( $post ) { | |
wp_nonce_field( 'remove_duplicated_nonce_action', 'remove_duplicated_nonce' ); ?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function($){ | |
$('#scan-images-duplicated, #delete-images-duplicated').click(function(e){ | |
e.preventDefault(); | |
var order = $(this).hasClass('scanimages') ? 'scan' : 'delete_all', | |
p_data = { | |
action: 'galleryduplicate', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SEND EMAIL WHAT SHOW ON CUSTOM BOX | |
function print_my_custom_notification_box( $post ) { | |
wp_nonce_field( 'my_custom_notification_box_nonce_action', 'my_custom_notification_box_nonce_field' ); ?> | |
<script type="text/javascript"> | |
jquery(document).ready(function($){ | |
$('#mynotification-box-button').click(function(e){ | |
e.preventDefault(); | |
$('#mynotification-box .spinner').show(); | |
$.ajax({ url: ajaxurl, data: { action: 'sendnotification', postID: $('#post_ID').val(), my_notification_nonce: $('#my_custom_notification_box_nonce_field').val() }, |
OlderNewer