-
Create the new repository in GitHub.
-
Make sure that you've checked out the code to your computer.
git clone https://[email protected]/USER/PROJECT.git
Or, if you already have the code checked out just pull.
Create the new repository in GitHub.
Make sure that you've checked out the code to your computer.
git clone https://[email protected]/USER/PROJECT.git
Or, if you already have the code checked out just pull.
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |
| { | |
| "name": "Custom theme", | |
| "settings": { | |
| "groups": [ | |
| { | |
| "name": "Group Name", | |
| "description": "Group description", | |
| "fields": [ | |
| { | |
| "name": "text_field", |
| <h1>Search Results</h1> | |
| {** map-canvas is where the map will be displayed **} | |
| <div id="map-canvas" style="height: 500px;"></div> | |
| {** Set the trail ids to be used in trail-search-results.js **} | |
| <script> | |
| if (typeof trailIds === 'undefined') { | |
| var trailIds = []; | |
| } |
| /** | |
| * Holds the ids of the trails matched in the search. | |
| * Depending on where you have your Javascript in the search results content template | |
| * that sets the list of trail ids, the trailIds variable may already be setup. | |
| */ | |
| if (typeof trailIds === 'undefined') { | |
| var trailIds = []; | |
| } | |
| /** |
| {if #global.request.post.id} | |
| {if #global.request.post.id isArray} | |
| {#global.request.post.id|implode glue="," output="no" saveAs="id"} | |
| {else} | |
| {#id|set value="{#global.request.post.id}"} | |
| {/if} | |
| {if #id} | |
| {ap_api:trails:trailFilter templateId="35" getTowns="yes" getCategories="no" getCounties="no" getContacts="no" getFeatures="no" getSegments="no" instanceKey="trails" attr[id]="{#id}"} | |
| {/if} | |
| {elseif #global.request.get.id} |
| function initTrailList() { | |
| initMap(function() { | |
| loadSegments(); | |
| }); | |
| } | |
| function loadSegments() { | |
| $.getJSON('/trail-list', function (data) { | |
| features = data.trailPoints; | |
| setupMarkers(); |
| {#trailPoints|array} | |
| {loop items="#trails" value="trail"} | |
| {** Set up the individual trail data **} | |
| {#trailPoint|set key="name" value="{#trail.trailSystemName}"} | |
| {#trailPoint|set key="lat" value="{#trail.markerLatitude}"} | |
| {#trailPoint|set key="lng" value="{#trail.markerLongitude}"} | |
| {#trailPoint|set key="url" value="{#trail.url}"} | |
| {#trail.abstract|striptags saveAs="abstract" output="no"} | |
| {#trailPoint|set key="abs" value="{#abstract|escapeQuotes single='no'}"} |
| function initTrailDetail() { | |
| initMap(function() { | |
| setupMarkers(); | |
| setupSegments(); | |
| }); | |
| } | |
| /** | |
| * Initialize the map | |
| */ |
| var map, | |
| features = [], | |
| segments = [], | |
| latitude = 43.6, // Center point for map | |
| longitude = -72.4, // Center point for map | |
| zoom = 10; | |
| /** | |
| * Main method to setup the map | |
| * |