From 5c3689eb7c168a37a997d916da1b1adbe1eb81e3 Mon Sep 17 00:00:00 2001 From: Mike Street Date: Fri, 16 Jan 2015 17:19:08 +0000 Subject: [PATCH 1/6] Tidy up source and remove comments (that's what Git is for) --- index.php | 52 +++------------------------------------------------- 1 file changed, 3 insertions(+), 49 deletions(-) diff --git a/index.php b/index.php index 73883f1..1107d93 100644 --- a/index.php +++ b/index.php @@ -1,9 +1,4 @@ - + @@ -102,7 +97,6 @@
  • About
  • Where
  • Join the list
  • -
  • Attend
  • @CrCreatives
  • @@ -122,26 +116,8 @@

    Where?

    -

    In our search for a regular venue, we’ve happened across two decent establishments so we’ll alternate between the two. This month, we’re meeting at - - - - - - - - - - Matthews Yard, 1 Matthews Yard (off Surrey St), Croydon, CR0 1FF - - .

    -

    If you’re traveling by train, aim for East Croydon station (20 minutes from Victoria/London Bridge rail stations), come out of the main entrance of the station, - - - - turn right and walk down George St towards Croydon center (follow the tram tracks!). Walk past the pedestrianised high street on your right and down a small (but steep!) hill. Turn left after the KFC and walk up Surrey St. After 2 minutes, you’ll see a small pedestrianised lane on your right between two buildings called Matthews Yard. Walk down the lane and Matthews Yard is on your left - - .

    +

    In our search for a regular venue, we’ve happened across two decent establishments so we’ll alternate between the two. This month, we’re meeting at Matthews Yard, 1 Matthews Yard (off Surrey St), Croydon, CR0 1FF.

    +

    If you’re traveling by train, aim for East Croydon station (20 minutes from Victoria/London Bridge rail stations), come out of the main entrance of the station, turn right and walk down George St towards Croydon center (follow the tram tracks!). Walk past the pedestrianised high street on your right and down a small (but steep!) hill. Turn left after the KFC and walk up Surrey St. After 2 minutes, you’ll see a small pedestrianised lane on your right between two buildings called Matthews Yard. Walk down the lane and Matthews Yard is on your left.

    If you’re coming by car, then the closest parking is Fairfield Halls Car Park. Take a look at this map for locations of the parking in the area and the meeting place.

    Finally, if you’re coming via tram, you’ll want the George Street tram stop.

    @@ -182,19 +158,6 @@ - - - -

    Attending?

    @@ -203,15 +166,6 @@

    The next Croydon Creatives on Attending.

    - - From dbdbffeafe1a53915751b6c179b6d2abe1a19be9 Mon Sep 17 00:00:00 2001 From: Mike Street Date: Fri, 16 Jan 2015 17:23:13 +0000 Subject: [PATCH 2/6] Add a strtotime function to calcualte the last wednesday --- index.php | 43 ++++--------------------------------------- 1 file changed, 4 insertions(+), 39 deletions(-) diff --git a/index.php b/index.php index 1107d93..ff43715 100644 --- a/index.php +++ b/index.php @@ -1,50 +1,15 @@ element. - $timeNextDate = date("c",$nextDate); + $timeNextDate = date("c", strtotime('7pm')); // date as human readable, 29th Oct $showNextDate = date("jS M",$nextDate); - $attendingDate = date("My", $nextDate); - $attendlink = "http://attending.io/events/cc-".$attendingDate; - -?> + $attendlink = "http://attending.io/events/cc-".$attendingDate; ?> From f7fd48e0f5f2594af121cdb5a7475600c68677be Mon Sep 17 00:00:00 2001 From: Mike Street Date: Fri, 16 Jan 2015 17:42:34 +0000 Subject: [PATCH 3/6] Add attending link checker and only show if a valid link --- index.php | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index ff43715..f31c055 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,13 @@ element. $timeNextDate = date("c", strtotime('7pm')); @@ -9,7 +16,11 @@ $showNextDate = date("jS M",$nextDate); $attendingDate = date("My", $nextDate); - $attendlink = "http://attending.io/events/cc-".$attendingDate; ?> + $attendlink = "http://attending.io/events/cc-".$attendingDate; + + $validurl = (check_url($attendlink)) ? true :false; + +?> @@ -62,14 +73,20 @@
  • About
  • Where
  • Join the list
  • -
  • Attend
  • +
  • Attend
  • @CrCreatives
  • -

    Next:

    +

    Next: + +

    @@ -128,7 +145,7 @@

    Attending?

    We love Attending here, it’s an awesome service for events.

    We set up an event on Attending for every Croydon Creatives meet and we love it when new and old friends add their names to the list. If you’re planning on coming along to the next Croydon Creatives meet, please do pop your name down–all you need is your Twitter username!

    -

    The next Croydon Creatives on Attending.

    +

    The next Croydon Creatives on Attending.