Added time to date, changed special cond.
authorLaury GvR <laury@gaslightmedia.com>
Tue, 18 Oct 2016 17:09:24 +0000 (13:09 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 18 Oct 2016 17:09:24 +0000 (13:09 -0400)
The special additional description is now simply named 'additional
' and no longer linked specifically to the "special condition" to
avoid confusion. Also added the time to the date format in front
and side view.

19 files changed:
index.php
models/admin/conditions/index.php
models/front/conditions/current.php
setup/databaseScripts/DNUupdate_database_V0.0.1.sql [deleted file]
setup/databaseScripts/DNUupdate_database_V0.0.2.sql [deleted file]
setup/databaseScripts/create_database_V0.0.1.sql [deleted file]
setup/databaseScripts/create_database_V0.0.2.sql [new file with mode: 0644]
setup/databaseScripts/dbVersions.php
setup/databaseScripts/drop_database_V0.0.1.sql [deleted file]
setup/databaseScripts/drop_database_V0.0.2.sql [new file with mode: 0644]
setup/databaseScripts/examples/drop_database_V0.0.1.sql [deleted file]
setup/databaseScripts/examples/readme.txt [deleted file]
setup/databaseScripts/examples/update_database_V0.0.2.php [deleted file]
setup/databaseScripts/examples/update_database_V0.0.2.sql [deleted file]
setup/databaseScripts/update_database_V0.0.2.sql [new file with mode: 0644]
views/admin/conditions/index.html
views/front/conditions/front.html
views/front/conditions/inside.html
views/front/conditions/side.html

index 37ad36b..eaa0967 100644 (file)
--- a/index.php
+++ b/index.php
@@ -54,7 +54,7 @@
  *  version from this plugin.
  */
 define('GLM_MEMBERS_CONDITIONS_PLUGIN_VERSION', '0.0.7');
-define('GLM_MEMBERS_CONDITIONS_PLUGIN_DB_VERSION', '0.0.1');
+define('GLM_MEMBERS_CONDITIONS_PLUGIN_DB_VERSION', '0.0.2');
 
 // This is the minimum version of the GLM Members DB plugin require for this plugin.
 define('GLM_MEMBERS_CONDITIONS_PLUGIN_MIN_MEMBERS_REQUIRED_VERSION', '1.0.57');
index 313aabb..09cec97 100644 (file)
@@ -159,11 +159,11 @@ class GlmMembersAdmin_conditions_index extends GlmDataConditions
                     if (isset($_REQUEST['condition_selected']) && trim($_REQUEST['condition_selected']) != '') {
                         $selected_condition = $_REQUEST['condition_selected'];
                     }
-                    if (isset($_REQUEST['condition_current_special']) && trim($_REQUEST['condition_current_special']) != '') {
-                        $condition_current_special = $_REQUEST['condition_current_special'];
+                    if (isset($_REQUEST['condition_current_additional']) && trim($_REQUEST['condition_current_additional']) != '') {
+                        $condition_current_additional = $_REQUEST['condition_current_additional'];
                     }
                     $sql = "UPDATE ".GLM_MEMBERS_CONDITIONS_PLUGIN_DB_PREFIX."current_condition CC
-                               SET CC.cond_id='$selected_condition', CC.special='$condition_current_special'
+                               SET CC.cond_id='$selected_condition', CC.additional='$condition_current_additional'
                              WHERE CC.id = 1
                     ";
                     $this->wpdb->get_results( $sql );
index 82825f9..727c681 100644 (file)
@@ -53,7 +53,7 @@ class GlmMembersFront_conditions_current extends GlmDataCurrentCondition
         )";
         $selected_condition = $this->wpdb->get_results( $sql, ARRAY_A );
 
-        $todays_date = date("l, M d") . "th";
+        $todays_date = date("l, M d");
         $time_now = date("g:i A");
         
         $view = "front";
@@ -64,12 +64,7 @@ class GlmMembersFront_conditions_current extends GlmDataCurrentCondition
         $site_base_url = GLM_MEMBERS_CONDITIONS_SITE_THEME_URL;
         
         $conditions_url = esc_url( home_url( '/' ) ) . "conditions";
-        
-        // If this is a special condition
-        if ($current_condition[0]['id'] == 12) {
-            $special_condition = true;
-        }
-        
+                
         // Compile template data
         $templateData = array(
             'currentCondition'  => $current_condition[0],
@@ -77,8 +72,7 @@ class GlmMembersFront_conditions_current extends GlmDataCurrentCondition
             'todaysDate' => $todays_date,
             'timeNow' => $time_now,
             'conditionsUrl' => $conditions_url,
-            'siteBaseUrl' => $site_base_url,
-            'specialCondition' => $special_condition
+            'siteBaseUrl' => $site_base_url
         );
         
         error_reporting(E_ALL ^ E_NOTICE);
diff --git a/setup/databaseScripts/DNUupdate_database_V0.0.1.sql b/setup/databaseScripts/DNUupdate_database_V0.0.1.sql
deleted file mode 100644 (file)
index a338a6d..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
--- Gaslight Media Members Database 
--- File Created: 12/09/14 15:27:15
--- Database Version: 0.0.3
--- Database Update From Previous Version Script
--- 
--- To permit each query below to be executed separately,
--- all queries must be separated by a line with four dashses
-
-
-DROP TABLE IF EXISTS
-    {prefix}conditions,
-    {prefix}current_condition
-;
-
-CREATE TABLE {prefix}conditions (
-  id INT NOT NULL AUTO_INCREMENT,
-  name TEXT NOT NULL,
-  descr_short TEXT NULL,
-  descr TEXT NULL,
-  last_update DATE NULL,
-  PRIMARY KEY (id)
-);
-
-----
-
--- Current Conditions Table
-CREATE TABLE {prefix}current_condition (
-  id INT NOT NULL AUTO_INCREMENT,
-  cond_id INT NOT NULL,
-  special TEXT NULL,
-  last_update DATE NULL,
-  PRIMARY KEY (id)
-);
-
-----
-
--- Conditions default entries in table
-INSERT INTO {prefix}conditions ( id, name, last_update, descr_short, descr ) VALUES
-( 1, 'All Clear, Have a Pleasant Trip!', NOW(), "Currently there are no significant weather conditions to report to motorists planning to cross the Mackinac Bridge.", "Currently there are no significant weather conditions to report to motorists planning to cross the Mackinac Bridge. When you are traveling in the Straits area, please tune to AM radio 530 or 1610 for condition updates and for information about things to see and do.\n We hope that your trip is enjoyable and that you'll visit the Straits of Mackinac often.   Have a safe and pleasant trip!" ),
-( 2, 'High Wind Warning', NOW(), "Currently we are experiencing winds of sufficient force in the Straits area to issue a warning to all motorists preparing to cross the Mackinac Bridge.", "Currently we are experiencing winds of sufficient force in the Straits area to issue a warning to all motorists preparing to cross the Mackinac Bridge.\nExamples of vehicles which are especially vulnerable to high winds are pickup trucks with campers, motor homes, vehicles pulling trailers and enclosed semi-truck trailers.  Motorists are instructed to reduce their speed to a maximum of 20 miles per hour, turn on their four way flashers, and utilize the outside lane.  Motorists are asked to exercise appropriate caution.The Mackinac Bridge Authority is monitoring wind speeds at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates. " ),
-( 3, 'Wind Escort', NOW(), "Currently we are experiencing winds of sufficient force in the Straits area to require an escort of certain "high profile" vehicles across the Mackinac Bridge.", "Currently we are experiencing winds of sufficient force in the Straits area to require an escort of certain "high profile" vehicles across the Mackinac Bridge.\nExamples of high profile vehicles include pickup trucks with campers; cars with small boats, bicycles or luggage attached to the roof; Ryder or U-Haul trucks; any vehicle pulling a boat; semi-tractors with enclosed trailers and all trailers with side walls over two feet in height. High profile vehicles must be escorted.\nMotorists are asked to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions regarding how and when to proceed across the bridge.\nAll vehicles must exercise appropriate caution.  The Mackinac Bridge Authority is monitoring wind speeds at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." ),
-( 4, 'Partial Bridge Closure', NOW(), "Currently we are experiencing winds of sufficient force in the Straits area to close the Mackinac Bridge to all vehicles except passenger cars, passenger vans, and empty pickup trucks.", "Currently we are experiencing winds of sufficient force in the Straits area to close the Mackinac Bridge to all vehicles except passenger cars, passenger vans, and empty pickup trucks.  Winds are blowing across the bridge surface in excess of 50 miles per hour.\nMotorists  are being instructed to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions regarding how and when to proceed across the bridge.\nPassenger cars, passenger vans, and pick-up trucks without campers are being permitted to cross, but drivers are asked to exercise appropriate caution.  Strong winds are blowing across the surface of the bridge.  Motorists are asked to drive 20 miles per hour or less.\nThe Mackinac Bridge Authority is monitoring wind speeds at  various points along the structure.  Additional steps will be implemented if conditions change.  When conditions improve,  the bridge will be reopened to all vehicles, although certain vehicles may still require an escort.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates. " ),
-( 5, 'Bridge Closed - High Winds', NOW(), "Currently we are experiencing winds of sufficient force in the Straits area to close the Mackinac Bridge to all vehicles. ", "Currently we are experiencing winds of sufficient force in the Straits area to close the Mackinac Bridge to all vehicles.  Winds are blowing across the bridge surface in excess of 65 miles per hour.\nMotorists are being instructed to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions.\nThe Mackinac Bridge Authority is monitoring wind conditions at various points along the structure.  When conditions improve, the bridge will be reopened.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." ),
-( 6, 'Bridge Closed - General', NOW(), "Currently the Mackinac Bridge is closed to all traffic.", "Currently the Mackinac Bridge is closed to all traffic.\nMotorists  are instructed to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions.\nThe Mackinac Bridge Authority is monitoring conditions at various points along the structure.  When conditions improve, the bridge will be reopened to traffic.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." ),
-( 7, 'Bridge Closed - Weather', NOW(), "Due to the current weather conditions, the Mackinac Bridge is closed to all traffic.", "Due to the current weather conditions, the Mackinac Bridge is closed to all traffic.\nMotorists are being instructed to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions.\nThe Mackinac Bridge Authority is monitoring conditions at various points along the structure.  When conditions improve, the bridge will be reopened to traffic.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." ),
-( 8, 'Falling Ice Warning', NOW(), "Currently we are experiencing falling ice from the cables and towers on the Mackinac Bridge.", "Currently we are experiencing falling ice from the cables and towers on the Mackinac Bridge.\nMotorists are advised to reduce their speed to a maximum of 20 miles per hour, be alert and exercise appropriate caution.\nThe Mackinac Bridge Authority is monitoring the current conditions at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM 530 or 1610." ),
-( 9, 'Bridge Closed - Falling Ice', NOW(), "Currently the Mackinac Bridge is closed to all traffic.  We are experiencing falling ice from the cables and towers on the bridge.","Currently the Mackinac Bridge is closed to all traffic.  We are experiencing falling ice from the cables and towers on the bridge.\nMotorists are advised to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions.\nThe Mackinac Bridge Authority is monitoring the conditions at various points along the structure.  When conditions improve, the bridge will be reopened to traffic.  If you are planning to travel to the Straits area, please tune to AM 530 or 1610." ),
-( 10, 'Fog Warning', NOW(),"Currently we are experiencing fog in the Straits area.  ","Currently we are experiencing fog in the Straits area.  Due to limited visibility, motorists crossing the Mackinac Bridge are advised to reduce their speed to a maximum of 20 miles per hour, turn on their low-beam headlights, and exercise appropriate caution.\nThe Mackinac Bridge Authority is monitoring conditions at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM 530 or 1610 for updates. \n" ),
-( 11, 'Blowing Snow Warning', NOW(), "Currently we are experiencing blowing snow in the Straits area.", "Currently we are experiencing blowing snow in the Straits area.  Due to limited visibility it is necessary to issue a warning to all motorists preparing to cross the Mackinac Bridge.  In addition to limited visibility, the road surface may be slippery.\nMotorists are instructed to reduce their speed to a maximum of 20 miles per hour, turn on your low-beam headlights, and exercise appropriate caution.\nThe Mackinac Bridge Authority is monitoring conditions at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." ),
-( 12, 'Special Condition', NOW(),"Special Condition information","Special Condition information" )
-;
-
-----
-
-INSERT INTO {prefix}current_condition ( id, cond_id, last_update ) VALUES ( 1, 1, NOW() );
\ No newline at end of file
diff --git a/setup/databaseScripts/DNUupdate_database_V0.0.2.sql b/setup/databaseScripts/DNUupdate_database_V0.0.2.sql
deleted file mode 100644 (file)
index 447064b..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
--- Gaslight Media Members Database 
--- File Created: 12/09/14 15:27:15
--- Database Version: 0.0.2
--- Database Update From Previous Version Script
--- 
--- To permit each query below to be executed separately,
--- all queries must be separated by a line with four dashses
-
-UPDATE {prefix}conditions SET descr_short="Currently there are no significant weather conditions to report to motorists planning to cross the Mackinac Bridge.", descr="Currently there are no significant weather conditions to report to motorists planning to cross the Mackinac Bridge. When you are traveling in the Straits area, please tune to AM radio 530 or 1610 for condition updates and for information about things to see and do.\n We hope that your trip is enjoyable and that you'll visit the Straits of Mackinac often.   Have a safe and pleasant trip!" WHERE id='1';
-
-----
-
-UPDATE {prefix}conditions SET descr_short="Currently we are experiencing winds of sufficient force in the Straits area to issue a warning to all motorists preparing to cross the Mackinac Bridge.", descr="Currently we are experiencing winds of sufficient force in the Straits area to issue a warning to all motorists preparing to cross the Mackinac Bridge.\nExamples of vehicles which are especially vulnerable to high winds are pickup trucks with campers, motor homes, vehicles pulling trailers and enclosed semi-truck trailers.  Motorists are instructed to reduce their speed to a maximum of 20 miles per hour, turn on their four way flashers, and utilize the outside lane.  Motorists are asked to exercise appropriate caution.The Mackinac Bridge Authority is monitoring wind speeds at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates. " WHERE id='2';
-
-----
-
-UPDATE {prefix}conditions SET descr_short="Currently we are experiencing winds of sufficient force in the Straits area to require an escort of certain 'high profile' vehicles across the Mackinac Bridge.", descr="Currently we are experiencing winds of sufficient force in the Straits area to require an escort of certain 'high profile' vehicles across the Mackinac Bridge.\nExamples of high profile vehicles include pickup trucks with campers; cars with small boats, bicycles or luggage attached to the roof; Ryder or U-Haul trucks; any vehicle pulling a boat; semi-tractors with enclosed trailers and all trailers with side walls over two feet in height. High profile vehicles must be escorted.\nMotorists are asked to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions regarding how and when to proceed across the bridge.\nAll vehicles must exercise appropriate caution.  The Mackinac Bridge Authority is monitoring wind speeds at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." WHERE id='3';
-
-----
-
-UPDATE {prefix}conditions SET descr_short="Currently we are experiencing winds of sufficient force in the Straits area to close the Mackinac Bridge to all vehicles except passenger cars, passenger vans, and empty pickup trucks.", descr="Currently we are experiencing winds of sufficient force in the Straits area to close the Mackinac Bridge to all vehicles except passenger cars, passenger vans, and empty pickup trucks.  Winds are blowing across the bridge surface in excess of 50 miles per hour.\nMotorists  are being instructed to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions regarding how and when to proceed across the bridge.\nPassenger cars, passenger vans, and pick-up trucks without campers are being permitted to cross, but drivers are asked to exercise appropriate caution.  Strong winds are blowing across the surface of the bridge.  Motorists are asked to drive 20 miles per hour or less.\nThe Mackinac Bridge Authority is monitoring wind speeds at  various points along the structure.  Additional steps will be implemented if conditions change.  When conditions improve,  the bridge will be reopened to all vehicles, although certain vehicles may still require an escort.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates. " WHERE id='4';
-
-----
-
-UPDATE {prefix}conditions SET descr_short="Currently we are experiencing winds of sufficient force in the Straits area to close the Mackinac Bridge to all vehicles. ", descr="Currently we are experiencing winds of sufficient force in the Straits area to close the Mackinac Bridge to all vehicles.  Winds are blowing across the bridge surface in excess of 65 miles per hour.\nMotorists are being instructed to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions.\nThe Mackinac Bridge Authority is monitoring wind conditions at various points along the structure.  When conditions improve, the bridge will be reopened.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." WHERE id='5';
-
-----
-
-UPDATE {prefix}conditions SET descr_short="Currently the Mackinac Bridge is closed to all traffic.", descr="Currently the Mackinac Bridge is closed to all traffic.\nMotorists  are instructed to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions.\nThe Mackinac Bridge Authority is monitoring conditions at various points along the structure.  When conditions improve, the bridge will be reopened to traffic.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." WHERE id='6';
-
-----
-
-UPDATE {prefix}conditions SET descr_short="Due to the current weather conditions, the Mackinac Bridge is closed to all traffic.", descr="Due to the current weather conditions, the Mackinac Bridge is closed to all traffic.\nMotorists are being instructed to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions.\nThe Mackinac Bridge Authority is monitoring conditions at various points along the structure.  When conditions improve, the bridge will be reopened to traffic.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." WHERE id='7';
-
-----
-
-UPDATE {prefix}conditions SET descr_short="Currently we are experiencing falling ice from the cables and towers on the Mackinac Bridge.", descr="Currently we are experiencing falling ice from the cables and towers on the Mackinac Bridge.\nMotorists are advised to reduce their speed to a maximum of 20 miles per hour, be alert and exercise appropriate caution.\nThe Mackinac Bridge Authority is monitoring the current conditions at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM 530 or 1610." WHERE id='8';
-
-----
-
-UPDATE {prefix}conditions SET descr_short="Currently the Mackinac Bridge is closed to all traffic.  We are experiencing falling ice from the cables and towers on the bridge.", descr="Currently the Mackinac Bridge is closed to all traffic.  We are experiencing falling ice from the cables and towers on the bridge.\nMotorists are advised to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions.\nThe Mackinac Bridge Authority is monitoring the conditions at various points along the structure.  When conditions improve, the bridge will be reopened to traffic.  If you are planning to travel to the Straits area, please tune to AM 530 or 1610." WHERE id='9';
-
-----
-
-UPDATE {prefix}conditions SET descr_short="Currently we are experiencing fog in the Straits area.  ", descr="Currently we are experiencing fog in the Straits area.  Due to limited visibility, motorists crossing the Mackinac Bridge are advised to reduce their speed to a maximum of 20 miles per hour, turn on their low-beam headlights, and exercise appropriate caution.\nThe Mackinac Bridge Authority is monitoring conditions at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM 530 or 1610 for updates." WHERE id='10';
-
-----
-
-UPDATE {prefix}conditions SET descr_short="Currently we are experiencing blowing snow in the Straits area.", descr="Currently we are experiencing blowing snow in the Straits area.  Due to limited visibility it is necessary to issue a warning to all motorists preparing to cross the Mackinac Bridge.  In addition to limited visibility, the road surface may be slippery.\nMotorists are instructed to reduce their speed to a maximum of 20 miles per hour, turn on your low-beam headlights, and exercise appropriate caution.\nThe Mackinac Bridge Authority is monitoring conditions at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." WHERE id='11';
-
-----
-
-UPDATE {prefix}conditions SET descr_short="Special Condition information", descr="Special Condition information" WHERE id='12';
\ No newline at end of file
diff --git a/setup/databaseScripts/create_database_V0.0.1.sql b/setup/databaseScripts/create_database_V0.0.1.sql
deleted file mode 100644 (file)
index a7b5480..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
--- Gaslight Media Members Database - Conditions
--- File Created: 12/02/15 15:27:15
--- Database Version: 0.0.1
--- Database Creation Script
---
--- This file is called to create a new set of tables for this
--- add-on for the most receint database version for this add-on.
---
--- There should only be one such file in this directory
---
--- To permit each query below to be executed separately,
--- all queries must be separated by a line with four dashes
-
--- Conditions Table
-CREATE TABLE {prefix}conditions (
-  id INT NOT NULL AUTO_INCREMENT,
-  name TEXT NOT NULL,
-  descr_short TEXT NULL,
-  descr TEXT NULL,
-  last_update DATE NULL,
-  PRIMARY KEY (id)
-);
-
-----
-
--- Current Conditions Table
-CREATE TABLE {prefix}current_condition (
-  id INT NOT NULL AUTO_INCREMENT,
-  cond_id INT NOT NULL,
-  special TEXT NULL,
-  last_update DATE NULL,
-  PRIMARY KEY (id)
-);
-
-----
-
--- Conditions default entries in table
-INSERT INTO {prefix}conditions ( id, name, last_update, descr_short, descr ) VALUES
-( 1, 'All Clear, Have a Pleasant Trip!', NOW(), "Currently there are no significant weather conditions to report to motorists planning to cross the Mackinac Bridge.", "Currently there are no significant weather conditions to report to motorists planning to cross the Mackinac Bridge. When you are traveling in the Straits area, please tune to AM radio 530 or 1610 for condition updates and for information about things to see and do.\n We hope that your trip is enjoyable and that you'll visit the Straits of Mackinac often.   Have a safe and pleasant trip!" ),
-( 2, 'High Wind Warning', NOW(), "Currently we are experiencing winds of sufficient force in the Straits area to issue a warning to all motorists preparing to cross the Mackinac Bridge.", "Currently we are experiencing winds of sufficient force in the Straits area to issue a warning to all motorists preparing to cross the Mackinac Bridge.\nExamples of vehicles which are especially vulnerable to high winds are pickup trucks with campers, motor homes, vehicles pulling trailers and enclosed semi-truck trailers.  Motorists are instructed to reduce their speed to a maximum of 20 miles per hour, turn on their four way flashers, and utilize the outside lane.  Motorists are asked to exercise appropriate caution.The Mackinac Bridge Authority is monitoring wind speeds at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates. " ),
-( 3, 'Wind Escort', NOW(), "Currently we are experiencing winds of sufficient force in the Straits area to require an escort of certain 'high profile' vehicles across the Mackinac Bridge.", "Currently we are experiencing winds of sufficient force in the Straits area to require an escort of certain 'high profile' vehicles across the Mackinac Bridge.\nExamples of high profile vehicles include pickup trucks with campers; cars with small boats, bicycles or luggage attached to the roof; Ryder or U-Haul trucks; any vehicle pulling a boat; semi-tractors with enclosed trailers and all trailers with side walls over two feet in height. High profile vehicles must be escorted.\nMotorists are asked to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions regarding how and when to proceed across the bridge.\nAll vehicles must exercise appropriate caution.  The Mackinac Bridge Authority is monitoring wind speeds at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." ),
-( 4, 'Partial Bridge Closure', NOW(), "Currently we are experiencing winds of sufficient force in the Straits area to close the Mackinac Bridge to all vehicles except passenger cars, passenger vans, and empty pickup trucks.", "Currently we are experiencing winds of sufficient force in the Straits area to close the Mackinac Bridge to all vehicles except passenger cars, passenger vans, and empty pickup trucks.  Winds are blowing across the bridge surface in excess of 50 miles per hour.\nMotorists  are being instructed to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions regarding how and when to proceed across the bridge.\nPassenger cars, passenger vans, and pick-up trucks without campers are being permitted to cross, but drivers are asked to exercise appropriate caution.  Strong winds are blowing across the surface of the bridge.  Motorists are asked to drive 20 miles per hour or less.\nThe Mackinac Bridge Authority is monitoring wind speeds at  various points along the structure.  Additional steps will be implemented if conditions change.  When conditions improve,  the bridge will be reopened to all vehicles, although certain vehicles may still require an escort.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates. " ),
-( 5, 'Bridge Closed - High Winds', NOW(), "Currently we are experiencing winds of sufficient force in the Straits area to close the Mackinac Bridge to all vehicles. ", "Currently we are experiencing winds of sufficient force in the Straits area to close the Mackinac Bridge to all vehicles.  Winds are blowing across the bridge surface in excess of 65 miles per hour.\nMotorists are being instructed to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions.\nThe Mackinac Bridge Authority is monitoring wind conditions at various points along the structure.  When conditions improve, the bridge will be reopened.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." ),
-( 6, 'Bridge Closed - General', NOW(), "Currently the Mackinac Bridge is closed to all traffic.", "Currently the Mackinac Bridge is closed to all traffic.\nMotorists  are instructed to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions.\nThe Mackinac Bridge Authority is monitoring conditions at various points along the structure.  When conditions improve, the bridge will be reopened to traffic.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." ),
-( 7, 'Bridge Closed - Weather', NOW(), "Due to the current weather conditions, the Mackinac Bridge is closed to all traffic.", "Due to the current weather conditions, the Mackinac Bridge is closed to all traffic.\nMotorists are being instructed to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions.\nThe Mackinac Bridge Authority is monitoring conditions at various points along the structure.  When conditions improve, the bridge will be reopened to traffic.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." ),
-( 8, 'Falling Ice Warning', NOW(), "Currently we are experiencing falling ice from the cables and towers on the Mackinac Bridge.", "Currently we are experiencing falling ice from the cables and towers on the Mackinac Bridge.\nMotorists are advised to reduce their speed to a maximum of 20 miles per hour, be alert and exercise appropriate caution.\nThe Mackinac Bridge Authority is monitoring the current conditions at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM 530 or 1610." ),
-( 9, 'Bridge Closed - Falling Ice', NOW(), "Currently the Mackinac Bridge is closed to all traffic.  We are experiencing falling ice from the cables and towers on the bridge.","Currently the Mackinac Bridge is closed to all traffic.  We are experiencing falling ice from the cables and towers on the bridge.\nMotorists are advised to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions.\nThe Mackinac Bridge Authority is monitoring the conditions at various points along the structure.  When conditions improve, the bridge will be reopened to traffic.  If you are planning to travel to the Straits area, please tune to AM 530 or 1610." ),
-( 10, 'Fog Warning', NOW(),"Currently we are experiencing fog in the Straits area.  ","Currently we are experiencing fog in the Straits area.  Due to limited visibility, motorists crossing the Mackinac Bridge are advised to reduce their speed to a maximum of 20 miles per hour, turn on their low-beam headlights, and exercise appropriate caution.\nThe Mackinac Bridge Authority is monitoring conditions at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM 530 or 1610 for updates. \n" ),
-( 11, 'Blowing Snow Warning', NOW(), "Currently we are experiencing blowing snow in the Straits area.", "Currently we are experiencing blowing snow in the Straits area.  Due to limited visibility it is necessary to issue a warning to all motorists preparing to cross the Mackinac Bridge.  In addition to limited visibility, the road surface may be slippery.\nMotorists are instructed to reduce their speed to a maximum of 20 miles per hour, turn on your low-beam headlights, and exercise appropriate caution.\nThe Mackinac Bridge Authority is monitoring conditions at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." ),
-( 12, 'Special Condition', NOW(),"Special Condition information","Special Condition information" )
-;
-
-----
-
-INSERT INTO {prefix}current_condition ( id, cond_id, last_update ) VALUES ( 1, 1, NOW() );
diff --git a/setup/databaseScripts/create_database_V0.0.2.sql b/setup/databaseScripts/create_database_V0.0.2.sql
new file mode 100644 (file)
index 0000000..a4e0faa
--- /dev/null
@@ -0,0 +1,55 @@
+-- Gaslight Media Members Database - Conditions
+-- File Created: 12/02/15 15:27:15
+-- Database Version: 0.0.2
+-- Database Creation Script
+--
+-- This file is called to create a new set of tables for this
+-- add-on for the most receint database version for this add-on.
+--
+-- There should only be one such file in this directory
+--
+-- To permit each query below to be executed separately,
+-- all queries must be separated by a line with four dashes
+
+-- Conditions Table
+CREATE TABLE {prefix}conditions (
+  id INT NOT NULL AUTO_INCREMENT,
+  name TEXT NOT NULL,
+  descr_short TEXT NULL,
+  descr TEXT NULL,
+  last_update DATE NULL,
+  PRIMARY KEY (id)
+);
+
+----
+
+-- Current Conditions Table
+CREATE TABLE {prefix}current_condition (
+  id INT NOT NULL AUTO_INCREMENT,
+  cond_id INT NOT NULL,
+  additional TEXT NULL,
+  last_update DATE NULL,
+  PRIMARY KEY (id)
+);
+
+----
+
+-- Conditions default entries in table
+INSERT INTO {prefix}conditions ( id, name, last_update, descr_short, descr ) VALUES
+( 1, 'All Clear, Have a Pleasant Trip!', NOW(), "Currently there are no significant weather conditions to report to motorists planning to cross the Mackinac Bridge.", "Currently there are no significant weather conditions to report to motorists planning to cross the Mackinac Bridge. When you are traveling in the Straits area, please tune to AM radio 530 or 1610 for condition updates and for information about things to see and do.\n We hope that your trip is enjoyable and that you'll visit the Straits of Mackinac often.   Have a safe and pleasant trip!" ),
+( 2, 'High Wind Warning', NOW(), "Currently we are experiencing winds of sufficient force in the Straits area to issue a warning to all motorists preparing to cross the Mackinac Bridge.", "Currently we are experiencing winds of sufficient force in the Straits area to issue a warning to all motorists preparing to cross the Mackinac Bridge.\nExamples of vehicles which are especially vulnerable to high winds are pickup trucks with campers, motor homes, vehicles pulling trailers and enclosed semi-truck trailers.  Motorists are instructed to reduce their speed to a maximum of 20 miles per hour, turn on their four way flashers, and utilize the outside lane.  Motorists are asked to exercise appropriate caution.The Mackinac Bridge Authority is monitoring wind speeds at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates. " ),
+( 3, 'Wind Escort', NOW(), "Currently we are experiencing winds of sufficient force in the Straits area to require an escort of certain 'high profile' vehicles across the Mackinac Bridge.", "Currently we are experiencing winds of sufficient force in the Straits area to require an escort of certain 'high profile' vehicles across the Mackinac Bridge.\nExamples of high profile vehicles include pickup trucks with campers; cars with small boats, bicycles or luggage attached to the roof; Ryder or U-Haul trucks; any vehicle pulling a boat; semi-tractors with enclosed trailers and all trailers with side walls over two feet in height. High profile vehicles must be escorted.\nMotorists are asked to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions regarding how and when to proceed across the bridge.\nAll vehicles must exercise appropriate caution.  The Mackinac Bridge Authority is monitoring wind speeds at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." ),
+( 4, 'Partial Bridge Closure', NOW(), "Currently we are experiencing winds of sufficient force in the Straits area to close the Mackinac Bridge to all vehicles except passenger cars, passenger vans, and empty pickup trucks.", "Currently we are experiencing winds of sufficient force in the Straits area to close the Mackinac Bridge to all vehicles except passenger cars, passenger vans, and empty pickup trucks.  Winds are blowing across the bridge surface in excess of 50 miles per hour.\nMotorists  are being instructed to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions regarding how and when to proceed across the bridge.\nPassenger cars, passenger vans, and pick-up trucks without campers are being permitted to cross, but drivers are asked to exercise appropriate caution.  Strong winds are blowing across the surface of the bridge.  Motorists are asked to drive 20 miles per hour or less.\nThe Mackinac Bridge Authority is monitoring wind speeds at  various points along the structure.  Additional steps will be implemented if conditions change.  When conditions improve,  the bridge will be reopened to all vehicles, although certain vehicles may still require an escort.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates. " ),
+( 5, 'Bridge Closed - High Winds', NOW(), "Currently we are experiencing winds of sufficient force in the Straits area to close the Mackinac Bridge to all vehicles. ", "Currently we are experiencing winds of sufficient force in the Straits area to close the Mackinac Bridge to all vehicles.  Winds are blowing across the bridge surface in excess of 65 miles per hour.\nMotorists are being instructed to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions.\nThe Mackinac Bridge Authority is monitoring wind conditions at various points along the structure.  When conditions improve, the bridge will be reopened.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." ),
+( 6, 'Bridge Closed - General', NOW(), "Currently the Mackinac Bridge is closed to all traffic.", "Currently the Mackinac Bridge is closed to all traffic.\nMotorists  are instructed to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions.\nThe Mackinac Bridge Authority is monitoring conditions at various points along the structure.  When conditions improve, the bridge will be reopened to traffic.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." ),
+( 7, 'Bridge Closed - Weather', NOW(), "Due to the current weather conditions, the Mackinac Bridge is closed to all traffic.", "Due to the current weather conditions, the Mackinac Bridge is closed to all traffic.\nMotorists are being instructed to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions.\nThe Mackinac Bridge Authority is monitoring conditions at various points along the structure.  When conditions improve, the bridge will be reopened to traffic.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." ),
+( 8, 'Falling Ice Warning', NOW(), "Currently we are experiencing falling ice from the cables and towers on the Mackinac Bridge.", "Currently we are experiencing falling ice from the cables and towers on the Mackinac Bridge.\nMotorists are advised to reduce their speed to a maximum of 20 miles per hour, be alert and exercise appropriate caution.\nThe Mackinac Bridge Authority is monitoring the current conditions at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM 530 or 1610." ),
+( 9, 'Bridge Closed - Falling Ice', NOW(), "Currently the Mackinac Bridge is closed to all traffic.  We are experiencing falling ice from the cables and towers on the bridge.","Currently the Mackinac Bridge is closed to all traffic.  We are experiencing falling ice from the cables and towers on the bridge.\nMotorists are advised to reduce their speed to 20 miles per hour as they approach the bridge and be prepared to stop.  Bridge personnel are stationed at both ends of the structure to provide instructions.\nThe Mackinac Bridge Authority is monitoring the conditions at various points along the structure.  When conditions improve, the bridge will be reopened to traffic.  If you are planning to travel to the Straits area, please tune to AM 530 or 1610." ),
+( 10, 'Fog Warning', NOW(),"Currently we are experiencing fog in the Straits area.  ","Currently we are experiencing fog in the Straits area.  Due to limited visibility, motorists crossing the Mackinac Bridge are advised to reduce their speed to a maximum of 20 miles per hour, turn on their low-beam headlights, and exercise appropriate caution.\nThe Mackinac Bridge Authority is monitoring conditions at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM 530 or 1610 for updates. \n" ),
+( 11, 'Blowing Snow Warning', NOW(), "Currently we are experiencing blowing snow in the Straits area.", "Currently we are experiencing blowing snow in the Straits area.  Due to limited visibility it is necessary to issue a warning to all motorists preparing to cross the Mackinac Bridge.  In addition to limited visibility, the road surface may be slippery.\nMotorists are instructed to reduce their speed to a maximum of 20 miles per hour, turn on your low-beam headlights, and exercise appropriate caution.\nThe Mackinac Bridge Authority is monitoring conditions at various points along the structure.  Additional steps will be implemented if conditions change.  If you are planning to travel to the Straits area, please tune to AM radio 530 or 1610 for updates." ),
+( 12, 'Additional Condition', NOW(),"Additional Condition information","Additional Condition information" )
+;
+
+----
+
+INSERT INTO {prefix}current_condition ( id, cond_id, last_update ) VALUES ( 1, 1, NOW() );
index 4682429..96782bc 100644 (file)
@@ -35,4 +35,5 @@
 
 $glmMembersConditionsDbVersions = array(
     '0.0.1' => array('version' => '0.0.1', 'tables' => 2, 'date' => '10/10/2016'),
+    '0.0.2' => array('version' => '0.0.2', 'tables' => 2, 'date' => '10/18/2016'),
 );
diff --git a/setup/databaseScripts/drop_database_V0.0.1.sql b/setup/databaseScripts/drop_database_V0.0.1.sql
deleted file mode 100644 (file)
index f604b87..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
--- Gaslight Media Members Database 
--- File Created: 12/09/14 15:27:15
--- Database Version: 0.0.1
--- Database Deletion Script
--- Note: Tables with DELETE CASCADE must appear before referenced table
-
-DROP TABLE IF EXISTS
-    {prefix}conditions,
-    {prefix}current_condition
-;
-
diff --git a/setup/databaseScripts/drop_database_V0.0.2.sql b/setup/databaseScripts/drop_database_V0.0.2.sql
new file mode 100644 (file)
index 0000000..9ed5aec
--- /dev/null
@@ -0,0 +1,11 @@
+-- Gaslight Media Members Database 
+-- File Created: 12/09/14 15:27:15
+-- Database Version: 0.0.2
+-- Database Deletion Script
+-- Note: Tables with DELETE CASCADE must appear before referenced table
+
+DROP TABLE IF EXISTS
+    {prefix}conditions,
+    {prefix}current_condition
+;
+
diff --git a/setup/databaseScripts/examples/drop_database_V0.0.1.sql b/setup/databaseScripts/examples/drop_database_V0.0.1.sql
deleted file mode 100644 (file)
index f04ce11..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
--- Gaslight Media Members Database 
--- File Created: 12/09/14 15:27:15
--- Database Version: 1.1.5
--- Database Deletion Script
--- Note: Tables with DELETE CASCADE must appear before referenced table
---
--- Multiple tables may be separated by ",".
-
-DROP TABLE IF EXISTS
-    {prefix}sometablename
-;
-
diff --git a/setup/databaseScripts/examples/readme.txt b/setup/databaseScripts/examples/readme.txt
deleted file mode 100644 (file)
index eeecde4..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-DATABASE EXAMPLE FILES
-----------------------
-
-*** THESE ARE EXAMPLES ONLY ***
-
-The files in this directory are examples only. Do not use any of these as they are!
-
-The example here is of a set of one table for the add-on that is initially created
-by the create_database_V0.0.1.sql script. That file creates one table and inserts
-one entry into that table.
-
-In this example, the database is later updated by two files. Either of these may 
-be included separately if only a PHP file is needed to update the database, or 
-just an SQL script. Sometimes both are needed.
-
-There is also an entry in the dbVersions.php file that describes the update. 
-
-Note that the number of tables needs to be set to the updated number for each update.
-
-Also note that the SQL update scripts are run before the PHP update scripts.
-
-NOTE: When doing a database version update be sure to update the version numbers
-on the "create_database_V..." and "drop_database_V..." files. Also the drop_database
-file must reference all off the tables in the create_database file.
-
diff --git a/setup/databaseScripts/examples/update_database_V0.0.2.php b/setup/databaseScripts/examples/update_database_V0.0.2.php
deleted file mode 100644 (file)
index b7d80cb..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-/*
- * Gaslight Media Members Database - Conditions Add-On
- *
- * Database Update Script for version 0.0.2
- */
-
-/**********************************************************************
- *  NOTE: THIS IS A CONDITIONS FILE - DO NOT USE UNMODIFIED
- *
- *  Please change all references to conditions, Conditions, or CONDITIONS to a name
- *  appropriate for your new Add-On.
- *
- *  This is a conditions database update process. There should be an SQL
- *  script for each update in this directory. This php file is optionsl
- *  and can be used to perform more complex data updates.
- *
- *  If this file exists, it is called after the matching SQL script has
- *  been run.
- *
- *  ******** THE CODE BELOW IS STICTLY A CONDITIONS ********
- *
- *  Remove this message before using this file in production!
- **********************************************************************/
-
-/*
- * Update conditions records to take data from one field, change it, then store it in the new field
- */
-
-// Get all records from the sometablename table.
-$conditionsRecords = $this->wpdb->get_results('SELECT id, title FROM '.GLM_MEMBERS_CONDITIONS_PLUGIN_DB_PREFIX.'sometablename;', ARRAY_A);
-
-// If there's any records
-if ($conditionsRecords && count($conditionsRecords) > 0) {
-
-    // For each record
-    foreach ($conditionsRecords as $p) {
-
-        // Create a slug from the somefield field
-        $newData = sanitize_title($p['somefield']).'-'.$p['id'];
-
-        // Store this value back into the record in the new yetanotherfield field
-        $this->wpdb->update(
-                GLM_MEMBERS_CONDITIONS_PLUGIN_DB_PREFIX.'sometablename',
-                array(
-                        'yetanotherfield' => $slug
-                ),
-                array( 'id' => $p['id'] ),
-                array( '%s' ),
-                array( '%d')
-        );
-    }
-
-}
diff --git a/setup/databaseScripts/examples/update_database_V0.0.2.sql b/setup/databaseScripts/examples/update_database_V0.0.2.sql
deleted file mode 100644 (file)
index 68022c1..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
--- Gaslight Media Members Database 
--- File Created: 12/09/14 15:27:15
--- Database Version: 0.0.2
--- Database Update From Previous Version Script
--- 
--- To permit each query below to be executed separately,
--- all queries must be separated by a line with four dashses
-
--- A conditions database update script
-CREATE TABLE {prefix}anothertablename (
-  id INT NOT NULL AUTO_INCREMENT,
-  anotherfield TINYTEXT NULL,
-  PRIMARY KEY (id)
-);
-
-----
-
-ALTER TABLE {prefix}sometablename ADD COLUMN yetanotherfield TINYTEXT;
-
-
-
diff --git a/setup/databaseScripts/update_database_V0.0.2.sql b/setup/databaseScripts/update_database_V0.0.2.sql
new file mode 100644 (file)
index 0000000..794b972
--- /dev/null
@@ -0,0 +1,9 @@
+-- Gaslight Media Members Database  - Contacts Add-On
+-- File Created: 12/09/14 15:27:15
+-- Database Version: 0.0.2
+-- Database Update From Previous Version Script
+-- 
+-- To permit each query below to be executed separately,
+-- all queries must be separated by a line with four dashses
+
+ALTER TABLE {prefix}current_condition CHANGE special additional TEXT;
\ No newline at end of file
index 392c331..f5b3d63 100644 (file)
@@ -28,8 +28,8 @@
             {if $currentCondition}
                 <tr>
                     <td>
-                        <span>Special Condition Information:</span> <br>
-                        <textarea name="condition_current_special" rows="8" cols="35">{$currentCondition.special}</textarea>
+                        <span>Additional Condition Information:</span> <br>
+                        <textarea name="condition_current_additional" rows="8" cols="35">{$currentCondition.additional}</textarea>
                     </td>
                 </tr>
             {/if}
index 3a1bcd9..fc57566 100644 (file)
@@ -6,7 +6,7 @@
         
         <div class="content-container text-center" data-equalizer-watch>
             <a href="{$conditionsUrl}" class="click-container">
-                <span class="date">{$todaysDate}</span>
+                <span class="date">{$todaysDate} - {$timeNow}</span>
                 <span class="status">{$selectedCondition.name}</span>
                 <span>{$selectedCondition.descr_short}</span>
             </a>
index 319d7fe..acd3401 100644 (file)
@@ -1,12 +1,11 @@
 {if $selectedCondition}
     <h2 class="status">Status:</h2>
     <h3 class="status">{$selectedCondition.name}</h3>
-    <div class="date">{$todaysDate}{$timeNow}</div><br>
+    <div class="date">{$todaysDate} - {$timeNow}</div><br>
     <div class="condition-description" id="condition-{$selectedCondition.id}">
-        {if $special}
-            <span>{$currentCondition.special|nl2br}</span>
-        {else}
-            <span>{$selectedCondition.descr|nl2br}</span>
+            <p>{$selectedCondition.descr|nl2br}</p>
+        {if $currentCondition.additional}
+            <p>{$currentCondition.additional|nl2br}</p>
         {/if}
     </div>
 {/if}
index 2b5d6af..4ebb8d9 100644 (file)
@@ -3,7 +3,7 @@
         <img src="{$siteBaseUrl}/assets/bridge-conditions-sm.jpg" alt="Bridge Conditions">
         <div class="content-container text-center">
             <a href="{$conditionsUrl}" class="click-container">
-                <span class="date">{$todaysDate}</span>
+                <span class="date">{$todaysDate} - {$timeNow}</span>
                 <span class="status">{$selectedCondition.name}</span>
             </a>
             <a href="{$conditionsUrl}">Full condition report</a>