diff --git a/.gitignore b/.gitignore index a874864..034ba91 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.DS_Store index.html +data.json tweetstream/cache/cctweets.txt diff --git a/data/info-update.php b/data/info-update.php new file mode 100644 index 0000000..9a8bd11 --- /dev/null +++ b/data/info-update.php @@ -0,0 +1,36 @@ + element. + $timeNextDate = date("c", strtotime('7pm')); + + // date as human readable, 29th Oct + $showNextDate = date("jS M",$nextDate); + $attendingDate = date("My", $nextDate); + + // Constrcut attending link + $attendlink = "http://attending.io/events/cc-".$attendingDate; + + $link = (check_url($attendlink)) ? $attendlink : false; + + $data = array( + 'showNextDate' => $showNextDate, + 'timeNextDate' => $timeNextDate, + 'attendingDate' => $attendingDate, + 'link' => $link + ); + + file_put_contents('data.json', json_encode($data)); diff --git a/index.php b/index.php index 73883f1..9dd7017 100644 --- a/index.php +++ b/index.php @@ -1,56 +1,6 @@ element. - $timeNextDate = date("c",$nextDate); - - // date as human readable, 29th Oct - $showNextDate = date("jS M",$nextDate); - - $attendingDate = date("My", $nextDate); - - $attendlink = "http://attending.io/events/cc-".$attendingDate; - + $data = json_decode(file_get_contents('data/data.json')); ?> - @@ -69,7 +19,7 @@ - + @@ -102,15 +52,20 @@
  • About
  • Where
  • Join the list
  • - -
  • Attend
  • + link) : ?>
  • Attend
  • @CrCreatives
  • -

    Next:

    +

    Next: + +

    @@ -122,26 +77,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,36 +119,14 @@
    - - - -

    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.

    + link) : ?>

    The next Croydon Creatives on Attending.

    - -