-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from ushahidi/email-dev
Email dev
- Loading branch information
Showing
10 changed files
with
122 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php defined('SYSPATH') OR die('No direct access allowed.'); | ||
|
||
/** | ||
* Info Controller | ||
* Render Terms of Service, Privacy Policies, Refund Policies here | ||
* | ||
* @author Ushahidi Team <[email protected]> | ||
* @package Ushahidi\Application\Controllers | ||
* @copyright Ushahidi - http://www.ushahidi.com | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License Version 3 (GPLv3) | ||
*/ | ||
class Controller_Info extends Controller_PingApp { | ||
|
||
private $_title; | ||
private $_content; | ||
|
||
public $auth_required = FALSE; | ||
|
||
public function before() | ||
{ | ||
parent::before(); | ||
|
||
$this->template->content = View::factory('pages/info/view') | ||
->bind('title', $this->_title) | ||
->bind('content', $this->_content); | ||
} | ||
|
||
/** | ||
* List People | ||
* | ||
* @return void | ||
*/ | ||
public function action_tos() | ||
{ | ||
$this->_title = 'Terms of Service'; | ||
$this->_content = nl2br(PingApp_Settings::get('tos')); | ||
} | ||
|
||
/** | ||
* List People | ||
* | ||
* @return void | ||
*/ | ||
public function action_privacy() | ||
{ | ||
$this->_title = 'Privacy Policy'; | ||
$this->_content = nl2br(PingApp_Settings::get('privacy')); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<h4><?php echo $title ?></h4> | ||
<ul class="breadcrumbs"> | ||
<li><a href="/">Home</a></li> | ||
<li class="current"><?php echo $title ?></li> | ||
</ul> | ||
|
||
<p> | ||
<?php echo $content; ?> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters