memespring пре 15 година
родитељ
комит
067e29ff08
10 измењених фајлова са 74 додато и 12 уклоњено
  1. +1
    -1
      data/%%45^45E^45E480CD%%index.tpl.php
  2. +5
    -1
      data/%%F7^F7F^F7F34188%%header.tpl.php
  3. +1
    -1
      docs/api.php
  4. +5
    -0
      docs/css/main.css
  5. +29
    -0
      docs/dontate.php
  6. +17
    -0
      docs/templates/donate.tpl
  7. +3
    -0
      docs/templates/footer.tpl
  8. +3
    -0
      docs/templates/header.tpl
  9. +9
    -8
      docs/templates/news_mail.tpl
  10. +1
    -1
      tools/news_mailer.php

+ 1
- 1
data/%%45^45E^45E480CD%%index.tpl.php Прегледај датотеку

@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.16, created on 2008-09-28 20:51:25
<?php /* Smarty version 2.6.16, created on 2009-07-05 11:09:09
compiled from index.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));


+ 5
- 1
data/%%F7^F7F^F7F34188%%header.tpl.php Прегледај датотеку

@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.16, created on 2008-09-28 20:51:25
<?php /* Smarty version 2.6.16, created on 2009-07-05 11:09:12
compiled from header.tpl */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@@ -19,6 +19,10 @@
<div class="hide">
<a href="#divContent">Skip navigation</a>
</div>
<div id="divAppeal">
Please help support Planning Alerts - <a href="<?php echo $this->_tpl_vars['www_server']; ?>
/dontate.php">donate to our server fund today!</a>
</div>
<div id="divMenu">
<ul class="collapse">
<li <?php if ($this->_tpl_vars['menu_item'] == 'about'): ?>class="selected"<?php endif; ?>><a href="about.php">About</a></li>


+ 1
- 1
docs/api.php Прегледај датотеку

@@ -79,7 +79,7 @@ class api {
if(sizeof($this->warnings) == 0){
$this->applications = Applications::query($_GET['easting'], $_GET['northing'], alert_size_to_meters($_GET['area_size']));
}
break;
break;
case "authority":
//validation
if(!isset($_GET['authority'])){


+ 5
- 0
docs/css/main.css Прегледај датотеку

@@ -17,6 +17,11 @@ h3, h4 {color:#96ca2f;font-style:italic;font-weight:normal}
#divHeader {margin-top:1.7em;padding-bottom:1em;position:relative;}
#divHeader img {position:absolute;top:-15px;}

/* Appeal */
#divAppeal {background:#fff; color:#333; border-bottom:solid 1px #333; font-size:0.8em; padding-bottom:0.2em;}
#divAppeal a {color:#CC0000;}
#divPayment {text-align:center; border:solid 1px #ccc; padding:2em 1em 1em 1em; background:#ffff88;}

/* Menu */
#divMenu {background:#6E84BD;height:2.2em;font-size:0.7em;}
#divMenu ul {width:500px;margin:0 auto;}


+ 29
- 0
docs/dontate.php Прегледај датотеку

@@ -0,0 +1,29 @@
<?php
require_once ("config.php");
require_once ("stats.php");

class donate_page {

//Constructor
function donate_page() {
$this->bind();
}

//howto
function bind() {
$smarty = new Smarty;
$smarty->force_compile = true;
$smarty->compile_dir = SMARTY_COMPILE_DIRECTORY;
$smarty->assign("stats", stats::get_stats());
$smarty->assign("page_title","Donate to the Planning Alerts server fund");
$smarty->assign("menu_item","signup");

$smarty->display('donate.tpl');
}

}


$donate_page = new donate_page();

+ 17
- 0
docs/templates/donate.tpl Прегледај датотеку

@@ -0,0 +1,17 @@
{include file="header.tpl"}

<h3>Donate to PlanningAlerts</h3>
<p>
If you'd like to make a donation towards the running costs of PlanningAlerts, please click the button below to make a payment using PayPal.
</p>

<div id="divPayment">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="6588042">
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
</div>

{include file="footer.tpl"}

+ 3
- 0
docs/templates/footer.tpl Прегледај датотеку

@@ -5,8 +5,11 @@
<li><a href="about.php">About</a></li>
<li><a href="about.php#contact">Contact</a></li>
</ul>
{*
<a id="aOpen" href="http://okd.okfn.org/" title="Data on this site is open"><span class="hide">Open Data</span></a>

<a id="aHosted" href="http://www.mysociety.org" title="This website is hosted by mySociety"><span class="hide">Hosted by MySociety</span></a>
*}
</div>
</div>
{if $onloadscript !="" || $set_focus_control !=""}


+ 3
- 0
docs/templates/header.tpl Прегледај датотеку

@@ -16,6 +16,9 @@
<div class="hide">
<a href="#divContent">Skip navigation</a>
</div>
<div id="divAppeal">
Please help support Planning Alerts - <a href="{$www_server}/dontate.php">donate to our server fund today!</a>
</div>
<div id="divMenu">
<ul class="collapse">
<li {if $menu_item =="about"}class="selected"{/if}><a href="about.php">About</a></li>


+ 9
- 8
docs/templates/news_mail.tpl Прегледај датотеку

@@ -1,19 +1,20 @@
{textformat style='email'}
Hello,

This is a one-off email to let you know about a new website I've built that's a bit like Planning Alerts: http://www.streetwire.org
We don't normally ask anything of people signed up to PlanningAlerts, but hopefully you'll excuse a one off cheeky request for help.

StreetWire is like PlanningAlerts for every kind of local information. As well as planning applications, it will tell you about licensing applications, crime, events and local news near you.
Planning Alerts has continued to grow with more councils added, and more and more people signing up to use it. This is really great, and people continue to tell us that they like the service, which is always nice to hear.

You can also share news with your neighbours, so if you know some little titbit of local news, or want to tell people about an event, it helps connect you with your local community.
But we've reached the point where we need to move to a bigger server, and that is going to cost us money. So we were wondering if you would consider donating to a small amount to help us out?

You can sign-up here:
You can donate here:

http://www.streetwire.org
http://www.planningalerts.com/donate.php

I hope you find this useful. It would be really great to hear what you think of it, and what sort of information you'd like to see.

All the best,
Since it seems unfair to ask for money and not do anything in return, if we raise enough money to pay for a new server, we'll promise to make a start at including Licensing Applications (new pubs, off licenses etc) in our emails. If that seems like a fair deal, please click on the link above.

Richard Pope (volunteer PlanningAlerts.com)
Thanks and all the best,

Richard & Duncan (PlanningAlerts.com volunteers)
{/textformat}

+ 1
- 1
tools/news_mailer.php Прегледај датотеку

@@ -40,7 +40,7 @@ class news_mailer {
//Send the email
if($email_text !=""){
// send_text_email($user_results[$i][0], EMAIL_FROM_NAME, EMAIL_FROM_ADDRESS, "StreetWire - a new service from PlanningAlerts", $email_text);
send_text_email($user_results[$i][0], EMAIL_FROM_NAME, EMAIL_FROM_ADDRESS, "PlanningAlerts needs your help", $email_text);
}

}


Loading…
Откажи
Сачувај