Completed

Write some Software

We have 50 state pages on our website.

Using the Keypath API, we can query at a state level. i.e. - [url removed, login to view]

On each of our state pages, I want to display the state level schools results in a mobile friendly view (2 columns).

On each state page I could put some shortcode where I want the school listings to display.

I am thinking that we could create a WordPress “State Page” template that includes something similar to the following:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

// ALABAMA

IF URL = [url removed, login to view]'

RUN this API request [url removed, login to view]

POST search results to [url removed, login to view]

__ELSE______________________________________

// ALASKA

IF URL = '[url removed, login to view]'

RUN this API request [url removed, login to view]

POST search results to [url removed, login to view]

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

// PRINT RESULTS TO STATE PAGES

<?php

print "<h1 style='margin-left:15px'>Schools</h1>

<p style='margin-left:15px'>Thank you for your interest in becoming a park ranger in '$STATE' </p>";

function no_results() {

print "<h4>No results from your Query.</h4>";

print "<button onclick='goBack()' >Back to Search</button>";

}

print "<div class='statepageresults'>";

$szStateResultsFields = "SchoolName,CampusName,CampaignName";

$aStateResultsFields = explode(",",$szSearchResultsFields);

if(count($results) == 0) {

no_results();

}

foreach($results as $thisone) {

if(is_object($thisone)) {

if(1 == 2) {

print "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>\n";

print_r($thisone);

print "\n";

}

} else {

if(count($thisone) == 0) {

no_results();

}

foreach($thisone as $thatone) {

print "<div class='results-row'>";

print "<h2>{$thatone->SchoolName}</h2>";

print "<div class='results-content'>";

if( ($thatone->SchoolLogoUrl != '') && (strstr($thatone->SchoolLogoUrl,'keypath') ) )

$thatone->SchoolLogoUrl = "/[url removed, login to view]" . base64_encode($thatone->SchoolLogoUrl);

print "<img src='{$thatone->SchoolLogoUrl}' />";

print "<ul class='results-curriculums'>";

foreach($thatone->Curriculums as $atom) {

print "<li>\t{$atom->Name}\n</li>";

}

print "</ul>";

if($thatone->IsOnline == 1) {

print "<p class='results-location'>Location: Online</p>";

} else {

print "<p class='results-location'>Location: {$thatone->City}, {$thatone->State} {$thatone->Zip}</p>";

}

if($thatone->Distance > 0)

print "<p class='results-distance'>Distance: {$thatone->Distance} miles</p>";

print "</div><!--// end results-content -->";

print "<div class='reqbutton'>";

print $this->ContactFormId_link($thatone->ContactFormId,$thatone->CampaignId,$thatone->SearchHistoryId,$thatone->RequiresLeadiDVerification) . "\n";

print "</div>";

print "</div><!--// end results-row -->";

print "\n";

if( (isset($_REQUEST['debug'])) && ($_REQUEST['debug'] == 1) ) {

print "<pre>";

print_r($thisone);

print "</pre>";

}

}

print "\n";

}

}

print "</div>";

Habilidades: PHP, Arquitectura de software

Ver más: software write mq4, software write chip epson, useful software write book, software write web specs, free software write user guide, software write edid, free software write company profile, software write websites idea, write mips code accept number print, write program read numbers find print, software write book images, software write books, software write protection, free software write book, software write book, write critical path, software write protect software, software write technical manual

Información del empleador:
( 2 comentarios ) Dallas, United States

Nº del proyecto: #14039043

Adjudicado a:

$550 USD en 5 días
(25 comentarios)
5.0

7 freelancers están ofertando el promedio de $570 para este trabajo

Shopify

Hi, I (Myself a senior PHP Developer) have a team having experience of more than 10 years in developing web and mobile applications. I have a team of expert programmers who write robust and bug-free codes at the ve Más

$773 USD en 15 días
(20 comentarios)
6.9
amjohn

Hello, Hope you are doing well. I read your project description, let’s have a technical discussion then we understand, negotiate costing, timeline and then we proceed further. We will provide Services until You ge Más

$560 USD en 15 días
(12 comentarios)
4.4
FiveGoldenStar

My ability in Web Development will satisfy you completely. Have 8+ years of rich experience in all kinds of WEB Development especially Especially, I am quite competent to Social Networking, eCommerce, SEO, Personal F Más

$555 USD en 10 días
(5 comentarios)
4.0
Dreamofdesigners

Hello, Let me know the details about the website. I would like to discuss it with you after reading the requirement. I will finish it within 3 weeks. I am a Professional Developer with 7+ years of exper Más

$443 USD en 10 días
(6 comentarios)
2.6
bsoni3891

We make sure we understand exactly what it is you need and then provide you with the dedicated IT offshore development center or a IT team of just a few developers best suited to meet your [login to view URL] have specialists of Más

$555 USD en 10 días
(3 comentarios)
0.3
apmtc11

We are an in house team of PROFESSIONALS who always look to produce their best. Our goal is to provide effective web solutions that are focused on reducing your costs and adding to your bottom line. We have been provid Más

$555 USD en 10 días
(1 comentario)
0.0