Færdiggjort

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>";

Evner: PHP, Software Arkitektur

Se mere: 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

Om arbejdsgiveren:
( 2 bedømmelser ) Dallas, United States

Projekt ID: #14039043

Tildelt til:

$550 USD in 5 dage
(25 bedømmelser)
5.0

7 freelancere byder i gennemsnit $570 på dette job

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 Flere

$773 USD in 15 dage
(20 bedømmelser)
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 Flere

$560 USD in 15 dage
(12 bedømmelser)
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 Flere

$555 USD in 10 dage
(5 bedømmelser)
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 Flere

$443 USD in 10 dage
(6 bedømmelser)
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 [url removed, login to view] have specialists of Flere

$555 USD in 10 dage
(3 bedømmelser)
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 Flere

$555 USD in 10 dage
(1 bedømmelse)
0.0